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
Function Name: StoreFileVanBan Description: Argument: $id Creation Date: 2016/08/01 Author: KhanhTH Reviewer: PhucHM
Имя функции: StoreFileVanBan Описание: Аргумент: $id Дата создания: 2016/08/01 Автор: KhanhTH Рецензент: PhucHM
public static function StoreFileVanBan($id){ try { //create direction $input = Input::all(); $filevanban = array_get($input, 'filevanban'); $file_path = FOLDERROOT."/congthongtin/vanban/".$id; // if (!is_dir($file_path)) { // // mkdir...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function _save_a_file($data=null, $id=null, $sid=null, $headers=null) {\n if ((!$sid)||(!$id)) return false; \n \n $date_time = date('d-m-Y H:i:s');\n $date_dir = date('Ymd');\n\t\n $a_path = $this->admin_path . $date_dir; \n \n\t//in case of no date folder...\n\tif (!is_dir($a_path))\n\t re...
[ "0.6489729", "0.64245206", "0.63734233", "0.6298698", "0.6216007", "0.62030625", "0.62003297", "0.6188588", "0.61615986", "0.6095047", "0.60808027", "0.604638", "0.60333484", "0.602549", "0.60253865", "0.6015341", "0.60085475", "0.59990156", "0.5945813", "0.59258115", "0.5925...
0.7270126
0
Function Name: UpdateVanBan Description: Argument: $id, $request Creation Date: 2016/08/01 Author: KhanhTH Reviewer: PhucHM
Имя функции: UpdateVanBan Описание: Аргумент: $id, $request Дата создания: 2016/08/01 Автор: KhanhTH Рецензент: PhucHM
public static function UpdateVanBan($id, $request,$accountId){ try { if($request->VBAD == 'on'){ $loaivanban = VBAD; }elseif($request->VBCD == 'on'){ $loaivanban = VBCD; }else{ $loaivanban = VBPL; } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function UpdateDiaBan($request,$id){\n\n\n $result = DB::table('diaban')\n ->where('id', $id)\n ->update([\n 'tendiaban' => $request->tendiaban,\n 'tructhuoc' => $request->tructhuoc,\n 'thutu' => $request->thutu,\n ...
[ "0.78551394", "0.7350195", "0.71874744", "0.7171876", "0.7141833", "0.7135462", "0.7135462", "0.7135462", "0.7135462", "0.7135462", "0.7111779", "0.71083444", "0.71025306", "0.70978653", "0.70964533", "0.7067742", "0.7066042", "0.70657086", "0.70561445", "0.7051557", "0.70432...
0.79043347
0
Function Name: SearchVanBan Description: Argument: $keysearch Creation Date: 2016/08/01 Author: KhanhTH Reviewer: PhucHM
Имя функции: SearchVanBan Описание: Аргумент: $keysearch Дата создания: 2016/08/01 Автор: KhanhTH Рецензент: PhucHM
public static function SearchVanBan($keysearch){ $result = DB::table('vanban') ->where('sohieu','like','%'.$keysearch.'%') ->get(); return $result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function search($keySearch)\n {\n }", "public function func_search() {}", "public function search();", "public function search();", "public function searchUser($searchkey);", "public function search() {}", "public function searchBerita($search)\n {\n }", "public static function sea...
[ "0.7893876", "0.708446", "0.69368196", "0.69368196", "0.690204", "0.6782448", "0.6741533", "0.67117715", "0.666917", "0.6652655", "0.6607206", "0.6567894", "0.65501827", "0.65501827", "0.654397", "0.6541842", "0.65345687", "0.6520774", "0.6444344", "0.6429496", "0.63628215", ...
0.75665295
1
isTimestamp Check the $timestamp is valid or not
isTimestamp Проверяет, является ли $timestamp допустимым или нет
private function _isTimestamp($timestamp) { return preg_match("/^([1-9]\d{0,})$/", $timestamp); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isTimestampValid()\n {\n return $this->hasTimestamp() && intval($this->timestamp) > time();\n }", "private function timestampIsValid($timestamp)\n {\n if (!preg_match('/^[\\d]{4}-[\\d]{2}-[\\d]{2}T[\\d]{2}:[\\d]{2}:[\\d]{2}(?:\\.\\d+)?Z$/', $timestamp)) {\n retur...
[ "0.8422931", "0.83101475", "0.8164676", "0.805975", "0.8057073", "0.80276203", "0.79828453", "0.7869402", "0.78603894", "0.7784394", "0.7781368", "0.777976", "0.7735898", "0.7719722", "0.76886016", "0.7688186", "0.7634078", "0.7599042", "0.75731593", "0.75334793", "0.7469515"...
0.8469176
0
Module Toolbar Data for Admin Panel
Панель инструментов модуля Данные для панели администратора
public function moduleToolbar() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function moduleToolbar();", "public function moduleToolbar()\n\t{\n\t\treturn array(\n\t\t\t'index'\t=> array(\n 'url'\t=> 'site',\n 'name'\t=> 'All',\n 'info'\t=> 'View All',\n 'class'\t=> 'add'\n ),\n 'add'\t=> ar...
[ "0.8029105", "0.78787947", "0.76695335", "0.7085927", "0.6974143", "0.6870243", "0.68605715", "0.68540525", "0.6762785", "0.6751352", "0.6703277", "0.6696085", "0.6674935", "0.6668845", "0.66616416", "0.6646101", "0.6634199", "0.6624521", "0.65814054", "0.6580242", "0.6563406...
0.8012518
1
If specified, fire the after remove event
Если указано, сгенерировать событие after remove
public function fireAfterRemoveEvent() { if (!empty($this->afterRemoveEvent)) { $this->modx->invokeEvent($this->afterRemoveEvent,array( $this->primaryKeyField => $this->object->get($this->primaryKeyField), $this->objectType => &$this->object, 'object' ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function postRemoveCallback()\n {\n $this->performPostRemoveCallback();\n }", "public function preRemoveCallback()\n {\n $this->performPreRemoveCallback();\n }", "public function onAfterDelete();", "public function afterAdd () {\n $event = new Event;\n $event->s...
[ "0.7683879", "0.69743586", "0.6890284", "0.6889999", "0.6831014", "0.6755144", "0.6755144", "0.6742639", "0.6695897", "0.65750414", "0.6564377", "0.6463347", "0.645424", "0.6256151", "0.62278", "0.619989", "0.6183789", "0.61694545", "0.6153664", "0.6147509", "0.61447936", "...
0.78128237
0
YEAR. Returns the year corresponding to a date. The year is returned as an integer in the range 19009999. Excel Function: YEAR(dateValue)
ГОД. Возвращает год, соответствующий дате. Год возвращается как целое число в диапазоне от 1900 до 9999. Функция Excel: ГОД(значение_даты)
public static function year($dateValue) { if (is_array($dateValue)) { return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $dateValue); } try { $dateValue = Helpers::getDateValue($dateValue); } catch (Exception $e) { return $e->ge...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function year($date);", "function getYear( $date ) {\n\t$time = strtotime( $date );\n\treturn date( 'Y', $time );\n}", "public function getYear()\n {\n return floor($this->convertToDateElement(Phpr_DateTime::elementYear));\n }", "public static function getYear($date){\r\n\r\n\t\t$time = s...
[ "0.79455554", "0.7836697", "0.7730665", "0.77042925", "0.7637376", "0.76337284", "0.7593958", "0.756193", "0.7513701", "0.74878174", "0.74713856", "0.74586993", "0.7434625", "0.7375984", "0.73465776", "0.73137176", "0.7202694", "0.7145968", "0.71457094", "0.71398866", "0.7133...
0.85675484
0
Set as true to grab synonym
Установите в true, чтобы захватить синоним
public function synonym() { $this->synonym = true; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSynonym()\n {\n return $this->synonym;\n }", "function addSynonym( $aSynonym ){\r\n\t\t\t\r\n\t\t\tif ($this->name != $aSynonym ){\r\n\t\t\t\t$this->synonyms[ $aSynonym ] = true;\r\n\t\t\t\t$this->checkReverse( $aSynonym );\r\n\t\t\t}\r\n\t\r\n\t\t\t$unaccented = \\Index\\IndexTer...
[ "0.75582653", "0.64714533", "0.64188695", "0.63390213", "0.6088994", "0.6062586", "0.5978788", "0.5793805", "0.57743305", "0.57585454", "0.5696949", "0.5675466", "0.5664796", "0.56513405", "0.5566264", "0.5540475", "0.5464822", "0.5464822", "0.54434854", "0.53489923", "0.5348...
0.7901064
0
Describes the transfer eligibility of a SKU. Generated from protobuf field .google.cloud.channel.v1.TransferEligibility transfer_eligibility = 9;
Описывает соответствие SKU по критериям перевода. Сгенерировано из поля protobuf .google.cloud.channel.v1.TransferEligibility transfer_eligibility = 9;
public function setTransferEligibility($var) { GPBUtil::checkMessage($var, \Google\Cloud\Channel\V1\TransferEligibility::class); $this->transfer_eligibility = $var; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTransferEligibility()\n {\n return $this->transfer_eligibility;\n }", "public function isEligibility() {\n\n\t\treturn $this->eligibility;\n\t}", "public function getProtectionEligibility()\n {\n return $this->_getField(self::$PROTECTION_ELIGIBILITY);\n }", "publi...
[ "0.6971171", "0.48419666", "0.4458589", "0.4452677", "0.44209334", "0.4405638", "0.43033695", "0.4244974", "0.42104465", "0.41709143", "0.41617626", "0.41482237", "0.41452187", "0.4140009", "0.4133319", "0.4129922", "0.41284034", "0.4108985", "0.4108183", "0.4104701", "0.4040...
0.77795976
0
Optional. The customer to transfer has an entitlement with the populated legacy SKU. Generated from protobuf field .google.cloud.channel.v1.Sku legacy_sku = 12 [(.google.api.field_behavior) = OPTIONAL];
Опционально. Клиент, которому нужно перевести, имеет право, в котором заполнен устаревший SKU. Сгенерировано из поля protobuf .google.cloud.channel.v1.Sku legacy_sku = 12 [(.google.api.field_behavior) = OPTIONAL];
public function getLegacySku() { return $this->legacy_sku; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setLegacySku($var)\n {\n GPBUtil::checkMessage($var, \\Google\\Cloud\\Channel\\V1\\Sku::class);\n $this->legacy_sku = $var;\n\n return $this;\n }", "public function setSku($var)\n {\n GPBUtil::checkString($var, True);\n $this->sku = $var;\n }", "pu...
[ "0.77464503", "0.64427656", "0.63963825", "0.6359712", "0.6289846", "0.62769413", "0.6245171", "0.62084055", "0.6201456", "0.6198355", "0.61723095", "0.61723095", "0.61723095", "0.61723095", "0.61723095", "0.6095697", "0.60875154", "0.60122204", "0.5995127", "0.59569806", "0....
0.7295141
1
Optional. The customer to transfer has an entitlement with the populated legacy SKU. Generated from protobuf field .google.cloud.channel.v1.Sku legacy_sku = 12 [(.google.api.field_behavior) = OPTIONAL];
Опционально. Клиент, которому нужно передать, имеет право, в котором заполнен устаревший SKU. Сгенерировано из поля protobuf .google.cloud.channel.v1.Sku legacy_sku = 12 [(.google.api.field_behavior) = OPTIONAL];
public function setLegacySku($var) { GPBUtil::checkMessage($var, \Google\Cloud\Channel\V1\Sku::class); $this->legacy_sku = $var; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getLegacySku()\n {\n return $this->legacy_sku;\n }", "public function setSku($var)\n {\n GPBUtil::checkString($var, True);\n $this->sku = $var;\n }", "public function setSku($var)\n {\n GPBUtil::checkString($var, True);\n $this->sku = $var;\n\n ...
[ "0.7294063", "0.6445378", "0.639902", "0.63618636", "0.6290502", "0.62774426", "0.6245859", "0.6208701", "0.62018687", "0.61996", "0.6172916", "0.6172916", "0.6172916", "0.6172916", "0.6172916", "0.6097626", "0.6087794", "0.60141516", "0.5995767", "0.59571093", "0.595628", ...
0.7745969
0
[AJAX] Get the registered appointments for the given date period and record. This method returns the database appointments and unavailable periods for the user selected date period and record type (provider or service). Required POST Parameters: int $_POST['record_id'] Selected record id. string $_POST['filter_type'] C...
[AJAX] Получить зарегистрированные записи для заданного периода дат и записи. Этот метод возвращает базовые записи и нерабочие периоды для пользователя в выбранном периоде дат и типа записи (поставщик или услуга). Обязательные параметры POST: int $_POST['record_id'] Идентификатор выбранной записи. string $_POST['filter...
public function ajax_get_calendar_appointments() { try { if ($this->privileges[PRIV_APPOINTMENTS]['view'] == FALSE) { throw new Exception('You do not have the required privileges for this task.'); } if ( ! $this->input->post('...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function ajax_get_calendar_appointments()\n {\n try\n {\n if ($this->privileges[PRIV_APPOINTMENTS]['view'] == FALSE)\n {\n throw new Exception('You do not have the required privileges for this task.');\n }\n\n if ( ! $this->input->p...
[ "0.7555345", "0.6151607", "0.6079168", "0.6020153", "0.5910106", "0.5711741", "0.57009035", "0.56894374", "0.5661196", "0.5660775", "0.5660775", "0.56550777", "0.5636635", "0.56102645", "0.560213", "0.55962646", "0.5514662", "0.55061656", "0.55061656", "0.5504821", "0.5487131...
0.7532354
1
[AJAX] Save appointment changes that are made from the backend calendar page. Required POST Parameters: array $_POST['appointment_data'] (OPTIONAL) Array with the appointment data. array $_POST['customer_data'] (OPTIONAL) Array with the customer data.
[AJAX] Сохранение изменений записи, вносимых с страницы календаря с бэкенда. Обязательные параметры POST: массив $_POST['appointment_data'] (ОПЦИОНАЛЬНО) Массив с данными записи. массив $_POST['customer_data'] (ОПЦИОНАЛЬНО) Массив с данными клиента.
public function ajax_save_appointment() { try { $this->load->model('appointments_model'); $this->load->model('providers_model'); $this->load->model('services_model'); $this->load->model('customers_model'); $this->load->model('settin...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function ajax_save_appointment()\n {\n try\n {\n // Save customer changes to the database.\n if ($this->input->post('customer_data'))\n {\n $customer = json_decode($this->input->post('customer_data'), TRUE);\n\n $required_privil...
[ "0.7606445", "0.68732876", "0.65537167", "0.6305891", "0.624391", "0.622177", "0.61184466", "0.6002907", "0.590255", "0.5894256", "0.5816823", "0.58154094", "0.5806259", "0.5763727", "0.57124335", "0.56691426", "0.5656214", "0.564774", "0.56352043", "0.56052876", "0.56017554"...
0.759555
1
[AJAX] Delete appointment from the database. This method deletes an existing appointment from the database. Once this action is finished it cannot be undone. Notification emails are send to both provider and customer and the delete action is executed to the Google Calendar account of the provider, if the "google_sync" ...
[AJAX] Удаление записи о записи из базы данных. Этот метод удаляет существующую запись о записи из базы данных. После завершения этой операции её невозможно отменить. Уведомительные письма отправляются как провайдеру, так и клиенту, и действие удаления выполняется в календаре Google провайдера, если параметр "google_sy...
public function ajax_delete_appointment() { try { if ($this->privileges[PRIV_APPOINTMENTS]['delete'] == FALSE) { throw new Exception('You do not have the required privileges for this task.'); } if ( ! $this->input->post('appoi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function ajax_delete_appointment()\n {\n try\n {\n if ($this->privileges[PRIV_APPOINTMENTS]['delete'] == FALSE)\n {\n throw new Exception('You do not have the required privileges for this task.');\n }\n\n if ( ! $this->input->post('...
[ "0.84504825", "0.7295792", "0.71408355", "0.70867753", "0.70867753", "0.70867753", "0.70867753", "0.7084915", "0.7081739", "0.696803", "0.69560325", "0.6947297", "0.68437237", "0.68319684", "0.68136513", "0.6795313", "0.67949235", "0.6655245", "0.66325855", "0.662636", "0.650...
0.81307256
1
[AJAX] Disable a providers sync setting. This method deletes the "google_sync" and "google_token" settings from the database. After that the provider's appointments will be no longer synced with google calendar. Required POST Parameters: string $_POST['provider_id'] The selected provider record id.
[AJAX] Отключить настройку синхронизации поставщика. Этот метод удаляет настройки "google_sync" и "google_token" из базы данных. После этого записи о встречах поставщика больше не будут синхронизироваться с календарем Google. Обязательные параметры POST: строка $_POST['provider_id'] Идентификатор записи выбранного пост...
public function ajax_disable_provider_sync() { try { if ( ! $this->input->post('provider_id')) { throw new Exception('Provider id not specified.'); } if ($this->privileges[PRIV_USERS]['edit'] == FALSE && $this...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function ajax_disable_provider_sync()\n {\n try\n {\n if ( ! $this->input->post('provider_id'))\n {\n throw new Exception('Provider id not specified.');\n }\n\n if ($this->privileges[PRIV_USERS]['edit'] == FALSE\n && ...
[ "0.8160576", "0.56182444", "0.52166694", "0.5123785", "0.5101589", "0.50987273", "0.50730413", "0.5038174", "0.4993211", "0.48997596", "0.48848236", "0.4879786", "0.48628262", "0.48497075", "0.48397425", "0.48370576", "0.4833313", "0.48301783", "0.48164603", "0.48139796", "0....
0.82818854
0
[AJAX] Insert of update unavailable time period to database. Required POST Parameters: array $_POST['unavailable'] JSON encoded array that contains the unavailable period data.
[AJAX] Вставка или обновление недоступного временного периода в базу данных. Требуемые параметры POST: массив $_POST['unavailable'] закодированный в формат JSON массив, содержащий данные о недоступном периоде.
public function ajax_save_unavailable() { try { // Check privileges $unavailable = json_decode($this->input->post('unavailable'), TRUE); $REQUIRED_PRIV = ( ! isset($unavailable['id'])) ? $this->privileges[PRIV_APPOINTMENTS]['add'] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function ajax_save_unavailable()\n {\n try\n {\n // Check privileges\n $unavailable = json_decode($this->input->post('unavailable'), TRUE);\n\n $required_privileges = ( ! isset($unavailable['id']))\n ? $this->privileges[PRIV_APPOINTMENTS]['add...
[ "0.7143305", "0.6106677", "0.59114033", "0.5840722", "0.5735144", "0.5732154", "0.55518633", "0.5481786", "0.5414295", "0.5409792", "0.5385103", "0.537798", "0.53746283", "0.5357792", "0.5318433", "0.53126216", "0.53057784", "0.5273712", "0.52587026", "0.524847", "0.5243497",...
0.7097532
1
[AJAX] Delete an unavailable time period from database. Required POST Parameters: int $_POST['unavailable_id'] Record id to be deleted.
[AJAX] Удаление недоступного временного периода из базы данных. Требуемые параметры POST: int $_POST['unavailable_id'] Идентификатор записи для удаления.
public function ajax_delete_unavailable() { try { if ($this->privileges[PRIV_APPOINTMENTS]['delete'] == FALSE) { throw new Exception('You do not have the required privileges for this task.'); } $this->load->model('appointments...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function ajax_delete_unavailable()\n {\n try\n {\n if ($this->privileges[PRIV_APPOINTMENTS]['delete'] == FALSE)\n {\n throw new Exception('You do not have the required privileges for this task.');\n }\n\n $unavailable = $this->appoi...
[ "0.73792166", "0.61322564", "0.60639834", "0.60183823", "0.59369504", "0.5834614", "0.58177656", "0.58136326", "0.5798666", "0.5772627", "0.5735244", "0.5714995", "0.5707295", "0.56640977", "0.56584316", "0.563387", "0.5631021", "0.56280494", "0.56055033", "0.5584094", "0.558...
0.75239027
0
[AJAX] Save (insert or update) a customer record. Require POST Parameters: array $_POST['customer'] JSON encoded array that contains the customer's data.
[AJAX] Сохранить (вставить или обновить) запись клиента. Требуется параметр POST: массив $_POST['customer'] закодированный в формат JSON массив, содержащий данные клиента.
public function ajax_save_customer() { try { $this->load->model('customers_model'); $customer = json_decode($this->input->post('customer'), TRUE); $REQUIRED_PRIV = ( ! isset($customer['id'])) ? $this->privileges[PRIV_CUSTOMERS]['add'] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function ajax_save_customer()\n {\n try\n {\n $customer = json_decode($this->input->post('customer'), TRUE);\n\n $required_privileges = ( ! isset($customer['id']))\n ? $this->privileges[PRIV_CUSTOMERS]['add']\n : $this->privileges[PRIV_CUS...
[ "0.7755177", "0.6870037", "0.6790269", "0.6645189", "0.65560323", "0.654665", "0.6477685", "0.6466545", "0.6444553", "0.642338", "0.63983154", "0.63741696", "0.63348603", "0.63198376", "0.6275047", "0.62531793", "0.6243894", "0.6240419", "0.62304664", "0.6178554", "0.6144835"...
0.7985476
0
[AJAX] Delete customer from database. Required POST Parameters: int $_POST['customer_id'] Customer record id to be deleted.
[AJAX] Удаление клиента из базы данных. Обязательные параметры POST: int $_POST['customer_id'] Идентификатор записи клиента для удаления.
public function ajax_delete_customer() { try { if ($this->privileges[PRIV_CUSTOMERS]['delete'] == FALSE) { throw new Exception('You do not have the required privileges for this task.'); } $this->load->model('customers_model');...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function ajax_delete_customer()\n {\n try\n {\n if ($this->privileges[PRIV_CUSTOMERS]['delete'] == FALSE)\n {\n throw new Exception('You do not have the required privileges for this task.');\n }\n\n $this->customers_model->delete($t...
[ "0.81774163", "0.7627473", "0.743067", "0.74043536", "0.73566866", "0.7299106", "0.7190089", "0.71533436", "0.71153265", "0.7064577", "0.6945579", "0.6943067", "0.6943067", "0.6840137", "0.6806663", "0.6794865", "0.67650425", "0.6748107", "0.67346936", "0.6721036", "0.67168",...
0.84814626
0
[AJAX] Save (insert or update) service record. Required POST Parameters: array $_POST['service'] Contains the service data (json encoded).
[AJAX] Сохранение (вставка или обновление) записи о сервисе. Обязательные параметры POST: массив $_POST['service'] содержит данные о сервисе (закодированные в JSON).
public function ajax_save_service() { try { $this->load->model('services_model'); $service = json_decode($this->input->post('service'), TRUE); $REQUIRED_PRIV = ( ! isset($service['id'])) ? $this->privileges[PRIV_SERVICES]['add'] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function ajax_save_service()\n {\n try\n {\n $service = json_decode($this->input->post('service'), TRUE);\n\n $required_privileges = ( ! isset($service['id']))\n ? $this->privileges[PRIV_SERVICES]['add']\n : $this->privileges[PRIV_SERVICES...
[ "0.8183665", "0.68275267", "0.6644518", "0.6590946", "0.6586244", "0.64942896", "0.6465751", "0.638533", "0.6279374", "0.6228771", "0.6215354", "0.6197703", "0.61494714", "0.6136108", "0.61277294", "0.61265284", "0.6085214", "0.6082808", "0.6074736", "0.5982866", "0.59762555"...
0.8291465
0
[AJAX] Delete service record from database. Required POST Parameters: int $_POST['service_id'] Record id to be deleted.
[AJAX] Удаление записи о сервисе из базы данных. Обязательные параметры POST: int $_POST['service_id'] Идентификатор записи для удаления.
public function ajax_delete_service() { try { if ($this->privileges[PRIV_SERVICES]['delete'] == FALSE) { throw new Exception('You do not have the required privileges for this task.'); } $this->load->model('services_model'); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function ajax_delete_service()\n {\n try\n {\n if ($this->privileges[PRIV_SERVICES]['delete'] == FALSE)\n {\n throw new Exception('You do not have the required privileges for this task.');\n }\n\n $result = $this->services_model->de...
[ "0.77523327", "0.7277398", "0.7213132", "0.7163037", "0.6934577", "0.6884774", "0.6844446", "0.6838883", "0.6826632", "0.67812407", "0.6770959", "0.6747816", "0.6740747", "0.67211986", "0.66907483", "0.6660628", "0.6651007", "0.66183114", "0.6586263", "0.6559475", "0.64898825...
0.8068856
0
[AJAX] Filter service records by given key string. Required POST Parameters: string $_POST['key'] Key string used to filter the records. Outputs a JSON encoded array back to client.
[AJAX] Фильтрация записей сервиса по заданной строке ключа. Обязательные параметры POST: строка $_POST['key'] Строка ключа, используемая для фильтрации записей. Возвращает закодированный в JSON массив обратно клиенту.
public function ajax_filter_services() { try { if ($this->privileges[PRIV_SERVICES]['view'] == FALSE) { throw new Exception('You do not have the required privileges for this task.'); } $this->load->model('services_model'); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function ajax_filter_services()\n {\n try\n {\n if ($this->privileges[PRIV_SERVICES]['view'] == FALSE)\n {\n throw new Exception('You do not have the required privileges for this task.');\n }\n\n $key = $this->db->escape_str($this->...
[ "0.714562", "0.6601629", "0.6540055", "0.6433254", "0.6424434", "0.63240623", "0.63202304", "0.61401564", "0.60847604", "0.60646224", "0.6015034", "0.59651774", "0.595982", "0.58222497", "0.5743858", "0.5629718", "0.5608962", "0.54971945", "0.5460755", "0.5451946", "0.5451217...
0.7122922
1
[AJAX] Filter services categories with key string. Required POST Parameters: string $_POST['key'] The key string used to filter the records. Outputs a JSON encoded array back to client with the category records.
[AJAX] Фильтрация категорий сервисов по ключевой строке. Обязательные параметры POST: строка $_POST['key'] Ключевая строка, используемая для фильтрации записей. Возвращает в формате JSON закодированный массив записей категории клиенту.
public function ajax_filter_service_categories() { try { if ($this->privileges[PRIV_SERVICES]['view'] == FALSE) { throw new Exception('You do not have the required privileges for this task.'); } $this->load->model('services_mo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function ajax_filter_service_categories()\n {\n try\n {\n if ($this->privileges[PRIV_SERVICES]['view'] == FALSE)\n {\n throw new Exception('You do not have the required privileges for this task.');\n }\n\n $key = $this->db->escape_s...
[ "0.79971963", "0.7197721", "0.7087851", "0.6436028", "0.6381101", "0.61877567", "0.61728114", "0.6069338", "0.60608083", "0.604778", "0.6014618", "0.60004985", "0.599956", "0.5859318", "0.5859318", "0.5837616", "0.5831003", "0.5798508", "0.57839364", "0.57447094", "0.5731367"...
0.81150997
0
[AJAX] Filter admin records with string key. Required POST Parameters: string $_POST['key'] The key string used to filter the records. Outputs a JSON encoded array back to client with the admin records.
[AJAX] Фильтрация записей администратора по строковому ключу. Обязательные параметры POST: строка $_POST['key'] Строка ключа, используемая для фильтрации записей. Возвращает в клиентскую часть JSON-кодированный массив с записями администратора.
public function ajax_filter_admins() { try { if ($this->privileges[PRIV_USERS]['view'] == FALSE) { throw new Exception('You do not have the required privileges for this task.'); } $this->load->model('admins_model'); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function ajax_filter_admins()\n {\n try\n {\n if ($this->privileges[PRIV_USERS]['view'] == FALSE)\n {\n throw new Exception('You do not have the required privileges for this task.');\n }\n\n $key = $this->db->escape_str($this->input...
[ "0.71263", "0.65902525", "0.6507971", "0.63419515", "0.61929184", "0.6192213", "0.60304487", "0.59014094", "0.5815422", "0.5778602", "0.5742257", "0.5728105", "0.5617006", "0.55871296", "0.55687505", "0.55378383", "0.5493936", "0.5469989", "0.54698616", "0.5451342", "0.543130...
0.71937126
0
[AJAX] Save (insert or update) admin record into database. Required POST Parameters: array $_POST['admin'] A json encoded array that contains the admin data. If an 'id' value is provided then the record is going to be updated. Outputs an array with the operation status and the record id that was saved into the database...
[AJAX] Сохранение (вставка или обновление) записи администратора в базе данных. Обязательные параметры POST: массив $_POST['admin'] — JSON-кодированный массив, содержащий данные администратора. Если предоставлено значение 'id', запись будет обновлена. Выводится массив с статусом операции и идентификатором записи, сохра...
public function ajax_save_admin() { try { $this->load->model('admins_model'); $admin = json_decode($this->input->post('admin'), TRUE); $REQUIRED_PRIV = ( ! isset($admin['id'])) ? $this->privileges[PRIV_USERS]['add'] : $thi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function ajax_save_admin()\n {\n try\n {\n $admin = json_decode($this->input->post('admin'), TRUE);\n\n $required_privileges = ( ! isset($admin['id']))\n ? $this->privileges[PRIV_USERS]['add']\n : $this->privileges[PRIV_USERS]['edit'];\n ...
[ "0.76535743", "0.6899037", "0.65846825", "0.6547215", "0.63032687", "0.626772", "0.6260336", "0.6244891", "0.6205258", "0.61891204", "0.6159675", "0.6138593", "0.61357903", "0.61307275", "0.6122593", "0.61026347", "0.60674185", "0.6067143", "0.6063716", "0.60415226", "0.60316...
0.77717924
0
[AJAX] Delete an admin record from the database. Required POST Parameters: int $_POST['admin_id'] The id of the record to be deleted. Outputs the operation result constant (AJAX_SUCCESS or AJAX_FAILURE).
[AJAX] Удаление записи администратора из базы данных. Требуемые параметры POST: int $_POST['admin_id'] Идентификатор записи, которую необходимо удалить. Возвращает константу результата операции (AJAX_SUCCESS или AJAX_FAILURE).
public function ajax_delete_admin() { try { if ($this->privileges[PRIV_USERS]['delete'] == FALSE) { throw new Exception('You do not have the required privileges for this task.'); } $this->load->model('admins_model'); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function ajax_delete_admin()\n {\n try\n {\n if ($this->privileges[PRIV_USERS]['delete'] == FALSE)\n {\n throw new Exception('You do not have the required privileges for this task.');\n }\n\n $result = $this->admins_model->delete($t...
[ "0.78739375", "0.7321121", "0.72987044", "0.71000844", "0.709412", "0.70926094", "0.70844084", "0.68444353", "0.6775209", "0.67712134", "0.6763673", "0.6667566", "0.6653514", "0.66530967", "0.6582119", "0.6577328", "0.6562205", "0.6550661", "0.6541647", "0.6510567", "0.650021...
0.81053394
0
[AJAX] Filter provider records with string key. Required POST Parameters: string $_POST['key'] The key string used to filter the records. Outputs a JSON encoded array back to client with the provider records.
[AJAX] Фильтрация записей поставщика по строковому ключу. Обязательные параметры POST: строка $_POST['key'] Строка ключа, используемая для фильтрации записей. Возвращает JSON-закодированный массив обратно клиенту с записями поставщика.
public function ajax_filter_providers() { try { if ($this->privileges[PRIV_USERS]['view'] == FALSE) { throw new Exception('You do not have the required privileges for this task.'); } $this->load->model('providers_model'); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function ajax_filter_providers()\n {\n try\n {\n if ($this->privileges[PRIV_USERS]['view'] == FALSE)\n {\n throw new Exception('You do not have the required privileges for this task.');\n }\n\n $key = $this->db->escape_str($this->in...
[ "0.7486641", "0.65593433", "0.64766973", "0.6176996", "0.61673355", "0.61202073", "0.6119429", "0.61063457", "0.60634875", "0.60569805", "0.583703", "0.564372", "0.5631328", "0.55947393", "0.549383", "0.54826653", "0.548068", "0.5463833", "0.54452205", "0.5438208", "0.5413731...
0.753094
0
[AJAX] Save (insert or update) a provider record into database. Required POST Parameters: array $_POST['provider'] A json encoded array that contains the provider data. If an 'id' value is provided then the record is going to be updated. Outputs the success constant 'AJAX_SUCCESS' so javascript knows that everything co...
[AJAX] Сохранить (вставить или обновить) запись поставщика в базе данных. Обязательные параметры POST: массив $_POST['provider'] — массив данных поставщика, закодированный в формате JSON. Если предоставлено значение 'id', запись будет обновлена. Выводится константа 'AJAX_SUCCESS', чтобы JavaScript знал, что всё заверши...
public function ajax_save_provider() { try { $this->load->model('providers_model'); $provider = json_decode($this->input->post('provider'), TRUE); $REQUIRED_PRIV = ( ! isset($provider['id'])) ? $this->privileges[PRIV_USERS]['add'] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function ajax_save_provider()\n {\n try\n {\n $provider = json_decode($this->input->post('provider'), TRUE);\n\n $required_privileges = ( ! isset($provider['id']))\n ? $this->privileges[PRIV_USERS]['add']\n : $this->privileges[PRIV_USERS][...
[ "0.7966978", "0.61653703", "0.6116948", "0.6060755", "0.60286593", "0.60188323", "0.6016447", "0.6010398", "0.5990813", "0.59470713", "0.5847922", "0.58290845", "0.58154106", "0.5770986", "0.5764165", "0.57610387", "0.5760119", "0.5726172", "0.57219553", "0.5711033", "0.56914...
0.8157016
0
[AJAX] Delete a provider record from the database. Required POST Parameters: int $_POST['provider_id'] The id of the record to be deleted. Outputs the operation result constant (AJAX_SUCCESS or AJAX_FAILURE).
[AJAX] Удаление записи поставщика из базы данных. Требуемые параметры POST: int $_POST['provider_id'] Идентификатор записи, которую необходимо удалить. Возвращает константу результата операции (AJAX_SUCCESS или AJAX_FAILURE).
public function ajax_delete_provider() { try { if ($this->privileges[PRIV_USERS]['delete'] == FALSE) { throw new Exception('You do not have the required privileges for this task.'); } $this->load->model('providers_model'); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function ajax_delete_provider()\n {\n try\n {\n if ($this->privileges[PRIV_USERS]['delete'] == FALSE)\n {\n throw new Exception('You do not have the required privileges for this task.');\n }\n\n $result = $this->providers_model->del...
[ "0.8102041", "0.74250126", "0.73519045", "0.6572824", "0.6302184", "0.6302178", "0.6295307", "0.62168235", "0.6210461", "0.6195094", "0.61883014", "0.61563724", "0.61461633", "0.61221975", "0.61032355", "0.6065988", "0.60487396", "0.60451275", "0.6024189", "0.6002483", "0.597...
0.834853
0
[AJAX] Filter secretary records with string key. Required POST Parameters: string $_POST['key'] The key string used to filter the records. Outputs a JSON encoded array back to client with the secretary records.
[AJAX] Фильтрация записей секретарей по строковому ключу. Обязательные параметры POST: строка $_POST['key'] Строка ключа, используемая для фильтрации записей. Возвращает JSON-кодированный массив обратно клиенту с записями секретарей.
public function ajax_filter_secretaries() { try { if ($this->privileges[PRIV_USERS]['view'] == FALSE) { throw new Exception('You do not have the required privileges for this task.'); } $this->load->model('secretaries_model'); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function ajax_filter_secretaries()\n {\n try\n {\n if ($this->privileges[PRIV_USERS]['view'] == FALSE)\n {\n throw new Exception('You do not have the required privileges for this task.');\n }\n\n $key = $this->db->escape_str($this->...
[ "0.746233", "0.62500054", "0.6213644", "0.6210078", "0.6132269", "0.6030198", "0.5831378", "0.5795832", "0.5727946", "0.5613367", "0.56132704", "0.5555669", "0.54895186", "0.5482535", "0.54824173", "0.5474881", "0.53405625", "0.53405625", "0.53326076", "0.53326076", "0.533260...
0.7547917
0
[AJAX] Save (insert or update) a secretary record into database. Required POST Parameters: array $_POST['secretary'] A json encoded array that contains the secretary data. If an 'id' value is provided then the record is going to be updated. Outputs the success constant 'AJAX_SUCCESS' so JavaScript knows that everything...
[AJAX] Сохранение (вставка или обновление) записи секретаря в базе данных. Требуемые параметры POST: массив $_POST['secretary'] — массив данных секретаря, закодированный в формате JSON. Если указано значение 'id', запись будет обновлена. Выводится константа 'AJAX_SUCCESS', чтобы JavaScript знал, что всё завершилось усп...
public function ajax_save_secretary() { try { $this->load->model('secretaries_model'); $secretary = json_decode($this->input->post('secretary'), TRUE); $REQUIRED_PRIV = ( ! isset($secretary['id'])) ? $this->privileges[PRIV_USERS]['add'] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function ajax_save_secretary()\n {\n try\n {\n $secretary = json_decode($this->input->post('secretary'), TRUE);\n\n $required_privileges = ( ! isset($secretary['id']))\n ? $this->privileges[PRIV_USERS]['add']\n : $this->privileges[PRIV_USE...
[ "0.7906423", "0.6305706", "0.6288109", "0.6261182", "0.62342733", "0.6146389", "0.607766", "0.6066038", "0.60127896", "0.60033995", "0.5910964", "0.5877933", "0.5835594", "0.5773655", "0.5707818", "0.5706929", "0.56920815", "0.56836987", "0.56801", "0.56633073", "0.5659366", ...
0.8076846
0
[AJAX] Delete a secretary record from the database. Required POST Parameters: int $_POST['secretary_id'] The id of the record to be deleted. Outputs the operation result constant (AJAX_SUCCESS or AJAX_FAILURE).
[AJAX] Удаление записи секретаря из базы данных. Требуемые параметры POST: int $_POST['secretary_id'] Идентификатор записи для удаления. Возвращает константу результата операции (AJAX_SUCCESS или AJAX_FAILURE).
public function ajax_delete_secretary() { try { if ($this->privileges[PRIV_USERS]['delete'] == FALSE) { throw new Exception('You do not have the required privileges for this task.'); } $this->load->model('secretaries_model'); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function ajax_delete_secretary()\n {\n try\n {\n if ($this->privileges[PRIV_USERS]['delete'] == FALSE)\n {\n throw new Exception('You do not have the required privileges for this task.');\n }\n\n $result = $this->secretaries_model->...
[ "0.8105235", "0.70056814", "0.69819385", "0.68527234", "0.67832553", "0.6691004", "0.6613189", "0.6612409", "0.6571595", "0.65133816", "0.6499424", "0.64963615", "0.6471677", "0.6459639", "0.64582604", "0.64433753", "0.6435985", "0.6435298", "0.6403007", "0.6364566", "0.63565...
0.8319652
0
[AJAX] Save a setting or multiple settings in the database. This method is used to store settings in the database. It can be either system or user settings, one or many. Use the $_POST variables accordingly. Required POST Parameters: array $_POST['settings'] Contains an array with settings. bool $_POST['type'] Determin...
[AJAX] Сохранить настройку или несколько настроек в базе данных. Этот метод используется для хранения настроек в базе данных. Он может быть либо системными, либо пользовательскими настройками, одной или несколькими. Используйте переменные $_POST соответствующим образом. Обязательные параметры POST: массив $_POST['setti...
public function ajax_save_settings() { try { if ($this->input->post('type') == SETTINGS_SYSTEM) { if ($this->privileges[PRIV_SYSTEM_SETTINGS]['edit'] == FALSE) { throw new Exception('You do not have the required priv...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function ajax_save_setting()\n {\n $_POST = $this->http_helper->convert_json_body_to_post();\n $key_rules = array(\n 'checked' => 'bool',\n 'setting' => 'key',\n );\n\n $state_data = $this->state_manager->set_post_data($key_rules);\n\n $this->s...
[ "0.7742556", "0.7723461", "0.75931096", "0.7559053", "0.74952555", "0.7346378", "0.73447496", "0.7335731", "0.7320461", "0.7166108", "0.71362126", "0.70823646", "0.7059597", "0.7033544", "0.70173496", "0.69932926", "0.696771", "0.691666", "0.69010586", "0.6893411", "0.6882392...
0.80719143
0
[AJAX] Change system language for current user. The language setting is stored in session data and retrieved every time the user visits any of the system pages. Required POST Parameters: string $_POST['language'] Selected language name.
[AJAX] Изменение системного языка для текущего пользователя. Настройка языка сохраняется в данных сессии и загружается при каждом посещении пользователем любой из страниц системы. Обязательные параметры POST: строка $_POST['language'] Название выбранного языка.
public function ajax_change_language() { try { // Check if language exists in the available languages. $found = FALSE; foreach ($this->config->item('available_languages') as $lang) { if ($lang == $this->input->post('language')) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function ajax_change_language()\n {\n try\n {\n // Check if language exists in the available languages.\n $found = FALSE;\n\n foreach (config('available_languages') as $lang)\n {\n if ($lang == $this->input->post('language'))\n ...
[ "0.75576556", "0.74197245", "0.7163292", "0.70775586", "0.7062454", "0.6911272", "0.68680376", "0.6840684", "0.68329036", "0.68041515", "0.67863226", "0.6781271", "0.67661434", "0.67388797", "0.6731702", "0.6714058", "0.6649243", "0.6646124", "0.66440016", "0.66331714", "0.65...
0.7826601
0
This method will return a list of the available google calendars. The user will need to select a specific calendar from this list to sync his appointments with. Google access must be already granted for the specific provider. Required POST Parameters: string $_POST['provider_id'] Provider record id.
Этот метод вернет список доступных календарей Google. Пользователю необходимо выбрать конкретный календарь из этого списка для синхронизации его встреч. Доступ к Google должен быть уже предоставлен для конкретного провайдера. Обязательные параметры POST: строка $_POST['provider_id'] Идентификатор записи провайдера.
public function ajax_get_google_calendars() { try { $this->load->library('google_sync'); $this->load->model('providers_model'); if ( ! $this->input->post('provider_id')) { throw new Exception('Provider id is required in order ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function ajax_get_google_calendars()\n {\n try\n {\n if ( ! $this->input->post('provider_id'))\n {\n throw new Exception('Provider id is required in order to fetch the google calendars.');\n }\n\n // Check if selected provider has s...
[ "0.7752308", "0.73287326", "0.7029883", "0.6626016", "0.6558336", "0.63406163", "0.63019896", "0.6262247", "0.6232643", "0.6228832", "0.6151866", "0.60444254", "0.6032151", "0.6031333", "0.60031044", "0.5958557", "0.5955433", "0.5925683", "0.5901295", "0.58749175", "0.5852477...
0.79970163
0
When the current user marks a bean as a favorite, the user is also subscribed to the bean if not already following the record. Unfavoriteing a bean results in no change to the subscription (i.e., if the user is subscribed to the record then the subscription remains; if the user is not subscribed to the record then no n...
Когда текущий пользователь отмечает бобовую косточку как избранную, пользователь также подписывается на бобовую косточку, если не подписан уже на запись. Отмена отметки "избранное" не влияет на подписку (то есть, если пользователь подписан на запись, подписка остается; если пользователь не подписан на запись, новая под...
protected function subscribeAfterFavorite() { if (!empty($this->id)) { // reload the bean so that we're working with the newest state of the record before taking any other action $this->retrieve($this->id); // only subscribe to the associated bean if favorite-ing the rec...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function favorite(){\n if($this->getActiveUser()){\n $this->redirect('favorite', 'favorite');\n exit;\n }\n }", "public function isUnsubscribed(): bool;", "public function favorite()\n {\n $attributes = ['user_id' => auth()->id()];\n if (! $this->favorite...
[ "0.6018616", "0.5775784", "0.56780386", "0.5642572", "0.56286347", "0.5600915", "0.5577318", "0.55258787", "0.55252534", "0.54597926", "0.54332966", "0.54173076", "0.53966373", "0.53704125", "0.5357089", "0.5344051", "0.5337502", "0.5326839", "0.53256", "0.5303454", "0.529183...
0.8282126
0
addProductLevel to add level and change status of product by the help of qr bar code
addProductLevel для добавления уровня и изменения статуса продукта с помощью QR-кода
public function addProductLevel(){ $user = $this->customerAuth(); if(empty($user)){ $this->response(['status'=>false,'message'=>'Forbidden access.'],403); } $data = $this->getInput(); if(($this->input->method() != 'post') || empty($data)){ Utils::response...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function wc_increase_stock_levels($order_id)\n {\n }", "function prod_rawmix() {\n $level = $this->session->userdata('level');\n /////////////////////////////////////////////////\n $load['Title'] = \"Produksi Semen Padang\";\n $load['li_active'] = $this->plant_link->plant_produc...
[ "0.5972991", "0.57132363", "0.5697545", "0.56658584", "0.56270516", "0.5595368", "0.5590587", "0.5581043", "0.5559989", "0.554489", "0.55379206", "0.54603946", "0.5454732", "0.5441195", "0.53964", "0.5394462", "0.5382133", "0.5349333", "0.52930844", "0.5292762", "0.5292537", ...
0.7125523
0
logout user get logged out by using header token
logout user выходит из системы, используя токен заголовка
public function logout() { if($this->request->method != 'get'){ Utils::response(['status'=>false,'message'=>'Bad request.'],400); } if(empty($this->request->token)){ Utils::response(['status'=>false,'message'=>'Bad request.'],400); } $this->load->model...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function logout($token) {\n\t\n}", "public function logout() {\n $new_token = sha1(TOKEN_SALT.$this->user->user_name.Utils::generate_random_string());\n $data = Array(\"token\" => $new_token);\n DB::instance(DB_NAME)->update(\"users\", $data, \"WHERE token = '\".$this->user->token.\"'\");\n\...
[ "0.8164365", "0.7829093", "0.77340895", "0.7730967", "0.77257943", "0.7699044", "0.76934206", "0.7692894", "0.76839966", "0.7682981", "0.7680537", "0.7675568", "0.7668568", "0.7668515", "0.7638447", "0.7634917", "0.76324743", "0.76218164", "0.76142895", "0.7578808", "0.755946...
0.7883618
1
List Packaging and Ship out Order request at Packaging Supervisor API Strats
Запрос на упаковку и отгрузку заказа на упаковку в API Стратегии Мониторинга упаковщика
public function ListPackagingandShipOutOrderRequestAtPackagingSupervisor(){ $user = $this->customerAuth(); if(empty($user)){ $this->response(['status'=>false,'message'=>'Forbidden access.'],403); } $data = $this->getInput(); if(($this->input->method() != 'get')){ ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function PackagingOrderForShipOut(){\n $user = $this->customerAuth();\n if(empty($user)){\n $this->response(['status'=>false,'message'=>'Forbidden access.'],403);\n }\n $data = $this->getInput();\n if(($this->input->method() != 'post') || empty($data)){ \n ...
[ "0.6491715", "0.64159757", "0.63022524", "0.6178751", "0.6140969", "0.6090146", "0.6073319", "0.58567363", "0.58560365", "0.584142", "0.58080155", "0.57994163", "0.5799067", "0.5787074", "0.5765703", "0.575827", "0.5757393", "0.5757125", "0.5757093", "0.5745067", "0.5742919",...
0.72850525
0
Determine if a triplet is a pythagorean triplet
Определить, является ли тройка пифагоровой triplet
function isPythagoreanTriplet($triplet){ $a = $triplet[0]; $b = $triplet[1]; $c = sqrt(pow($a, 2) + pow($b, 2)); $test1 = False; $test2 = False; if($a < $b && $b < $c){ $test1 = True; } if(filter_var($c, FILTER_VALIDATE_INT)){ $test2 = True; } return $test1 && $test2; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function pythagoreanTriplets($n){\n $i = 0; $j = 0; $iWorks = True;\n while($iWorks){\n $jWorks = True; $j = 0;\n while($jWorks){\n if(pow($i, 2) > $n){ $iWorks = False; }\n if(pow($i, 2) + pow($j, 2) < $n){\n if(isPythagoreanTriplet([$i, $j])){ printTriplet([$i, $j]); }\n ...
[ "0.69098157", "0.59118366", "0.5877424", "0.5799258", "0.5555594", "0.5402557", "0.50960726", "0.5089764", "0.5047719", "0.50061285", "0.49181226", "0.48962379", "0.48840716", "0.48743272", "0.48303756", "0.481089", "0.4804328", "0.47936594", "0.47484845", "0.47319663", "0.47...
0.8667554
0
Find all the pythagorean triplets below n
Найдите все пифагоровы тройки ниже n
function pythagoreanTriplets($n){ $i = 0; $j = 0; $iWorks = True; while($iWorks){ $jWorks = True; $j = 0; while($jWorks){ if(pow($i, 2) > $n){ $iWorks = False; } if(pow($i, 2) + pow($j, 2) < $n){ if(isPythagoreanTriplet([$i, $j])){ printTriplet([$i, $j]); } } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function find_valid_combinations2($n) {\n // 1 *2 *3 4 *5 6\n // 1 *2 *3 4 *5 *6 7\n // 1 *2 *3 4 *5 6 *7 8\n // 1 *2 *3 4 *5 *6 7 *8 9\n // 1 2* 3* 4 5* 6* 7 8* 9* 10\n // 1 2* 3* 4 5* 6* 7 8* 9* 10 11\n // 1 2* 3 4* 5* 6 7* 8* 9 10* 11\n // 1 2* 3 4* 5* 6 7* 8* 9 10* 11* 12\n // 1 2* 3...
[ "0.6593665", "0.6391962", "0.6362944", "0.61097246", "0.60625494", "0.60552", "0.5976218", "0.588709", "0.5843971", "0.58254194", "0.5755536", "0.56492776", "0.5649136", "0.5621995", "0.5592322", "0.5538195", "0.5526342", "0.5514544", "0.5429171", "0.5426287", "0.54219055", ...
0.8536808
0
Get customer address by customer ID 1.2 findPostalAddressesByCustomerNumber
Получить адрес клиента по идентификатору клиента 1.2 findPostalAddressesByCustomerNumber
public function findPostalAddressesByCustomerNumber($customerId) { return ' { countryCode:"" postalCode:"212015442" street:"1001 CATHEDRAL STREET" street2:"4TH FLOOR" street3:"" city:"BALTIMORE" state:"MD" county:"BALTIMORE CITY" firstName:"GEORGE" middleInitial:"" lastName:"COSTANZA" companyName:"V...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_address($customer_id, $main_address=-1)\n {\n $sql = \"SELECT ca.id\n ,ca.address\n ,ca.province_id\n ,p.name AS province\n ,p.type AS province_type\n ,ca.district_id\n ...
[ "0.743031", "0.6979194", "0.69291157", "0.69133687", "0.6812074", "0.6689131", "0.66760147", "0.66737705", "0.6616303", "0.6615725", "0.65878147", "0.65874493", "0.65710235", "0.6562798", "0.65418166", "0.65244627", "0.6487547", "0.64848703", "0.6459005", "0.6447397", "0.6437...
0.71579117
1
Find customer email by contact ID, orgId and stack name 1.12 findEmailAddressbyContactIdOrgIdStackName
Найти электронную почту клиента по идентификатору контакта, orgId и имени стека 1.12 findEmailAddressbyContactIdOrgIdStackName
public function findEmailAddressByContactIdOrgIdStackName($contactId, $orgId, $stackName) { return '{ "emailAddress": GCOSTANZA@YAHOO.COM "emailId": "000020782464" }'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ciniki_customers_emailSearch($ciniki) {\n // \n // Find all the required and optional arguments\n // \n ciniki_core_loadMethod($ciniki, 'ciniki', 'core', 'private', 'prepareArgs');\n $rc = ciniki_core_prepareArgs($ciniki, 'no', array(\n 'tnid'=>array('required'=>'yes', 'blank'=>'no...
[ "0.6612518", "0.64574826", "0.6454743", "0.6226613", "0.6162004", "0.60820794", "0.6077973", "0.6017788", "0.5969637", "0.5917434", "0.59037954", "0.5883115", "0.586556", "0.5859083", "0.58578575", "0.58506405", "0.5802866", "0.57612234", "0.5749035", "0.5716529", "0.5713861"...
0.704525
0
3 Subscription Services Find active subscriptions by customer number 3.1 findActiveSubscriptionsByCustomerNumber
3 Подписки Узнайте активные подписки по номеру клиента 3.1 findActiveSubscriptionsByCustomerNumber
public function findActiveSubscriptionsByCustomerNumber($customerNumber) { return '{ temp:false circStatus:"C" issuesRemaining:0 memberCat:null memberOrg:"" renewMethod:"A" term:12 termNumber:1 subType:"LIFE" purchaseOrder Number:"10823896" startDate:"2007-09-...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ciniki_subscriptions_searchCustomers($ciniki) {\n // \n // Find all the required and optional arguments\n // \n ciniki_core_loadMethod($ciniki, 'ciniki', 'core', 'private', 'prepareArgs');\n $rc = ciniki_core_prepareArgs($ciniki, 'no', array(\n 'tnid'=>array('required'=>'yes', 'bla...
[ "0.7304615", "0.70870394", "0.6904218", "0.68966955", "0.6701588", "0.6593555", "0.65271807", "0.65030336", "0.644397", "0.6405597", "0.6351217", "0.62900513", "0.62007415", "0.61833215", "0.61740565", "0.6162027", "0.6101705", "0.60469794", "0.60444504", "0.6037251", "0.6017...
0.7351169
0
Find subscriptions by customer number 3.2 findSubscriptionsByCustomerNumber
Найдите подписки по номеру клиента 3.2 findSubscriptionsByCustomerNumber
public function findSubscriptionsByCustomerNumber($customerNumber) { return '{ temp:false circStatus:"C" issuesRemaining:0 memberCat:null memberOrg:"" renewMethod:"A" term:12 termNumber:1 subType:"LIFE" purchaseOrderNumber: "10823896" startDate:"2007-09-01 00:00:0...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ciniki_subscriptions_searchCustomers($ciniki) {\n // \n // Find all the required and optional arguments\n // \n ciniki_core_loadMethod($ciniki, 'ciniki', 'core', 'private', 'prepareArgs');\n $rc = ciniki_core_prepareArgs($ciniki, 'no', array(\n 'tnid'=>array('required'=>'yes', 'bla...
[ "0.71519136", "0.71081305", "0.66318524", "0.660707", "0.6415751", "0.63586247", "0.62657064", "0.6143519", "0.61235535", "0.6100589", "0.60867476", "0.6030935", "0.6023184", "0.5940856", "0.5924475", "0.590526", "0.5810239", "0.57985777", "0.5745882", "0.573645", "0.57183576...
0.74725944
0
4 Order Services 5 Data Services Find login aggregate data for a given username and password 5.3 findLoginAggregateData
4 Order Services 5 Data Services Найти агрегатные данные входа для заданного имени пользователя и пароля 5.3 findLoginAggregateData
public function findLoginAggregateData($username, $password) { return '{ "accounts" : [ { "role": " ", "authType": "L", "password": "BOSC0", "username": "GCONSTANZ1" "portalCode": { "authGroup": "PSI" } "customerNumber": "000000007426", "cviNbr": "...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getByLogin( $username, $password )\n\n {\n\n\n\n \tif ( !empty($username) && !empty($password))\n\n \t{\n\n\t\t\n\n\t\t\t$a = strpbrk($username,\"@\");\n\n\t\n\n\t\t\tif($a){\n\n\t\t\t\t$qString = \" customers.email = '\" . $username . \"' \";\n\n\t\t\t}else{\n\n\t\t\t\t$qString = \" customers.u...
[ "0.63922006", "0.6367003", "0.6337384", "0.63024765", "0.6257861", "0.6217897", "0.6185288", "0.6182353", "0.6130804", "0.60766584", "0.6075183", "0.6063309", "0.60556424", "0.6052024", "0.5992376", "0.59161085", "0.59161085", "0.59120184", "0.5896333", "0.58843356", "0.58593...
0.7483774
0
Find the customer's list signups using their email address. 7.3 findCustomerListSignupsByEmailAddress
Найдите список подписок клиента с использованием их адреса электронной почты. 7.3 findCustomerListSignupsByEmailAddress
public function findCustomerListSignupsByEmailAddress($email) { return '{ "status": "A", "referenceNumber": "", "customerNumber": "000012345678", "emailAddress": "GCOSTANZA@VANDELAYINSTRUSTRIES.COM", "addressCode": "", "listCode": "5MIN", "emailId": "000001700000", "confirmationDate": null, "dateAdd...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ciniki_customers_emailSearch($ciniki) {\n // \n // Find all the required and optional arguments\n // \n ciniki_core_loadMethod($ciniki, 'ciniki', 'core', 'private', 'prepareArgs');\n $rc = ciniki_core_prepareArgs($ciniki, 'no', array(\n 'tnid'=>array('required'=>'yes', 'blank'=>'no...
[ "0.6396022", "0.62307906", "0.61471623", "0.6115728", "0.6096692", "0.6046261", "0.60421884", "0.60092986", "0.59994435", "0.5998398", "0.5947318", "0.5944641", "0.5917839", "0.5905208", "0.5893268", "0.5892676", "0.5885397", "0.5858069", "0.5857776", "0.5854753", "0.5848645"...
0.7553826
0
8 Email Services Get email fulfillment history for a given customer ID 8.1 findEmailFulfillmentHistoryByCustomerNumber
8 Электронная почта Получить историю выполнения электронной почты для заданного идентификатора клиента 8.1 findEmailFulfillmentHistoryByCustomerNumber
public function findEmailFulfillmentHistoryByCustomerNumber($customerNumber) { return '{ customerNumber: "000060056499" itemNumber: "CLB" emailAddressId: "000029742943" dateSent: "2014-06-27 07:04:48" emailSubject: "CLB603 IFL47 (93665/111579)" sentStatus: "D" bounceReason: "" }'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getHistoryBy(array $conditions, ECash_CustomerHistory $history = NULL);", "public function actionGetOrderHistory()\n {\n $amData = Common::checkRequestType();\n $amResponse = $amReponseParam = [];\n\n // Check required validation for request parameter.\n $amRequired...
[ "0.58583975", "0.5793421", "0.5704636", "0.5648439", "0.5586533", "0.55480444", "0.5449568", "0.54216444", "0.5416774", "0.53974384", "0.53705513", "0.5348602", "0.5331654", "0.53225005", "0.5312298", "0.52959865", "0.52800924", "0.52448386", "0.52253175", "0.5225148", "0.520...
0.7523074
0
Find list facts by customer number 12.2 findListFactsByCustomerNumber
Найдите список фактов по номеру клиента 12.2 findListFactsByCustomerNumber
public function findListFactsByCustomerNumber($customerNumber) { return '{ customerNumber: "000073019625" owningOrganization: "400" listCode: "DR" emailID: "000042545917" publicationCount: 0 firstPurchaseDate: null firstSignupDate: "2015-03-14 00:00:00.0" lastEmailClickDate: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function findAffiliateFactsByCustomerNumber($customerNumber)\n {\n return '{\n customerNumber: \"000541908411\"\n owningOrganization: \"400\"\n activeListCodes: null\n backEndPublicationCodes: null\n frontEndPublicationCodes: null\n publicationCount: 0\n remainingLiabilityAmou...
[ "0.6507642", "0.6377426", "0.6344518", "0.6236071", "0.6133139", "0.5885976", "0.5842583", "0.5788361", "0.5766074", "0.57224625", "0.5721436", "0.5711434", "0.56895447", "0.56165904", "0.55645484", "0.54916203", "0.54737717", "0.5464971", "0.5447136", "0.5445573", "0.5443194...
0.7435609
0
Find affiliate tags by customer number 12.3 findAffiliateTagsByCustomerNumber
Найдите теги партнера по номеру клиента 12.3 findAffiliateTagsByCustomerNumber
public function findAffiliateTagsByCustomerNumber($customerNumber) { return '{ owningOrg: null customerNumber: "000069953332" emailAddress: "PUBSVS@PUBSVS.COM" tagName: "BUZZER" tagValue: "TEST 123" }'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function create_tagging ($owner_id, $label, $customers_id, $delete)\n {\n log_message('debug', '_customer/create_tagging');\n log_message('debug', '_customer/create_tagging:: [1] owner_id= '.$owner_id.', label = '.$label.' customers_in_tag = ' . json_encode($customers_id) . 'is+delete='.$delete);\...
[ "0.5823126", "0.54241526", "0.53598833", "0.52154094", "0.52106357", "0.51904374", "0.5186374", "0.51496094", "0.5139773", "0.51214504", "0.51181847", "0.51155317", "0.5080754", "0.50744116", "0.505315", "0.5015961", "0.50107425", "0.49961424", "0.49679184", "0.4962846", "0.4...
0.7286569
0
Retrieve affiliate tagging information based off of an email address and owning org 12.4 findAffiliateTagsByEmailAddressOwningOrg
Получить информацию о тегах аффилиата на основе адреса электронной почты и владельца организации 12.4 findAffiliateTagsByEmailAddressOwningOrg
public function findAffiliateTagsByEmailAddressOwningOrg($email, $owningOrg) { return '{ owningOrg: null customerNumber: "000069953332" emailAddress: "AGANDHI@PUBSVS.COM" tagName: "BUZZER" tagValue: "TEST 123" }'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createAffiliateTags($customerId, $email, $tagName, $tagValue, $owningOrg = null)\n {\n return '{\n \"customerNumber\": \"000069953332\",\n \"emailAddress\": \"AGANDHI@PUBSVS.COM\",\n \"tagName\": \"BUZZER\",\n \"tagValue\": \"TEST 123\",\n \"owningOrg\" : \"300\"\n}';\n ...
[ "0.5624492", "0.548468", "0.5346136", "0.52012104", "0.50790626", "0.50595963", "0.5040672", "0.50131655", "0.49486387", "0.49179453", "0.4892606", "0.4873513", "0.48492327", "0.48134992", "0.47158006", "0.46731102", "0.46473905", "0.46421814", "0.4635555", "0.462688", "0.461...
0.76964045
0
Return booking history (for one or more bookings at once).
Возврат истории бронирований (для одного или нескольких бронирований сразу).
public function history($params, $bookings);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function booking_history($id,$sortBy){\n\t\t\t\n\t\t$sql=\"SELECT bookings.id as bookid,bookings.host,bookings.student,bookings.booking_from,bookings.booking_to,bookings.status, hfa_one.lname as hlname,hfa_one.email as hemail,\n\t\t\thfa_one.suburb,hfa_one.street,hfa_one.state,hfa_one.postcode, sha_one.title as `s...
[ "0.688978", "0.68704975", "0.68362015", "0.6659967", "0.6539978", "0.6419488", "0.6322043", "0.62731254", "0.62305564", "0.6198612", "0.6181943", "0.61741185", "0.61695087", "0.6162812", "0.6139367", "0.60910434", "0.608912", "0.60704416", "0.6062548", "0.6036184", "0.5981542...
0.7544923
0
Get a collection of referrers from CalendarInterface implementations.
Получите коллекцию referrers из реализаций CalendarInterface.
public function getCalendarReferrers();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getReferrers()\n {\n return $this->referrers;\n }", "public function getValidReferrers()\n {\n // TODO: Implement getValidReferrers() method.\n }", "public static function getReferences();", "protected function getReferences() : array {}", "public function getRefCo...
[ "0.6764458", "0.65369207", "0.61376995", "0.6006047", "0.60014737", "0.5918268", "0.5892808", "0.5888009", "0.5860853", "0.5860853", "0.58525366", "0.5830505", "0.5826766", "0.578996", "0.5759197", "0.5724578", "0.57219994", "0.5702122", "0.56960785", "0.5684971", "0.5684852"...
0.8350222
0
Add a referrer from a CalendarReferencesInterface.
Добавьте реферера из CalendarReferencesInterface.
public function addCalendarReferrer(CalendarReferencesInterface $node);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addReferrer($referrer)\n {\n if (null === $this->referrers) {\n $this->referrers = new ArrayCollection();\n }\n\n $this->referrers->add($referrer);\n\n return $this;\n }", "public function addResReference(ResReferenceDescriptorInterface $resReference)\...
[ "0.6017991", "0.5604212", "0.55462164", "0.55302066", "0.54442096", "0.53271663", "0.53028315", "0.5201031", "0.51979375", "0.5192575", "0.5188233", "0.51584387", "0.5128895", "0.5117786", "0.5053548", "0.49827382", "0.49441934", "0.49208862", "0.4844664", "0.48422888", "0.48...
0.78495985
0
Remove a referrer from a CalendarReferencesInterface.
Удалить реферер из интерфейса CalendarReferencesInterface.
public function removeCalendarReferrer(CalendarReferencesInterface $node);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function removeRelation($customerId, $referralId);", "public function addCalendarReferrer(CalendarReferencesInterface $node);", "function removeReference($ref) {\n\t\treturn sql_query(\"DELETE FROM \".$this->table_ref.\" WHERE ref=\".intval($ref));\n\t}", "public function removeReference(ReferrersInte...
[ "0.6321597", "0.5787799", "0.5697818", "0.56927556", "0.55788195", "0.55713147", "0.55628544", "0.54658276", "0.54547036", "0.5452813", "0.5446448", "0.5351571", "0.533837", "0.53083396", "0.52997464", "0.5283541", "0.52654594", "0.52654374", "0.5256304", "0.52485824", "0.522...
0.78226924
0
Test if a referrer from a CalendarInterface exists.
Проверить, существует ли реферер из CalendarInterface.
public function hasCalendarReferrer(CalendarInterface $node);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function existsInReferer()\n {\n return $this->parameterBackURL !== null;\n }", "public function exists(LinkInterface $link);", "function event_exists($calid)\n{\n return retrieve_event($calid);\n}", "public function hasActivity(ActivityInterface $activity);", "function has_contract($...
[ "0.5572952", "0.55083495", "0.53847843", "0.5346847", "0.53379405", "0.52613735", "0.52341276", "0.52288127", "0.5218015", "0.5210693", "0.5210693", "0.5169834", "0.5152432", "0.51459", "0.5131402", "0.5125629", "0.50558364", "0.5054665", "0.5050065", "0.50482404", "0.5044129...
0.7770877
0
Create a "null" cache (for annotations) depending on symfony/cache version
Создайте "нулевой" кэш (для аннотаций) в зависимости от версии symfony/cache
public static function createNullCache(): CacheInterface { // >= Symfony 4.3 if (class_exists('Symfony\Component\Cache\Psr16Cache')) { return new Psr16Cache(new NullAdapter()); } return new NullCache(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDefaultCacheFactory(): Factory|null;", "public function createCache();", "protected function createCache() {\n if(is_null(config('doctrine.cache.provider'))) return null;\n\n\t\t\t$cacheProvider = config('doctrine.cache.provider');\n\n $supportedProviders = config('doct...
[ "0.66620815", "0.66564304", "0.6585796", "0.6564048", "0.6407106", "0.63258946", "0.6311007", "0.62943554", "0.62873465", "0.62768024", "0.6247515", "0.6245453", "0.6203421", "0.6182705", "0.6180094", "0.61161476", "0.6109242", "0.6072448", "0.60498303", "0.60418195", "0.6024...
0.71883094
0
Computes and returns the 4D simplex noise for the given coordinates in 4D space
Вычисляет и возвращает 4D-шум симплекса для заданных координат в 4D-пространстве
public function noise(float $x, float $y, float $z, float $w) : float{ $x += $this->offset_x; $y += $this->offset_y; $z += $this->offset_z; $w += self::$offset_w; // Noise contributions from the five corners $n0 = 0.0; $n1 = 0.0; $n2 = 0.0; $n3 = 0.0; $n4 = 0.0; // Skew the (x,y,z,w) space to de...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getNoise(float $x, float $y, float $z, float $w) : float{\n\t\treturn self::getInstance()->noise($x, $y, $z, $w);\n\t}", "public function make_noise();", "public static function getNoise3d(float $xin, float $yin = 0.0, float $zin = 0.0) : float{\n\t\treturn self::getInstance()->noise3d($...
[ "0.6252045", "0.5598332", "0.5432117", "0.51442313", "0.49585986", "0.46763954", "0.46456006", "0.46151048", "0.4525907", "0.4505212", "0.44522285", "0.43858692", "0.43653566", "0.42778572", "0.4257891", "0.42510915", "0.42470077", "0.42205846", "0.40223494", "0.40161267", "0...
0.751862
0
Update the specified resource in storage. \App\Http\Requests\SampleSiteRequest $request
Обновить указанный ресурс в хранилище. \App\Http\Requests\SampleSiteRequest $request
public function update(SampleSiteRequest $request, SampleSite $sample_site) { $request->persist($sample_site); return redirect()->route('sample_sites.index'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function update(Request $request, Sample $sample)\n {\n //\n }", "public function samples_update(Request $request)\n {\n\n\n $sample= Sample::find($request->sample_id);\n $sample->client_name = $request->clinet_name;\n $sample->sample_details = $request->sample_det...
[ "0.7783943", "0.71497995", "0.69589317", "0.67545074", "0.6724753", "0.65191", "0.6464161", "0.63647074", "0.63647074", "0.63629305", "0.63629305", "0.63295716", "0.6314106", "0.63132215", "0.63030577", "0.63026136", "0.6227359", "0.6194152", "0.6193793", "0.6184678", "0.6184...
0.7508875
1
create delete token from cookie controller
create delete token from cookie controller
public function deleteToken(){ $jsonWebTokensDeleteTokenFromCookie = new JsonWebTokensDeleteTokenFromCookie( $this->configId, $this->workDirectory, $this->serviceLocator, $this->debugger ); // delete token from cookie $jsonWebTokensDeleteTokenFromCookie->deleteTokenFromCookie( ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function deleteToken() {\n if ($this->checkAuth()) {\n $postedData = $this->input->post();\n $this->mToken->deleteToken($postedData);\n }\n }", "protected function delete_token() {\n\t\tparent::delete_token();\n\n\t\t$this->user_options->delete( self::OPTION_REDIRECT...
[ "0.7281533", "0.6845371", "0.68109584", "0.6736204", "0.6697034", "0.66427547", "0.6616253", "0.65542287", "0.64871603", "0.6411526", "0.6401451", "0.6378648", "0.63677096", "0.6350828", "0.62919724", "0.6273466", "0.62637925", "0.6241386", "0.623918", "0.6229258", "0.6228229...
0.8073001
0
Lists all BannerType entities.
Список всех сущностей BannerType.
public function indexAction() { $em = $this->getDoctrine()->getManager(); $bannerTypes = $em->getRepository('UbidElectricityBundle:BannerType')->findAll(); return $this->render('UbidElectricityBundle:BannerType:index.html.twig', array( 'bannerTypes' => $bannerTypes, )); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function actionIndex()\n {\n $searchModel = new BannerSearch();\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams);\n\n return $this->render('index', [\n 'searchModel' => $searchModel,\n 'dataProvider' => $dataProvider,\n ]);\n }",...
[ "0.6181758", "0.5900111", "0.58942133", "0.5770132", "0.56765723", "0.56646496", "0.5642534", "0.5605625", "0.5592033", "0.5572603", "0.5564826", "0.55521405", "0.5520019", "0.55030435", "0.54934657", "0.5462419", "0.5435372", "0.5431273", "0.54268974", "0.54126966", "0.54019...
0.7008709
0
Creates a form to delete a BannerType entity.
Создает форму для удаления сущности BannerType.
private function createDeleteForm(BannerType $bannerType) { return $this->createFormBuilder() ->setAction($this->generateUrl('bannertype_delete', array('id' => $bannerType->getId()))) ->setMethod('DELETE') ->getForm() ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createNewDeleteAdForm(): DeleteAdForm;", "private function createDeleteForm(ConfigTypeGenerationSociete $configTypeGenerationSociete)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('configtypegenerationsociete_delete', array('id' => $configTypeGenera...
[ "0.7111542", "0.65555674", "0.6464606", "0.64566535", "0.6440967", "0.64408225", "0.6405885", "0.6235219", "0.62062186", "0.61823404", "0.618144", "0.61771435", "0.61752707", "0.6141574", "0.6119071", "0.61113876", "0.6103547", "0.60890174", "0.60847306", "0.6073681", "0.6057...
0.8106969
0
function two use regex to get entire domain
Функция two использует регулярные выражения для получения всего домена
function preg_fulldomain ($site_url) { return preg_replace('/^([a-z0-9][a-z0-9\-]{1,63})\.[a-z\.]{2,6}$/i','$1',$domain); //preg_replace('/^((http(s)?:\/\/)?([^\/]+)(\/)?)(.*)/','$1',$domain); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function preg_full_domain ($str_url = '') {\n $_domain = '';\n if(!$str_url){\n return $_domain;\n }\n $_domain = preg_replace('/^((http(s)?:\\/\\/)?([^\\/]+)?)(.*)/','$1',$str_url);\n return $_domain;\n }", "function get_domain($string)\r\n{\r\n $clean = preg_re...
[ "0.80162674", "0.7538452", "0.7514561", "0.7502899", "0.7469443", "0.7447986", "0.7401362", "0.7244826", "0.7150534", "0.7119173", "0.71104825", "0.7054113", "0.6954612", "0.69262004", "0.68808556", "0.68640697", "0.6850733", "0.68287235", "0.68148446", "0.6795669", "0.679078...
0.78107077
1
Casts a string array to an int array, recursion is enabled by default
Преобразует массив строк в массив целых чисел, рекурсия включена по умолчанию
public static function castStringArrayToIntArray($array, $recursion = true, $unsigned = false) { foreach ($array as $key => $value) { if (is_array($value) && $recursion) { $array[$key] = self::castStringArrayToIntArray($value, $recursion, $unsigned); } elseif (!is_arr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function intval_array ( & $value, $key) { $value = (int) $value; }", "static public function cast_mixed_int2array($ids)\n\t{\n\t\tif (is_array($ids))\n\t\t{\n\t\t\treturn array_map('intval', $ids);\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn array((int) $ids);\n\t\t}\n\t}", "public static function castToInteger(arra...
[ "0.6805324", "0.6625007", "0.6613266", "0.6523277", "0.63725585", "0.6316713", "0.6276067", "0.62623197", "0.621078", "0.6102784", "0.6063178", "0.6048719", "0.5929625", "0.5891944", "0.5751293", "0.5730193", "0.56947654", "0.5664662", "0.56424683", "0.56102574", "0.5568218",...
0.780579
0
Casts a string array to an float array, recursion is enabled by default
Преобразует массив строк в массив float, рекурсия включена по умолчанию
public static function castArrayToFloatArray($array, $recursion = true, $unsigned = false) { foreach ($array as $key => $value) { if (is_array($value) && $recursion) { $array[$key] = self::castArrayToFloatArray($value, $recursion, $unsigned); } elseif (!is_array($valu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function data_toFloat() {\n\t\t\t$data = array(\n\t\t\t\tarray(array(1.0), array(1.0)),\n\t\t\t\tarray(array(0.0), array(0.0)),\n\t\t\t\tarray(array(-1.0), array(-1.0)),\n\t\t\t);\n\t\t\treturn $data;\n\t\t}", "function sanitize_float_array ( $data )\n{\n $nData = array();\n foreach ( $data as $d ) {\n ...
[ "0.6526058", "0.6471659", "0.62720674", "0.6235305", "0.5772225", "0.57721233", "0.57467055", "0.5663458", "0.55595154", "0.5558263", "0.5528958", "0.55206513", "0.5514542", "0.542331", "0.5398419", "0.53814566", "0.53769475", "0.5352288", "0.5329439", "0.5310922", "0.5253175...
0.70997345
0
search category by name
поиск категории по имени
public function searchCategory($input) { $query = Category::query(); $appends = array(); if (!empty($input['name'])) { $query->where('name', 'LIKE', '%'.$input['name'].'%'); $appends['name'] = $input['name']; } $query->orderBy('created_at...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function search($query, $category);", "public static function searchCategory(){\n if(isset($_GET[\"query\"])){\n $query = $_GET[\"query\"];\n }\n else{\n $query = \"\";\n }\n $hits = ForumDB::getCategories($query);\n ViewHelper::render(\"View...
[ "0.77235854", "0.7399299", "0.7227818", "0.7226858", "0.71768343", "0.7128102", "0.70079666", "0.69922", "0.6944924", "0.6931737", "0.6915853", "0.69155174", "0.68143606", "0.6810261", "0.67837286", "0.67832667", "0.6750159", "0.67260605", "0.66430736", "0.66297", "0.6626911"...
0.7965897
0
Initialize the interpreter with the Phing property php.interpreter
Инициализируйте интерпретатор с помощью свойства Phing php.interpreter
public function init() { $this->setPhp($this->project->getProperty('php.interpreter')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getInterpreter() { return $this->interpreter; }", "public function getInterpreter()\n {\n return $this->interpreter;\n }", "public function getInterpreter() {\n return $this->interpreter;\n }", "public function init() {\n\t\t$this->php = 'php';\n\t\t$this->li3php = 'lit...
[ "0.70242566", "0.6623756", "0.6510397", "0.619643", "0.61827266", "0.61157554", "0.5851436", "0.58395404", "0.5533715", "0.54457355", "0.53554076", "0.53462833", "0.5325527", "0.53184193", "0.5314601", "0.529513", "0.5292039", "0.52542555", "0.5238794", "0.5233893", "0.522228...
0.79510826
0
Prepares the command string to be executed
Подготавливает строку команд для выполнения
private function prepareCommandLine() { $this->commandLine->setExecutable($this->getPhp()); //We are un-shifting arguments to the beginning of the command line because arguments should be at the end $this->commandLine->createArgument(true)->setValue($this->getCommand()); $this->comma...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function prepareCommand()\n {\n $this->command = strtolower((new \\ReflectionClass(get_called_class()))->getShortName());\n }", "function exec_prepare($myCmd)\r\n{\r\n // KORREKTUR VON PFADEN IN WINDOWS UMGEBUNGEN\r\n if (instr($myCmd, \":/\")) $myCmd = str_replace(\"/\", \"\\\\\", $...
[ "0.7200226", "0.6986377", "0.650512", "0.6435441", "0.64217335", "0.64024925", "0.6395008", "0.62776333", "0.5953639", "0.59414303", "0.58702326", "0.5853978", "0.5720214", "0.5679604", "0.5661919", "0.56166697", "0.5616465", "0.5616018", "0.5597459", "0.558972", "0.55615556"...
0.7053064
1
Get list of inboxes
Получить список ящиков входящих сообщений
public function getInboxes() { $url = $this->buildUrl('inboxes'); return $this->process($url); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getImageBoxesList(){\n return $this->_get(3);\n }", "function listAllBoxes() {\n\t\t$requestURL = baseURL.\"/boxes\";\n\t\t$data = sendGetRequest($requestURL);\n return $data;\n\t}", "private function getBoxes()\n {\n $collection = $this->repository->all()->toArray();\n ...
[ "0.69982135", "0.69810367", "0.67013997", "0.6476805", "0.6390232", "0.6131892", "0.6131423", "0.6031543", "0.5984235", "0.5882879", "0.5873458", "0.5827401", "0.57100177", "0.5642417", "0.5630026", "0.5617088", "0.5552992", "0.55142194", "0.54979646", "0.54603493", "0.543978...
0.81633943
0
Get mails by inbox ID
Получить письма по ID папки входящих
public function getMails($inbox_id) { $path = 'inboxes/' . $inbox_id . '/messages'; $url = $this->buildUrl($path); return $this->process($url); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getEmails($emailID)\n\t{\n\t$response = array(); \n\t$contextIO = new ContextIO('qd8cq03s','SogN0NW6RPJPkStv');\t\n\t$messageListResponse = $contextIO->listMessages($emailID,array('label' => '0', 'folder' => 'Inbox', 'limit' => '50'));\n\tforeach($messageListResponse->getData() as $message)\n\t{\n\t\tarra...
[ "0.70717263", "0.70503324", "0.69440824", "0.69168895", "0.6782664", "0.67822987", "0.671666", "0.669293", "0.6662716", "0.6632072", "0.6572646", "0.6558028", "0.65520704", "0.6478477", "0.6474644", "0.6456152", "0.64466375", "0.6431911", "0.6410309", "0.6371413", "0.63575906...
0.7472646
0
Build API token header
Построить заголовок API-токена
protected function apiTokenHeader() { return ['Api-Token: ' . $this->token]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function getTokenHeader(): string\n {\n $accessToken = $this->token;\n\n return \"Authorization: Bearer {$accessToken}\";\n }", "public static function createAuthHeader($token) {\n return [ \n 'Authorization' => 'Bearer ' . $token \n ];\n }", "private...
[ "0.771291", "0.7415193", "0.7365915", "0.72747755", "0.72368425", "0.71498823", "0.71272296", "0.7074021", "0.7050709", "0.6879575", "0.6828047", "0.68150926", "0.68125105", "0.68107164", "0.678461", "0.6757988", "0.6739405", "0.6699245", "0.6667757", "0.66637415", "0.6655805...
0.78011084
0
Sets the subjectmodel for this comment
Устанавливает subjectmodel для этого комментария
public function setSubject($subject) { self::validateSubject($subject, true); $this->model_class = $subject->className(); $this->foreign_pk = $subject->getPrimaryKey(true); $this->subject = $subject; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function setSubject($subject) {\r\n $this->subject = $subject;\r\n }", "public function setSubject($subject){\n $this->subject = $subject;\n }", "public function setSubject ($subject)\r\n {\r\n $this->subject = $subject;\r\n }", "public function setSubject($subject);", ...
[ "0.67346734", "0.6720331", "0.6713175", "0.6630233", "0.6630233", "0.66049695", "0.66049695", "0.66005063", "0.6593693", "0.65914", "0.65750974", "0.65638894", "0.65574056", "0.6470822", "0.64212626", "0.641616", "0.6410096", "0.6391354", "0.6334837", "0.6324436", "0.6319519"...
0.74008816
0
Determine whether the user can view the meal.
Определите, может ли пользователь просмотреть прием пищи.
public function view(User $user, Meal $meal) { return $user->is_moderator || $user->subscribed(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function canView()\n {\n if (!$this->current_user) {\n return false;\n }\n\n if ($this->current_user->isAdmin()) {\n return true;\n }\n\n return false;\n }", "public function userCanSee(): bool\n {\n // No permission set means anyone...
[ "0.724145", "0.72413784", "0.7234702", "0.72196996", "0.7146406", "0.6867664", "0.68367654", "0.67577827", "0.6692719", "0.6691543", "0.6691543", "0.66903317", "0.66843957", "0.6680705", "0.6665249", "0.66536826", "0.6644632", "0.66350925", "0.6608546", "0.65868545", "0.65691...
0.73810124
0
Determine whether the user can update the meal.
Определите, может ли пользователь обновить еду.
public function update(User $user, Meal $meal) { return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function update()\n {\n return \\Auth::user()->hasRight('update-tempo');\n }", "public function update()\n {\n return \\Auth::user()->hasRight('update-settings');\n }", "public static function canUpdateData() {\n if( current_user_can( static::$capability) ) {\n ...
[ "0.7535787", "0.7249671", "0.7025778", "0.68569607", "0.6718695", "0.6699476", "0.66932285", "0.6685813", "0.66819805", "0.6646156", "0.6578032", "0.65757006", "0.65602297", "0.6557611", "0.65471053", "0.65168184", "0.6511016", "0.6510149", "0.6507028", "0.65058506", "0.64645...
0.73070306
1
Returns an iterator to iterate over fields (implements \IteratorAggregate).
Возвращает итератор для перебора полей (реализует \IteratorAggregate).
public function getIterator() { return new \ArrayIterator($this->fields); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function fields(): iterable;", "public function getFieldsIterator()\n {\n return new MultipleArrayIterator($this->fulltextFields, $this->filterFields, $this->sortFields);\n }", "public function getIterator()\n {\n return new ArrayIterator($this->_fields);\n }", "publ...
[ "0.79368585", "0.7514614", "0.73731667", "0.7286577", "0.71578866", "0.70611703", "0.6970101", "0.6698894", "0.66983914", "0.66530263", "0.6534733", "0.6534733", "0.6534733", "0.6534733", "0.64584315", "0.64584315", "0.6422263", "0.6422263", "0.6422263", "0.6422263", "0.64222...
0.75969726
1
Displays a form to edit an existing Profile entity.
Показывает форму для редактирования существующего сущности Профиль.
public function editAction() { $user = $this->getUser(); if ( ! $user) { return $this->redirect($this->generateUrl('user_sign_in')); } $em = $this->getDoctrine()->getManager(); $profile = $user->getProfile(); if ( ! $profile) { $profile = new P...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function showProfileEditForm()\n {\n return view(\"admin.profile.edit\");\n }", "public function editAction()\n {\n View::renderTemplate('Profile/edit.html', [\n 'user' => $this->user\n ]);\n }", "public function editAction()\r\n {\r\n View::renderTe...
[ "0.8248098", "0.809066", "0.80472547", "0.7989785", "0.79751605", "0.79751605", "0.79751605", "0.79751605", "0.79751605", "0.79751605", "0.79751605", "0.79751605", "0.79751605", "0.7936827", "0.7862972", "0.78532255", "0.78484404", "0.7842986", "0.78156245", "0.7815186", "0.7...
0.89173436
0
Retrieve publication data and return a promise.
Получить данные о публикации и вернуть промис.
public function getPublicationDataAsync(): PromiseInterface { return Coroutine::of(function () { if (!isset($this->publicationData)) { $response = (yield $this->sendRequestAsync(new Request("GET", "/sapi/publication"))); $response->assertIsOk(); $this-...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function execute(int $id): Publication\n {\n $this->log->info('publication:get', ['id' => $id]);\n\n $publication = $this->publications->getPublicationData($id);\n\n $this->log->debug('publication:get', ['result' => $publication]);\n\n return $publication;\n }", "protecte...
[ "0.6310545", "0.6038058", "0.59581894", "0.59082156", "0.58888566", "0.5751252", "0.56871516", "0.5603788", "0.5563529", "0.55586106", "0.5551686", "0.55502903", "0.5526465", "0.55210984", "0.5508553", "0.5507353", "0.55034244", "0.546416", "0.5453983", "0.54241407", "0.54223...
0.7598601
0
Test case for postImagesEdits Creates an edited or extended image given an original image and a prompt..
Тест-кейс для postImagesEdits Создает отредактированное или расширенное изображение, исходя из исходного изображения и описания.
public function testPostImagesEdits() { // TODO: implement $this->markTestIncomplete('Not implemented'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function image_edit_apply_changes($image, $changes)\n{\n}", "public function edit()\n {\n if ( ! $this->ENABLED_IMG_EDIT) {\n return false;\n }\n $img_url = urldecode($_REQUEST['image']);\n $title = ltrim(str_replace('|', '/', urldecode($_REQUEST['title'])), '/');\n ...
[ "0.6483648", "0.6340399", "0.63074434", "0.6031071", "0.5891615", "0.58584136", "0.58584136", "0.58584136", "0.58584136", "0.58584136", "0.58584136", "0.58584136", "0.58584136", "0.5849355", "0.582658", "0.58124423", "0.57751757", "0.576547", "0.57082266", "0.56967366", "0.56...
0.74205875
0
Test case for postImagesGenerations Given a prompt and/or an input image, the model will generate a new image..
Тест-кейс для postImagesGenerations При наличии промпта и/или входного изображения модель сгенерирует новое изображение.
public function testPostImagesGenerations() { // TODO: implement $this->markTestIncomplete('Not implemented'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testPostImagesEdits()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "public function run()\n {\n factory( \\App\\Models\\GiveImage::class )->times( 100 )->create();\n }", "public function testCreateDefaultImage()\n {\n ...
[ "0.66076463", "0.588718", "0.5882078", "0.5867757", "0.5867582", "0.58420676", "0.5825384", "0.58103424", "0.57873803", "0.57770026", "0.573387", "0.56947505", "0.5686468", "0.56853354", "0.5676152", "0.56748", "0.56700367", "0.5661192", "0.5648829", "0.5595115", "0.5569814",...
0.7199258
0
Test case for postImagesVariations Creates a variation of a given image..
Тест-кейс для postImagesVariations Создает вариацию заданного изображения.
public function testPostImagesVariations() { // TODO: implement $this->markTestIncomplete('Not implemented'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testPostImagesGenerations()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "public static function saveVariations($post_id, $variants, $prpItems)\n {\n // Get Gooten variants for this product\n $gtnProductVariantsResponse = Goot...
[ "0.60650057", "0.59458196", "0.59367645", "0.5903968", "0.5885065", "0.587118", "0.5861668", "0.58286345", "0.58174336", "0.5728791", "0.5721616", "0.57043403", "0.5702038", "0.5700499", "0.56620985", "0.56513184", "0.56468064", "0.5634316", "0.56227016", "0.5610413", "0.5607...
0.8433633
0
Store a newly created Inscrito in storage.
Храните только что созданного Inscrito в хранилище.
public function store(CreateInscritoRequest $request) { $input = $request->all(); $inscrito = $this->inscritoRepository->create($input); Flash::success('Inscrito saved successfully.'); return redirect(route('inscritos.index')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store()\n\t{\n\t\t//regole del validatore\n\t\t$rules = array(\n\t\t\t'Nome' => 'required',\n\t\t\t'Livello' => 'required',\n\t\t\t'Formula' => 'required',\n\t\t\t'Descrizione' => 'required'\n\t\t);\n\t\t$validator = Validator::make(Input::all(), $rules);\n\n\t\t// process the login\n\t\tif ($valid...
[ "0.66958666", "0.65113986", "0.6359044", "0.6345874", "0.6327004", "0.63119483", "0.6305908", "0.6282903", "0.6276974", "0.62435657", "0.623933", "0.62267363", "0.62176436", "0.6203786", "0.61801445", "0.6162706", "0.6153008", "0.6152342", "0.6152069", "0.615157", "0.61478996...
0.70120597
0
Get the IDs of anyexisting roles provided.
Получите идентификаторы любых существующих ролей.
protected function getRoleIds() { list($models, $names) = Helpers::partition($this->roles, function ($role) { return $role instanceof Model; }); $ids = $models->map(function ($model) { return $model->getKey(); }); if ($names->count()) { $...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getRoleIds()\n {\n if (! $this->roles) return [];\n\n $roles = Helpers::groupModelsAndIdentifiersByType($this->roles);\n\n $ids = [];\n if ($roles['integers']) {\n $ids = $roles['integers'];\n }\n\n if ($roles['models']) {\n fore...
[ "0.76667035", "0.7548566", "0.7500176", "0.7500176", "0.7325967", "0.70711976", "0.6982423", "0.6846392", "0.6844702", "0.67938423", "0.66249734", "0.65590656", "0.63896286", "0.6388183", "0.63806236", "0.63702196", "0.6358163", "0.6291913", "0.62825376", "0.6280109", "0.6279...
0.77323306
0
Get the IDs of the roles with the given names.
Получите идентификаторы ролей с заданными именами.
protected function getRoleIdsFromNames(array $names) { $key = Models::role()->getKeyName(); return Models::role() ->whereIn('name', $names) ->get([$key]) ->pluck($key); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getRoleIdsFromNames(array &$names)\n {\n $key = Models::getRoleKeyName();\n\n return (new Collection(\n Models::role()\n ->select($key)\n ->where('slug', 'IN', $names)\n ->find()\n ))\n ->pluck($key);\n }", "prot...
[ "0.8514713", "0.7291894", "0.71830493", "0.7108047", "0.6921079", "0.6711772", "0.6590492", "0.6562209", "0.65072364", "0.65066975", "0.64508396", "0.6445268", "0.64424056", "0.643142", "0.6406278", "0.6406278", "0.6384902", "0.63513386", "0.63446164", "0.63395244", "0.633391...
0.84901905
1
Get a query builder instance for the assigned roles pivot table.
Получите экземпляр построителя запросов для сводной таблицы назначенных ролей.
protected function newPivotTableQuery() { return Models::query('assigned_roles'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function newPivotTableQuery()\n {\n return query()->from(Models::table('assigned_roles'));\n }", "public function rolesTable()\n\t{\n\t\treturn Role::all();\n\t}", "public function roles() : BelongsToMany\n {\n $pivotTable = config('admin.database.role_users_table');\n\n ...
[ "0.7258545", "0.6684176", "0.66608995", "0.6645225", "0.66124326", "0.6560288", "0.64735097", "0.64239264", "0.64200795", "0.639593", "0.6380803", "0.637962", "0.6359338", "0.634839", "0.63329333", "0.63220483", "0.6315996", "0.63155293", "0.6312825", "0.63097614", "0.6309042...
0.7462914
0
add a single attempt for one student or for a group
добавить один раз попытку для одного студента или для группы
function add() { if ($this->Auth->user('role')!=2) $this->redirect(array('action' => 'studentindex')); if (!empty($this->data)) { if ($this->data['Attempt']['user_id']==0 && $this->data['Attempt']['group_id']==0) { //must pick either single student or group $this->Session->setFlash(__('You must select ei...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addStudent()\r\n\t{\r\n\t\t$studData = $this->getUserInput();\r\n\r\n\t\t// Validating user input\r\n\t\t$result = $this->validateStudent($studData['firstName'], $studData['lastName'], $studData['fakNom'], $studData['specialty'], $studData['course'], $studData['group']);\r\n\r\n\t\tif ($result['cod...
[ "0.6285701", "0.614298", "0.6134233", "0.60618734", "0.6059733", "0.6050253", "0.6036342", "0.5994937", "0.593224", "0.5899906", "0.5890842", "0.5857592", "0.5848694", "0.58467704", "0.58255464", "0.5774828", "0.5772635", "0.5771233", "0.5745628", "0.57346475", "0.5708703", ...
0.7651502
0
Assebmled reversed (surname first)
Собранные в обратном порядке (фамилия первая)
public function getRecipientFullnameReversed() { return "{$this->getRecipientSurname()} {$this->getRecipientFirstname()}"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function reverse()\n\t{\n\t}", "function reverse()\n {\n }", "public function NameWithoutContactSurname() {\r\n $contact = $this->PreferredContact();\r\n if ($contact && $contact->lastName && (stripos( $this->lastName, $contact->lastName ) !== false\r\n ...
[ "0.65576977", "0.63346505", "0.62748826", "0.6219907", "0.6208616", "0.59530705", "0.5902785", "0.5840905", "0.580352", "0.5790814", "0.57807547", "0.5747186", "0.5736665", "0.5681801", "0.5681801", "0.5681801", "0.5681801", "0.5681801", "0.5681801", "0.5667996", "0.5659801",...
0.7167185
0
pretend we're loading a view, but in reality just var_dump the data
представим, что мы загружаем представление, но на самом деле просто var_dumpаем данные
public function render() { var_dump($this->viewData); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function loadView()\n {\n }", "function debug_view ( $what ) {\n\n echo '<pre>';\n\n if ( is_array( $what ) ) {\n\n print_r ( $what );\n\n } else {\n\n var_dump ( $what );\n\n }\n\n echo '</pre>';\n\n}", "public function _view() {\n\t\treturn $this->_context->view(...
[ "0.66172236", "0.6543103", "0.6524639", "0.6516353", "0.651632", "0.6505062", "0.65030664", "0.6387075", "0.63757926", "0.6369197", "0.63491243", "0.63075364", "0.6305805", "0.6305805", "0.62591696", "0.62499505", "0.6217477", "0.6210626", "0.6157185", "0.61474025", "0.613433...
0.70419705
0
Creates a new category.
Создаёт новую категорию.
public function createCategory();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create_category() {\n\n // Creates a category\n (new MidrubBaseUserAppsCollectionChatbotHelpers\\Categories)->create_category();\n\n }", "public function createCategoryInstance();", "public function newCategory();", "public function createCategory(){\n $categories=$thi...
[ "0.8268577", "0.8040923", "0.784913", "0.76809645", "0.7660109", "0.7574323", "0.74771845", "0.7451179", "0.7401414", "0.73451465", "0.73159254", "0.731016", "0.72892153", "0.72780716", "0.725477", "0.7227417", "0.72264725", "0.719857", "0.71876186", "0.7177266", "0.7168329",...
0.84910655
0
Finds categories by criteria.
Находит категории по критериям.
public function findCategoriesBy(array $criteria);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function findCategoryBy(array $criteria);", "private function getCriteria(){\n $criteria = CategoryQuery::create()->orderByScope()\n ->orderByBranch()\n ->filterByActive(1)\n ->filterByScop...
[ "0.8042", "0.70042396", "0.673808", "0.6566165", "0.6473626", "0.64443994", "0.614569", "0.61351526", "0.607819", "0.6072935", "0.6041113", "0.60335034", "0.60325414", "0.60219455", "0.6019086", "0.5998819", "0.5998567", "0.5998132", "0.59948784", "0.59492856", "0.59230953", ...
0.8099291
0
Finds a category by id.
Находит категорию по идентификатору.
public function findCategory($id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function findCategoryById($id)\n {\n return $this->findCategory(['id' => $id])->one();\n }", "public function getbyId($id) {\r\n\t\t\r\n\t\tif (empty($id)) return false;\r\n\t\t\r\n\t\t$sqlQuery = 'SELECT * FROM category WHERE category.id = \"'.(int)$id.'\" LIMIT 1';\r\n\t\treturn $this->find...
[ "0.8393785", "0.8139916", "0.8136833", "0.8052226", "0.79926366", "0.79662037", "0.7903124", "0.7825878", "0.77795285", "0.7728988", "0.7720208", "0.7701464", "0.76670206", "0.7649974", "0.7594035", "0.75482285", "0.75406134", "0.75338745", "0.7511323", "0.7428089", "0.741658...
0.8398814
0
Finds a category by criteria.
Находит категорию по критериям.
public function findCategoryBy(array $criteria);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static function existingCategory($criteria){\n\t\t$category = new self();\n\t\treturn $category->load($criteria);\n\t}", "public function findCategoriesBy(array $criteria);", "public function findCategory($condition)\n {\n return $this->categoryQuery->where($condition);\n }", "private function g...
[ "0.72577184", "0.71394783", "0.68422085", "0.650007", "0.6483041", "0.63463444", "0.6229393", "0.6215117", "0.61663103", "0.5893682", "0.58867526", "0.5848549", "0.5784501", "0.5753464", "0.5744379", "0.56741804", "0.5670861", "0.5668214", "0.56664145", "0.566247", "0.5643245...
0.784493
0
Generated from protobuf field repeated .eolymp.typewriter.Block children = 10;
Сгенерировано из поля protobuf repeated .eolymp.typewriter.Block children = 10;
public function setChildren($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Eolymp\Typewriter\Block::class); $this->children = $arr; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function createBlocks(&$blocks) {\n $this->parents = array_merge($this->parents, $blocks);\n foreach($blocks as $parent => $block){\n foreach($block as $chield){\n if(in_array($chield, $this->blocks)) throw new UnexpectedValueException(\"bloco duplicado: $chield\");\n $this->blocks...
[ "0.53732586", "0.5368319", "0.5223586", "0.51594114", "0.5065194", "0.50375074", "0.50194955", "0.5014651", "0.49936694", "0.49872902", "0.49398476", "0.49362668", "0.49243072", "0.4892095", "0.48823854", "0.48777932", "0.48761657", "0.48712972", "0.48575535", "0.48522916", "...
0.72562057
0
Remover Menu de Entradas por Defecto de WP
Удаление меню входных данных по умолчанию WP
function RemoverMenuEntradasWP() { // remove_menu_page('upload.php');//Remover Menu Medios. remove_menu_page('edit-comments.php');//Remover Menu Comentarios. // remove_menu_page('edit.php'); //Remover Menu Entradas. remove_menu_page('edit-tags.php'); //Remover Menu categorias. ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function remove_menu() {\n\tremove_action('thematic_header','thematic_brandingopen',1);\n\tremove_action('thematic_header','thematic_blogtitle',3);\n\tremove_action('thematic_header','thematic_blogdescription',5);\n\tremove_action('thematic_header','thematic_brandingclose',7);\n\tremove_action('thematic_header','t...
[ "0.8103822", "0.79058266", "0.7818141", "0.78094405", "0.77766305", "0.776086", "0.7747839", "0.77365464", "0.77292246", "0.77032304", "0.76906085", "0.7672806", "0.7663095", "0.763967", "0.7624488", "0.76231927", "0.76121455", "0.7605276", "0.7595508", "0.7592621", "0.759193...
0.8199837
0
Display blocked user page
Страница заблокированного пользователя
function blocked(){ //check if they have been unblocked if ($_SESSION['login_attempts'] < BLOCKED_AT){ $this->redirect("login"); return false; } //set the meta info $meta['title'] = 'Blocked'; //calculate the time in minutes $minutes = round(BLOCKED_SECONDS / 60); $...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function blocked()\n\t{\n\t\t$this->load->view('auth/blocked');\n\t}", "public function blockUser();", "function block_user() {\n\t\t\n\t\t/*if(!$this->Session->read('Member.memberid'))\n\t\t{\n\t\t\t$this->facebook_login();\n\t\t}*/\n\t\t\n\t\t\n\t\t// all frontend\n\t\t\n\t\t$this->layout=\"frontend\"...
[ "0.76146126", "0.74635535", "0.73273766", "0.73073447", "0.69479346", "0.6894271", "0.6814098", "0.67974967", "0.6769119", "0.67376554", "0.6731578", "0.66985095", "0.6696896", "0.65023196", "0.6467962", "0.6427891", "0.6425083", "0.64131296", "0.6384353", "0.63838893", "0.63...
0.746912
1
Process the the edit product combo request
Обработка запроса на редактирование товарного комплекта
function edit_combo_process(){ if ($_POST){ $data = $_POST; $this->model->update_combo($data); //set the notification message $_SESSION['message'] = "Your changes have been saved!"; $_SESSION['type'] = "success"; $this->redirect('pricelist/'.$_POST['comboid'].'/'); }else{ ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function edit() {\r\n // Instantiate objects\r\n $account_product = new AccountProduct();\r\n $product_option = new ProductOption();\r\n $website_coupon = new WebsiteCoupon();\r\n $product = new Product(); // For getting images\r\n $category = new Category(); /...
[ "0.7176813", "0.7156638", "0.7137199", "0.7013749", "0.68673843", "0.671028", "0.6703981", "0.6683732", "0.6683732", "0.6682359", "0.66563153", "0.6551904", "0.6550569", "0.6537754", "0.65248746", "0.64930964", "0.64930964", "0.64930964", "0.64930964", "0.64930964", "0.649309...
0.7245801
0
Process the product combo add request
Обработка запроса на добавление продукта в комбо
function add_combo_process(){ if ($_POST['comboid']){ $data = $_POST; $this->model->insert_combo($data); //set the notification message $_SESSION['message'] = "Successfully added!"; $_SESSION['type'] = "success"; $this->redirect('pricelist/'.$_POST['comboid']); }else{ ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function addItemsProduct() {\n\t\t$opcionales = $_GET['opcionales'];\n\t\t$extras = $_GET['extras'];\n\t\t$sin = $_GET['sin'];\n\n\t\t$nota_opcional = $_REQUEST['nota_opcional'];\n\t\t$nota_extra = $_REQUEST['nota_extra'];\n\t\t$nota_sin = $_REQUEST['nota_sin'];\n\n\t\t$result = $this -> addProduct($opcionales, $e...
[ "0.7015435", "0.6880923", "0.67385346", "0.66946244", "0.66466904", "0.6558513", "0.6476089", "0.64310145", "0.63895714", "0.63760436", "0.63683164", "0.6329802", "0.63223034", "0.63171947", "0.62946564", "0.6280244", "0.625352", "0.62457454", "0.62449116", "0.6240274", "0.62...
0.7314271
0
Display the add attribute screen
Показать экран добавления атрибута
function add(){ //set the meta info $meta['title'] = 'Add Attribute'; $meta['notify'] = $this->notify(); $meta['theParent'] = $this->uri->segment(2); $meta['theLevel'] = $this->uri->segment(3); $this->load->view('add.php', $data, $meta); return; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function add_attribute()\n {\n }", "public static function add_attribute()\n {\n }", "public function create()\n {\n return view('admin.attributes.attr_add');\n }", "function addAttributes()\n\t{ \n\t\t\n\t\tif($_POST['attributes']!=='')\n\t\t{\n\t\t\t$s...
[ "0.6971641", "0.69711685", "0.675656", "0.66981304", "0.6638105", "0.6590946", "0.6528649", "0.6528649", "0.6491478", "0.64816463", "0.64657456", "0.6423499", "0.6392568", "0.6391887", "0.6171513", "0.6155536", "0.61415285", "0.60798085", "0.60696507", "0.60590875", "0.605335...
0.71946645
0
Process a price delete request
Обработка запроса на удаление цены
function delete_price_process(){ $itemID = $this->uri->segment(2); $comboID = $this->uri->segment(3); if ($itemID){ $this->model->delete_price($itemID); //set notification message $_SESSION['message'] = "Successfully deleted!"; $_SESSION['type'] = "success"; $this->redirect('price...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function delete($priceID);", "public function testInventoryDebtorSpecificPriceDELETERequestInventoryIDDebtorSpecificPricesDebtorSpecificPriceIDDelete()\n {\n }", "function delete_price_combo_process(){\n\t\t\t$comboID = $this->uri->segment(2);\n\t\t\t\n\t\t\tif ($comboID){\n\t\t\t\t$this->model->d...
[ "0.75674266", "0.6957691", "0.67278874", "0.6651593", "0.6584764", "0.65197647", "0.6492945", "0.64583963", "0.64583963", "0.64583963", "0.64392513", "0.6436339", "0.64232254", "0.6401164", "0.63896435", "0.6352058", "0.62972635", "0.625913", "0.62000996", "0.6159387", "0.615...
0.7446329
1
register scripts for current module. Default implementation register module.js
регистрирует скрипты для текущего модуля. По умолчанию реализация регистрирует module.js
public function registerScripts() { if(file_exists($this->getAssetsPath().DIRECTORY_SEPARATOR.'js'.DIRECTORY_SEPARATOR.'module.js') === true) { \Yii::app()->getClientScript()->registerScriptFile($this->getAssetsUrl().'/js/module.js'); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static function register_scripts()\n {\n }", "public static function register_scripts()\n {\n }", "public function registerScript(){}", "function bst_register_scripts() {\n\t\n }", "public function registerScripts()\n {\n // Generate script URI\n $path = 'js/api/'...
[ "0.76196414", "0.7451163", "0.73333454", "0.6904536", "0.6885179", "0.68286926", "0.6732921", "0.67038804", "0.6694441", "0.66869086", "0.66075027", "0.6567504", "0.64388347", "0.64346737", "0.64302", "0.6424336", "0.63902354", "0.6370226", "0.6359377", "0.63294613", "0.63179...
0.7710458
0
method create when called should returnNewCastilloBetIdWithLength20
метод create при вызове должен возвращатьNewCastilloBetIdWithLength20
public function test_create_called_returnNewCastilloBetIdWithLength20() { $expected = 20; $actual = CastilloBetId::create(); $this->assertEquals($expected,strlen($actual->id())); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function test_create_called_returnNewCastilloBetIdNumericData()\n {\n $actual = CastilloBetId::create();\n $this->assertTrue(is_numeric($actual->id()));\n }", "public function test_create_called_returnNewCastilloBetIdDifferent()\n {\n $expected = CastilloBetId::create();\n ...
[ "0.71383846", "0.66542894", "0.6011016", "0.597166", "0.59149987", "0.5889493", "0.58417034", "0.58417034", "0.58417034", "0.58417034", "0.58417034", "0.5799431", "0.577839", "0.57523096", "0.57083017", "0.57011014", "0.57011014", "0.57011014", "0.57011014", "0.57011014", "0....
0.8034468
0