query
stringlengths
11
3.13k
ru_query
stringlengths
9
3.91k
document
stringlengths
18
71k
metadata
dict
negatives
listlengths
0
100
negative_scores
listlengths
0
100
document_score
stringlengths
5
10
document_rank
stringclasses
2 values
static public function read_setting_notes Reads the notes associated with the settings
static public function read_setting_notes Читает примечания, связанные с настройками
static public function read_setting_notes( ) { if ($_this = self::get_instance( )) { // single equals intended return $_this->_notes; } else { return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getNotes()\n {\n if (array_key_exists(\"notes\", $this->_propDict)) {\n return $this->_propDict[\"notes\"];\n } else {\n return null;\n }\n }", "public function notes() {\n\t\t$this->session->set_userdata('referred_from', uri_string());\n\t\t$t = a...
[ "0.6573771", "0.61661744", "0.6120559", "0.6120559", "0.61152464", "0.6063445", "0.59948945", "0.59948945", "0.59948945", "0.59948945", "0.59948945", "0.59948945", "0.59948945", "0.599262", "0.599262", "0.59924686", "0.5978883", "0.5943501", "0.59288293", "0.5881881", "0.5839...
0.81022716
0
/ Harus memanggil setIdPesertaLelang($idPesertaLelang) terlebih dahulu Untuk menangani post_handler batalikutlelang $batal bernilai 1 atau 0 (True / False), jika hapus ingin dikembalikan, dibuat False (/eprocurement/batalikutlelang/idLelang)
Нужно сначала вызвать setIdPesertaLelang($idPesertaLelang), чтобы обработать post_handler batalikutlelang $batal, значение которого равно 1 или 0 (True / False). Если удаление должно быть отменено, создайте False (/eprocurement/batalikutlelang/idLelang)
public function batalPesertaLelang($batal) { if (isset($this->idPesertaLelang)) { $query = "UPDATE `$this->namaTable` SET `batalPesertaLelang` = ? WHERE `idPesertaLelang` = `$this->idPesertaLelang`"; $data = array($batal); $this->db->executeDB($data, $query); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPesertaLelangbyIdLelang() {\n if (isset($this->idLelang)) {\n $query = \"SELECT * FROM `$this->namaTable`\n WHERE `idLelang` = $this->idLelang\";\n $data = $this->db->fetchAll($query);\n return $data;\n }\n }", "public function kelol...
[ "0.6255541", "0.62221617", "0.6214949", "0.62072533", "0.61905", "0.61721796", "0.6163864", "0.613063", "0.611795", "0.60546386", "0.60413945", "0.60000306", "0.5982321", "0.59728986", "0.5905739", "0.58946306", "0.58839506", "0.5859584", "0.58485246", "0.5835529", "0.5809408...
0.70787376
0
Clean Previous call status
Очистить предыдущий статус вызова
private function cleanLastCallStatus() { $this->headersReceived = ''; $this->buffer = ''; $this->tmp_write_file = null; $this->tmp_read_file = null; $this->tmp_read_file_size = null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function cleanCurrent() {}", "public function clearCalls()\n {\n $this->calls = [];\n }", "private function resetVars() {\n $this->response = $this->calls = array();\n $this->hasCalls = $this->isBatchCall = false;\n }", "private function resetVars() {\n ...
[ "0.6693543", "0.6660347", "0.6597917", "0.655781", "0.6525022", "0.64228225", "0.64046425", "0.6369611", "0.63613683", "0.6320008", "0.6291539", "0.6280283", "0.6197087", "0.61766064", "0.6142912", "0.6142912", "0.6142912", "0.6142912", "0.6142912", "0.61424327", "0.61412823"...
0.7748396
0
////////////////////////////////////////////////////////////////// ///////////////////////// CLASS BINDINGS ///////////////////////// ////////////////////////////////////////////////////////////////// Bind the core classes to the container.
////////////////////////////////////////////////////////////////// ///////////////////////// КЛАССЫ СВЯЗОВ ///////////////////////// ////////////////////////////////////////////////////////////////// Привязка основных классов к контейнеру.
protected function bindCoreClasses() { // Bind request $this->app->bindIf('request', function () { return Request::createFromGlobals(); }); // Bind config $this->app->bindIf('config', function ($app) { return new Repository([ 'cache' =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function bindContainerObjects()\n {\n $this->app = App::make('app');\n }", "public function bindCoreClasses(Container $app)\n\t{\n\t\t$app->bindIf('events', function ($app) {\n\t\t\treturn new Dispatcher($app);\n\t\t}, true);\n\n\t\t$app->bindIf('router', function ($app) {\n\t\t\treturn new R...
[ "0.7030367", "0.70001847", "0.69843477", "0.69352245", "0.69316065", "0.68994486", "0.68865156", "0.6869445", "0.6786251", "0.67721653", "0.6744193", "0.6593603", "0.6303382", "0.62874126", "0.6241877", "0.6216502", "0.6139431", "0.6063767", "0.60510415", "0.6036294", "0.6027...
0.78664154
0
Bind Flatten's classes to the container.
Привязать классы Flatten к контейнеру.
protected function bindFlattenClasses() { $this->app->alias('Flatten\Flatten', 'flatten'); $this->app->bind('Flatten\Flatten', function ($app) { return new Flatten($app); }); $this->app->bind('flatten.commands.build', function () { return new Crawler\BuildCom...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function bindCoreClasses()\n {\n // Bind request\n $this->app->bindIf('request', function () {\n return Request::createFromGlobals();\n });\n\n // Bind config\n $this->app->bindIf('config', function ($app) {\n return new Repository([\n ...
[ "0.6252246", "0.5810319", "0.5682025", "0.56097585", "0.560751", "0.5603902", "0.5603202", "0.55562633", "0.55513656", "0.5549115", "0.55219126", "0.5515334", "0.5492974", "0.54660195", "0.5465078", "0.53977835", "0.5390935", "0.5345679", "0.5333421", "0.53197885", "0.5316398...
0.83896124
0
Max years of work that will be consider in perk calculations.
Максимальное количество лет работы, которые будут учтены в расчетах премий.
protected function getMaxAvailableYearsForPerk(): int { return $this->model->getYearsOfWork() > self::$maxPerkYears ? self::$maxPerkYears : $this->model->getYearsOfWork(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract function get_max_year();", "public function get_max_year() {\n return 1473;\n }", "private function setPageMaxAndMaxYear()\n {\n $sql = \"SELECT date_shift FROM shifts_assigned WHERE date_shift LIKE '{$this->Y}%' ORDER BY date_shift DESC LIMIT 1\";\n $stmt = $this->db...
[ "0.7941658", "0.7504737", "0.6732043", "0.6627743", "0.65061736", "0.6472955", "0.6404684", "0.5980598", "0.5968686", "0.5955133", "0.59466255", "0.58514166", "0.5834004", "0.58290285", "0.5804142", "0.579934", "0.5798202", "0.5781363", "0.5769859", "0.5764554", "0.5761656", ...
0.770011
1
Get our table from our Article class name
Получите нашу таблицу из класса Article
private function getTable($article) { return strtolower(substr(strrchr(get_class($article), "\\"), 1)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static function getTableName() {\n\t\treturn Article::$_tableName;\n\t}", "function dbGetTable($tableClassName);", "public static function getInstance()\n {\n return Doctrine_Core::getTable('Article');\n }", "public static function getInstance()\n {\n return Doctrine_Core::getTable('Ar...
[ "0.7663359", "0.7281765", "0.72028625", "0.72028625", "0.7147434", "0.7113693", "0.71054757", "0.7097595", "0.70620394", "0.70529693", "0.70529693", "0.70529693", "0.70529693", "0.7051725", "0.70249337", "0.70049345", "0.69811356", "0.69811356", "0.69811356", "0.69777143", "0...
0.7743836
0
Check if plugin has been configured with Turnitin account details.
Проверьте, настроен ли плагин с помощью учетных данных Turnitin.
public function is_plugin_configured() { $config = $this->plagiarism_turnitin_admin_config(); if (empty($config->plagiarism_turnitin_accountid) || empty($config->plagiarism_turnitin_apiurl) || empty($config->plagiarism_turnitin_secretkey)) { return false; } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function __pluginAllowedByConfig()\n {\n\n if (isset($this->isAllowed2FA) && !is_null($this->isAllowed2FA)) {\n return $this->isAllowed2FA;\n }\n\n $rcmail = rcmail::get_instance();\n $this->load_config();\n\n // users allowed to use plugin (not showed for others!)....
[ "0.6875862", "0.6808789", "0.6783489", "0.6642315", "0.6623568", "0.6610379", "0.65775007", "0.654849", "0.6521244", "0.6337947", "0.6316071", "0.625246", "0.620051", "0.6186628", "0.6180584", "0.6116355", "0.611097", "0.6095612", "0.6090964", "0.6016072", "0.59909654", "0....
0.7870945
0
Updates the database field duedate_report_refresh for any given submission ID.
Обновляет поле базы данных duedate_report_refresh для любого заданного идентификатора подачи.
public function set_duedate_report_refresh($id, $newvalue) { global $DB; $updatedata = new stdClass(); $updatedata->id = $id; $updatedata->duedate_report_refresh = $newvalue; $DB->update_record('plagiarism_turnitin_files', $updatedata); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function _updateReport($idReport, $data)\n\t{\n\t\t$idReport = Piwik_PDFReports_API::getInstance()->updateReport(\n\t\t\t$idReport,\n\t\t\t$data['idsite'],\n\t\t\t$data['description'],\n\t\t\t$data['period'],\n\t\t\t$data['format'],\n\t\t\t$data['display_format'],\n\t\t\t$data['reports'],\n\t\t\t$data['email_me'],...
[ "0.5988128", "0.58712023", "0.58712023", "0.58317554", "0.5738406", "0.57025665", "0.563572", "0.5616877", "0.55789787", "0.55645716", "0.554846", "0.55328864", "0.5430806", "0.5422654", "0.53888017", "0.5370495", "0.53545934", "0.53508335", "0.53239673", "0.5280179", "0.5266...
0.7002271
0
Listen for a new form action and create one if necessary.
Слушайте за новое действие формы и создайте его при необходимости.
function nf_create_form_listen() { $page = isset ( $_REQUEST['page'] ) ? $_REQUEST['page'] : ''; $tab = isset ( $_REQUEST['tab'] ) ? $_REQUEST['tab'] : ''; $form_id = isset ( $_REQUEST['form_id'] ) ? $_REQUEST['form_id'] : ''; if ( 'ninja-forms' == $page && 'builder' == $tab && 'new' == $form_id ) { $defaults = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function newAction()\n {\n // the same form is used to create and edit\n $this->_forward('edit');\n }", "public function createAction()\n\t{\n\t\t$formInstance = $this->getForm();\n \t$mainForm = $formInstance->getForm();\n \t$namespace = $mainForm->setSession('create');\n \t$...
[ "0.6680666", "0.664722", "0.6611752", "0.6602006", "0.65181756", "0.6501698", "0.6486717", "0.64866084", "0.64866084", "0.64550805", "0.64171684", "0.63783765", "0.6364551", "0.63484395", "0.633116", "0.6219734", "0.61859834", "0.61837214", "0.6162225", "0.6160751", "0.615544...
0.749464
0
Get the order number
Получить номер заказа
public function getOrderNumber() { return $this->get('ordernumber'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_order_number()\n {\n }", "public function getOrderNumber()\n {\n return $this->orderNumber;\n }", "public function getOrderNumber()\n {\n return $this->orderNumber;\n }", "public function getOrderNumber()\n {\n return $this->orderNumber;\n...
[ "0.8427898", "0.82821006", "0.82821006", "0.82821006", "0.8257953", "0.8174643", "0.81024456", "0.79756534", "0.79756534", "0.79756534", "0.78653044", "0.782302", "0.7814422", "0.7727329", "0.76984686", "0.76984686", "0.76763016", "0.76452786", "0.7638877", "0.75924903", "0.7...
0.84021807
1
Get the card number from the used credit card
Получить номер карты с использованной кредитной карты
public function getCardNumber() { return $this->get('cardnumber'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCardnumber()\n {\n return $this->cardnumber;\n }", "public function getCardNumber(){\n \treturn $this->cardNumber;\n\t}", "public function getCardNumber(){\n\t\treturn $this->cardNumber;\n\t}", "public function getCardNumber()\n {\n return $this->cardNumber;\n ...
[ "0.7999111", "0.78919363", "0.78881437", "0.78856164", "0.78856164", "0.7843282", "0.74980754", "0.7380562", "0.71183854", "0.7059815", "0.7001295", "0.6982949", "0.69063836", "0.68932045", "0.68932045", "0.6822096", "0.6692692", "0.6663462", "0.66242933", "0.6622498", "0.660...
0.80709505
0
Get the used credit card type
Получить тип используемой кредитной карты
public function getCardType() { return $this->get('cardtype'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCreditcardType();", "public function getCardType(): string\n {\n return $this->card_type;\n }", "public function getCardType(): string\n {\n return $this->card_type;\n }", "public function get_card_type() {\n\n\t\treturn isset( $this->data['card_type'] ) ? $this->...
[ "0.89130056", "0.81269795", "0.81269795", "0.8013269", "0.79882175", "0.7965018", "0.7947261", "0.7936275", "0.79035443", "0.7829803", "0.774594", "0.7666433", "0.75054616", "0.7309295", "0.7263891", "0.72527677", "0.7252049", "0.72237265", "0.7216511", "0.7194081", "0.712626...
0.8250389
1
Converts an Array to PDF
Конвертирует массив в PDF
function array2Pdf(array $fields, $headers) { function_requirements('phpExcellCommon'); return phpExcellCommon($fields, 'Pdf', $headers); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function pdf($result, $sumArray, $title, $weightArray, $headerArray){\n\n\t$config = Config::read('config');\n\t$active_app = Router::get_application();\n\n\t//Orientaci�n\n\tif($sumArray>200) {\n\t\t$orientation = 'L';\n\t} else {\n\t\t$orientation = 'P';\n\t}\n\n\t$numRows = 140;\n\t//Tipo de Papel\n\tif($sumArr...
[ "0.67397106", "0.67101216", "0.64829904", "0.64309525", "0.63138336", "0.62962514", "0.6189065", "0.60761714", "0.6038999", "0.603396", "0.59861845", "0.5982093", "0.59435683", "0.59226406", "0.59152514", "0.5886892", "0.58831906", "0.58637685", "0.5850179", "0.58278596", "0....
0.7722925
0
Updates the current dashboard to the model
Обновляет текущий дашборд до модели
public function postAction() { $this->dashboardModel->setDashboard($this->dashboard); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function update() {\n $this->model->update();\n }", "public function dashboard() {\n $user = $this->{$this->modelClass}->read(null, $this->Auth->user('id'));\n $this->set('user', $user);\n }", "public function update() {\n $model = new boatramp($_GET['id']);\n $...
[ "0.6883602", "0.65200937", "0.6477936", "0.63829434", "0.6382815", "0.6348962", "0.634297", "0.6341253", "0.6339397", "0.6339397", "0.6339397", "0.6339397", "0.6334567", "0.61884606", "0.6167612", "0.6167612", "0.6167612", "0.6167612", "0.61408603", "0.61145884", "0.6111254",...
0.7244945
0
Action to show the add widget view
Действие для отображения представления добавления виджета
public function addAction() { $baseAction = $this->request->getBasePath(); $saveAction = $baseAction . '/put/'; $widgetModel = WidgetModel::getInstance(); $widgets = $widgetModel->getWidgets(); $view = new WidgetAddView($widgets, $baseAction, $saveAction); $this->respon...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addAction()\n {\n $this->_includeForm();\n }", "public function addAction()\n {\n $module = $this->getModule();\n $name = _filter(\n $this->params('name'),\n 'regexp',\n array('regexp' => '/^[a-z0-9_\\-]+$/')\n );\n $meta = sp...
[ "0.71522623", "0.714817", "0.7090324", "0.7074622", "0.70391184", "0.6968506", "0.6910986", "0.6867752", "0.68576986", "0.6855189", "0.68402827", "0.68271494", "0.67841184", "0.6779291", "0.6744858", "0.6742168", "0.67005527", "0.6677689", "0.6676138", "0.6661165", "0.6649449...
0.8019395
0
Action to reset the dashboard to a new empty one
Действие для сброса панели управления до нового пустого состояния
public function resetAction() { $this->dashboardModel->removeDashboard($this->dashboard); $this->dashboard = null; $this->response->setRedirect($this->request->getBasePath()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function reset()\n {\n $widget = $this->widget->findForUser($this->auth->id());\n\n if (!$widget) {\n return redirect()->route('dashboard.index')->with('warning', trans('dashboard::dashboard.reset not needed'));\n }\n\n $this->widget->destroy($widget);\n\n re...
[ "0.72129023", "0.6940494", "0.68312585", "0.6779052", "0.66294086", "0.6621458", "0.6594877", "0.6560153", "0.65321356", "0.65321356", "0.65321356", "0.65321356", "0.65321356", "0.65321356", "0.65321356", "0.65321356", "0.65321356", "0.65321356", "0.65321356", "0.65321356", "...
0.81613
0
Gets the name of the dashboard for the current user
Получает имя дашборда для текущего пользователя
private function getDashboardName() { $user = $this->getUser(); if ($user) { return $user->getUserId(); } $session = $this->getSession(); return $session->getId(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getUserDashboard(){\n return self::getServerApp() . \"/u/dashboard/\" ;\n }", "protected function dashboard()\n {\n return 'Dashboard';\n\n }", "public function getLandingTitle() {\n if (!empty($this->cfUser->id)) {\n return 'Dashboard';\n }\n else {\...
[ "0.78592473", "0.7141434", "0.6907128", "0.67208266", "0.6670657", "0.66165906", "0.660307", "0.6578073", "0.6535723", "0.64852583", "0.6478584", "0.63923323", "0.6360546", "0.6359077", "0.63578063", "0.63576514", "0.6335251", "0.62597376", "0.6245466", "0.6242686", "0.622177...
0.8396672
0
This will be used for the last round
Это будет использоваться для последнего раунда
private function Last_round(){ $id = isset($_GET['gameid'])?$_GET['gameid']:NULL; if ( !$id ) { throw new Exception('Internal error.'); } $amount = $this->gameService->getAmountOfPlayers($id); $round = $this->gameService->getAmountofRounds($amount); $rounds = $this->gameService->getAmountofRounds(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function onEndRound();", "function onBeginRound();", "public function endRound()\n {\n $scores = $this->getScores();\n $this->roundToDb();\n if ($scores[\"human\"] > $scores[\"computer\"] && $scores[\"human\"] < 22) {\n $this->humanPlayer->bumpWonRounds();\n } elseif (...
[ "0.69384813", "0.6579575", "0.6120923", "0.6118829", "0.6101166", "0.60297924", "0.60258746", "0.6025297", "0.6015056", "0.6009216", "0.59782004", "0.59723604", "0.5905484", "0.59018284", "0.5886698", "0.5781689", "0.57379603", "0.57179314", "0.57166743", "0.5638326", "0.5637...
0.7248438
0
Retorna el valor de texto de la propiedad [[grado]].
Возвращает значение текста свойства [[grado]].
public function getTextoGrado() { $options = $this->getOpcionesGrado(); return isset($options[$this->grado]) ? $options[$this->grado] : ''; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getGrado()\n { \n if (!is_null($this->grado))\n {\n return optional($this->grado)->abre_grad . '&middot; Jornada ' . optional($this->grado)->getJornada();\n }\n }", "public function getGradoNombre()\n {\n if (!is_null($this->grado))\n {\n ...
[ "0.73815304", "0.70920825", "0.70289075", "0.66913354", "0.6505486", "0.6477435", "0.64730024", "0.64602476", "0.64602476", "0.64602476", "0.6442588", "0.6438241", "0.6336696", "0.6296683", "0.62939477", "0.625236", "0.6237567", "0.622377", "0.62094444", "0.61973083", "0.6190...
0.77478725
0
Retorna el valor de texto de la propiedad [[vivienda]].
Возвращает значение текста свойства [[vivienda]].
public function getTextoVivienda() { $options = $this->getOpcionesVivienda(); return isset($options[$this->vivienda]) ? $options[$this->vivienda] : ''; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getVivienda()\n {\n if ($this->vivienda=='S') {\n return $this->getTextoVivienda();\n }\n\n if ($this->vivienda=='N') {\n return $this->getTextoVivienda();\n }\n }", "function getVivienda($tipo)\n\t{\n\t\tswitch($tipo)\n\t\t{\n\t\t\tcase 1:\...
[ "0.7877922", "0.6993916", "0.6603159", "0.6481504", "0.6411917", "0.6411163", "0.63590497", "0.63522214", "0.63481843", "0.63454145", "0.6299451", "0.6268232", "0.6262669", "0.6262669", "0.6262669", "0.6241992", "0.6234385", "0.6189452", "0.6181835", "0.6165707", "0.6113057",...
0.8217731
0
Retorna el valor de texto de la propiedad [[profesion]].
Возвращает значение текста свойства [[profesion]].
public function getTextoProfesion() { $options = $this->getOpcionesProfesion(); return isset($options[$this->profesion]) ? $options[$this->profesion] : ''; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getProfPrincipal()\n { return $this->genre.' '.$this->nomEnseignant.', '.($this->genre=='Mme' ? 'professeure principale' : 'professeur principal'); }", "public function getInfoProduk(){\n $str = \"{$this->judul} | {$this->getLabel()} (Rp. {$this->harga})\";\n\n return $str;\n\n ...
[ "0.71397793", "0.68719184", "0.6837223", "0.6734831", "0.6732339", "0.6708179", "0.65619254", "0.63804424", "0.63679683", "0.63679683", "0.63679683", "0.6342203", "0.6302189", "0.6274154", "0.62504685", "0.6237544", "0.62221164", "0.6219369", "0.61941946", "0.6184568", "0.617...
0.82943076
0
Hide Yoast SEO Help Center.
Скрыть центр помощи Yoast SEO.
public function yoast_seo_help_center() { // Remove Help Center container wp_add_inline_script( 'yoast-seo-admin-script', 'document.getElementById("yoast-help-center-container").remove();' ); // Dequeue Help Center JavaScript wp_dequeue_script( 'yoast-seo-help-center' ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function spiritrust_hide_yoastseo() {\n\tif (!current_user_can('manage_options')) :\n\t\tremove_meta_box('wpseo-dashboard-overview', 'dashboard', 'side');\n\tendif;\n}", "function kleefaan_hide_yoast_seo_elements_publish_meta_box() {\n if (!current_user_can('activate_plugins')) { ?>\n <...
[ "0.7451371", "0.68596524", "0.67021024", "0.655701", "0.6501794", "0.6313744", "0.6097694", "0.60635483", "0.59577864", "0.5948573", "0.5916564", "0.59161854", "0.59151983", "0.58991224", "0.58913374", "0.5883733", "0.5879078", "0.58750343", "0.5869985", "0.5869071", "0.58081...
0.75078636
0
Example for hiding elements with JavaScript.
Пример скрытия элементов с помощью JavaScript.
public function hide_with_js() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hide();", "public function getHide();", "public function unhide()\n {\n }", "protected function showHiddenFields() {\n $script = <<<JS\n var hidden_fields = document.querySelectorAll(\".visually-hidden\");\n\n [].forEach.call(hidden_fields, function(el) {\n e...
[ "0.7323678", "0.6927755", "0.690834", "0.68307483", "0.67316836", "0.6685302", "0.64834785", "0.64834785", "0.6471904", "0.64307445", "0.64307445", "0.64307445", "0.6402402", "0.63438225", "0.63438225", "0.63438225", "0.6339161", "0.63081473", "0.62982476", "0.62555325", "0.6...
0.779455
0
Returns true if the given row contains provider type information, false otherwise. A provider type row is assumed to have nonempty text as its first element, while succeeding elements are blank.
Возвращает true, если заданная строка содержит информацию о типе поставщика, и false в противном случае. Считается, что строка типа поставщика имеет непустой текст в первом элементе, а последующие элементы пустые.
private function isProviderType($row) { return ! empty(head($row)) && empty(next($row)) && empty(next($row)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function isRowValid($row)\n {\n if (sizeof($row) === 6) {\n return true;\n } else {\n return false;\n }\n }", "public function isSearchType() {\n \tif (empty($this->_row))\n \t\treturn false;\n \telse\n \t\treturn true;\n }", "public funct...
[ "0.59777224", "0.58516216", "0.5841237", "0.5813948", "0.5801228", "0.56643444", "0.5662671", "0.5657367", "0.5647596", "0.56383896", "0.5556074", "0.5552649", "0.5548043", "0.5441955", "0.54046273", "0.5399043", "0.5357592", "0.5339753", "0.53241986", "0.531441", "0.52870053...
0.82843745
0
Returns true if the given row is footer data, false otherwise.
Возвращает true, если заданная строка содержит данные подвала, и false в противном случае.
private function isFooter($row) { return strpos(implode($row), $this->footerIndicatorText) !== false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function inFooter(): bool;", "public function hasRow(){\n return $this->_has(1);\n }", "public function showFooter()\n {\n if ($this->showFooter === false) {\n return false;\n } else {\n return $this->showNotes();\n }\n }", "public function hasC...
[ "0.7329929", "0.6297379", "0.62818384", "0.62242377", "0.6148151", "0.6130788", "0.6088904", "0.608538", "0.5941475", "0.5894687", "0.58464617", "0.5837623", "0.58288604", "0.5815471", "0.5787959", "0.57596153", "0.57428056", "0.5728084", "0.57240015", "0.5715004", "0.5711276...
0.83464426
0
Finds the alias information from the given name
Находит информацию об алиасе из заданного имени
private function findAlias($name) { if (preg_match('/\(aka ([^\)]+)| a\.k\.a\. (.+)/', $name, $matches)) { if ($matches[1]) return trim($matches[1]); //(aka ... variant) if ($matches[2]) return trim($matches[2]); //a.k.a. variant } return ''; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function getAliasName();", "static function getAlias();", "public function alias($name);", "public function getAlias();", "public function getAlias();", "public function getAlias();", "public function getAlias();", "public function getAlias();", "public function getAlias();", "pub...
[ "0.7229246", "0.6978691", "0.6885253", "0.6840696", "0.6840696", "0.6840696", "0.6840696", "0.6840696", "0.6840696", "0.6771661", "0.6760995", "0.6754407", "0.6754407", "0.67530763", "0.6600696", "0.65281653", "0.6479972", "0.6429787", "0.6401597", "0.6390944", "0.6322475", ...
0.7863273
0
Returns true if the given name contains an ', Owner' string, indicating that the name indicates an institution whose owner is specified
Возвращает true, если заданное имя содержит строку ', Owner', что указывает на то, что имя указывает на учреждение, собственник которого указан
private function isInstitutionWithOwner($name) { if (preg_match('/,(\s*[O,o]wner\s*[\),]*.*)/', $name, $matches)) { if ($matches[1] && isset($this->titles[trim($matches[1])])) { //i.e. ('last name, first name, Owner of Hospice Facility') scenario should not be consid...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hasOwnerName()\n {\n return $this->owner_name !== null;\n }", "public function is_owner(){\n return ($this->groupName() == \"Owner\") ? true : false;\n }", "public function haveOwner()\n\t {\n\t\t$have = false;\n\t\tforeach ($this->sellers as $seller)\n\t\t ...
[ "0.6876101", "0.6355141", "0.6218184", "0.61103034", "0.5813695", "0.58094436", "0.5753368", "0.56915456", "0.56855094", "0.55776703", "0.5512484", "0.5489261", "0.54739165", "0.5456688", "0.5451375", "0.5450486", "0.54498017", "0.5444685", "0.5440501", "0.54355615", "0.54236...
0.8495687
0
Finds the title from within the given name. Assumes that the name is in the format , , or , (title). Valid titles are defined in this class' titles field.
Находит заголовок из заданного имени. Предполагается, что имя имеет формат , , или , (title). Допустимые заголовки определены в поле titles этого класса.
private function findTitle($name) { $nameTokens = str_getcsv($name); $nameTokenCount = count($nameTokens); //Last token is assumed to contain the title string that we need to extract (this is applicable 99% of the time, see special case below) $titleToken = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTitle($name) {\n\t\treturn $this->get($name, 'title');\n\t}", "public function getNameFromTitle() {\n\t\treturn self::nameFromTitle( $this->getTitleObject() );\n\t}", "function parse_title($title) {\n\t$special = array(\"!\", \"@\", \"$\", \"%\", \"^\", \"&\", \"*\", \":\", \"'\", \";\", \"<...
[ "0.67224985", "0.6453292", "0.6391724", "0.631082", "0.6209376", "0.6124892", "0.60659164", "0.6060945", "0.6059677", "0.6025291", "0.6002657", "0.59872025", "0.59872025", "0.59872025", "0.59872025", "0.59872025", "0.59872025", "0.59872025", "0.59872025", "0.59872025", "0.598...
0.8313609
0
Removes the specified title from the given name. Assumes that the name is in the format , , or , (title)
Удаляет указанный заголовок из заданного имени. Предполагается, что имя имеет формат , , или , (title)
private function trimTitle($name, $title) { $title = preg_quote($title, '/'); $regularTitleRegEx = ',?\s*'.$title.'$'; //looks for matches of the form , <title> $parenthesizedTitleRegEx = ',?\s*\(\s*'.$title.'\s*\)$'; //looks for matches of the form ", (<title>)" return pr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function cleanupTitle($title) {\n\t$title = trim(str_replace('\"', '', $title));\t\t\t\t\t\t// Remove all double-quotes and trailing spaces if any.\n\n\t// Remove the \"c't uplink\" string from the front. Default title.\n\tif (strpos($title, \"c't uplink\") !== false && strpos($title, \"c't uplink\") == 0) {\n\t\t...
[ "0.71043766", "0.69461536", "0.6884255", "0.6869816", "0.65598977", "0.6513802", "0.64840245", "0.64274", "0.6327466", "0.6312311", "0.62447107", "0.6223217", "0.62172735", "0.61908036", "0.6169919", "0.61583215", "0.61107045", "0.60839456", "0.60569525", "0.6043906", "0.5998...
0.7874102
0
$meeting_time_id needs to be set active
$meeting_time_id необходимо установить в активное состояние
public static function setChoice($meeting_id,$meeting_time_id,$user_id) { // other $meeting_time_id for this meeting need to be set inactive $mtg=Meeting::find()->where(['id'=>$meeting_id])->one(); foreach ($mtg->meetingTimes as $mt) { if ($mt->id == $meeting_time_id) { $mt->status =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function create_meeting($params) {\n $params['c_id'] = api_get_course_int_id();\n $course_code = api_get_course_id();\n\n $attende_password = $params['attendee_pw'] = isset($params['moderator_pw']) ? $params['moderator_pw'] : api_get_course_id();\n $moderator_password = $params['moderat...
[ "0.64021826", "0.6258168", "0.6162936", "0.60790765", "0.60686004", "0.5887869", "0.5850576", "0.5826972", "0.5802983", "0.56719315", "0.56620216", "0.5658566", "0.56446034", "0.5628163", "0.5614083", "0.5611992", "0.5596765", "0.55782557", "0.5565722", "0.5564555", "0.556406...
0.71896374
0
Function for showing the page
Функция для отображения страницы
public function showPage() { $this->tpl->displayTemplate(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function displayPage()\n {\n }", "function showShowPage() {\n\t\t$this->setCacheLevelNone();\n\t\t\n\t\t$this->render($this->getTpl('show'));\n\t}", "function showPage() \n\t{\n\t\t$this->xt->display($this->templatefile);\n\t}", "public function displayPage ()\n {\n $this->preparePa...
[ "0.8411247", "0.8334054", "0.82378864", "0.80704975", "0.7895832", "0.7813728", "0.7805782", "0.7661829", "0.7628661", "0.76224124", "0.7585509", "0.7577993", "0.7566411", "0.75349104", "0.75349104", "0.75349104", "0.7513156", "0.7511067", "0.7465692", "0.7464219", "0.7446345...
0.84986883
0
Returns URL to async process controller.
Возвращает URL-адрес контроллера асинхронного процесса.
public function getAsyncProcessUrl($guid): string { return $this->getSystemUrl() . 'front/asyncprocess/index?guid=' . $guid; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function _getRequestUrl()\n {\n return $this->oClientConfig->BACKEND_URL . \"/\" . $this->_getField(self::COMMAND);\n }", "public function getFileserverTasksUrl(): string {\n return $this->remoteServerAddress . self::TASKS_ROUTE;\n }", "protected function resolveUrl()\n {\n ...
[ "0.6244572", "0.6149766", "0.6116712", "0.5895901", "0.5884971", "0.57710105", "0.57109725", "0.5647691", "0.5614315", "0.55309314", "0.55056113", "0.54889673", "0.54721457", "0.54590416", "0.545894", "0.5449718", "0.54363286", "0.5407073", "0.54059255", "0.539679", "0.537520...
0.70686597
0
Returns default queue name.
Возвращает имя очереди по умолчанию.
public function getDefaultQueueName(): string { return "defaultQueue"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function defaultName(): string\n {\n return 'queue purge_failed';\n }", "public function getQueue(?string $queue = null): string\n {\n return $queue ?: $this->default;\n }", "public function getSchedulerQueueName()\n {\n return $this->getConfigValue('schedulerQ...
[ "0.80236065", "0.7763207", "0.75609773", "0.75511473", "0.75511473", "0.73277956", "0.7216676", "0.7186741", "0.7046098", "0.69236904", "0.6901755", "0.68818057", "0.6731334", "0.66287464", "0.66061115", "0.6529645", "0.65253335", "0.6516587", "0.6436961", "0.64292383", "0.64...
0.91049623
0
Returns the token class name this flow is responsible for
Возвращает имя класса токена, за которым отвечает этот поток
public function getTokenClassName() { return 'Weissheiten\OAuth2\ClientInstagram\Token\InstagramToken'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected function getTokenClass() : string;", "private function getTokenName(): string\n {\n return $this->registeredTokens[$this->token['code']];\n }", "public function getName ()\n {\n return self::getTokenName( $this->type );\n }", "public function getTokenName()\n {...
[ "0.7813338", "0.7088994", "0.7024336", "0.69476235", "0.69432926", "0.69423187", "0.6918784", "0.67923295", "0.6754818", "0.67438716", "0.67382103", "0.6720031", "0.6683386", "0.66728616", "0.6672771", "0.66031563", "0.65928644", "0.6586589", "0.65127337", "0.6509483", "0.650...
0.71162695
1
function get Retrieve an index value from protected array data Args: (str) data, index Return: (mixed) data
Функция get Получает значение индекса из защищённого массива data Аргументы: (str) data, index Возвращаемое значение: (mixed) data
public function getArrayData($data, $index) { if (!is_array($this->$data)) { return null; } else { if (isset($this->{$data}[$index])) { return $this->{$data}[$index]; } else { return null; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function offsetGet($index) {}", "public function getData($key = '', $index = null);", "public function get( $iIndex );", "public function get(int $index);", "function return_array_value($array,$index){\n\treturn $array[$index];\n}", "public function at($index, $key) {\n\t\treturn $this->Data[$key]...
[ "0.71772695", "0.7041005", "0.6934034", "0.692433", "0.6865522", "0.6850046", "0.678301", "0.67739224", "0.6750918", "0.6708552", "0.6704293", "0.6678332", "0.6594154", "0.65422297", "0.65349007", "0.65250456", "0.6494124", "0.6455028", "0.64073956", "0.6406358", "0.6402499",...
0.71104604
1
function addToList Remove email from mailing list Args: (str) list name, email Return: none
Функция addToList Удалить email из рассылки Аргументы: (str) имя списка, email Возвращаемое значение: none
public function removeFromList($list, $email) { $this->dbh->query("DELETE FROM `".$list."` WHERE `email` = '".prepDB($email)."'"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function unsubscribeFrom($list, $email);", "public function addToList($list, $email) {\n\t\t\t$queryVals = array (\n\t\t\t\t'~email' => prepDB($email),\n\t\t\t\t'optInDate' => 'NOW()',\n\t\t\t\t'~optInSite' => prepDB($_SERVER['HTTP_HOST'])\n\t\t\t);\n\t\t\t$this->dbh->perform($list, $queryVals);\n\t\...
[ "0.7236891", "0.6872925", "0.6822478", "0.68022823", "0.6711709", "0.66875744", "0.6679718", "0.64923275", "0.6473053", "0.6386474", "0.6282863", "0.61779785", "0.61732024", "0.61495876", "0.61003184", "0.60586053", "0.6044697", "0.60439444", "0.6033108", "0.6027637", "0.5996...
0.7607738
0
woocommerce query last products
woocommerce запрос последних продуктов
function ss_last_products(){ $args = array( 'post_type' => 'product', 'stock' => 1, 'posts_per_page' => 5, 'orderby' =>'date', 'order' => 'DESC' ); $wp_query = new WP_Query( $args ); echo '<div class="custom-home-title"><span>New Products</span>...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static function getLastProductFromOrders() {\n $product = self::for_table(PREFIX . 'shopping_cart')\n ->select('created_system')\n ->order_by_desc('id')\n ->limit(1)\n ->offset(0)\n ->find_one();\n\n return $product->created_system;\n ...
[ "0.66851825", "0.65999836", "0.6569964", "0.65523547", "0.63967204", "0.63177764", "0.6308386", "0.622167", "0.61797065", "0.6164306", "0.61582595", "0.613963", "0.61370414", "0.6112177", "0.6108555", "0.60808253", "0.6078921", "0.59943426", "0.59654546", "0.593941", "0.59220...
0.75232905
0
woocommerce query top rated products
woocommerce запрос самых оцененных продуктов
function ss_top_rated_products(){ $posts_per_page = 10; $meta_query = WC()->query->get_meta_query(); $atts = array( 'orderby' => 'title', 'order' => 'asc'); $args = array( 'post_type' => 'product', 'post_status' => 'publish', 'posts_per_page' => 5, 'ignore_sticky_posts'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function dokan_get_top_rated_products( $per_page = 8 , $seller_id = '') {\n\n $args = array(\n 'post_type' => 'product',\n 'post_status' => 'publish',\n 'ignore_sticky_posts' => 1,\n 'posts_per_page' => $per_page\n );\n\n if ( !empty( $seller_id )...
[ "0.76741487", "0.72884387", "0.68346", "0.6829291", "0.6804999", "0.6735682", "0.671265", "0.6676077", "0.66523707", "0.6469418", "0.64290357", "0.6395838", "0.63084584", "0.63002855", "0.6269643", "0.625971", "0.62398225", "0.62377787", "0.6226646", "0.6200539", "0.6164598",...
0.77596724
0
woocommerce query on sale products
запрос woocommerce по акционным продуктам
function ss_onsale_products(){ $args = array( 'post_type' => 'product', 'posts_per_page' => 5, 'meta_query' => array( 'relation' => 'OR', array( // Simple products type 'key' => '_sale_price', 'value' => 0, 'compare' => ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_on_sale_products();", "public function get_on_sale_products()\n {\n }", "function dokan_get_on_sale_products( $per_page = 10, $paged = 1, $seller_id = '' ) {\n // Get products on sale\n $product_ids_on_sale = wc_get_product_ids_on_sale();\n\n $args = array(\n '...
[ "0.7923384", "0.7740746", "0.7519261", "0.71579736", "0.6591499", "0.65781474", "0.63403964", "0.62805146", "0.6274668", "0.6233665", "0.61009675", "0.6084172", "0.60792506", "0.6077185", "0.6067528", "0.6064745", "0.60313153", "0.60234505", "0.6013854", "0.60022706", "0.6001...
0.7950639
0
Returns the value of field id_estado
Возвращает значение поля id_estado
public function getIdEstado() { return $this->id_estado; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getIdEstado()\n {\n return $this->idEstad;\n }", "public function get_codigo($estado){\n\n $consulta = $this->db->query('SELECT * FROM estado WHERE nombre= \"'.$estado.'\"');\n if($codi = $consulta->fetch_assoc()){\n $this->cod = $codi['codigo'];\n }...
[ "0.79769677", "0.75316644", "0.72985727", "0.7233923", "0.72126216", "0.719934", "0.71579725", "0.7106193", "0.7106193", "0.7106193", "0.7106193", "0.7106193", "0.7106193", "0.7106193", "0.7106193", "0.7106193", "0.7106193", "0.7106193", "0.7100143", "0.7063717", "0.7063717",...
0.8614484
0
Gets used facility users ids This method helps to check user been used or not before delete.
Используется для получения идентификаторов пользователей, использующихся объектом. Этот метод помогает проверить, использовался ли пользователь ранее перед удалением.
public function getSelectedFacilityUserIds() { // $facilityUsers = InstanceSiteDelivery::select('facility_user_id')->groupBy('facility_user_id')->get(); $usersIds = []; /* foreach ($facilityUsers as $facilityUser) { if (!in_array($facilityUser->facility_user_id, $usersIds)) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getIdUsers()\n {\n return $this->id_users;\n }", "public function getUserIds();", "public function getIdusers()\r\n {\r\n return $this->idusers;\r\n }", "public function getIdUsers() {\n return $this->idUsers;\n }", "function _getSignoffCapableUsersId() {...
[ "0.69370466", "0.6850925", "0.6827111", "0.6776318", "0.67316264", "0.668855", "0.6671383", "0.6630773", "0.65595984", "0.6503298", "0.6490162", "0.64592135", "0.644391", "0.6423521", "0.6391434", "0.6305025", "0.61894876", "0.61825275", "0.61808395", "0.61652833", "0.6147328...
0.72345304
0
Gets used indicators ids This method helps to check indicator been used or not before delete.
Получает идентификаторы используемых индикаторов. Этот метод помогает проверить, использовался ли индикатор ранее перед удалением.
public function getSelectedIndicatorsIds() { $indicators = InstanceIndicators::select('indicator_id')->groupBy('indicator_id')->get(); $indicatorIds = []; foreach ($indicators as $indicator) array_push($indicatorIds, $indicator->indicator_id); return $indicatorIds; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_indicators() {\n global $CFG;\n\n return get_records_sql(\n \"SELECT *\n FROM {$CFG->prefix}block_lpr_indicators AS ind\n ORDER BY ind.id\"\n );\n }", "public function getIndicators()\n {\n if (array_key_exists(\"indicators\", $thi...
[ "0.61152047", "0.5875538", "0.55725837", "0.5555561", "0.5422365", "0.5366424", "0.5332277", "0.5301143", "0.5294744", "0.5289424", "0.5283116", "0.5282298", "0.5271627", "0.5261975", "0.5254788", "0.5250395", "0.5236928", "0.5232089", "0.5232089", "0.5232089", "0.5232089", ...
0.713495
0
Handle the EnvioProducto "created" event.
Обработка события "created" EnvioProducto.
public function created(EnvioProducto $envioProducto) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function created(PedidoProduto $orderProduct)\n {\n Event::fire(new OrderProductCreated($orderProduct));\n }", "public function created(Produto $produto)\n {\n //\n }", "public function created(Producto $Producto)\n {\n $barra = new DNS1D();\n if (request()->ha...
[ "0.6725517", "0.66358685", "0.6001418", "0.5996999", "0.59737897", "0.5918055", "0.5837088", "0.57880914", "0.57847327", "0.57798916", "0.57792425", "0.57728857", "0.5772494", "0.57630616", "0.57530135", "0.56602156", "0.56471217", "0.5620867", "0.55633825", "0.5552733", "0.5...
0.7780199
0
Handle the EnvioProducto "updated" event.
Обработка события EnvioProducto "updated".
public function updated(EnvioProducto $envioProducto) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updated(Produto $produto)\n {\n //\n }", "public function updated(Producto $Producto)\n {\n //\n }", "public function updated(Evento $evento)\n {\n //\n }", "public function updated(Inventario $inventario)\n {\n //\n }", "protected functio...
[ "0.69412863", "0.6884411", "0.66481143", "0.6376894", "0.6375179", "0.6374682", "0.62673825", "0.622076", "0.6216023", "0.61710757", "0.6145952", "0.61299795", "0.61278754", "0.61262447", "0.6102071", "0.6093725", "0.606691", "0.60309887", "0.59972733", "0.5959784", "0.594892...
0.7932139
0
Handle the EnvioProducto "deleted" event.
Обработайте событие "deleted" EnvioProducto.
public function deleted(EnvioProducto $envioProducto) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function forceDeleted(EnvioProducto $envioProducto)\n {\n //\n }", "public function deleted(Evento $evento)\n {\n //\n }", "public function deleted(Producto $Producto)\n {\n //\n }", "public function deleting(Envolvido $envolvido)\n {\n //\n ...
[ "0.7406178", "0.7211834", "0.7005032", "0.69558656", "0.68144923", "0.67206603", "0.66635054", "0.6606963", "0.66060245", "0.6581248", "0.6563308", "0.6528371", "0.64194715", "0.6406701", "0.6404443", "0.6392111", "0.6379877", "0.6379877", "0.6366533", "0.6353356", "0.6344545...
0.80892015
0
Handle the EnvioProducto "restored" event.
Обработка события "restored" EnvioProducto.
public function restored(EnvioProducto $envioProducto) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function restored(Produto $produto)\n {\n //\n }", "public function restored(Evento $evento)\n {\n //\n }", "public function handleAfterRestoreOrderEvent(Event $e)\n {\n $subOrders = SubOrder::find()->commerceOrderId($e->sender->id)->trashed()->all();\n if( emp...
[ "0.6837015", "0.67086035", "0.65893453", "0.65648246", "0.655479", "0.6531776", "0.6490229", "0.63372535", "0.63372535", "0.63159937", "0.6255692", "0.6233669", "0.6023945", "0.60178626", "0.6012465", "0.59598297", "0.59522986", "0.5933016", "0.58795553", "0.58761734", "0.583...
0.746994
0
Handle the EnvioProducto "force deleted" event.
Обработка события "force deleted" EnvioProducto.
public function forceDeleted(EnvioProducto $envioProducto) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function deleted(EnvioProducto $envioProducto)\n {\n //\n }", "public function forceDeleted(Evento $evento)\n {\n //\n }", "public function forceDeleted(Produto $produto)\n {\n //\n }", "public function forceDeleted(Inventario $inventario)\n {\n //\n ...
[ "0.7445568", "0.72832507", "0.72540224", "0.70048726", "0.6889987", "0.687484", "0.6771797", "0.6740501", "0.66928214", "0.6670583", "0.66463685", "0.6639763", "0.66367435", "0.6629617", "0.6554452", "0.6554452", "0.65288824", "0.6451676", "0.64091724", "0.63935137", "0.63928...
0.8003733
0
Get the SessionGoals the Goal has.
Получить SessionGoals, которые имеет Цель.
public function sessionGoals() { return $this->hasMany('App\SessionGoal'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getCardioGoals()\n {\n return $this->cardioGoals;\n }", "public function getGoals()\n {\n /** @var Stopwatch $timer */\n $timer = new Stopwatch();\n $timer->start('Get Goals', 'Jawbone UP API');\n\n try\n {\n $body = array();\n ...
[ "0.64620274", "0.63728195", "0.6298993", "0.6008694", "0.5980849", "0.5971942", "0.59472436", "0.59191275", "0.5858695", "0.5842227", "0.5719204", "0.56869906", "0.5669722", "0.5593647", "0.5593647", "0.5576892", "0.5544661", "0.55289906", "0.5527882", "0.55253184", "0.548273...
0.763077
0
Sample Daemon Logic. Logs `Daemon is running!` every 5 seconds
Пример логики демона. Логирует `Daemon is running!` каждые 5 секунд
protected function daemonLogic() { // Do a little logging $this->container->get('logger') ->info('Daemon is running!'); // And then sleep for 5 seconds $this->daemon->iterate(5); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function actionRunLoopDaemon() {\n $loop = Factory::create();\n\n $loop->addPeriodicTimer(1, function() {\n $this->runChunk();\n });\n\n $loop->run();\n }", "public function daemon_monitor()\n\t{\n\t\techo \"Starting delly monitor daemon..\\n\";\n\t\t$path_and_act...
[ "0.7080242", "0.6652065", "0.6602552", "0.6376241", "0.63019526", "0.6236273", "0.6236202", "0.6150987", "0.6100515", "0.60791385", "0.606641", "0.60433394", "0.59923387", "0.5892302", "0.5856802", "0.58338284", "0.5799835", "0.5759303", "0.57030183", "0.5667416", "0.56124026...
0.82033545
0
Funcion para eliminar la ubicacion
Функция для удаления местоположения
function unset_ubicacion2($id_ubicacion) {//eliminamos la persona de la BD $this->db->delete('ubicaciones', array('id_ubicacion' => $id_ubicacion)); if($this->db->affected_rows() == 0) { return FALSE; } else { return TRUE; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function _eliminar();", "function Excluir()\n\t\t{\n\t\t\t$sql = \"delete from imagens\t\n\t\t\t\t\twhere codimagem = ?\";\n\n\t\t\t//executando o comando sql e passando os valores\n\t\t\t$this->con->prepare($sql)->execute(array($this->codimagem));\n\t\t}", "function unset_ubicacion($id_instancia)\n ...
[ "0.7135041", "0.69233817", "0.68837446", "0.686921", "0.6856511", "0.6626056", "0.6575917", "0.64884865", "0.64807045", "0.6463838", "0.64582944", "0.64446086", "0.6429709", "0.640511", "0.6395359", "0.6385097", "0.63510734", "0.633615", "0.6325627", "0.6301427", "0.6301314",...
0.701537
1
Funcion para obtener los datos de una ubicacion a partir de su id
Функция для получения данных о местоположении по его идентификатору
function obtener_ubicacion($id) { $ubicacion = new Ubicacion(); $ubicacion->get_by_id_ubicacion($id); return $ubicacion; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_ubicacion($ubicacion_id)\r\n {\r\n return $this->db->get_where('ubicacion',array('ubicacion_id'=>$ubicacion_id))->row_array();\r\n }", "function ficha($id){\n\t\t$arrayFicha=array();\n\t\t$query=\"SELECT ficha.nombre, ficha.activo, ficha.telefono, ficha.web, ficha.direccion, ficha.longi...
[ "0.73170894", "0.68150234", "0.6804773", "0.67011327", "0.66333866", "0.6618341", "0.6545491", "0.6520569", "0.6518888", "0.6447953", "0.6409297", "0.64074314", "0.6383999", "0.63766766", "0.6354464", "0.6334888", "0.63272405", "0.63126075", "0.62589467", "0.6246272", "0.6234...
0.71938866
1
Find products for carousel. It returns 3 products maximum that : marked for a carousel, cost at least 50, ordered by descending creation date.
Найти продукты для карусели. Возвращает максимум 3 продукта, которые: отмечены для карусели, стоимость которых составляет не менее 50, отсортированы по убыванию даты создания.
public function findForCarousel() { return $this->qb ->createQuery('product') ->andWhere('carousel', QueryBuilder::EQUALS, true) ->andWhere('rating', QueryBuilder::GREATER, 50) ->addOrderBy('created_at', QueryBuilder::DESC) ->setMaxResults(3) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_recommended_products($intel_product = Null , $max_count = 3 )\r\n\t{\r\n\t\t$this->reset();\r\n\t\t$this->items( $max_count );\r\n\t\t\r\n\t\t\r\n\t\tif( isset($intel_product['product_id']) && isset($intel_product['name']) && isset($intel_product['is_featured']) && isset($intel_product['price'...
[ "0.61853313", "0.6136517", "0.6110159", "0.5953702", "0.58031005", "0.5628157", "0.56140596", "0.5603266", "0.5564816", "0.5550144", "0.5533269", "0.55259985", "0.5516096", "0.5504798", "0.5497149", "0.54759896", "0.54617554", "0.54611695", "0.54553086", "0.541225", "0.538867...
0.77158856
0
Find products for homepage. It returns 50 products that: either in stock or in preorder state, cost greater then 100.99, ordered by descending update date.
Найти продукты для домашней страницы. Возвращает 50 продуктов, которые: либо в наличии, либо в предзаказе, стоимость которых больше 100.99, отсортированных по убыванию даты обновления.
public function findForHomepage() { return $this->qb ->createQuery('product') ->andWhere('status', QueryBuilder::IN, ['in_stock', 'pre_order']) ->andWhere('price', QueryBuilder::GREATER, '100.99') ->addOrderBy('updated_at', QueryBuilder::DESC) ->se...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_home_products()\n\t{\t\n\t\t// fetch data & index by position\n\t\t$entries = $this->db_fetch('client_entries', array('where' => array('type' => '2', 'menu_id' => 999, 'status' => '1'), \n\t\t'order' => 'date', 'order_dir' => 'DESC'));\n\t\t// fetch data & index by position\n\t\t$media = index_array($...
[ "0.6251707", "0.60622287", "0.60035706", "0.58974254", "0.58890975", "0.58448637", "0.5824568", "0.5823478", "0.58215594", "0.5790974", "0.5782681", "0.577599", "0.57488036", "0.5732559", "0.5709575", "0.569791", "0.5696818", "0.5669073", "0.56553614", "0.56462485", "0.564603...
0.7296598
0
Save the assessment dimensions into database This base method saves data into the main strategy form table. If the record>id is null or zero, new record is created. If the record>id is not empty, the existing record is updated. Records with empty 'description' field are not saved. The passed data object are the raw dat...
Сохраните измерения оценки в базу данных. Этот базовый метод сохраняет данные в таблицу основной формы стратегии. Если значение record>id равно null или нулю, создается новый запись. Если значение record>id не пустое, обновляется существующая запись. Записи с пустым полем 'description' не сохраняются. Переданный объект...
public function save_dimensions($data) { global $DB; if (!isset($data->strategyname) || ($data->strategyname != $this->name)) { // the workshop strategy has changed since the form was opened for editing throw new moodle_exception('strategyhaschanged', 'workshop'); } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function save()\n {\n if($this->id && $this->id != -1)\n {\n $this->update_breakdown();\n }\n else\n {\n $this->insert_breakdown();\n }\n }", "public function save()\r\n {\r\n if($this->id != -1)\r\n {\r\n $t...
[ "0.6199194", "0.6134058", "0.58841723", "0.5870942", "0.58479947", "0.58301556", "0.582207", "0.5773902", "0.5767077", "0.5758131", "0.5749474", "0.5728414", "0.57221484", "0.5721866", "0.57197565", "0.5708451", "0.5705924", "0.5701009", "0.5681332", "0.5680907", "0.56517667"...
0.7246825
0
deletes old duty rows of same kind of same location after new appointment was created and skips callerRowId
удаляет старые строки назначений того же типа в том же месте после создания нового назначения и пропускает callerRowId
public function finishOldDuplicateRowsForLocationForNewApp($callerRowId) { // $q = 'DELETE t1 FROM duty_rows as t1 // INNER JOIN duty_rows t2 // WHERE t1.id < t2.id // AND t1.dutyRowTemplId = t2.dutyRowTemplId // AND t1.dutyBlockId = t2.dutyBlockId // AND t1.loca...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createRowsAndTasksForNewAppointment($appId, $locId, $callerRowId)\n {\n // Duty rows\n $q = 'INSERT INTO duty_rows (appointmentId, locationId, dutyRowTemplId, dutyBlockId) \n SELECT ' . $appId . ', ' . $locId . ', drt.id, dbrt.dutyBlockId\n FROM duty_row_templates AS drt \n...
[ "0.6329256", "0.59454924", "0.57922095", "0.5731297", "0.56698096", "0.5667807", "0.54861975", "0.54646844", "0.5359233", "0.53487766", "0.53423864", "0.530733", "0.5300789", "0.52672994", "0.52492225", "0.52472514", "0.5239482", "0.5189549", "0.5170737", "0.5154867", "0.5140...
0.7217626
0
returns all duty rows for a specific duty block
возвращает все строки графика для конкретного блока графика
public function dutyRowsForDutyBlock($blockId) { $q = " SELECT dr.id, dr.name FROM duty_row_templates as dr INNER JOIN duty_blocks_rows as dbr ON dbr.id_duty_block = " . $blockId; return DB::select($q); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function allDataForBlock($blockId)\n {\n $q = \"\n SELECT cl.title, \n @locationId := cl.id AS locationId, \n dcdt.keyName AS keyName,\n dr.appointmentId AS appointmentId, \n drt.name, \n dr.id, \n u1.username AS agentUserName1,\n u2.username AS agentUserName2,\n u3.username A...
[ "0.6672192", "0.5844997", "0.5766471", "0.55693024", "0.5559738", "0.5330009", "0.52931917", "0.5234303", "0.5170642", "0.5159611", "0.5144345", "0.51099265", "0.51039606", "0.5103043", "0.508891", "0.5085832", "0.50714976", "0.5070124", "0.506527", "0.5029946", "0.5025531", ...
0.77026534
0
get true if load is nested
вернуть истину, если нагрузка вложена
public final function isNestedLoad(): bool { return $this->isNestedLoad; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isLoad()\n {\n return $this->load;\n }", "public function isNestable($namespace, $load)\n {\n return true;\n }", "public final function setIsNestedLoad($isNestedLoad)\n {\n $this->isNestedLoad = $isNestedLoad;\n }", "public function isLoaded(): bool\n ...
[ "0.7213231", "0.6932776", "0.6559814", "0.6494982", "0.6471308", "0.6368619", "0.6368619", "0.6363505", "0.63460827", "0.63207346", "0.6318766", "0.62992954", "0.6299063", "0.629615", "0.62799436", "0.62740886", "0.6254584", "0.62449014", "0.6204726", "0.6204726", "0.6198941"...
0.8766154
0
get wrapping load if load is nested
получить обертку нагрузки, если нагрузка вложена
protected function getWrappingLoad(): ?AbstractLoad { return $this->ngsWrappingLoad; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getWrapperLoad() {\n return false;\n }", "public function originalLoader()\n {\n return $this->_originalLoader;\n }", "public final function isNestedLoad(): bool\n {\n return $this->isNestedLoad;\n }", "public function getLoad()\n {\n return $t...
[ "0.61842525", "0.6052811", "0.59019965", "0.5878448", "0.5878448", "0.57857263", "0.57857263", "0.57348317", "0.57079035", "0.5676076", "0.567444", "0.567444", "0.567444", "0.567444", "0.567444", "0.5667293", "0.5667293", "0.5667293", "0.5667293", "0.5667293", "0.5667293", ...
0.72619426
0
funcion de deleteUser, toma un id pasado por la vista y elimina el usuario de la base de datos//
Функция deleteUser, принимает id, переданный из представления, и удаляет пользователя из базы данных//
public function deleteUser($id){ //Busca al usuario especificado// $User = User::find($id); //Elmina al usuario seleccionado// $User->delete($id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function delete(){\n\t\t// Se guarda el nombre de usuario seleccionado en una variable.\n\t\t$id = $_REQUEST[\"id\"];\n\t\t// Se coge de la BD el usuario seleccionado.\n\t\t$user = $this->userMapper->findById($id);\n\t\t// Se comprueba que el usuario esté logeado como administrador (si se consulta un entren...
[ "0.81917113", "0.81588376", "0.814875", "0.8147023", "0.8147023", "0.81421715", "0.81314117", "0.8064836", "0.80245835", "0.8008943", "0.7990512", "0.798077", "0.7954638", "0.7951419", "0.7933427", "0.79326856", "0.7919896", "0.7916206", "0.7914478", "0.7911408", "0.79075783"...
0.8397658
0
A wrapper for CRidcully::RedirectToControllerMethod
Обертка для CRidcully::RedirectToControllerMethod
protected function RedirectToControllerMethod($controller=null, $method=null) { $this->r->RedirectToControllerMethod($controller, $method); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function RedirectToController($method=null) {\n $this->r->RedirectToController($method);\n }", "protected function RedirectTo($urlOrController=null, $method=null) {\n $this->r->RedirectTo($urlOrController=null, $method=null);\n }", "public function redirect();", "public function redirect();...
[ "0.78101677", "0.75845706", "0.7258878", "0.7258878", "0.7168291", "0.7053498", "0.69877017", "0.6929488", "0.6803202", "0.6790403", "0.67801535", "0.6699654", "0.6679614", "0.66089267", "0.65983987", "0.65648794", "0.65269715", "0.6517197", "0.6515127", "0.65138084", "0.6497...
0.7695438
1
/ Verification de l'ensemble des regex avant insertion en BDD (derniere etape de verification.
Проверка всех регулярных выражений перед вставкой в БД (последняя стадия проверки).
function verificationRegex() { $_POST['ville_d'] = epreuve:: e_traitement_regex_ville($_POST['ville_d']); $_POST['ville_a'] = epreuve:: e_traitement_regex_ville($_POST['ville_a']); $_POST['distance'] = epreuve:: e_traitement_regex_nombre($_POST['distance'],3,1); $_POST['moyenne'] = epreuve:: e_traitement_regex_nomb...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function verificationRegex() \n{\n\t$_POST['nom'] = sponsor::e_traitement_regex_nom_sponsor($_POST['nom']);\n\t$_POST['nom_abr'] = sponsor::e_traitement_regex_nomabr_sponsor($_POST['nom_abr']);\n}", "function verificationRegex()\n{\n\t$_POST['nom'] = coureur:: c_traitement_regex_nom($_POST['nom']);\n\t$_POST['pr...
[ "0.7183626", "0.69634026", "0.6227717", "0.61918336", "0.619048", "0.60913545", "0.5990024", "0.59474313", "0.58045065", "0.5799753", "0.57632136", "0.5713595", "0.5710657", "0.5696078", "0.5601538", "0.55794513", "0.55465215", "0.55167997", "0.54937893", "0.54704905", "0.546...
0.7012007
1
Waiting loader not visible
Нагрузка не видна
public function waitLoader() { $this->waitForElementNotVisible('.wrap-item-order .indicator'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function startLoading()\n {\n $this->is_loading = true;\n }", "public function iWaitUntilTheLoadingIsCompleted()\n {\n $condition = '!document.querySelector(\".alert-wrapper .alert-process .loading\") '\n . '&& !document.querySelector(\"span[sfuuid]:empty:not([class])\")...
[ "0.7053215", "0.6772731", "0.66952014", "0.65370405", "0.64195853", "0.6407064", "0.6389988", "0.63208425", "0.62347955", "0.6143196", "0.6058312", "0.60202855", "0.6003893", "0.5907097", "0.5852923", "0.58271873", "0.5826443", "0.5771894", "0.57580394", "0.57523066", "0.5751...
0.80533636
0
returns the value of $mailTempId
возвращает значение $mailTempId
public function _getMailTempId() { return $this->_mailTempId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getMailTempId($mail_temp_id,$mail_purpose,$from_name,$mail_from,$mail_cc,$mail_bcc,$mail_subject,$mail_content,$mail_footer) {\n\t\t$columns = array ('mail_temp_id','mail_purpose','from_name','mail_from','mail_cc','mail_bcc','mail_subject','mail_content','mail_footer');\n\t\t$records = array ($mail...
[ "0.72386223", "0.67464495", "0.65065926", "0.6488239", "0.64604", "0.6330406", "0.6248648", "0.62104046", "0.61350703", "0.6029659", "0.6026567", "0.60081756", "0.5972062", "0.59531105", "0.5942429", "0.59311026", "0.59143645", "0.5912484", "0.5901545", "0.58936924", "0.58919...
0.8991227
0
sets the value of $_mailTempId
устанавливает значение $_mailTempId
public function _setMailTempId($mailTempId) { $this->_mailTempId = $mailTempId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function _getMailTempId() {\n\t\treturn $this->_mailTempId;\n\t}", "public function setId_temp($id_temp)\n\t{\n\t\tif(is_int($id_temp) || $id_temp == NULL)\n\t\t{\n\t\t\t$this->id_temp = $id_temp;\n\t\t} else {\n\t\t\ttrigger_error('int required : ' . $id_temp . 'de type : ' . gettype($id_temp));\n\t\t}\n...
[ "0.7007077", "0.62256056", "0.61480844", "0.5731723", "0.56833863", "0.56669414", "0.5567438", "0.55612564", "0.5556016", "0.5468221", "0.5393666", "0.5375149", "0.5363314", "0.53629035", "0.5334254", "0.53295916", "0.5308538", "0.53012073", "0.52936584", "0.5292468", "0.5288...
0.7878701
0
returns the value of $mailPurpose
возвращает значение $mailPurpose
public function _getMailPurpose() { return $this->_mailPurpose; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getMailPurpose($mail_temp_id) {\n\t\t$columns = array ('mail_temp_id');\n\t\t$records = array ($mail_temp_id);\n\t\t$mail_purpose_ = $this->query_from_mail_template ( $columns, $records );\n\t\treturn sizeof($mail_purpose_)>0 ? $mail_purpose_ [0] ['mail_purpose'] : null;\n\t}", "public function g...
[ "0.74587494", "0.7300475", "0.7260669", "0.7249734", "0.72309035", "0.72309035", "0.72309035", "0.72309035", "0.7138643", "0.7076723", "0.6992979", "0.6790218", "0.6674833", "0.6661262", "0.6374267", "0.6339239", "0.58888215", "0.58690906", "0.57212", "0.5672707", "0.5610046"...
0.88376266
0
sets the value of $_mailPurpose
устанавливает значение $_mailPurpose
public function _setMailPurpose($mailPurpose) { $this->_mailPurpose = $mailPurpose; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setMailPurpose($mailPurpose) {\n\t\t$this->_setMailPurpose($mailPurpose);\n\t\treturn $this;\n\t}", "public function _getMailPurpose() {\n\t\treturn $this->_mailPurpose;\n\t}", "public function setPurpose($purpose)\n {\n $this->purpose = $purpose;\n }", "public function set_purpo...
[ "0.697946", "0.68793786", "0.6793381", "0.65701056", "0.6336716", "0.6220163", "0.59518003", "0.588923", "0.58772945", "0.58772945", "0.57631934", "0.57452595", "0.5738445", "0.57355183", "0.57252294", "0.57174736", "0.56996304", "0.56030697", "0.55630326", "0.55630326", "0.5...
0.83473617
0
returns the value of $fromName
возвращает значение $fromName
public function _getFromName() { return $this->_fromName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFromName()\n {\n return $this->fromName;\n }", "public function get_from_name($from_name = '')\n {\n }", "public function fromName()\n {\n return $this->from && $this->from->name ? $this->from->name : null;\n }", "public function setFromName(){\n\t\t...
[ "0.84198403", "0.836403", "0.8211882", "0.7908329", "0.75456774", "0.75074697", "0.74146813", "0.7388515", "0.7324972", "0.7269396", "0.7240168", "0.7229346", "0.7226064", "0.7202905", "0.7197628", "0.7190672", "0.71858764", "0.7183277", "0.7182004", "0.7182004", "0.7181943",...
0.8571574
0
sets the value of $_fromName
устанавливает значение $_fromName
public function _setFromName($fromName) { $this->_fromName = $fromName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function SetFrom($from = '', $fromName = '')\n\t{\tif ($from)\n\t\t{\t$this->from = $from;\n\t\t}\n\t\tif ($fromName)\n\t\t{\t$this->fromName = $fromName;\n\t\t}\n\t\t$this->SetHeaders();\n\t}", "public function setFromName(){\n\t\treturn $this->fromName;\n\t}", "public function setFrom($from, $name='') {\n\t\...
[ "0.76222163", "0.7546588", "0.7414341", "0.7371692", "0.737038", "0.734334", "0.7216495", "0.71723384", "0.715603", "0.71223474", "0.70959884", "0.70774513", "0.70772964", "0.70735466", "0.705666", "0.6884558", "0.68553066", "0.6848804", "0.6799826", "0.6741544", "0.671771", ...
0.8667525
0
returns the value of $mailFrom
возвращает значение $mailFrom
public function _getMailFrom() { return $this->_mailFrom; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function user_from_mail() {\n\t\treturn $this->config['submit']['from_email'];\n\t}", "protected function get_email_from()\n\t{\n\t\t$email_from = (empty($this->email_from)) ? $this->fuel->forms->config('email_from') : $this->email_from;\n\n\t\tif (is_array($email_from) AND isset($email_from[0]))\n\t\t{\n...
[ "0.8179035", "0.8078881", "0.8018951", "0.80180067", "0.7975531", "0.79374576", "0.7801058", "0.77868724", "0.7764555", "0.7731742", "0.7654387", "0.7597264", "0.7536705", "0.75248057", "0.747489", "0.7421926", "0.7381335", "0.73538256", "0.7321024", "0.72865707", "0.7280975"...
0.8942359
0
sets the value of $_mailFrom
устанавливает значение $_mailFrom
public function _setMailFrom($mailFrom) { $this->_mailFrom = $mailFrom; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function set_from($mail_from, $name = \"\"){\n\t\tif ($this->_validate_mail($mail_from)){\n\t\t\t$this->mail_from = !empty($name) ? \"$name <$mail_from>\" : $mail_from;\n\t\t}\n\t\telse {\n\t\t\t$this->mail_from = \"Anonymous <noreply@fake.com>\";\n\t\t}\n\t}", "function setSender($from)\n\t{\n\t\t// If $from is...
[ "0.81213474", "0.7903867", "0.78956825", "0.74561244", "0.73611563", "0.7290589", "0.72641593", "0.72422826", "0.7236696", "0.7221694", "0.7218496", "0.70919204", "0.70198256", "0.70063084", "0.69917804", "0.6969434", "0.69213045", "0.6900456", "0.6851852", "0.6827985", "0.67...
0.7999852
1
returns the value of $mailCc
возвращает значение $mailCc
public function _getMailCc() { return $this->_mailCc; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCc()\n {\n return $this->cc;\n }", "public function getCc() {}", "public function getCc() {}", "public function getCCEmail() {\n return $this->_scopeConfig->getValue(self::XPATH_CONTACT_US_CC_EMAIL, \\Magento\\Store\\Model\\ScopeInterface::SCOPE_STORE); \n }...
[ "0.82764614", "0.80773574", "0.80773574", "0.78312916", "0.78165674", "0.77764785", "0.770945", "0.7694921", "0.7660724", "0.7621391", "0.7391804", "0.7326137", "0.73218256", "0.72426736", "0.69496435", "0.6931606", "0.692285", "0.68948966", "0.68913454", "0.671171", "0.67117...
0.88330513
0
sets the value of $_mailCc
устанавливает значение $_mailCc
public function _setMailCc($mailCc) { $this->_mailCc = $mailCc; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setCc($address)\r\n {\r\n $this->_cc_array = $this->_getEmailArray($address);\r\n unset($this->_headers['Cc']);\r\n }", "public function _getMailCc() {\n\t\treturn $this->_mailCc;\n\t}", "function clearCc () {\r\n $this->sendcc = array();\r\n $this->all...
[ "0.72222215", "0.7131262", "0.7061301", "0.681987", "0.6803872", "0.66836524", "0.65591687", "0.6385869", "0.6385869", "0.6287034", "0.6215611", "0.61316645", "0.6109558", "0.6103867", "0.61035055", "0.60920453", "0.6066672", "0.6019568", "0.5993212", "0.59798235", "0.5963267...
0.7628007
0
returns the value of $mailBcc
возвращает значение $mailBcc
public function _getMailBcc() { return $this->_mailBcc; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getBcc(){\n\t\treturn $this->bcc;\n\t}", "public function getBcc() {}", "public function getBcc() {}", "public function getBcc()\n {\n return $this->bcc;\n }", "public function getBcc()\n {\n return $this->getHeaderFieldModel('Bcc');\n }", "private function bcc()...
[ "0.8190424", "0.8164547", "0.8164547", "0.7908351", "0.7877658", "0.77982455", "0.7623831", "0.7404162", "0.7368602", "0.73577046", "0.7313207", "0.7287838", "0.7246696", "0.7171638", "0.7071813", "0.7062097", "0.7015169", "0.6972851", "0.69232416", "0.6891948", "0.6870766", ...
0.88102937
0
sets the value of $_mailBcc
устанавливает значение $_mailBcc
public function _setMailBcc($mailBcc) { $this->_mailBcc = $mailBcc; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function set_bcc($mail_bcc, $name = \"\"){\n\t\tif ($this->_validate_mail($mail_bcc)){\n\t\t\t$this->mail_bcc = !empty($name) ? \"$name <$mail_bcc>\" : $mail_bcc;\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public function setBcc($address)\r\n {\r\n $this->_bcc_array = $this->_getEmailArray($...
[ "0.71649164", "0.71270293", "0.7081164", "0.70286155", "0.70068854", "0.6830633", "0.6820484", "0.6807672", "0.6729201", "0.6580667", "0.6580667", "0.6554321", "0.6513268", "0.65056425", "0.6433646", "0.6429511", "0.6425121", "0.636639", "0.63308597", "0.62987053", "0.6284369...
0.8037551
0
returns the value of $mailSubject
возвращает значение $mailSubject
public function _getMailSubject() { return $this->_mailSubject; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function getMailSubject()\n {\n $hostname = gethostname();\n\n return sprintf($this->mailSubject, $hostname, date('Y-m-d H:i:s'));\n }", "function getEmailSubject() {\n\t\treturn $this->getTransportCredentials()->getParam(transportCredentials::PARAM_MESSAGE_SUBJECT);\n\t}", "public ...
[ "0.83657175", "0.8358922", "0.8238088", "0.8225759", "0.81316537", "0.81274325", "0.8070941", "0.80379957", "0.801048", "0.79303986", "0.79173654", "0.7914787", "0.79037666", "0.7848926", "0.78387773", "0.78385687", "0.7810893", "0.77946395", "0.77927953", "0.7769925", "0.776...
0.87834495
0
returns the value of $mailContent
возвращает значение $mailContent
public function _getMailContent() { return $this->_mailContent; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getContent()\n {\n if ($this->_content !== null) {\n return $this->_content;\n }\n\n if ($this->_mail) {\n return $this->_mail->getRawContent($this->_messageNum);\n } else {\n /**\n * @see Zend_Mail_Exception\n ...
[ "0.7774794", "0.7612517", "0.7597016", "0.75679034", "0.75261337", "0.7209667", "0.7145153", "0.71061474", "0.70230716", "0.69883764", "0.6971041", "0.6966454", "0.69662195", "0.6958217", "0.69554025", "0.6952198", "0.6952072", "0.6949665", "0.6949113", "0.6948193", "0.694431...
0.8784453
0
sets the value of $_mailContent
устанавливает значение $_mailContent
public function _setMailContent($mailContent) { $this->_mailContent = $mailContent; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setContent($_content = null) {\n $this->_content = $_content;\n }", "protected function setContent() {}", "public function _getMailContent() {\n\t\treturn $this->_mailContent;\n\t}", "public function set_content_data($content_data)\n {\n }", "public function setContent($co...
[ "0.68341905", "0.6771865", "0.6480255", "0.6464194", "0.64452654", "0.6375515", "0.6356767", "0.6318969", "0.631391", "0.62694097", "0.6250182", "0.6249348", "0.6234967", "0.6215945", "0.62075967", "0.62050194", "0.62035966", "0.6199499", "0.6198742", "0.6192281", "0.6169031"...
0.75144297
0
returns the value of $mailFooter
возвращает значение $mailFooter
public function _getMailFooter() { return $this->_mailFooter; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function getFooter() {\n\t\treturn $this->footer;\n\t}", "public function getFooter()\n {\n $shop_address = $this->getShopAddress();\n\n $id_shop = (int) $this->shop->id;\n\n $this->smarty->assign(array(\n 'available_in_your_account' => $this->available_in_your_account,...
[ "0.7737011", "0.75376433", "0.75339204", "0.7491254", "0.7487554", "0.7443089", "0.7424149", "0.72858", "0.72056866", "0.7199308", "0.7186149", "0.71791923", "0.7105922", "0.7048624", "0.70234424", "0.70194036", "0.7008943", "0.6950881", "0.68878925", "0.6880256", "0.687182",...
0.8681518
0
sets the value of $_mailFooter
устанавливает значение $_mailFooter
public function _setMailFooter($mailFooter) { $this->_mailFooter = $mailFooter; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function _setFooter()\n {\n if(!$this->footer) return null;\n $this->_contents[] = $this->_stringTemplate->format('footer', ['footer'=>$this->footer]);\n }", "public function email_footer()\n {\n }", "public function _getMailFooter() {\n\t\treturn $this->_mailFooter;...
[ "0.76212853", "0.74877965", "0.7167437", "0.70624495", "0.7001429", "0.6888736", "0.6870031", "0.6825613", "0.6806061", "0.67628324", "0.6695638", "0.66338915", "0.6630202", "0.6610798", "0.6590782", "0.65857697", "0.6574", "0.6561886", "0.65447694", "0.6532785", "0.6526473",...
0.78748775
0
Performs a database query and returns the value of mail_temp_id based on the value of $mail_temp_id,$mail_purpose,$from_name,$mail_from,$mail_cc,$mail_bcc,$mail_subject,$mail_content,$mail_footer passed to the function
Выполняет запрос к базе данных и возвращает значение mail_temp_id в зависимости от значений $mail_temp_id,$mail_purpose,$from_name,$mail_from,$mail_cc,$mail_bcc,$mail_subject,$mail_content,$mail_footer, переданных в функцию
public function getMailTempId($mail_temp_id,$mail_purpose,$from_name,$mail_from,$mail_cc,$mail_bcc,$mail_subject,$mail_content,$mail_footer) { $columns = array ('mail_temp_id','mail_purpose','from_name','mail_from','mail_cc','mail_bcc','mail_subject','mail_content','mail_footer'); $records = array ($mail_temp_id,$m...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function insert_prepared_records($mail_temp_id,$mail_purpose,$from_name,$mail_from,$mail_cc,$mail_bcc,$mail_subject,$mail_content,$mail_footer,$redundancy_check= false, $printSQL = false) {\n\t\t$columns = array('mail_temp_id','mail_purpose','from_name','mail_from','mail_cc','mail_bcc','mail_subject','mail_...
[ "0.6725254", "0.6521826", "0.6444575", "0.64282566", "0.63143617", "0.61843383", "0.61802274", "0.6164954", "0.6142869", "0.6081481", "0.6013619", "0.5961515", "0.59555024", "0.5940505", "0.5937275", "0.59101117", "0.58937144", "0.58808887", "0.5852649", "0.5838863", "0.58286...
0.79936826
0
Performs a database query and returns the value of mail_purpose based on the value of $mail_temp_id passed to the function
Выполняет запрос к базе данных и возвращает значение mail_purpose в зависимости от значения $mail_temp_id, переданного в функцию
public function getMailPurpose($mail_temp_id) { $columns = array ('mail_temp_id'); $records = array ($mail_temp_id); $mail_purpose_ = $this->query_from_mail_template ( $columns, $records ); return sizeof($mail_purpose_)>0 ? $mail_purpose_ [0] ['mail_purpose'] : null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getMailTempId($mail_temp_id,$mail_purpose,$from_name,$mail_from,$mail_cc,$mail_bcc,$mail_subject,$mail_content,$mail_footer) {\n\t\t$columns = array ('mail_temp_id','mail_purpose','from_name','mail_from','mail_cc','mail_bcc','mail_subject','mail_content','mail_footer');\n\t\t$records = array ($mail...
[ "0.6979783", "0.60231566", "0.59313285", "0.5893535", "0.5891071", "0.58770716", "0.5700561", "0.5674901", "0.56405175", "0.5596152", "0.5592525", "0.5579629", "0.5577775", "0.5567357", "0.55631715", "0.5516036", "0.5514103", "0.55080825", "0.5488038", "0.5477376", "0.5466397...
0.7806902
0
Performs a database query and returns the value of from_name based on the value of $mail_temp_id passed to the function
Выполняет запрос к базе данных и возвращает значение from_name в зависимости от значения $mail_temp_id, переданного в функцию
public function getFromName($mail_temp_id) { $columns = array ('mail_temp_id'); $records = array ($mail_temp_id); $from_name_ = $this->query_from_mail_template ( $columns, $records ); return sizeof($from_name_)>0 ? $from_name_ [0] ['from_name'] : null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getMailFrom($mail_temp_id) {\n\t\t$columns = array ('mail_temp_id');\n\t\t$records = array ($mail_temp_id);\n\t\t$mail_from_ = $this->query_from_mail_template ( $columns, $records );\n\t\treturn sizeof($mail_from_)>0 ? $mail_from_ [0] ['mail_from'] : null;\n\t}", "function get_requestor_mail($req...
[ "0.74365073", "0.64302766", "0.62591404", "0.60277617", "0.598871", "0.5987697", "0.59838533", "0.5983129", "0.5947148", "0.59312063", "0.58915955", "0.5871711", "0.5842178", "0.57962996", "0.57843584", "0.57801485", "0.5772791", "0.5756685", "0.57357645", "0.5729762", "0.572...
0.7715072
0
Performs a database query and returns the value of mail_from based on the value of $mail_temp_id passed to the function
Выполняет запрос к базе данных и возвращает значение mail_from в зависимости от значения $mail_temp_id, переданного в функцию
public function getMailFrom($mail_temp_id) { $columns = array ('mail_temp_id'); $records = array ($mail_temp_id); $mail_from_ = $this->query_from_mail_template ( $columns, $records ); return sizeof($mail_from_)>0 ? $mail_from_ [0] ['mail_from'] : null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFromName($mail_temp_id) {\n\t\t$columns = array ('mail_temp_id');\n\t\t$records = array ($mail_temp_id);\n\t\t$from_name_ = $this->query_from_mail_template ( $columns, $records );\n\t\treturn sizeof($from_name_)>0 ? $from_name_ [0] ['from_name'] : null;\n\t}", "function get_requestor_mail($req...
[ "0.72052103", "0.653123", "0.65123636", "0.6348649", "0.6316262", "0.62696624", "0.6219098", "0.61539775", "0.6150362", "0.6149538", "0.6149256", "0.6146368", "0.60291886", "0.60118407", "0.59670717", "0.58565325", "0.58314216", "0.5824741", "0.5779022", "0.5771372", "0.57626...
0.82730407
0
Performs a database query and returns the value of mail_cc based on the value of $mail_temp_id passed to the function
Выполняет запрос к базе данных и возвращает значение mail_cc в зависимости от значения $mail_temp_id, переданного в функцию
public function getMailCc($mail_temp_id) { $columns = array ('mail_temp_id'); $records = array ($mail_temp_id); $mail_cc_ = $this->query_from_mail_template ( $columns, $records ); return sizeof($mail_cc_)>0 ? $mail_cc_ [0] ['mail_cc'] : null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getMailBcc($mail_temp_id) {\n\t\t$columns = array ('mail_temp_id');\n\t\t$records = array ($mail_temp_id);\n\t\t$mail_bcc_ = $this->query_from_mail_template ( $columns, $records );\n\t\treturn sizeof($mail_bcc_)>0 ? $mail_bcc_ [0] ['mail_bcc'] : null;\n\t}", "public function get_cc() {\n\n\t\tif ...
[ "0.71126306", "0.61825323", "0.6095275", "0.597654", "0.5965981", "0.59489715", "0.5900656", "0.5816096", "0.5689205", "0.568869", "0.5685921", "0.5685921", "0.5677625", "0.5648928", "0.564732", "0.5628276", "0.5621384", "0.5604068", "0.55961317", "0.55926645", "0.5564638", ...
0.80405915
0
Performs a database query and returns the value of mail_bcc based on the value of $mail_temp_id passed to the function
Выполняет запрос к базе данных и возвращает значение mail_bcc в зависимости от значения $mail_temp_id, переданного в функцию
public function getMailBcc($mail_temp_id) { $columns = array ('mail_temp_id'); $records = array ($mail_temp_id); $mail_bcc_ = $this->query_from_mail_template ( $columns, $records ); return sizeof($mail_bcc_)>0 ? $mail_bcc_ [0] ['mail_bcc'] : null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function bcc(){\n\t\t\t\t\n\t\t\t\t$bcc_email = array();\n\t\t\t\t\n\t\t\t\t$emails_list =$this->db->get_list(false,false,'active=1 AND trash=0',false);\n\t\t\t\t\n\t\t\t\twhile($row_email=db::fetch_assoc($emails_list)){\n\t\t\t\t\t\n\t\t\t\t\tarray_push($bcc_email,array('email'=>$row_email['email'],'name'...
[ "0.7301466", "0.67839885", "0.6468152", "0.6433752", "0.62213564", "0.61137486", "0.6006718", "0.6006718", "0.60003453", "0.59726954", "0.59616685", "0.5901859", "0.5827632", "0.57774985", "0.5738994", "0.57107806", "0.5701935", "0.56816256", "0.56629455", "0.56421596", "0.56...
0.83119226
0
Performs a database query and returns the value of mail_subject based on the value of $mail_temp_id passed to the function
Выполняет запрос к базе данных и возвращает значение mail_subject в зависимости от значения $mail_temp_id, переданного в функцию
public function getMailSubject($mail_temp_id) { $columns = array ('mail_temp_id'); $records = array ($mail_temp_id); $mail_subject_ = $this->query_from_mail_template ( $columns, $records ); return sizeof($mail_subject_)>0 ? $mail_subject_ [0] ['mail_subject'] : null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function schoolSubject($conn, $subID) {\r\n\r\n \tglobal $subjectsTB, $foreal;\r\n\t\t\t\r\n \t\t\t\t$ebele_mark = \"SELECT subjects\t\t\t\t\t\r\n\r\n \t\t\tFROM $subjectsTB\r\n\r\n \t\t \tWHERE sub_id = :sub_id\";\r\n\t\t\t\t\t \r\n \t\t\t $igweze_prep = $conn...
[ "0.6847456", "0.6410278", "0.635064", "0.6319324", "0.6317242", "0.62534845", "0.6120993", "0.6089005", "0.6047458", "0.6019758", "0.598892", "0.5980433", "0.59760165", "0.59709734", "0.5905294", "0.5896332", "0.5881975", "0.5846308", "0.5815313", "0.5777227", "0.57686526", ...
0.79061306
0
Performs a database query and returns the value of mail_content based on the value of $mail_temp_id passed to the function
Выполняет запрос к базе данных и возвращает значение mail_content в зависимости от значения $mail_temp_id, переданного в функцию
public function getMailContent($mail_temp_id) { $columns = array ('mail_temp_id'); $records = array ($mail_temp_id); $mail_content_ = $this->query_from_mail_template ( $columns, $records ); return sizeof($mail_content_)>0 ? $mail_content_ [0] ['mail_content'] : null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function resendContent()\r\n{\r\n\tglobal $dbConnection;\r\n\t\r\n\t$msg = $_GET['resend'];\r\n\t$sql = \"SELECT htmltext FROM mailmessages WHERE id=$msg\";\r\n\t$result = mysqli_query($dbConnection, $sql)\r\n\t\tor die (mysqli_error($dbConnection));\r\n\t$record = mysqli_fetch_array($result);\r\n\t$content = $rec...
[ "0.6615032", "0.6491817", "0.64676434", "0.630717", "0.62096876", "0.61318296", "0.6093033", "0.6080098", "0.60695446", "0.6062049", "0.6043376", "0.6026732", "0.60073197", "0.60002", "0.5962141", "0.5940107", "0.5927132", "0.59200144", "0.5913221", "0.590413", "0.5898874", ...
0.80409807
0
Performs a database query and returns the value of mail_footer based on the value of $mail_temp_id passed to the function
Выполняет запрос к базе данных и возвращает значение mail_footer в зависимости от значения $mail_temp_id, переданного в функцию
public function getMailFooter($mail_temp_id) { $columns = array ('mail_temp_id'); $records = array ($mail_temp_id); $mail_footer_ = $this->query_from_mail_template ( $columns, $records ); return sizeof($mail_footer_)>0 ? $mail_footer_ [0] ['mail_footer'] : null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getMailTempId($mail_temp_id,$mail_purpose,$from_name,$mail_from,$mail_cc,$mail_bcc,$mail_subject,$mail_content,$mail_footer) {\n\t\t$columns = array ('mail_temp_id','mail_purpose','from_name','mail_from','mail_cc','mail_bcc','mail_subject','mail_content','mail_footer');\n\t\t$records = array ($mail...
[ "0.6470024", "0.6301796", "0.59993976", "0.59817135", "0.58943164", "0.58610755", "0.58547837", "0.5833953", "0.5787107", "0.5767957", "0.5754076", "0.57414615", "0.57081187", "0.56626254", "0.5615225", "0.5615225", "0.5615225", "0.5615225", "0.5615225", "0.5615225", "0.56152...
0.8090686
0
Delete data from the table[mail_template] in the order below array ('mail_temp_id','mail_purpose','from_name','mail_from','mail_cc','mail_bcc','mail_subject','mail_content','mail_footer') is mapped into array ($mail_temp_id,$mail_purpose,$from_name,$mail_from,$mail_cc,$mail_bcc,$mail_subject,$mail_content,$mail_footer)
Удалите данные из таблицы [mail_template] в порядке ниже массива ('mail_temp_id','mail_purpose','from_name','mail_from','mail_cc','mail_bcc','mail_subject','mail_content','mail_footer') отображается в массив ($mail_temp_id,$mail_purpose,$from_name,$mail_from,$mail_cc,$mail_bcc,$mail_subject,$mail_content,$mail_footer)
public function delete_prepared_records($mail_temp_id,$mail_purpose,$from_name,$mail_from,$mail_cc,$mail_bcc,$mail_subject,$mail_content,$mail_footer, $printSQL = false) { $columns = array('mail_temp_id','mail_purpose','from_name','mail_from','mail_cc','mail_bcc','mail_subject','mail_content','mail_footer'); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function deleteEmailTemplatesByLocale($locale) {\n\t\t$this->update(\n\t\t\t'DELETE FROM email_templates_data WHERE locale = ?', $locale\n\t\t);\n\t}", "public function delete($mail_ids)\n\t{ \n\t\ttry\n\t\t{\t\n\t\t\t$sql = \"DELETE from mmmjs.TEST_MAILERS_TEMP where \";\n\t\t\t$COUNT = count($mail_ids);\n\n\t...
[ "0.61741936", "0.6092495", "0.5957315", "0.5905221", "0.58559805", "0.57862234", "0.5781645", "0.5592799", "0.5561329", "0.5553728", "0.5520134", "0.5513051", "0.55012435", "0.5498116", "0.54626083", "0.54304093", "0.5430245", "0.5401237", "0.5382168", "0.5372666", "0.5372357...
0.70179695
0
Sets the current permission object to the object provided, this object should implement the Permission ObjectInterface.
Устанавливает текущий объект разрешений в предоставленный объект, этот объект должен реализовывать интерфейс Permission ObjectInterface.
public function setPermissionObject($object) { $this->object = $object; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setPermission(ContextInterface $ctx, SetPermissionRequest $request): void;", "public function getPermissionObject()\n {\n return $this->object;\n }", "public function setObject($object)\n {\n $this->object = $object;\n }", "public function setPermissionCheck(UserInte...
[ "0.6795902", "0.6676131", "0.61658764", "0.61553717", "0.61459756", "0.59316546", "0.59199876", "0.5911726", "0.5911726", "0.5865795", "0.57662463", "0.57389075", "0.5727708", "0.567061", "0.56692874", "0.56692874", "0.5657858", "0.56386507", "0.56383425", "0.5609847", "0.556...
0.8216078
0
Retrieves the current permission object.
Получает текущий объект разрешений.
public function getPermissionObject() { return $this->object; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPermission()\n {\n return $this->permission;\n }", "public function getPermission();", "protected function getCurrentPermission() {}", "public function getPermission(){\n return $this->permission;\n }", "public static function getPermissionModel()\n {\n r...
[ "0.76322144", "0.76245695", "0.75837886", "0.7436939", "0.7037881", "0.6908753", "0.68755645", "0.683712", "0.6782223", "0.6759479", "0.67419666", "0.6669522", "0.664888", "0.6579474", "0.6533817", "0.6533817", "0.6533817", "0.6533817", "0.65246093", "0.6491821", "0.64359635"...
0.8273858
0
Passing in any object that implements the ObjectInterface, retrieve the Permission Response object.
Передача любого объекта, реализующего интерфейс ObjectInterface, для получения объекта Permission Response.
public static function getResponse($object) { $cache = Core::make('cache/request'); $identifier = sprintf('permission/response/%s/%s', get_class($object), $object->getPermissionObjectIdentifier()); $item = $cache->getItem($identifier); if (!$item->isMiss()) { return $item...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPermissionObject()\n {\n return $this->object;\n }", "public function findPermission($user, $object, $permission);", "public function findByObject($permission, $object);", "public function getPermission();", "function checkPermission(CanInterface $object, $action);", "publ...
[ "0.7270977", "0.65076935", "0.6405993", "0.63785625", "0.62304145", "0.60912424", "0.60178256", "0.60057145", "0.58975124", "0.5869888", "0.575916", "0.5748727", "0.57246065", "0.5687427", "0.5687427", "0.5687427", "0.5687427", "0.5687427", "0.56592834", "0.5632191", "0.56146...
0.70351666
1
Show all the invalid properties with reasons.
Показать все недействительные свойства с причинами.
public function listInvalidProperties();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function listInvalidProperties()\n {\n \n \n $invalidProperties = [];\n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ...
[ "0.78882694", "0.78864884", "0.78854454", "0.78431475", "0.78005785", "0.78005785", "0.78005785", "0.78005785", "0.78005785", "0.78005785", "0.78005785", "0.78005785", "0.7785245", "0.77816415", "0.77816415", "0.77816415", "0.77816415", "0.77816415", "0.77816415", "0.77816415",...
0.7953739
0
Testing the card title in the Index page is showing.
Тестирование заголовка карты на странице Индекс отображается.
public function testCardTitle() { $this->browse(function (Browser $browser) { $browser->visit('/') ->assertSee('Index View'); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testTitle()\n {\n $response = $this->get('/project');\n //Alors la balise h1 contient le titre Liste des projets\n $response->assertSee(\"<h1> Liste des projets </h1>\");\n }", "public function test_has_title(): void\n {\n $this->response->assertSee('Adicionar...
[ "0.74288255", "0.7401255", "0.6894771", "0.6876352", "0.6846853", "0.6788701", "0.67684704", "0.67534727", "0.6676949", "0.66680557", "0.6581931", "0.6569898", "0.65451777", "0.6517601", "0.64618903", "0.6430603", "0.639389", "0.63933593", "0.6360526", "0.6332182", "0.631376"...
0.8652477
0
Get order status error message
Сообщение об ошибке статуса заказа
public function getStatusError($orderId) { return sprintf('Order %s status error.', $orderId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function get_status_message() {\n $status = array(\n 100 => 'Continue',\n 101 => 'Switching Protocols',\n 200 => 'OK',\n 201 => 'Created',\n 202 => 'Accepted',\n 203 => 'Non-Authoritative Information',\n 204 => 'Missing par...
[ "0.68694556", "0.682937", "0.66944665", "0.6681733", "0.6620424", "0.65807587", "0.65593195", "0.6536709", "0.6489276", "0.6485253", "0.6434676", "0.6432397", "0.64165914", "0.639534", "0.6381355", "0.6380792", "0.6366595", "0.63649684", "0.63372046", "0.63300306", "0.6328258...
0.73686796
0
Clean up URI (function taken from Cacti) to protect against XSS
Очистка URI (функция взята из Cacti) для защиты от XSS
function wm_editor_sanitize_uri($str) { static $drop_char_match = array(' ','^', '$', '<', '>', '`', '\'', '"', '|', '+', '[', ']', '{', '}', ';', '!', '%'); static $drop_char_replace = array('', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', ''); return str_replace...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function yourls_clean_url( $url ) {\n\t\t$url = preg_replace('|[^a-z0-9-~+_.?\\[\\]\\^#=!&;,/:%@$\\|*\\'\"()\\\\x80-\\\\xff]|i', '', $url );\n\t\t$strip = array('%0d', '%0a', '%0D', '%0A');\n\t\t$url = $this->yourls_deep_replace($strip, $url);\n\t\t$url = str_replace(';//', '://', $url);\n\t\t$url = str_replace('&...
[ "0.73749906", "0.7232778", "0.72008383", "0.7192028", "0.7077962", "0.6997985", "0.69872844", "0.69872844", "0.6924128", "0.6857462", "0.6854527", "0.68523484", "0.6834789", "0.6830979", "0.68249685", "0.6792359", "0.6693209", "0.66910374", "0.6649721", "0.664288", "0.6636480...
0.76654017
0
Check if current token is a comment token
Проверьте, является ли текущий токен токеном комментария
private function isComment($currToken) { return $currToken['code'] === T_COMMENT; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isComment()\n {\n return $this->type === Token::COMMENT;\n }", "public function isComment()\n {\n }", "private function isComment(array $token)\n {\n return in_array($token[0], array(T_COMMENT, T_DOC_COMMENT), true);\n }", "public function isComment(): bool\n ...
[ "0.77794087", "0.74503016", "0.73548025", "0.73517436", "0.70793194", "0.7023772", "0.6956715", "0.69479656", "0.69257444", "0.6917356", "0.6868933", "0.68118113", "0.6712807", "0.6669168", "0.6667367", "0.6566913", "0.6532082", "0.6480947", "0.6475216", "0.6460712", "0.63646...
0.80572826
0
Handle any double slash style'//' comments
Обрабатывать любые комментарии в стиле '//''
private function handleDoubleSlashComment($phpcsFile, $stackPtr, $currToken) { $commentContent = substr($currToken['content'], 2); $commentTrim = ltrim($commentContent); if (strlen($commentContent) == strlen($commentTrim)) { $fix = $phpcsFile->addFixableWarning( 'At least a single space expected after "//"...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function stripComments()\n {\n $this->registerPattern('/\\/\\*.*?\\*\\//s', '');\n }", "protected function parseComments()\n {\n $str = &$this->str;\n\n $str = preg_replace('~<\\!\\-\\-(.+?)\\-\\->~is', '', $str);\n }", "protected function skipWhitespacesAndComments()...
[ "0.73072195", "0.683285", "0.6664234", "0.6644476", "0.6628911", "0.6595147", "0.65482265", "0.6405605", "0.6381977", "0.63712776", "0.6280938", "0.6266949", "0.62528574", "0.6239348", "0.62142247", "0.616891", "0.61637723", "0.6103457", "0.60740536", "0.6073774", "0.606438",...
0.7017839
1
Handle any hash style '' comments
Обрабатывать любые комментарии в стиле '' hash
private function handleHashComment($phpcsFile, $stackPtr, $currToken) { // Find number of `#` used. $startComment = 0; while ($currToken['content'][$startComment] === '#') { $startComment += 1; } if ($currToken['content'][$startComment] !== ' ') { $fix = $phpcsFile->addFixableWarning( 'At least a si...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function parseComments()\n {\n $str = &$this->str;\n\n $str = preg_replace('~<\\!\\-\\-(.+?)\\-\\->~is', '', $str);\n }", "public function process( PHP_CodeSniffer_File $phpcsFile, $stackPtr ) {\n\n $tokens = $phpcsFile->getTokens();\n\n if ( $tokens[ $stackPtr ]['content'][0]...
[ "0.65544224", "0.6523153", "0.6394042", "0.6256504", "0.6216733", "0.610284", "0.6045043", "0.59740746", "0.59314084", "0.5873787", "0.58499634", "0.58408356", "0.57700205", "0.5769779", "0.5763306", "0.5754732", "0.57399064", "0.57333064", "0.5710127", "0.5702151", "0.569678...
0.70943916
0