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
Returns value of 'ShipmentReceiptDate' property
Возвращает значение свойства 'ShipmentReceiptDate'
public function getShipmentReceiptDate() { $value = $this->get(self::SHIPMENTRECEIPTDATE); return $value === null ? (string)$value : $value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function _getShipmentDate() {\n\t\treturn $this->_shipmentDate;\n\t}", "public function getDeliveryDate() {\r\n\r\n\t\tself::errorReset();\r\n\t\t$this->reload();\r\n\t\treturn $this->deliveryDate;\r\n\t}", "public function setShipmentReceiptDate($value)\n {\n return $this->set(self::SHIPMENTR...
[ "0.7874261", "0.70397305", "0.6937055", "0.68867874", "0.6860003", "0.6753007", "0.6721134", "0.6721134", "0.67160636", "0.6584148", "0.6581428", "0.65775764", "0.65691787", "0.65584755", "0.65058297", "0.6505754", "0.64890975", "0.64764315", "0.6447651", "0.6447634", "0.6440...
0.8686044
0
Sets value of 'Attorney' property
Устанавливает значение свойства 'Attorney'
public function setAttorney(\Diadoc\Api\Proto\Invoicing\Attorney $value=null) { return $this->set(self::ATTORNEY, $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAttorney()\n {\n return $this->get(self::ATTORNEY);\n }", "public function attorney()\n {\n if ( ! $this->bean->fetchAs('user')->attorney) $this->bean->attorney = R::dispense('user');\n return $this->bean->attorney;\n }", "public function setReplacementAttorn...
[ "0.62699723", "0.5717297", "0.56175715", "0.55537426", "0.54743093", "0.5403522", "0.53441757", "0.53389025", "0.532787", "0.52432436", "0.5170021", "0.5082601", "0.50810486", "0.50624394", "0.50622815", "0.49975216", "0.49863943", "0.49848792", "0.49135265", "0.48861223", "0...
0.75896424
0
Returns value of 'Attorney' property
Возвращает значение свойства 'Attorney'
public function getAttorney() { return $this->get(self::ATTORNEY); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function attorney()\n {\n if ( ! $this->bean->fetchAs('user')->attorney) $this->bean->attorney = R::dispense('user');\n return $this->bean->attorney;\n }", "public function attorneyName()\n {\n return $this->bean->attorney()->name;\n }", "public function attorney(){\r\n ...
[ "0.7705918", "0.7640759", "0.7004984", "0.62172234", "0.6099217", "0.6075296", "0.59137", "0.5896022", "0.5885525", "0.585058", "0.5837561", "0.5730552", "0.5730552", "0.5723511", "0.5711633", "0.56643736", "0.5627584", "0.5595766", "0.5581213", "0.5572989", "0.55626506", "...
0.85214347
0
Returns value of 'AcceptedBy' property
Возвращает значение свойства 'AcceptedBy'
public function getAcceptedBy() { return $this->get(self::ACCEPTEDBY); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getApprovedBy()\n {\n return $this->approved_by;\n }", "public function getReceivedBy()\n {\n return $this->get(self::RECEIVEDBY);\n }", "public function getBy() { return $this->by; }", "public function getAccepted();", "function getSubmittedBy() {\n\t\treturn $thi...
[ "0.71323013", "0.6525611", "0.62705785", "0.62088686", "0.61826473", "0.61826473", "0.617463", "0.61732364", "0.6167146", "0.60802245", "0.5981977", "0.5969908", "0.593676", "0.59293336", "0.591506", "0.5890674", "0.58672434", "0.58639985", "0.5854752", "0.5849962", "0.581163...
0.8535156
0
Returns value of 'ReceivedBy' property
Возвращает значение свойства 'ReceivedBy'
public function getReceivedBy() { return $this->get(self::RECEIVEDBY); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getReceiver()\n {\n return $this->user;\n }", "public function getSender() {\n\t\treturn $this -> data['sender'];\n\t}", "public function getReceiver(){\n return $this->receiver;\n }", "public function getSender();", "public function getReceiver()\n {\n ...
[ "0.72834724", "0.7045053", "0.69161606", "0.6875164", "0.68699133", "0.68699133", "0.68007773", "0.67879784", "0.67194515", "0.6696369", "0.6640238", "0.6638411", "0.6638411", "0.6638411", "0.6638411", "0.6638411", "0.6638411", "0.66111237", "0.6597769", "0.6587635", "0.65663...
0.9066102
0
Sets value of 'Signer' property
Устанавливает значение свойства 'Signer'
public function setSigner(\Diadoc\Api\Proto\Invoicing\Signer $value=null) { return $this->set(self::SIGNER, $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setSigner($val)\n {\n $this->_propDict[\"signer\"] = $val;\n return $this;\n }", "function setSign( $value )\r\n {\r\n $this->Sign = $value;\r\n }", "function setSignature($signature)\n {\n $this->_signature = $signature;\n }", "function setAuthSi...
[ "0.7965138", "0.6232488", "0.60674363", "0.6032574", "0.595182", "0.5818963", "0.57612944", "0.57223207", "0.56430495", "0.56430495", "0.5633575", "0.5572085", "0.5533534", "0.5529121", "0.5460281", "0.5455594", "0.5455594", "0.5454494", "0.5361629", "0.52838343", "0.52694994...
0.74499846
1
Returns value of 'Signer' property
Возвращает значение свойства 'Signer'
public function getSigner() { return $this->get(self::SIGNER); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSigner()\n {\n if (array_key_exists(\"signer\", $this->_propDict)) {\n return $this->_propDict[\"signer\"];\n } else {\n return null;\n }\n }", "function getSignature()\n {\n return $this->_signature;\n }", "public function getSig...
[ "0.8192158", "0.67831016", "0.6732796", "0.6732796", "0.6732796", "0.6732796", "0.6732796", "0.6697558", "0.6686506", "0.663176", "0.66071093", "0.66071093", "0.6485891", "0.6478548", "0.6394605", "0.6346488", "0.6139838", "0.6132627", "0.6096516", "0.6045992", "0.6024215", ...
0.8148116
1
Sets value of 'AdditionalInfo' property
Устанавливает значение свойства 'AdditionalInfo'
public function setAdditionalInfo($value) { return $this->set(self::ADDITIONALINFO, $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setAdditionalInformation(?string $value): void {\n $this->getBackingStore()->set('additionalInformation', $value);\n }", "public function setExtraInfo(array $info)\n {\n $this->extraInfo = $info;\n }", "public function setAdditionalInformation($val)\n {\n $this-...
[ "0.69864225", "0.6979639", "0.68375194", "0.6357125", "0.63409376", "0.6339925", "0.6321244", "0.62204796", "0.62204796", "0.6220195", "0.6220195", "0.6220195", "0.62189466", "0.62189466", "0.62189466", "0.62189466", "0.6200131", "0.61768895", "0.61123496", "0.60899776", "0.5...
0.7534656
0
Returns value of 'AdditionalInfo' property
Возвращает значение свойства 'AdditionalInfo'
public function getAdditionalInfo() { $value = $this->get(self::ADDITIONALINFO); return $value === null ? (string)$value : $value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAdditionalInformation()\n {\n return $this->additionalInformation;\n }", "public function getAdditionalInformation() {}", "public function getAdditionalInformation() {}", "public function getAdditionalInformation() {}", "public function getAdditionalInformation() {}", "pub...
[ "0.84661686", "0.8365695", "0.8365695", "0.8364446", "0.8364446", "0.8364446", "0.8364343", "0.8364343", "0.8364343", "0.8364343", "0.83239156", "0.8258973", "0.8108962", "0.7840693", "0.76823896", "0.76316845", "0.7611364", "0.75756484", "0.75314486", "0.7492032", "0.7475470...
0.88274384
0
Load prices data for a list of product ids and a given store.
Загрузите данные цен для списка идентификаторов продуктов и заданного магазина.
public function loadPriceData($storeId, $productIds) { $websiteId = $this->getStore($storeId)->getWebsiteId(); // check if entities data exist in price index table $select = $this->getConnection()->select() ->from(['p' => $this->getTable('catalog_product_index_price')]) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function loadProductDataCollection($productIds, $storeId = null)\n {\n $collection = $this->productCollectionFactory->create();\n try {\n $store = $this->_storeModelStoreManagerInterface->getStore($storeId);\n } catch (\\Exception $e) {\n $this->_searchHelperDat...
[ "0.6377902", "0.6286178", "0.6254009", "0.5885216", "0.5794441", "0.57587296", "0.5700745", "0.56779045", "0.56328", "0.5610376", "0.5544135", "0.5502267", "0.5482036", "0.53766614", "0.53558075", "0.534285", "0.53397644", "0.5302919", "0.52895576", "0.5261725", "0.5240733", ...
0.71015054
0
Add a command to $this['console'] (Symfony's console component)
Добавьте команду в $this['console'] (компонент консоли Symfony)
public function command($command) { if (! $command instanceof Command) { $command = $this[$command]; } $this['console']->add($command); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addCommand($command);", "public function add(Command $command);", "private function registerConsoleCommands()\n {\n // Console Commands\n }", "private function registerConsoleCommands()\n {\n // Console Commands\n }", "public function registerArtisanCommand()\n\t{\...
[ "0.7304341", "0.6926484", "0.68666756", "0.68666756", "0.66503364", "0.6634797", "0.65980995", "0.6595667", "0.6585102", "0.65645355", "0.65317327", "0.6519502", "0.6513228", "0.6480323", "0.64171803", "0.6401555", "0.64002836", "0.63780975", "0.63765", "0.6351101", "0.632373...
0.7712684
0
Retrieve tracking url for the order
Получить URL отслеживания заказа
public static function getTrackingUrl($orderToken) { return Configs::TRACKING_URL . "#/{$orderToken}"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTrackerUrl($trackingCode, $orderId=null);", "public function get_transaction_url( $order ) {\r\n \r\n $this->view_transaction_url = MDL_COINCHECK_API_BASE. '?cmd=_view-a-trans&id=%s';\r\n \r\n return parent::get_transaction_url( $order );\r\n }", "public function g...
[ "0.718123", "0.6810285", "0.6649919", "0.6514836", "0.6507937", "0.6397123", "0.639575", "0.6339237", "0.63327515", "0.6320452", "0.6300426", "0.62978387", "0.6282804", "0.6278921", "0.62649673", "0.6262171", "0.6246346", "0.6204483", "0.61827457", "0.61535615", "0.6149346", ...
0.7669723
0
Returns the country code, for the current visitor.
Возвращает код страны для текущего посетителя.
public static function visitor_country() { $code = null; if (Director::isDev()) { if (isset($_GET['countryfortestingonly'])) { $code = $_GET['countryfortestingonly']; Controller::curr()->getRequest()->getSession()->set('countryfortestingonly', $code); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_visitor_country() {\n\t\treturn $this->get_country_code($this->get_visitor_ip_address());\n\t}", "protected static function country_code(): mixed\n\t{\n\t\treturn self::$query->country_code;\n\t}", "public function countryCode();", "public static function country()\n\t{\n\t\treturn static...
[ "0.86774015", "0.7877117", "0.77712077", "0.77142596", "0.7645294", "0.75600326", "0.75285864", "0.74842864", "0.74761164", "0.74761164", "0.74761164", "0.7330843", "0.7325794", "0.7325794", "0.7325794", "0.73137426", "0.73134124", "0.7311447", "0.73039615", "0.72930354", "0....
0.83939046
1
Additional ACF options pages can be registered here.
Дополнительные страницы параметров ACF можно зарегистрировать здесь.
public function add_options_pages() { if ( function_exists('acf_add_options_page') ) { acf_add_options_page(array( "page_title" => "Explanatory Text", "capability" => "edit_posts", "position" => 50, "icon_url" => "dashicons-format-aside...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function acf_options_page() { \n\n\t\t\t// Check ACF Admin OK\n\t\t\tif ( ! $this->admin_acf_active() ) { return; }\n\n\t\t\t// Check Options Page OK \n\t\t\tif ( ! function_exists('acf_add_options_page') ) { return; }\n\t\t\t\n\t\t\t// Add Options Page\n\t\t\t$parent = acf_add_options_page( [ \n\t\...
[ "0.83883166", "0.8345072", "0.82871836", "0.79288965", "0.7922873", "0.7890327", "0.7818423", "0.7816526", "0.77912223", "0.76465905", "0.76435196", "0.76419646", "0.7636485", "0.760936", "0.7524652", "0.75212675", "0.7429484", "0.7429062", "0.73888874", "0.73676383", "0.7359...
0.84878016
0
Removes comments icon from the admin bar.
Удаляет значок комментариев из панели управления.
public function remove_admin_bar_items() { global $wp_admin_bar; $wp_admin_bar->remove_menu("comments"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function gwt_disable_comments_admin_bar() {\r\n if (is_admin_bar_showing()) {\r\n remove_action('admin_bar_menu', 'wp_admin_bar_comments_menu', 60);\r\n }\r\n}", "function df_disable_comments_admin_bar()\r\n\t{\r\n\t\tif (is_admin_bar_showing()) {\r\n\t\t\tremove_action('admin_bar_menu', 'wp_admin_b...
[ "0.78403044", "0.77598006", "0.7736252", "0.76799655", "0.76010615", "0.7386835", "0.7361903", "0.7250317", "0.72267354", "0.7222358", "0.7222358", "0.71916944", "0.71463954", "0.71463954", "0.7060903", "0.7050019", "0.70280534", "0.70223075", "0.70223075", "0.69836855", "0.6...
0.7861123
0
Return the current logged in user by guid
Вернуть текущего авторизованного пользователя по guid
public function getLoggedInUserGuid() { $user = $this->getLoggedInUser(); return $user ? $user->guid : 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCurrentUserId();", "public function get_user_id();", "public function getUserId();", "public function getUserId();", "public function getUserId();", "public function getUserId();", "public function getUserId();", "public function getUserId();", "public function getUserId();", "...
[ "0.70025533", "0.6975075", "0.6959903", "0.6959903", "0.6959903", "0.6959903", "0.6959903", "0.6959903", "0.6959903", "0.6959903", "0.6959903", "0.69145393", "0.6890618", "0.6876107", "0.6861477", "0.68164146", "0.6786929", "0.6785448", "0.6785448", "0.6785448", "0.6773178", ...
0.73542225
0
Get current ignore access setting
Получить текущее настройка игнорирования доступа
public function getIgnoreAccess() { return elgg_get_ignore_access(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getImportIgnore() {\n return $this->getThirdPartySetting('config_import_ignore', 'import_ignore', $this->import_ignore);\n }", "public function getIgnore()\n {\n return $this->ignore;\n }", "public static function get_allowed_settings()\n {\n }", "public functio...
[ "0.71325946", "0.6565561", "0.6179892", "0.61780983", "0.61391526", "0.6031406", "0.6016636", "0.5997274", "0.5991056", "0.59624046", "0.59275246", "0.59275246", "0.5904087", "0.58565366", "0.58426017", "0.580923", "0.57551706", "0.57441086", "0.5730593", "0.5713319", "0.5698...
0.752403
0
/ page mobilisateur/addmobilisateur Ajout d'une mobilisateur
/ page mobilisateur/addmobilisateur Добавление mobilisateur
public function addmobilisateurAction() { $sessionmembre = new Zend_Session_Namespace('membre'); //$this->_helper->layout->disableLayout(); $this->_helper->layout()->setLayout('layoutpublicesmcperso'); if (!isset($sessionmembre->code_membre)) { $this->_redirect('/'); } if (isset($_POS...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function etatmobilisateurAction()\n {\n\n $sessionmembre = new Zend_Session_Namespace('membre');\n //$this->_helper->layout->disableLayout();\n $this->_helper->layout()->setLayout('layoutpublicesmcperso');\n\n if (!isset($sessionmembre->code_membre)) {\n $this->_redirect('/');\n }\n\n...
[ "0.6996486", "0.67863035", "0.67594904", "0.6687043", "0.6593787", "0.65594697", "0.6516573", "0.6493912", "0.64913505", "0.6476363", "0.64708674", "0.6396816", "0.63455445", "0.63368696", "0.6277763", "0.6256368", "0.6238567", "0.6175691", "0.6147944", "0.6109554", "0.610717...
0.73490244
0
/ page mobilisateur/listmobilisateur liste des mobilisateurs
/ страница mobilisateur/listmobilisateur список mobilisateurs
public function listmobilisateurAction() { $sessionmembre = new Zend_Session_Namespace('membre'); //$this->_helper->layout->disableLayout(); $this->_helper->layout()->setLayout('layoutpublicesmcperso'); if (!isset($sessionmembre->code_membre)) { $this->_redirect('/'); } $mobilisateur = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function listmobilisateuradminAction() {\n\n $sessionutilisateur = new Zend_Session_Namespace('utilisateur');\n //$this->_helper->layout->disableLayout();\n $this->_helper->layout()->setLayout('layoutpublicesmcadmin');\n \n if (!isset($sessionutilisateur->login)) {$this->_redirect('/administrat...
[ "0.74364346", "0.6760778", "0.66017264", "0.64315945", "0.63633835", "0.6343412", "0.6278696", "0.62405926", "0.62229973", "0.620715", "0.61971295", "0.61780566", "0.616878", "0.6152387", "0.6104882", "0.61015016", "0.6100804", "0.608719", "0.60731655", "0.6067534", "0.602231...
0.8546509
0
/ page mobilisateur/etatmobilisateur Etat une mobilisateur
/ страница мобилизатора/состояниемобилизатора Состояние мобилизатора
public function etatmobilisateurAction() { $sessionmembre = new Zend_Session_Namespace('membre'); //$this->_helper->layout->disableLayout(); $this->_helper->layout()->setLayout('layoutpublicesmcperso'); if (!isset($sessionmembre->code_membre)) { $this->_redirect('/'); } $id = (i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function listmobilisateurAction() {\n\n $sessionmembre = new Zend_Session_Namespace('membre');\n //$this->_helper->layout->disableLayout();\n $this->_helper->layout()->setLayout('layoutpublicesmcperso');\n\n if (!isset($sessionmembre->code_membre)) {\n $this->_redirect('/');\n }\n\n $...
[ "0.69084173", "0.65400565", "0.6421847", "0.64147466", "0.6007604", "0.5999295", "0.57086396", "0.56602204", "0.5631701", "0.562128", "0.55559045", "0.5512703", "0.5449182", "0.5439828", "0.5439595", "0.54266036", "0.5416764", "0.54119074", "0.53777695", "0.5373076", "0.53597...
0.74121654
0
/ page mobilisateur/addmobilisateuradmin Ajout d'une mobilisateur
/ page mobilisateur/addmobilisateuradmin Добавление мобильиста
public function addmobilisateuradminAction() { $sessionutilisateur = new Zend_Session_Namespace('utilisateur'); //$this->_helper->layout->disableLayout(); $this->_helper->layout()->setLayout('layoutpublicesmcadmin'); if(!isset($sessionutilisateur->login)) {$this->_redirect('/administration/logi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function etatmobilisateuradminAction()\n {\n\n $sessionutilisateur = new Zend_Session_Namespace('utilisateur');\n //$this->_helper->layout->disableLayout();\n $this->_helper->layout()->setLayout('layoutpublicesmcadmin');\n \n if (!isset($sessionutilisateur->login)) {$this->_redirect('/admini...
[ "0.72520816", "0.6916917", "0.6912907", "0.6775734", "0.668698", "0.6587203", "0.6540747", "0.6518672", "0.648188", "0.642208", "0.63547915", "0.63450366", "0.6344053", "0.63303715", "0.63109416", "0.6275563", "0.62674415", "0.6258151", "0.62400585", "0.6233684", "0.62166566"...
0.71627903
1
/ page mobilisateur/listmobilisateur liste des mobilisateurs
/ страница mobilisateur/listmobilisateur список mobilisateurs
public function listmobilisateuradminAction() { $sessionutilisateur = new Zend_Session_Namespace('utilisateur'); //$this->_helper->layout->disableLayout(); $this->_helper->layout()->setLayout('layoutpublicesmcadmin'); if (!isset($sessionutilisateur->login)) {$this->_redirect('/administration/login')...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function listmobilisateurAction() {\n\n $sessionmembre = new Zend_Session_Namespace('membre');\n //$this->_helper->layout->disableLayout();\n $this->_helper->layout()->setLayout('layoutpublicesmcperso');\n\n if (!isset($sessionmembre->code_membre)) {\n $this->_redirect('/');\n }\n\n $...
[ "0.8546509", "0.6760778", "0.66017264", "0.64315945", "0.63633835", "0.6343412", "0.6278696", "0.62405926", "0.62229973", "0.620715", "0.61971295", "0.61780566", "0.616878", "0.6152387", "0.6104882", "0.61015016", "0.6100804", "0.608719", "0.60731655", "0.6067534", "0.6022312...
0.74364346
1
Q confirm Confirms if the bot is authed with Q
Q подтверждает, авторизован ли бот с Q
function qconfirm(&$irc, &$data) { global $pickupchannel; if($data->message == "Remember: NO-ONE from QuakeNet will ever ask for your password. NEVER send your password to ANYONE except Q@CServe.quakenet.org.") { echo "\n\n\n\nSHIIIT\n\n\n\n"; $irc->join($...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static function confirm_account() {\n \n # hash GET param exists\n if ($hash = data('hash')) {\n \n $hash = confirm_account($hash);\n\n if ($hash === -3)\n flash('Algo ocorreu errado. Tente novamente mais tarde..', 'error');\n else if ...
[ "0.6658641", "0.65871006", "0.631289", "0.630034", "0.6283119", "0.6276487", "0.6275576", "0.6185592", "0.6162147", "0.6152652", "0.6133511", "0.60836256", "0.59814405", "0.5965078", "0.59468037", "0.59413147", "0.59306675", "0.5895425", "0.5861391", "0.583895", "0.58150935",...
0.77659047
0
Calculate duration in months from year & month
Вычислить продолжительность в месяцах из года и месяца
function calculateDurationInMonthsAndYears($months) { $duration = []; $years = floor($months/12); $months = $months%12; $duration["month"] = $months; $duration["years"] = $years; return $duration; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDifferenceInMonths();", "public function getMonths();", "function convertMonths($months){\n\t\treturn $seconds = $months * 2635200; // Seconds for 30.5 days\n\t}", "public static function getMonth(){\n\t\t// this represents the number of seconds ni a month\n\t\t// editing this will lead to...
[ "0.69311464", "0.63495886", "0.61990505", "0.6094006", "0.6044016", "0.60174686", "0.591602", "0.58024275", "0.58017385", "0.5727241", "0.57053465", "0.5655696", "0.5644924", "0.5591834", "0.55795735", "0.55244136", "0.5524124", "0.55149406", "0.55029726", "0.550102", "0.5499...
0.72407365
0
The protected method save_alerts_user saves an alert's user
Защищённый метод save_alerts_user сохраняет пользователя оповещения
protected function save_alerts_user($alert_id, $user_id) { // Create user's activity for alert $user_activity = array( 'alert_id' => $alert_id, 'user_id' => $user_id, 'page_seen' => 0, 'deleted' => 0, 'updated' => time(), 'created'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function saving(User $user)\n {\n //\n }", "public function saved(User $user)\n {\n //\n }", "public function saveUser() {\n\n try {\n\n $this->save();\n\n }catch (Exception $e) {\n\n throw new Exception($e->getMessage());\n\n }\n ...
[ "0.6659774", "0.6607691", "0.65940225", "0.65059215", "0.6499467", "0.6397574", "0.6364595", "0.6348377", "0.6338866", "0.62932944", "0.6261112", "0.62482023", "0.6216686", "0.6213203", "0.61952806", "0.61512583", "0.61137706", "0.6107725", "0.60996836", "0.6092934", "0.60866...
0.760509
0
///////////////////// Function name: db_to_arr Description: take a column from table "intro" (specific to this implemntation), and create from it a string of comma seperated values. The values are the fields in the column. This is used to make an array in javasScript. Paramerters: column name Return value: none ///////...
///////////////////// Имя функции: db_to_arr Описание: взять столбец из таблицы "intro" (специфичный для этой реализации), и создать из него строку из запятой разделяемых значений. Значения — это поля в столбце. Это используется для создания массива в JavaScript. Параметры: имя столбца Возвращаемое значение: ничего ///...
function db_to_arr($column_name) { $i = 0; //count lines $db_handle = mysql_query("SELECT {$column_name} FROM intro "); while($row = mysql_fetch_array($db_handle)) { if($row[$column_name] && $row[$column_name] != "0000") //if not null, 0000 is default for year { if(strrpos($row[$column_name], ",")) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getToArray()\n {\n $row = [];\n foreach (array_keys($this->columns) as $column) {\n $row[$column] = trim($this->getColumnValue($column));\n }\n return $row;\n }", "function db_tableby_to_sqladd($arr){\t\n\tif ( is_array( $arr ) ) {\n\t\t$s='';\n\t\tfor...
[ "0.61560994", "0.61430556", "0.608588", "0.6003343", "0.59100807", "0.57980317", "0.57403976", "0.5653186", "0.56228435", "0.5618131", "0.55655426", "0.55507976", "0.55346394", "0.5534168", "0.5511066", "0.5497335", "0.54643434", "0.5436971", "0.5373393", "0.536549", "0.53637...
0.7806577
0
Poll Transmission for status of current torrents. The database is updated with current status of torrents.
Передача статуса текущих торрентов. База данных обновляется текущим статусом торрентов.
public function checkTorrentsStatus() { // Percent done is a number between 0 and 1 $requestPayload = array( "method" => "torrent-get", "arguments" => array("fields" => array("id", "name", "totalSize", "percentDone", "hashString", "torrentFile", "magnetLink", "rateDownload")) ); $jsonRequest = json_en...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function refreshTaskStatus(){\n\n $webCronResult = $this->webCronResults()->orderBy('code', 'desc')->first();\n\n if ($webCronResult) {\n\n if ($webCronResult->code >= 300) {\n // bad status\n $this->status = 0 ;\n }else{\n // ...
[ "0.5726237", "0.56728107", "0.56569445", "0.5596818", "0.5439202", "0.53294647", "0.5262726", "0.51956004", "0.51908374", "0.5182938", "0.51614743", "0.50909156", "0.50010246", "0.49920884", "0.49708086", "0.49579227", "0.49475378", "0.49447253", "0.49428353", "0.49179494", "...
0.7297865
0
Creates a form to delete a GrabData entity.
Создает форму для удаления сущности GrabData.
private function createDeleteForm(GrabRule $grabDatum) { return $this->createFormBuilder() ->setAction($this->generateUrl('admin_sa_grab-data_delete', array('id' => $grabDatum->getId()))) ->setMethod('DELETE') ->getForm() ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function deleteForm()\n\t{\n\t\t$form = new \\IPS\\Helpers\\Form( 'form', 'delete' );\n\t\t$form->addMessage( 'node_delete_blurb_no_content' );\n\t\t\n\t\treturn $form;\n\t}", "private function createDeleteForm ( Maileguak $maileguak )\n {\n return $this->createFormBuilder()\n ...
[ "0.6796001", "0.6518372", "0.64857924", "0.6419978", "0.64066726", "0.637552", "0.6363311", "0.6347952", "0.6329355", "0.6320336", "0.6317296", "0.6304899", "0.6270608", "0.6239076", "0.6237239", "0.6220017", "0.6208971", "0.6202587", "0.6201817", "0.6193901", "0.61895883", ...
0.7199301
0
SHOW TEAM LIST Show players in sub team $game_id $team_id $team_sub_id $league_id $allowed_player_id $mode= 1 league ID isn't known = 2 league ID is known
ПОКАЗАТЬ СПИСОК КОМАН Показать игроков в подкоманде $game_id $team_id $team_sub_id $league_id $allowed_player_id $mode= 1 идентификатор лиги неизвестен = 2 идентификатор лиги известен
function ShowTeamShowPlayers($team_id,$team_sub_id,$game_id,$mode = 1,$allowed_player_id = 0){ global $db_league_players,$db_admin,$db_admin_guids,$db_clan_games; if ($mode == 2){ $admin_guids = ""; $sub_team = ""; } else { $res_game = mysql_query("SELECT clan_games_game FROM $db_clan_games WHERE clan_game...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ListAllowedPlayers(){\n\t\n\tglobal $db_admin,$db_admin_guids,$db_league_teams,$db_league_teams_sub,$db_league_teams_sub_leagues,$db_league_leagues,$db_league_players,$db_clan_games,$db_league_seasons_round_allowed_players;\n\t\n\tif ($_GET['mode'] != \"league\"){\n\t\t\n\t\techo Menu();\n\t\t\n\t\tKillUs...
[ "0.72173315", "0.6366328", "0.62107897", "0.5962764", "0.59562147", "0.58814335", "0.5831519", "0.58178693", "0.5812512", "0.5761344", "0.57304186", "0.5712501", "0.56841695", "0.5677066", "0.5673284", "0.56380284", "0.56097174", "0.56029207", "0.5587503", "0.55863094", "0.55...
0.84685683
0
LeagueSeasonTeamsResults Je i v /cfg/eden_league.php Zobrazeni vysledku tymu v sezone
LeagueSeasonTeamsResults Je i v /cfg/eden_league.php Zobrazeni vysledku tymu v sezone
function LeagueSeasonTeamsResults(){ global $db_league_leagues,$db_league_teams,$db_league_teams_sub,$db_league_seasons,$db_league_seasons_results_teams,$db_league_awards; global $db_country,$db_league_seasons_rounds; global $eden_cfg; global $url_flags,$url_league_awards; $result = ""; $result .= "<table sty...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function LeagueSeasonPlayersResults(){\n\t\n\tglobal $db_admin,$db_admin_contact,$db_admin_guids,$db_league_teams,$db_league_teams_sub,$db_league_seasons,$db_league_seasons_results_players;\n\tglobal $db_country,$db_league_seasons_rounds,$db_league_players,$db_league_awards;\n\tglobal $eden_cfg;\n\tglobal $url_fla...
[ "0.7644486", "0.70751536", "0.67354023", "0.66878366", "0.64946383", "0.637977", "0.6371251", "0.63671374", "0.6346919", "0.63450265", "0.6328256", "0.6295237", "0.61552304", "0.60882163", "0.6080508", "0.6077736", "0.6074801", "0.60459584", "0.6023377", "0.59755325", "0.5968...
0.81306845
0
LeagueSeasonPlayersResults Je i v /cfg/eden_league.php Zobrazeni vysledku hracu v sezone
LeagueSeasonPlayersResults Je i v /cfg/eden_league.php Zobrazeni vysledku hracu v sezone
function LeagueSeasonPlayersResults(){ global $db_admin,$db_admin_contact,$db_admin_guids,$db_league_teams,$db_league_teams_sub,$db_league_seasons,$db_league_seasons_results_players; global $db_country,$db_league_seasons_rounds,$db_league_players,$db_league_awards; global $eden_cfg; global $url_flags,$url_league_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function LeagueSeasonTeamsResults(){\n\t\n\tglobal $db_league_leagues,$db_league_teams,$db_league_teams_sub,$db_league_seasons,$db_league_seasons_results_teams,$db_league_awards;\n\tglobal $db_country,$db_league_seasons_rounds;\n\tglobal $eden_cfg;\n\tglobal $url_flags,$url_league_awards;\n\t\n\t$result = \"\";\n\...
[ "0.78913397", "0.74179655", "0.67957884", "0.6563778", "0.6428345", "0.6420337", "0.6350053", "0.6269324", "0.62174594", "0.62074333", "0.61606354", "0.6091576", "0.6075755", "0.6038162", "0.59723884", "0.59410155", "0.59332544", "0.58928007", "0.585586", "0.580125", "0.57740...
0.80964524
0
Season Results Zobrazeni vysledku sezony $sid= Season ID $mode= p (players) t (teams)
Результаты сезона Зobrazeni vysledku sezony $sid= ID сезона $mode= p (игроки) t (команды)
function SeasonResults($sid = 0,$mode = "p"){ global $db_league_leagues,$db_league_seasons_rounds,$db_league_seasons,$db_clan_games,$db_league_seasons_round_allowed_players; global $db_admin,$db_league_seasons_rounds_results_players,$db_league_teams; $res_rounds = mysql_query("SELECT a.admin_nick, lt.league_team...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function LeagueSeasonTeamsResults(){\n\t\n\tglobal $db_league_leagues,$db_league_teams,$db_league_teams_sub,$db_league_seasons,$db_league_seasons_results_teams,$db_league_awards;\n\tglobal $db_country,$db_league_seasons_rounds;\n\tglobal $eden_cfg;\n\tglobal $url_flags,$url_league_awards;\n\t\n\t$result = \"\";\n\...
[ "0.65013796", "0.64354765", "0.596145", "0.5950508", "0.5843987", "0.5732962", "0.57239294", "0.56512773", "0.5606506", "0.5581604", "0.5528315", "0.55240315", "0.5465417", "0.546038", "0.53826463", "0.5326893", "0.53207844", "0.5304753", "0.5302938", "0.5300947", "0.5270942"...
0.7893726
0
"Attaching event listeners by event name fails if preceded by detachment of all listeners for that type." Test contains 4 steps: assigning event manager to dummy service with single log event listener attached attaching second log listener detaching all log listeners attaching different listener
Привязка обработчиков событий по имени события не удается, если предшествует открепление всех обработчиков для этого типа. Тест содержит 4 шага: назначение менеджера событий думающему сервису с одним обработчиком события журнала, привязка второго обработчика события журнала, открепление всех обработчиков событий журнал...
public function testBug1331() { $di = new Phalcon\Di; $di->set('componentX', function() use ($di) { $component = new LeDummyComponent(); $eventsManager = new Phalcon\Events\Manager; $eventsManager->attach('log', $di->get('MyFirstWeakrefListener')); $component->setEventsManager($eventsManager); retur...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testBug1331BackwardCompatibility()\n\t{\n\t\t$di = new Phalcon\\Di;\n\t\t$di->set('componentX', function() use ($di) {\n\t\t\t$component = new LeDummyComponent();\n\t\t\t$eventsManager = new Phalcon\\Events\\Manager;\n\t\t\t$eventsManager->attach('log', $di->get('MyFirstWeakrefListener'));\n\t\t\t$...
[ "0.69945896", "0.67635643", "0.6375402", "0.6313861", "0.62157464", "0.60791045", "0.60077304", "0.596841", "0.5953877", "0.58550787", "0.5840508", "0.58236134", "0.57880807", "0.57793", "0.57509434", "0.57075226", "0.570751", "0.56983125", "0.5659151", "0.5617767", "0.557779...
0.70835644
0
"Attaching event listeners by event name fails if preceded by detachment of all listeners for that type." Test contains 4 steps: assigning event manager to dummy service with single log event listener attached attaching second log listener detaching all log listeners attaching different listener NOTE: This test looks t...
Привязка обработчиков событий по имени не удается, если предшествует отсоединение всех обработчиков для данного типа. Тест содержит 4 шага: назначение менеджера событий dummy-сервису с привязанным одним обработчиком события логирования, привязка второго обработчика события логирования, отсоединение всех обработчиков со...
public function testBug1331BackwardCompatibility() { $di = new Phalcon\Di; $di->set('componentX', function() use ($di) { $component = new LeDummyComponent(); $eventsManager = new Phalcon\Events\Manager; $eventsManager->attach('log', $di->get('MyFirstWeakrefListener')); $component->setEventsManager($eve...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testBug1331()\n\t{\n\t\t$di = new Phalcon\\Di;\n\t\t$di->set('componentX', function() use ($di) {\n\t\t\t$component = new LeDummyComponent();\n\t\t\t$eventsManager = new Phalcon\\Events\\Manager;\n\t\t\t$eventsManager->attach('log', $di->get('MyFirstWeakrefListener'));\n\t\t\t$component->setEventsM...
[ "0.7127162", "0.6781595", "0.63583195", "0.6212212", "0.59697783", "0.58513314", "0.58121955", "0.58090234", "0.57643217", "0.57622194", "0.5736965", "0.571459", "0.5603445", "0.55999464", "0.559756", "0.5580654", "0.55109173", "0.55109173", "0.5507117", "0.5504725", "0.54952...
0.7113836
1
Return all employees as array so it is easier to display
Верните всех сотрудников в виде массива, чтобы было проще отображать
public function findAllEmployeesAsArray() { return $this->createQueryBuilder('e') ->getQuery() ->getArrayResult(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function DisplayAll() {\n\t\t\t\n\t\t\t$sql = \"SELECT * FROM employees \";\n\t\t\t$statement = Database::$db->prepare($sql);\n\t\t\t$statement->execute();\n\t\t\t$employees = [];\n\t\t\twhile($row = $statement->fetch(PDO::FETCH_ASSOC)) {\n\t\t\t\t$employees[] = new Employee($row['Code']);\n\t\t\t}\n...
[ "0.8228653", "0.80621135", "0.8024984", "0.7933382", "0.7841179", "0.76505196", "0.76271236", "0.76209944", "0.75582683", "0.7542565", "0.7517745", "0.7419917", "0.7401478", "0.7297051", "0.725388", "0.7250832", "0.72376794", "0.72340286", "0.7232349", "0.7227829", "0.7224706...
0.8335281
0
Clears DataObject from relations.
Очищает DataObject от отношений.
public function clearRelations(): DataObject { foreach ($this::RELATIONS as $relationKey => $relation) { unset($this->{$relationKey}); } return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function resetRelations()\n\t{\n\t\t$this->relations = array();\n\t}", "function clear()\r\n\t{\r\n\t\t// Clear the all list\r\n\t\t$this->all = array();\r\n\r\n\t\t// Clear errors\r\n\t\t$this->error = new stdClass();\r\n\t\t$this->error->all = array();\r\n\t\t$this->error->string = '';\r\n\r\n\t\t// Cle...
[ "0.72300476", "0.6901824", "0.68786913", "0.67584693", "0.67107135", "0.66384166", "0.6590225", "0.63975847", "0.6323429", "0.63040864", "0.6236526", "0.62162757", "0.6215434", "0.6214214", "0.6212965", "0.6196552", "0.6186993", "0.618044", "0.61779267", "0.6172707", "0.61717...
0.81464666
0
Get product package parameters for temando
Получить параметры упаковки продукта для temando
public function getProductTemandoParams() { $return = array('packaging_mode'); for($i=1; $i<=5; $i++) { $return[] = "package_{$i}_description"; $return[] = "package_{$i}_type"; $return[] = "package_{$i}_fragile"; $return[] = "package_{$i}_weight"; $return[] = "package_{$i}_length"; $re...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function getExportModelParameters(Product $product)\n {\n $object = new \\ReflectionObject($product);\n $property = $object->getProperty('_parameters');\n $property->setAccessible(true);\n return $property->getValue($product);\n }", "public function getData()\n {\n ...
[ "0.66258353", "0.61609155", "0.6114301", "0.6007139", "0.59229124", "0.5877141", "0.58763975", "0.5849248", "0.5755074", "0.5755074", "0.57343656", "0.57343656", "0.57343656", "0.57343656", "0.57343656", "0.57343656", "0.57343656", "0.57343656", "0.572348", "0.5685262", "0.56...
0.83408827
0
Create a new DateRange object from start and end date as Ymd formatted strings
Создайте новый объект DateRange из начальной и конечной даты в виде строк в формате Ymd
public static function fromYmd(string $start, string $end): DateRange { return new DateRange(JustDate::fromYmd($start), JustDate::fromYmd($end)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function createDateRange($startDate, $endDate, $format = \"Y-m-d\")\r\n{\r\n $begin = new DateTime($startDate);\r\n $end = new DateTime($endDate);\r\n \r\n $interval = new DateInterval('P1D'); \r\n $dateRange = new DatePeriod($begin, $interval, $end);\r\n \r\n $range = [];\r\n \r\n for($i=$beg...
[ "0.6808518", "0.6543902", "0.64143616", "0.62102777", "0.61962414", "0.6132356", "0.60825056", "0.60556024", "0.60520893", "0.6047223", "0.60471934", "0.60014397", "0.59789485", "0.5965888", "0.5922588", "0.5893837", "0.58787143", "0.5875287", "0.5864332", "0.5861786", "0.584...
0.7626535
0
Create a new DateRange object which is the intersection of $r1 and $r2 If $r1 and $r2 have no intersection and are totally separate, then this function returns null
Создайте новый объект DateRange, который представляет собой пересечение $r1 и $r2. Если $r1 и $r2 не пересекаются и полностью разделяются, то эта функция возвращает null.
public static function intersection(DateRange $r1, DateRange $r2): ?DateRange { $start = JustDate::latest($r1->start, $r2->start); $end = JustDate::earliest($r1->end, $r2->end); if ($start->isAfter($end)) { // There's no intersection return null; } ret...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function intersections(): self\n {\n $current = null;\n $isPreviouslyContained = false;\n $reducer = function (Sequence $sequence, Period $period) use (&$current, &$isPreviouslyContained): Sequence {\n if (null === $current) {\n $current = $period;\n\n ...
[ "0.59411556", "0.5741939", "0.5698685", "0.5618078", "0.542498", "0.5314924", "0.5284847", "0.52704847", "0.52466756", "0.52130294", "0.51295507", "0.5080017", "0.50422937", "0.4999948", "0.49621534", "0.49485636", "0.49474338", "0.4931763", "0.48952556", "0.48939675", "0.488...
0.7978074
0
Json representation is object with 'start' and 'end' properties
Json-представление — это объект с свойствами 'start' и 'end'
public function jsonSerialize(): array { return [ 'start' => (string) $this->start, 'end' => (string) $this->end, ]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function jsonSerialize()\n {\n $json = array();\n $json['endCursor'] = $this->endCursor;\n $json['hasNextPage'] = $this->hasNextPage;\n $json['hasPrevPage'] = $this->hasPrevPage;\n $json['startCursor'] = $this->startCursor;\n\n return $json;\n }", "functio...
[ "0.6889343", "0.6701645", "0.65143967", "0.5916348", "0.5827126", "0.5827126", "0.57765275", "0.5775196", "0.5738229", "0.5711419", "0.56690735", "0.56563604", "0.56383", "0.563226", "0.5625815", "0.5609264", "0.56091946", "0.5602312", "0.5602312", "0.5602312", "0.55724186", ...
0.7248712
0
Test whether a particular date range is completely contained within this range
Проверить, полностью ли определенный диапазон дат содержится в этом диапазоне
public function contains(DateRange $range): bool { return $this->start->isBeforeOrSameAs($range->start) && $this->end->isAfterOrSameAs($range->end); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function is_within_date_range( $time, $range_start, $range_end ) {\n\tif ( ! is_int( $range_start ) ) {\n\t\t$range_start = strtotime( $range_start );\n\t}\n\n\tif ( ! is_int( $range_end ) ) {\n\t\t$range_end = strtotime( $range_end );\n\t}\n\n\treturn $time > $range_start && $time < $range_end;\n}", "private fu...
[ "0.72426397", "0.7241391", "0.7008008", "0.68345153", "0.6767573", "0.67662233", "0.6749946", "0.67207533", "0.6711818", "0.66846484", "0.655969", "0.65348613", "0.6494709", "0.64334685", "0.6421759", "0.64104366", "0.6406525", "0.64023274", "0.63684803", "0.6358056", "0.6351...
0.74093854
0
Specify the consistency level for this query.
Укажите уровень согласованности для этого запроса.
public function consistency($consistency) { if ($consistency == self::NOT_BOUNDED) { $this->options['scan_consistency'] = 'not_bounded'; } else if ($consistency == self::REQUEST_PLUS) { $this->options['scan_consistency'] = 'request_plus'; } else if ($consistency == self::...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function ensureConsistency()\n {\n }", "public function ensureConsistency()\n {\n }", "public function ensureConsistency()\n {\n }", "public function ensureConsistency()\n {\n }", "public function ensureConsistency()\n {\n }", "public function ensureConsistency()\n ...
[ "0.54391", "0.54391", "0.54391", "0.54391", "0.54391", "0.539124", "0.539124", "0.53371596", "0.53371596", "0.53371596", "0.53371596", "0.48485973", "0.471771", "0.46443698", "0.45958912", "0.45412344", "0.45077625", "0.44904783", "0.4417916", "0.44117102", "0.44077125", "0...
0.72178763
0
Test case for addVendorComplianceSurveyFileByURL Attach a file to a vendorComplianceSurvey by URL..
Тест-кейс для addVendorComplianceSurveyFileByURL. Прикрепить файл к vendorComplianceSurvey по URL.
public function testAddVendorComplianceSurveyFileByURL() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testAddVendorComplianceSurveyFile()\n {\n }", "protected function addVendorComplianceSurveyFileByURLRequest($body, $vendor_compliance_survey_id)\n {\n // verify the required parameter 'body' is set\n if ($body === null) {\n throw new \\InvalidArgumentException(\n...
[ "0.64774317", "0.64061517", "0.62513965", "0.6089294", "0.6080073", "0.6044074", "0.6038264", "0.5878985", "0.5844206", "0.58036274", "0.5672194", "0.54980135", "0.5432378", "0.53772897", "0.53339636", "0.53320974", "0.5321754", "0.531954", "0.5303674", "0.5252528", "0.524145...
0.77354425
0
Test case for addVendorComplianceSurveyTag Add new tags for a vendorComplianceSurvey..
Тест-кейс для addVendorComplianceSurveyTag Добавление новых тегов для vendorComplianceSurvey.
public function testAddVendorComplianceSurveyTag() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testGetVendorComplianceSurveyTags()\n {\n }", "public function testDeleteVendorComplianceSurveyTag()\n {\n }", "public function testAddVendorComplianceSurvey()\n {\n }", "public function testAddVendorComplianceSurveyAudit()\n {\n }", "protected function addVendorComp...
[ "0.7272383", "0.684376", "0.6710105", "0.6561944", "0.63787377", "0.6318094", "0.6198338", "0.61687243", "0.6005345", "0.5990046", "0.5942052", "0.5940935", "0.5906524", "0.58989793", "0.58268875", "0.5817135", "0.5784253", "0.57697695", "0.5754871", "0.5754049", "0.5744009",...
0.7894823
0
Test case for deleteVendorComplianceSurvey Delete a vendorComplianceSurvey.
Тест-кейс для deleteVendorComplianceSurvey. Удаление vendorComplianceSurvey.
public function testDeleteVendorComplianceSurvey() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testDeleteVendorComplianceSurveyTag()\n {\n }", "protected function deleteVendorComplianceSurveyRequest($vendor_compliance_survey_id)\n {\n // verify the required parameter 'vendor_compliance_survey_id' is set\n if ($vendor_compliance_survey_id === null) {\n thro...
[ "0.6932628", "0.6759162", "0.6747259", "0.64157975", "0.63229185", "0.63229185", "0.60964894", "0.60964894", "0.60822535", "0.6078156", "0.6064927", "0.6064927", "0.5869132", "0.5758861", "0.5694972", "0.5688069", "0.5595517", "0.5561817", "0.5528854", "0.5476757", "0.5445683...
0.7542483
0
Test case for deleteVendorComplianceSurveyFile Delete a file for a vendorComplianceSurvey..
Тест-кейс для deleteVendorComplianceSurveyFile. Удаление файла для vendorComplianceSurvey.
public function testDeleteVendorComplianceSurveyFile() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testDeleteVendorComplianceSurvey()\n {\n }", "public function testDeleteReplenishmentFile()\n {\n }", "public function testDeleteVendorComplianceSurveyTag()\n {\n }", "public function testDeleteExternalShipmentFile()\n {\n }", "public function testDeleteFile()\n {...
[ "0.7365383", "0.69776917", "0.6969207", "0.68709624", "0.6763314", "0.67562115", "0.6615763", "0.654256", "0.6489594", "0.6449828", "0.6433483", "0.63997024", "0.63997024", "0.63175905", "0.6317303", "0.6243808", "0.61395884", "0.61081845", "0.61081845", "0.6054983", "0.60257...
0.8609572
0
Test case for deleteVendorComplianceSurveyTag Delete a tag for a vendorComplianceSurvey..
Тестовый случай для deleteVendorComplianceSurveyTag Удаление тега для vendorComplianceSurvey.
public function testDeleteVendorComplianceSurveyTag() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testDeleteVendorComplianceSurvey()\n {\n }", "public function testDeleteReplenishmentTag()\n {\n }", "public function testDeleteVendorComplianceSurveyFile()\n {\n }", "public function test_deleteReplenishmentProcessTag() {\n\n }", "public function test_deleteLegacyLowst...
[ "0.75001514", "0.70544374", "0.7025557", "0.68971145", "0.6834549", "0.6813373", "0.6797553", "0.6786324", "0.67576134", "0.67004544", "0.66620636", "0.6638457", "0.66014445", "0.66011566", "0.66011566", "0.6531757", "0.6512446", "0.6496821", "0.6480844", "0.64776444", "0.647...
0.8647851
0
Test case for getDuplicateVendorComplianceSurveyById Get a duplicated a vendorComplianceSurvey by id.
Тест-кейс для getDuplicateVendorComplianceSurveyById Получить дублированный vendorComplianceSurvey по id.
public function testGetDuplicateVendorComplianceSurveyById() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getDuplicateVendorComplianceSurveyByIdRequest($vendor_compliance_survey_id)\n {\n // verify the required parameter 'vendor_compliance_survey_id' is set\n if ($vendor_compliance_survey_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the...
[ "0.7375955", "0.67451006", "0.61819744", "0.57770336", "0.552282", "0.5482857", "0.5471979", "0.5366605", "0.51834106", "0.517411", "0.5128608", "0.51049936", "0.50872576", "0.50774026", "0.5064416", "0.50637686", "0.50333077", "0.5033139", "0.50024766", "0.49658948", "0.4956...
0.70179504
1
Test case for updateVendorComplianceSurvey Update a vendorComplianceSurvey.
Тест-кейс для updateVendorComplianceSurvey Обновление vendorComplianceSurvey.
public function testUpdateVendorComplianceSurvey() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testUpdateVendorComplianceSurveyCustomFields()\n {\n }", "public function updateVendorComplianceSurvey($body)\n {\n $this->updateVendorComplianceSurveyWithHttpInfo($body);\n }", "public function testDeleteVendorComplianceSurvey()\n {\n }", "protected function deleteVe...
[ "0.75309944", "0.6505394", "0.64308417", "0.6350889", "0.6316221", "0.6316221", "0.6225809", "0.60116196", "0.60116196", "0.58700883", "0.5862898", "0.5855638", "0.58488756", "0.58447593", "0.5816928", "0.57988924", "0.5793409", "0.57602024", "0.57602024", "0.57500476", "0.56...
0.86415166
0
Test case for updateVendorComplianceSurveyCustomFields Update a vendorComplianceSurvey custom fields.
Тест-кейс для updateVendorComplianceSurveyCustomFields Обновление пользовательских полей vendorComplianceSurvey.
public function testUpdateVendorComplianceSurveyCustomFields() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateVendorComplianceSurveyCustomFields($body)\n {\n $this->updateVendorComplianceSurveyCustomFieldsWithHttpInfo($body);\n }", "public function testUpdateVendorComplianceSurvey()\n {\n }", "public function test_updateReplenishmentProcessCustomFields() {\n\n }", "public ...
[ "0.7293148", "0.70978254", "0.64022875", "0.63926035", "0.63646907", "0.6311234", "0.6274791", "0.6111963", "0.6109123", "0.6102106", "0.60357696", "0.5958321", "0.58887213", "0.58794284", "0.56927675", "0.5485317", "0.54340416", "0.541211", "0.54019564", "0.5349201", "0.5318...
0.86562884
0
Data that should be preloaded for the container. Templates/phrases may be accidentally (or intentionally) rendered in the view or before the container is set to be rendered. Preloading data here can allow all the data to be fetched at once.
Данные, которые следует предзагрузить для контейнера. Шаблоны/фразы могут быть случайно (или намеренно) отрендерены в представлении или до того, как контейнер будет установлен для рендеринга. Предзагрузка данных здесь позволяет получить все данные сразу.
protected function _preloadContainerData() { $this->preloadTemplate('page_nav'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function _preload() {\n }", "protected function LoadData()\n\t{\n\t\t$head = $this->GetProject()->GetHeadCommit();\n\t\t$this->tpl->assign(\"head\",$head);\n\n\t\t$this->tpl->assign('page', $this->params['page']);\n\t\t$skip = $this->params['page'] * 100;\n\n\t\t$headlist = $this->GetProject()->GetH...
[ "0.6343314", "0.61794156", "0.6103424", "0.60131645", "0.5975002", "0.59183383", "0.58694077", "0.58108115", "0.5806258", "0.57801545", "0.57638407", "0.576372", "0.5746515", "0.56977963", "0.56902516", "0.567335", "0.56337726", "0.56140476", "0.56065905", "0.5603404", "0.560...
0.7710511
0
Fallback for rendering an "unrepresentable" message.
Резервный вариант отображения сообщения "непредставимого".
public function renderUnrepresentable() { return $this->renderError(new XenForo_Phrase('requested_page_is_unrepresentable_in_html')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function renderMessage() {}", "protected function renderAsError() {}", "public function render(): string\n {\n $message = new TextNode($this->notSupportedMessege);\n\n return $this->open() . $this->renderChildren() . $message . $this->close();\n }", "public function __toString()...
[ "0.65093213", "0.63625646", "0.6214522", "0.59946907", "0.589575", "0.5884664", "0.58260334", "0.58171207", "0.57887864", "0.57400423", "0.5733457", "0.57104826", "0.5695828", "0.5675146", "0.56742424", "0.56395656", "0.56389743", "0.5638401", "0.5608438", "0.5605906", "0.555...
0.7660824
0
Generate the form key based on IP address
Создайте ключ формы на основе IP-адреса
private function generateFormkey() { $ip = $_SERVER['REMOTE_ADDR']; // mt_rand() is better than rand() $uniqid = uniqid(mt_rand(), true); return md5($ip . $uniqid); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getKey()\n {\n\treturn 'ip:' . $this->ip;\n }", "public static function generateKey()\n {\n return openssl_digest(php_uname() . \"-\" . $_SERVER[\"REMOTE_ADDR\"], 'MD5', true);\n }", "abstract protected function generateKey();", "function mswProdKeyGen() {\n $_SERVER['H...
[ "0.6912268", "0.68697757", "0.6544286", "0.64752644", "0.6238394", "0.61175805", "0.60931057", "0.6042118", "0.6022244", "0.59811956", "0.5977744", "0.59616995", "0.594829", "0.5937962", "0.5913995", "0.5904669", "0.58925515", "0.58887124", "0.58887124", "0.58887124", "0.5888...
0.800465
0
Return the form key for inclusion in HTML
Верните ключ формы для включения в HTML
public function getFormkey() { // generate the key and store it inside the class $this->formkey = $this->generateFormkey(); // store the form key in the session $_SESSION['formkey'] = $this->formkey; // output the form key return "<input type='hidden' name='formkey' v...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFormKey()\n {\n return $this->getBlockHtml('form_key');\n }", "private function key() {\n return sprintf('form_%s_%d', $this->module->name, $this->module->id);\n }", "public function getFormKey()\n {\n return Mage::getSingleton('core/session')->getFormKey();\...
[ "0.83583146", "0.78992873", "0.7845595", "0.7843136", "0.71532387", "0.7141773", "0.7122179", "0.69783", "0.68587714", "0.6747576", "0.6747576", "0.67470694", "0.66598237", "0.66060126", "0.66047627", "0.65835524", "0.6565458", "0.65635806", "0.655621", "0.6521787", "0.650290...
0.8145737
1
Validate the form key against the one previously set
Проверьте ключ формы на соответствие ранее заданному
public function validate() { return $_POST['formkey'] === $this->oldFormkey; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function validate_key( $key ) {\n \treturn self::$instance->validate( $key );\n }", "private function checkPresharedkeyForm(){\n\t\tif(!isset($_POST['services_ipsec_key_pskey'])){\n\t\t\tErrorHandler::addError('formerror','services_ipsec_key_pskey');\n\t\t}\n\t\t\n\t\tif(ErrorHandler::errorCount(...
[ "0.68630564", "0.669512", "0.66931117", "0.6677665", "0.66311616", "0.65796393", "0.65443856", "0.6451032", "0.64331216", "0.64252746", "0.63272274", "0.631559", "0.62736934", "0.62583804", "0.6240612", "0.6170513", "0.61204606", "0.6116328", "0.6066981", "0.6053776", "0.6053...
0.74740344
0
Get the table qualified key name.
Получить квалифицированное имя ключа таблицы.
public function getQualifiedKeyName() { return $this->getKeyName(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getQualifiedKeyName()\n {\n return $this->getTable().'.'.$this->getKeyName();\n }", "public function getTableKeyName()\n\t{\n\t\treturn \"id\".$this->getTableName();\n\t}", "public function getTableKeyName()\r\n\t{\r\n\t\treturn \"id\".$this->getTableName();\r\n\t}", "public func...
[ "0.82437223", "0.7845539", "0.78281224", "0.75498474", "0.749619", "0.749619", "0.749619", "0.7448933", "0.7448933", "0.7405522", "0.7359289", "0.72581494", "0.7206322", "0.720019", "0.7191427", "0.717617", "0.7169424", "0.7169424", "0.71456957", "0.7088998", "0.7030091", "...
0.8038287
1
Get a fresh timestamp for the model.
Получите свежий временной штамп для модели.
public function freshTimestamp() { return Carbon::now()->timestamp; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function freshTimestamp()\n {\n return Date::now();\n }", "private function _timestamp()\n \t{\n \t\t$this->updated_at = time();\n \t\tif (!$this->exists) $this->created_at = $this->updated_at;\n \t}", "public function timestamp() {\n\t\t$this->updated_at = new \\DateTime;\n\n\t...
[ "0.77480716", "0.74730635", "0.741787", "0.69703996", "0.6961526", "0.6960642", "0.694699", "0.69048434", "0.68742687", "0.6872147", "0.68649566", "0.68649566", "0.68649566", "0.6842163", "0.68233126", "0.6806291", "0.6789799", "0.67573124", "0.6732114", "0.6732114", "0.67321...
0.76497746
1
Get the parent relation.
Получить родительскую связь.
public function getParentRelation() { return $this->parentRelation; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function parent()\n {\n return $this->hasOne($this,'id', 'parent_id');\n }", "public function getRelationParentId();", "public function parent(){\n return $this->where('id', $this->parent_id)->first();\n }", "protected function get_parent()\r\n {\r\n return $this->pare...
[ "0.8066419", "0.78975856", "0.7741461", "0.7730668", "0.77237266", "0.7598691", "0.75645393", "0.75500625", "0.75500625", "0.7547722", "0.7547722", "0.7547722", "0.7547722", "0.7547722", "0.7547722", "0.7547722", "0.7547722", "0.7547722", "0.7547722", "0.7547722", "0.7547722"...
0.8587196
0
Determine if the new and old values for a given key are numerically equivalent.
Определите, численно эквивалентны ли новые и старые значения для заданного ключа.
protected function originalIsNumericallyEquivalent($key) { $current = $this->attributes[$key]; $original = $this->original[$key]; // Date comparison. if (in_array($key, $this->getDates())) { $current = $current instanceof Timestamp ? $this->asDateTime($current) : $curren...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function originalIsNumericallyEquivalent($key)\n {\n $current = $this->attributes[$key];\n\n $original = $this->original[$key];\n\n return is_numeric($current) && is_numeric($original) && strcmp((string) $current, (string) $original) === 0;\n }", "protected function compare($...
[ "0.7283312", "0.60791534", "0.54558617", "0.5333096", "0.53295165", "0.52890915", "0.5142135", "0.51371664", "0.5067589", "0.50477076", "0.49775463", "0.49620834", "0.49551982", "0.49467552", "0.4941775", "0.4924749", "0.49034137", "0.48963267", "0.48748446", "0.486926", "0.4...
0.7721899
0
$this>db>query("SELECT FROM products WHERE description LIKE '%$search%' where productLine LIKE '%$search%' where `upplier LIKE '%$search%'");
$this>db>query("SELECT FROM products WHERE description LIKE '%$search%' where productLine LIKE '%$search%' where `upplier LIKE '%$search%'");
public function Search($search) { //$this->db->query("SELECT * FROM products WHERE description LIKE '%$search%' "); //$this->db->query(" SELECT produceCode,description,productLine,supplier,quantityInStock,bulkBuyPrice,bulkSalePrice,Photo FROM products WHERE description LIKE '%$search%' "); $query = $this->db->ge...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function searchProduct($search)\n {\n $this->db->connect();\n $sql = \"SELECT * FROM $this->table WHERE name LIKE ? OR description LIKE ? OR category LIKE ?;\";\n $resultset = $this->db->executeFetchAll($sql, array_fill(0, 3, \"%\" . $search . \"%\"));\n return $resultset;\n ...
[ "0.71933955", "0.7178024", "0.70820934", "0.68026966", "0.674552", "0.6731083", "0.67200667", "0.66667837", "0.66463524", "0.6625593", "0.6617069", "0.6611935", "0.65893465", "0.6491036", "0.64468014", "0.6445937", "0.64253527", "0.6382578", "0.637268", "0.6349834", "0.634388...
0.7336957
0
Get DataTable class for the given slug.
Получить класс DataTable для заданного слага.
private function getDatatable(string $slug) { $datatable = app('boilerplate.datatables')->load(app_path('Datatables'))->getDatatable($slug); if (! $datatable) { abort(404); } return $datatable; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getBySlug(string $slug);", "public function getBySlug($slug)\n\t{\n\t\treturn $this->doll->with('DollTypes')->where('slug', $slug)->firstOrFail();\n\t}", "public function getRecord($slug){\n return $this->where(\"slug\", $slug)->first();\n }", "public function findBySlug($slug);", ...
[ "0.6035133", "0.58107543", "0.5802353", "0.57914114", "0.57914114", "0.57914114", "0.57914114", "0.57914114", "0.5736294", "0.5733054", "0.5687116", "0.5687116", "0.5597255", "0.55901104", "0.55877244", "0.55502015", "0.5545581", "0.5532963", "0.5532963", "0.5528735", "0.5522...
0.7550043
0
User or consultant Show form =>show all profile of consultant
Пользователь или консультант Показать форму => показать все профили консультанта
public function showProfile() { $user = User::with('consultant','consultantNationality')->find(Auth::user()->get()->id); $nationalities = $user->nationalities(); $specialization = $user->specialization(); $workedcountries = $user->workedcountries(); $skills = $user->skills(); $languages = $user->languages...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show()\n {\n $user_identifier = $this->session->userdata('identifier');\n $user_details = $this->user_m->read($user_identifier);\n $this->data['user_details'] = $user_details;\n $this->load_view('Profil Akun', 'user/profil');\n }", "public function show($Perprof)...
[ "0.72175086", "0.6812279", "0.67973906", "0.67820877", "0.6770297", "0.67349076", "0.6717453", "0.6705375", "0.66897005", "0.6646057", "0.6609219", "0.66017866", "0.65792996", "0.6576358", "0.65713227", "0.6558116", "0.65488094", "0.65488094", "0.6543807", "0.6522693", "0.651...
0.7193861
1
Retrieve searchable attributes list
Получить список поисковых атрибутов
protected function _getSearchableAttributes() { if (is_null($this->_searchableAttributes)) { /** @var $attributeCollection Mage_Catalog_Model_Resource_Product_Attribute_Collection */ $attributeCollection = Mage::getResourceModel('catalog/product_attribute_collection'); $a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function _getSearchableAttributes()\n {\n if (is_null($this->_searchableAttributes)) {\n /** @var $attributeCollection Mage_Catalog_Model_Resource_Product_Attribute_Collection */\n $attributeCollection = Mage::getResourceModel('catalog/product_attribute_collection');\n ...
[ "0.7376163", "0.72983575", "0.7282965", "0.7282965", "0.7282965", "0.7282965", "0.7282965", "0.7282965", "0.7282965", "0.7282965", "0.7282965", "0.7221753", "0.71514755", "0.71006167", "0.70980465", "0.7073783", "0.7045631", "0.7021353", "0.69856626", "0.6977222", "0.6958847"...
0.7298709
1
/ Determines the direction (theres probably a better term for this) of values/deltas in an array.
Определяет направление (вероятно, есть лучшее слово для этого) значений/изменений в массиве.
function array_direction(Array $ar) { $deltas = array_deltas($ar); $deltas = array_normalize($deltas); $delta = array_average($deltas); if ($delta >= 0.01) return 1; else if ($delta <= -0.01) return -1; else return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDirection() {}", "public function getDirection();", "public function getDirection();", "public function getDirection();", "public function direction()\n {\n return $this->direction;\n }", "public function getDirection()\n\t{\n\t\treturn $this->direction;\n\t}", "public f...
[ "0.64091176", "0.6237101", "0.6237101", "0.6237101", "0.6179278", "0.6094874", "0.60530907", "0.60530907", "0.60530907", "0.59899354", "0.5926546", "0.5906345", "0.57637256", "0.57555753", "0.5588258", "0.55396533", "0.5526342", "0.54993665", "0.5388671", "0.53641814", "0.533...
0.78534895
0
Return array of supported resource actions for this resource If resourceName cannot be found, just return an empty array
Вернуть массив поддерживаемых действий ресурса для этого ресурса. Если resourceName не найден, просто вернуть пустой массив.
public function getSupportedActions($resourceName) { if(empty($resourceName) ) throw new \InvalidArgumentException('Resource name must not be empty.'); // load permission resources file from config file $init_perms_arr = ConfigHelper::getInitPermResources(); if(array_key_exists($resourceName, $init_perms_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getResourceActions()\n {\n if (array_key_exists(\"resourceActions\", $this->_propDict)) {\n return $this->_propDict[\"resourceActions\"];\n } else {\n return null;\n }\n }", "static protected function get_resource_actions(): array\n\t{\n\t\treturn [...
[ "0.7930071", "0.7674014", "0.65302354", "0.649807", "0.649807", "0.6366927", "0.63273644", "0.63052773", "0.62988895", "0.62988895", "0.6297878", "0.6281724", "0.622257", "0.62158865", "0.6210286", "0.6206013", "0.6181117", "0.61730576", "0.61724645", "0.615362", "0.61277395"...
0.810912
0
Gets a list of all idle conversations. A conversation is considered idle based on the time of the last message posted and the conversationTTL setting in the controller.
Получает список всех незанятых разговоров. Разговор считается незанятым на основании времени последнего отправленного сообщения и настройки conversationTTL в контроллере.
public static function getAllIdleConversations($options = array()) { //Build the list $options = $options + (new RecordList)->getDefaultOptions(); $options['sql'] = "SELECT conversations.id, message FROM conversations LEFT JOIN messages ON (c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getUnreadConversations() {\n return DB::table('conversations')\n ->join('participants', function($join) {\n $join->on('participants.conversation_id', '=', 'conversations.id')\n ->on('participants.last_read', '<',...
[ "0.63908464", "0.6250145", "0.60021186", "0.5771216", "0.5753393", "0.5634709", "0.5605642", "0.5478655", "0.5407373", "0.53847027", "0.5342065", "0.532252", "0.5243816", "0.5232736", "0.5214624", "0.5194992", "0.5188993", "0.5176792", "0.51290023", "0.51153564", "0.5106208",...
0.7715345
0
Called when view the creation form.
Вызывается при просмотре формы создания.
public function index_onCreateForm() { parent::create(); return $this->makePartial('create'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createAction()\n {\n// $this->view->form = $form;\n }", "public function createForm()\n {\n }", "public function create()\n\t{\t\n\t\t\n\t\t// load the create form (app/views/fbf_presenca/create.blade.php)\n\t\t$this->layout->content = View::make('fbf_presenca.create')\n;\n\t...
[ "0.8177952", "0.79812753", "0.77793795", "0.7682758", "0.7682758", "0.76644146", "0.76644146", "0.76644146", "0.76644146", "0.76185876", "0.7605621", "0.759826", "0.7588477", "0.7561074", "0.75554293", "0.7547765", "0.7547765", "0.75470513", "0.7540081", "0.7528355", "0.75283...
0.816507
1
Called when view the update form.
Вызывается при просмотре формы обновления.
public function index_onUpdateForm() { $record_id = post('record_id'); parent::update($record_id); $this->controller->vars['record_id'] = $record_id; return $this->makePartial('update'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateForm(){\n $new = $this->model->getNew();\n $this->view->updateForm($new);\n }", "private function update_form()\n\t{\n\t\t$this->title = sprintf(lang('update_title'), $this->installed_version, $this->version);\n\t\t$vars['action'] = $this->set_qstr('do_update');\n\t\t$this-...
[ "0.7787808", "0.76972586", "0.75012714", "0.7350414", "0.7343673", "0.7136632", "0.70738024", "0.70074", "0.6977582", "0.6977582", "0.690154", "0.68174213", "0.6801636", "0.67400956", "0.67120886", "0.6699232", "0.6698965", "0.66947037", "0.6694545", "0.6684002", "0.6680352",...
0.78059417
0
/ Get vehicle_geofence_assignment by id
/ Получить vehicle_geofence_assignment по id
function get_vehicle_geofence_assignment($id) { $this->db->select("vga.id,vga.vehicle_id,vga.geofence_id,plate_no,g.name,g.type,vga.status,date(vga.assign_date) as assign_date" . ",date(vga.update_date) as update_date," . "CONCAT(u.first_name,',',u.last_name) as a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function update_vehicle_geofence_assignment($id, $params) {\n $this->db->where('id', $id);\n $response = $this->db->update('vehicle_geofence_assignment', $params);\n if ($response) {\n return \"vehicle_geofence_assignment updated successfully\";\n } else {\n return...
[ "0.65768445", "0.64559877", "0.6339131", "0.6193969", "0.6018292", "0.5611572", "0.5437773", "0.53892237", "0.5293428", "0.52860874", "0.52570254", "0.52543825", "0.5250408", "0.51520956", "0.50781864", "0.5073617", "0.5049677", "0.5021969", "0.5020745", "0.50073355", "0.5002...
0.77601165
0
/ Get all vehicle_geofence_assignment
/ Получить все vehicle_geofence_assignment
function get_all_vehicle_geofence($vehicle_id = null) { if (isset($vehicle_id)) { $this->db->where("vga.vehicle_id", $vehicle_id); } $this->db->select("vga.id,plate_no,g.name,g.type,vga.status,date(vga.assign_date) as assign_date" . ",date(vga.update_date) as ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_vehicle_geofence_assignment($id) {\n $this->db->select(\"vga.id,vga.vehicle_id,vga.geofence_id,plate_no,g.name,g.type,vga.status,date(vga.assign_date) as assign_date\"\n . \",date(vga.update_date) as update_date,\"\n . \"CONCAT(u.first_name,',',u.la...
[ "0.69417584", "0.5792541", "0.57728255", "0.5378969", "0.5337486", "0.5317466", "0.5279488", "0.5254071", "0.52165556", "0.52145034", "0.52144593", "0.51434386", "0.5123004", "0.5112198", "0.5075808", "0.5044118", "0.501423", "0.49985194", "0.4985502", "0.49741435", "0.490702...
0.7000169
0
/ function to add new vehicle_geofence_assignment
Функция для добавления нового назначения транспортного средства geofence
function add_vehicle_geofence_assignment($params) { $params['status'] = 1; $this->db->insert('vehicle_geofence_assignment', $params); return $this->db->insert_id(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function update_vehicle_geofence_assignment($id, $params) {\n $this->db->where('id', $id);\n $response = $this->db->update('vehicle_geofence_assignment', $params);\n if ($response) {\n return \"vehicle_geofence_assignment updated successfully\";\n } else {\n return...
[ "0.59476495", "0.5339896", "0.52166086", "0.50555676", "0.49128625", "0.47900632", "0.4782088", "0.4773849", "0.47499636", "0.47288382", "0.47044054", "0.46734616", "0.46727452", "0.4666103", "0.4664354", "0.46551523", "0.46493262", "0.46308765", "0.4616317", "0.46146682", "0...
0.7993619
0
/ function to update vehicle_geofence_assignment
Функция для обновления назначения транспортного средства на геозону
function update_vehicle_geofence_assignment($id, $params) { $this->db->where('id', $id); $response = $this->db->update('vehicle_geofence_assignment', $params); if ($response) { return "vehicle_geofence_assignment updated successfully"; } else { return "Error occur...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function add_vehicle_geofence_assignment($params) {\n $params['status'] = 1;\n $this->db->insert('vehicle_geofence_assignment', $params);\n return $this->db->insert_id();\n }", "function get_vehicle_geofence_assignment($id) {\n $this->db->select(\"vga.id,vga.vehicle_id,vga.geofence...
[ "0.67844564", "0.547341", "0.5471063", "0.53886133", "0.52800906", "0.52572995", "0.5181716", "0.5072404", "0.50360197", "0.50171363", "0.4978722", "0.4978353", "0.49743152", "0.49743152", "0.4953974", "0.48693395", "0.4859785", "0.48082832", "0.47805163", "0.47803462", "0.47...
0.7104693
0
/ function to delete vehicle_geofence_assignment
Функция для удаления vehicle_geofence_assignment
function delete_vehicle_geofence_assignment($id) { $response = $this->db->delete('vehicle_geofence_assignment', array('id' => $id)); if ($response) { return "vehicle_geofence_assignment deleted successfully"; } else { return "Error occuring while deleting vehicle_geofence...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function delete() {\n\t\t$this->assignment->delete();\n\t}", "function delete(){\n // Renumber resolutions\n $resolutions = resolution::getResolutions($this->committeeId, $this->topicId);\n foreach($resolutions as $resolution){\n if($resolution->resolutionNum <= $this->reso...
[ "0.6305839", "0.58737594", "0.58670783", "0.58670783", "0.5857505", "0.5848575", "0.58225924", "0.5804214", "0.57480526", "0.5734508", "0.5708458", "0.57063586", "0.5705181", "0.57026464", "0.5636021", "0.56256634", "0.5618755", "0.5596669", "0.5584243", "0.5583029", "0.55683...
0.7569554
0
END AUTH Get idProf
END AUTH Получить idProf
public function getIdProf() { return $this->idProf; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function listProById()\n {\n\n // obtener el perfil por id\n $id = 3985390143818633;\n print_r($this->getProfile($id)); \n\n }", "function getProfileID() {\n\t\treturn $this->_ProfileID;\n\t}", "public function getId_Profesor()\n {\n return $this->id_profesor;\n }", "functi...
[ "0.6538144", "0.6449604", "0.63818187", "0.62674844", "0.6218616", "0.6160209", "0.60681003", "0.6044823", "0.60376567", "0.6015372", "0.5985411", "0.5980361", "0.5974151", "0.5917154", "0.5916462", "0.586037", "0.58591735", "0.58574146", "0.5847538", "0.5844989", "0.5844149"...
0.7223227
0
get user's current timezone from DB
получить текущий часовой пояс пользователя из БД
public static function getUserTimezone() { return Users::where('id', Auth::user()->id)->first()->timezone; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function user_timezone() {\n global $USER, $remotedb;\n $sql = \"SELECT timezone FROM {user} WHERE id = ?\";\n $params = array($USER->id);\n $timezone = $remotedb->get_record_sql($sql, $params);\n return $timezone ? $timezone->timezone : 99;\n }", "public function get...
[ "0.86436653", "0.7483286", "0.7337002", "0.72573817", "0.724671", "0.7228356", "0.7198175", "0.7168709", "0.7121297", "0.70778155", "0.70546204", "0.7046977", "0.70364594", "0.703261", "0.70259583", "0.70215976", "0.702086", "0.69955325", "0.69896823", "0.6976687", "0.6969740...
0.8498203
1
Get post image from request.
Получить изображение поста из запроса.
public function getImageFromRequest(FormRequest $request) { return $request->file('image'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getImage()\n {\n return $this->get('image');\n }", "function rest_get_featured_image( $post, $field_name, $request ) {\n $attachment_id = $post['featured_media'];\n $attachment_info = wp_get_attachment_image_src( $attachment_id, 'rest_post_thumbnail' );\n return $attachment_...
[ "0.67804134", "0.6226074", "0.6222303", "0.6217657", "0.6217657", "0.6217657", "0.6217657", "0.6217657", "0.6217657", "0.6217657", "0.6217657", "0.6217657", "0.6217657", "0.6217657", "0.6217657", "0.6217657", "0.6217657", "0.6217657", "0.6217657", "0.6217657", "0.6217657", ...
0.7483523
0
Get tags ids for post from request.
Получить идентификаторы тегов для поста из запроса.
public function getTagIdsFromRequest(FormRequest $request, TagRepository $tagRepo) { $tags = $this->getUniqueTags($request->get('tags', [])); $tagIds = []; $dbTags = $this->getTagsFromDbByName($tags, $tagRepo); foreach ($tags as $tagName) { if (array_key_exists($tagNam...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function tagIDs()\n {\n return $this->tags()->pluck('tag_id');\n }", "public function get_tag_ids()\n {\n $tags = $this->tags->find_all();\n\n $ids = [];\n\n foreach ($tags as $tag) {\n if ($tag->loaded()) {\n $ids[] = $tag->id;\n }...
[ "0.67871934", "0.6762219", "0.6688502", "0.6657141", "0.66525394", "0.63873804", "0.63694555", "0.6306646", "0.62731993", "0.62143975", "0.6075703", "0.60278416", "0.6018238", "0.6002142", "0.5958248", "0.5946304", "0.5917022", "0.5915156", "0.5885566", "0.5851368", "0.583331...
0.70384735
0
Get unique tag names in lower case.
Получить уникальные имена тегов в нижнем регистре.
private function getUniqueTags($tags) { $tags = array_unique(array_map(function($value) { return mb_strtolower($value, 'UTF-8'); }, $tags)); return $tags; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getTagNames() {\n\t\tif (isset($this->tag_names)) {\n\t\t\treturn $this->tag_names;\n\t\t}\n\t\t\n\t\t$this->tag_names = tag_tools_rules_get_tag_names();\n\t\treturn $this->tag_names;\n\t}", "public function getNameTags() \n { \n $allTags = []; \n foreach($this->tags as $tag...
[ "0.6823132", "0.6629779", "0.6608012", "0.6542607", "0.648649", "0.6417229", "0.62563574", "0.62129396", "0.6072404", "0.606155", "0.6042667", "0.6026047", "0.5939413", "0.5913699", "0.5911372", "0.59107596", "0.58727634", "0.5865646", "0.5858633", "0.58375734", "0.5785564", ...
0.71891963
0
Delete post image dir.
Удалить директорию с изображением поста.
public function deleteImageDir($postId) { Storage::deleteDirectory('public/' . Post::getFilePath($postId)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function deleting(Post $post)\n {\n if ($post->image) {\n Storage::delete([$post->image->url]);\n }\n }", "public function delete()\n {\n $post_id = $this->uri->rsegment('3');\n $this->_del($post_id);\n $image = $this->input->get('image');\n unlink(\"upload/post\".$image);\n /...
[ "0.7184746", "0.71389914", "0.70402676", "0.698791", "0.69734347", "0.6966473", "0.68978524", "0.6895776", "0.6871979", "0.6847922", "0.6832268", "0.6820418", "0.669043", "0.66575927", "0.6638194", "0.6626801", "0.66223365", "0.6608945", "0.6603633", "0.6598827", "0.65981334"...
0.78136164
0
/ Delete all resources.
/ Удалить все ресурсы.
public function deleteAllResources() { $this->resources = array(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function deleteAll(): void\n {\n $this->client->delete($this->baseUri);\n }", "public function deleteAll();", "public function deleteAll();", "public function deleteAll();", "public function deleteAll(): void;", "public final function destroy_all()\n {\n }", "abstract ...
[ "0.77336645", "0.7723481", "0.7723481", "0.7723481", "0.76765454", "0.7570651", "0.7441812", "0.7400447", "0.7355423", "0.7308607", "0.7307646", "0.6999794", "0.69665504", "0.694", "0.6894418", "0.67790323", "0.67747205", "0.6694325", "0.6681674", "0.66804236", "0.66403764", ...
0.87818134
0
/ Delete all dependents.
Удалить всех зависимых.
public function deleteAllDependents() { $this->dependents = array(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function deleteAll(): void;", "public function deleteAll()\n {\n $this->ensureModels();\n foreach ($this->_models as $model) {\n $model->delete();\n }\n }", "public function deleteAll();", "public function deleteAll();", "public function deleteAll();", "public...
[ "0.6793108", "0.6562115", "0.6507074", "0.6507074", "0.6507074", "0.6435713", "0.6397847", "0.63043207", "0.6302768", "0.62322485", "0.6184805", "0.6174771", "0.6163906", "0.6125516", "0.6086713", "0.60380095", "0.5939262", "0.58965313", "0.58471376", "0.58071613", "0.5786902...
0.8678872
0
Delete parameters named in array.
Удалить параметры, указанные в массиве.
public function deleteParams(array $params) { $this->chkParams(); foreach ($params as $key) unset($this->params[$key]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function purge($params = array())\n\t{\n\t\t$sql = 'DELETE FROM '.$this->paramsTableName;\n\t\tif (sizeof($params) > 0)\n\t\t{\n\t\t\t$params = $this->preprocessParams($params);\n\t\t\t$sql .= ' WHERE option_name IN (\\''.implode('\\',\\'', $params).'\\')';\n\t\t}\n\t\t$db = $this->getDbConnection();\n\t\t$...
[ "0.68664366", "0.6493911", "0.6442798", "0.6417786", "0.63110995", "0.6262988", "0.6180346", "0.61637026", "0.61636525", "0.6137342", "0.610598", "0.6073579", "0.6053164", "0.60285723", "0.6027156", "0.60155505", "0.6005731", "0.60013664", "0.59870344", "0.5984834", "0.597092...
0.77794266
0
Get the Organization name of the current User's Organization.
Получить название организации текущего пользователя.
protected function getOrganizationName(User $user) { return $user->organization ? $user->organization->name : ''; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getOrganizationName(): string {\n\t\treturn ($this->organizationName);\n\t}", "public function getOrgName()\n {\n return $this->orgName;\n }", "public function getOrganizationUser()\n {\n return $this->organizationUser;\n }", "public function getCurrentOrganization()...
[ "0.8020499", "0.7703937", "0.7653495", "0.7288905", "0.7252708", "0.7252708", "0.7252708", "0.7163634", "0.7073842", "0.70602465", "0.6960716", "0.6921465", "0.6845175", "0.67599314", "0.6675268", "0.66670716", "0.66561157", "0.6638369", "0.6606092", "0.6576483", "0.65129846"...
0.7920484
1
Method to process state for tree
Метод обработки состояния для дерева
protected function _processState(array &$tree) { try { foreach($tree['nodelist'] as &$item) { $node = '/' . $item['node']; $state = (preg_match('/^' . preg_quote($node, '/') . '.*/', self::$node . '/')) ? (($node == self::$node) ? 2 : 1) : 0; if($state !== 0) { $item['state'] = $state; if(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function _calculateTree() {\n include_once(\"bitlib/SQL/Tree.php\");\n include_once(\"bitlib/functions/common.php\");\n $db = common::getDB($GLOBALS[\"BX_config\"][\"dsn\"]);\n $t = new SQL_Tree($db);\n $t->FullPath=\"fulluri\";\n $t->Path=\"uri\";\n $t->FullTitlePa...
[ "0.59861684", "0.59835136", "0.57236385", "0.56152904", "0.5594084", "0.5570806", "0.5570806", "0.5513232", "0.5508735", "0.5486823", "0.54719937", "0.54672635", "0.5447323", "0.54247606", "0.53693056", "0.5359117", "0.533816", "0.533816", "0.53379697", "0.52581286", "0.52428...
0.7104994
0
/ Checks if a file with the same name previously exists in the upload destination and overwrites the previous file if $overwrite is true or renames the uploaded file and keeps both files if $overwrite is false
Проверяет, существует ли файл с таким же именем ранее в месте загрузки, и перезаписывает предыдущий файл, если $overwrite истинно, или переименовывает загруженный файл, сохраняя оба файла, если $overwrite ложно
protected function createFileName($name, $overwrite) { //get rid of any blank space in the submitted file name $nospaces = str_replace(' ', '_', $name); //mark the file as renamed if that changed the name from what was submitted if ($nospaces != $name) { $this->_renamed = true; } if (!$overwrite) {...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function overwrite_file($source_file, $destination_file)\n\t{\n\t\t/**\n\t\t* @todo generally think about overwriting files in another way, by creating a temporary file and then renaming it\n\t\t* @todo check for the destination file existance too\n\t\t*/\n\t\t$this->_delete($destination_file);\n\t\t$result = $thi...
[ "0.65913475", "0.65009964", "0.62726325", "0.6230604", "0.6198522", "0.61751753", "0.6126193", "0.60714275", "0.6038394", "0.60343426", "0.6023347", "0.5906463", "0.5875084", "0.5840433", "0.57954687", "0.5792802", "0.5788634", "0.5781003", "0.5777803", "0.5717185", "0.571718...
0.7114448
0
/ notify all observers about any change in SunSubject
Уведомить всех наблюдателей о любом изменении в SunSubject
function notify() { foreach ($this->observers as $obKey => $obValue) { $obValue->update($this); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function notify() {\n\t\tforeach($this->_observers as $key => $val) {\n\t\t\t$val->update($this);\n\t\t}\n\t}", "public function notify(){\n foreach ($this->observers as $observer){\n $observer->update();\n }\n }", "public function notifyObservers() {\n\t\tforeach ( $this->ob...
[ "0.721787", "0.72162306", "0.7122913", "0.71227336", "0.70694596", "0.70157844", "0.6984043", "0.6982503", "0.6939297", "0.691533", "0.68791705", "0.68739194", "0.6785612", "0.6515169", "0.6510684", "0.6427568", "0.64262956", "0.6423259", "0.6423259", "0.6423259", "0.6423259"...
0.7238421
0
Returns array with width and height of uploaded image or false on missing or nonimage file.
Возвращает массив с шириной и высотой загруженного изображения или false в случае отсутствия или неправильного файла.
public function GetImageSize() { return $this->IsValid() ? @getimagesize($this->TmpName) // @ - prevent warning on reading non-images : false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_image_dimensions($file_path)\n\t{\n\n\t\tif( ! file_exists($file_path)) {\n\n\t\t\treturn FALSE;\n\n\t\t}\n\n\t\t// PHP7.4 does not come with GD JPEG processing by default\n\t\t// So, we need to run this check.\n\t\tif (function_exists('getimagesize'))\n\t\t{\n\t\t\t$imageSize = @getimagesize($file_pa...
[ "0.7213394", "0.7162518", "0.71464676", "0.71033216", "0.68905336", "0.68886024", "0.6876985", "0.6869756", "0.679584", "0.67584443", "0.67538893", "0.67511433", "0.6708959", "0.66778356", "0.6675638", "0.66334563", "0.66254205", "0.66207093", "0.6612658", "0.6583274", "0.654...
0.72267246
0
Get the listings of the owner.
Получить список владельца.
public function listings() { return $this->hasMany(Listing::class, 'owner_id'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function _getListingsByLoggedInUser()\n\t{\n\t\t$user_id = $this->_getUserId();\n\t\tif ($user_id == 0 || $user_id == null){\n\t\t\treturn array('error' => 'USER_NOT_LOGGED_IN', 'code' => 3);\n\t\t}\n\t\t\n\t\t$listings = $this->Listing->GetListingsByUserId($user_id);\n\t\tif ($listings == null)\n\t\t\tret...
[ "0.7160915", "0.6681862", "0.6355202", "0.6309376", "0.62984455", "0.62033033", "0.6140931", "0.60837483", "0.60051763", "0.5975873", "0.59716", "0.5963204", "0.5962228", "0.593347", "0.5855118", "0.5818661", "0.5810291", "0.58078724", "0.5766747", "0.5759229", "0.57576823", ...
0.7713336
0
Show the form for creating a new Specification_type.
Показать форму для создания нового типа спецификации.
public function create() { $specification = Specification::all(); return view('specification_types.create')->with(compact('specification')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store(CreateSpecification_typeRequest $request)\n {\n $input = $request->all();\n\n $specificationType = $this->specificationTypeRepository->create($input);\n\n Flash::success('Specification Type saved successfully.');\n\n return redirect(route('specificationTypes.ind...
[ "0.6891645", "0.6832236", "0.6832236", "0.67393976", "0.6649213", "0.6638073", "0.6626142", "0.6617111", "0.6614032", "0.6567561", "0.6533818", "0.65306485", "0.65222585", "0.65126884", "0.65025246", "0.6494007", "0.6493881", "0.6490555", "0.64793557", "0.64711577", "0.646978...
0.78522754
0
Store a newly created Specification_type in storage.
Храните только что созданную спецификацию типа в хранилище.
public function store(CreateSpecification_typeRequest $request) { $input = $request->all(); $specificationType = $this->specificationTypeRepository->create($input); Flash::success('Specification Type saved successfully.'); return redirect(route('specificationTypes.index')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function saveType()\n {\n }", "public function save(Type $type) {\n $typeData = array(\n 'name_ET' => $type->getName()\n );\n\n if ($type->getNum()) {\n // The type has already been saved : update it\n $this->getDb()->update('event...
[ "0.59298974", "0.5857471", "0.5816396", "0.5762593", "0.5721604", "0.569306", "0.5689876", "0.565144", "0.56136304", "0.55326897", "0.55313015", "0.55204844", "0.54565305", "0.54481673", "0.5446711", "0.53715074", "0.5341286", "0.52945787", "0.5279172", "0.52786213", "0.52690...
0.70928854
0
Helper method to quickly create a form with given fields and requirements.
Помощь метод для быстрого создания формы с заданными полями и требованиями.
protected function createForm(array $fields, array $requiredFields = []): Form { $fieldList = FieldList::create(); foreach ($fields as $name => $value) { $fieldList->add(TextField::create($name, $name, $value)); } $validator = new DependentRequiredFields($requiredFields)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function createFormFields() {\n\t}", "abstract public function createForm();", "abstract public function createForm();", "public function createForm();", "public function createForm();", "protected function form()\n {\n $form = new Form(new Purchase());\n if ($form->isCreating(...
[ "0.7197657", "0.71927226", "0.71927226", "0.7121654", "0.7121654", "0.6883486", "0.6753936", "0.67229515", "0.66542315", "0.6616685", "0.6465313", "0.64645696", "0.64194053", "0.64187574", "0.63703305", "0.63674444", "0.6357836", "0.63466984", "0.6311902", "0.6310263", "0.628...
0.720951
0
Description This function will return the list of modules available in the system, and which modules the requested station has access to. Arguments api_key: auth_token: station_id: The ID of the station to get the module list for.
Описание Эта функция вернет список доступных модулей в системе и модулей, к которым имеет доступ запрашиваемая станция. Аргументы api_key: auth_token: station_id: Идентификатор станции, для которой необходимо получить список модулей.
function qruqsp_core_stationModuleList($q) { // // Find all the required and optional arguments // qruqsp_core_loadMethod($q, 'qruqsp', 'core', 'private', 'prepareArgs'); $rc = qruqsp_core_prepareArgs($q, 'no', array( 'station_id'=>array('required'=>'yes', 'blank'=>'no', 'name'=>'Station'), ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getModulesList();", "public static function getModules(){ \n $db = new db();\n $db->connect();\n $modules = $db->selectAll('modules');\n return self::getModulesInfo($modules);\n }", "public function getModules()\n {\n\n if ($this->_modules !== null)...
[ "0.6519723", "0.64090395", "0.6387625", "0.6264763", "0.6264763", "0.6182842", "0.6080295", "0.6033333", "0.60101736", "0.60081464", "0.59897685", "0.5976847", "0.5955909", "0.59485173", "0.5936262", "0.58714646", "0.58619255", "0.5831128", "0.58197904", "0.58183616", "0.5800...
0.74659175
0
Check if feed api in use.
Проверьте, используется ли API подачи.
public function isFeedChecked() { $base_config = $this->config_factory->getEditable('ap_newsroom.base_config'); if($base_config->get('use_feed')) { return TRUE; } else { return FALSE; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function can_create_feed() {\n\n\t\treturn $this->initialize_api();\n\n\t}", "function wpcom_vip_is_feedservice_ua() {\n\tif ( function_exists( 'wpcom_feed_cache_headers' ) ) {\n\t\t// Workaround so that no feed request served from nginx wpcom-feed-cache\n\t\t// If you are checking you must already know i...
[ "0.73219836", "0.6992901", "0.6945008", "0.68728346", "0.6842441", "0.6797434", "0.670532", "0.6701433", "0.6661849", "0.66510284", "0.64179325", "0.641213", "0.6411932", "0.63662285", "0.6359877", "0.6289321", "0.62438464", "0.6224127", "0.6219437", "0.62183994", "0.6185424"...
0.72887605
1
Map paragraphs type field.
Поле типа абзацы.
public function mapParagraphsType(&$entity, $field, $item_data) { $field_name = $field['id']; foreach ($field['paragraph_list'] as $para_type => $para_fields) { $paragraph = $this->entityTypeManager ->getStorage('paragraph') ->create(['type' => $para_type]); foreach ($para_fields['fi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function AssignPageTypeFields() {\n $this->AddField('showmap', self::DT_BOOLEAN, true);\n $this->AddField('mapaddress', self::DT_STRING);\n }", "function get_parade_parallax_paragraphs_type_data() {\n $fields = [\n ['Anchor', 'parade_anchor', 'Text (plain)'],\n ['Background', 'parade_back...
[ "0.65844107", "0.642111", "0.6331055", "0.6232043", "0.61252964", "0.6047966", "0.6020479", "0.60180247", "0.5920896", "0.5803017", "0.5786175", "0.57659286", "0.57164115", "0.5693756", "0.5614692", "0.5495104", "0.54725546", "0.5463364", "0.5426758", "0.5426067", "0.5420295"...
0.7100973
0
Push current batch to kinesis
Поместить текущий батч в Kinesis
public function push(array $batch) { $records = array(); foreach ($batch as $record) { $records[] = array('Data' => json_encode($record), 'PartitionKey' => uniqid(),); } $result = $this->_kinesis->putRecords(array('Records' => $records, 'StreamName' => $this->_kinesisStream...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function push(array $batch) { \n $data = json_encode($batch);\n\n\t\t$result = $this->_lambda->invoke(array(\n\t\t\t// FunctionName is required\n\t\t\t'FunctionName' => $this->_functionName,\n\t\t\t'InvocationType' => $this->_invocationType,\n\t\t\t'LogType' => $this->_logType,\n\t\t\t'ClientContext'...
[ "0.64421576", "0.58860666", "0.5797348", "0.5692955", "0.5488409", "0.5457554", "0.5418788", "0.5239175", "0.5239175", "0.5235229", "0.5234277", "0.5188104", "0.51825935", "0.511432", "0.5087661", "0.5049727", "0.5038944", "0.50328493", "0.50093377", "0.5002154", "0.4977482",...
0.7708478
0
Set iep Student Table
Установить таблицу студентов iep
public function setIepStudentTable($iepStudentTable) { $this->iepStudentTable = $iepStudentTable; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getIepStudentTable() {\n\t\treturn $this->iepStudentTable;\n\t}", "protected function setTable()\n {\n $class = explode('\\\\', get_called_class());\n $this->table = lcfirst(end($class)).'s';\n }", "private function setTable()\n {\n if (is_null($this->table)) {\n ...
[ "0.7341184", "0.6803989", "0.6576464", "0.64148176", "0.6394424", "0.639085", "0.6376296", "0.6376162", "0.63231975", "0.6306898", "0.6108046", "0.6101952", "0.60996073", "0.6082877", "0.6072632", "0.604061", "0.59972286", "0.5961035", "0.59591496", "0.59242123", "0.5910228",...
0.7504839
0
get Iep Student Table
Получить таблицу учащихся Iep
public function getIepStudentTable() { return $this->iepStudentTable; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getStudent(int $id, string $table);", "public function getSoinHospitalisationTable() {\n\t\tif (! $this->soinhospitalisationTable) {\n\t\t\t$sm = $this->getServiceLocator ();\n\t\t\t$this->soinhospitalisationTable = $sm->get ( 'Consultation\\Model\\SoinhospitalisationTable' );\n\t\t}\n\t\treturn ...
[ "0.6768622", "0.64971596", "0.6475363", "0.64135695", "0.6371414", "0.6371414", "0.6371414", "0.6371414", "0.6371414", "0.6371414", "0.6371414", "0.63609564", "0.63031656", "0.62813216", "0.62593216", "0.62446684", "0.62350774", "0.62350774", "0.6219241", "0.61945415", "0.615...
0.8448977
0
Replaced the resource of the thumbnail with a new resource object containing the optimized image delivered by Kraken.
Заменил ресурс миниатюры на новый ресурсный объект, содержащий оптимизированное изображение, предоставляемое Kraken.
public function replaceThumbnailResource(Thumbnail $thumbnail, array $krakenIoResult);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function updateImgThumbnail()\n {\n //====================================================================//\n // Load Object Images List\n foreach (Image::getImages(SLM::getDefaultLangId(), $this->ProductId) as $image) {\n $imageObj = new Image($image['id_image']);\n ...
[ "0.65871066", "0.64330494", "0.64221925", "0.64045274", "0.6317264", "0.62773347", "0.6200119", "0.6029603", "0.6016328", "0.5985591", "0.5980453", "0.5964642", "0.5884409", "0.57325476", "0.5724037", "0.5697381", "0.56903577", "0.5686293", "0.56613356", "0.56558", "0.5639654...
0.7600771
0
/ This function will return the smarty object for mmm module.
// Эта функция вернет объект smarty для модуля mmm.
public static function createSmartyObject() { $appModuleArr["app"] = MmmUtility::mmmAppName; $appModuleArr["module"] = MmmUtility::mmmModuleName; $appModuleArr["useUploads"] = 1; $smarty = JsCommon::getSmartySettings('appModule',$appModuleArr); return $smarty; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSmarty()\n {\n $this->registerFilters();\n $this->registerPlugins();\n $this->smarty->assign($this->getGlobals());\n\n return $this->smarty;\n }", "static public function getSmarty()\n\t{\n\t\t$smarty = new Smarty();\n\n\t\t$smarty->template_dir = LOCAL_DOCUME...
[ "0.6912973", "0.6737093", "0.66618145", "0.6654182", "0.6416009", "0.641455", "0.63110936", "0.6237884", "0.6149676", "0.60187584", "0.5938074", "0.59025514", "0.5660648", "0.5660531", "0.5660531", "0.5645874", "0.5628115", "0.5552656", "0.55128837", "0.5506361", "0.5496173",...
0.8027337
0
funcion que crea la ruta_unidad_asignada
функция, создающая маршрут_единица_назначена
function crear_ruta_unidad($un_x,$r_x,$usu,$cli){ global $db,$dbf,$fecha_con_formato,$nueva_ruta,$insertar_ruta_unidad; $data = Array( 'DESCRIPTION' => utf8_decode(strtoupper($r_x)), 'COD_USER' => $usu, 'COD_CLIENT' => $cli, 'CREATE_DATE' => $fecha_con_formato ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function generarAtencion()\r\n{ \r\n\tglobal $use;\r\n\tglobal $priv;\r\n\r\n\t\t//DISTINGUE ENTRE ATENCION A DOMICILIO O ATENCION EN CONSULTORIO\r\n\t\tif(isset($_POST['atencion_domicilio'])){\r\n\t\t\t$dom=$_POST['dom'];\r\n\t\t\t$nrocasa=$_POST['nrocasa'];\r\n\t\t\t$barrio=$_POST['barrio'];\r\n\t\t\t$localida...
[ "0.63479996", "0.6222491", "0.59448594", "0.5871154", "0.58694696", "0.5861741", "0.58404166", "0.58074963", "0.57517076", "0.57491374", "0.5747312", "0.5734514", "0.5726603", "0.57103276", "0.5695436", "0.5692024", "0.5682", "0.56688267", "0.566635", "0.5661396", "0.56532234...
0.7156163
0