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
Comprehensive print results function
Функция вывода результатов печати
function print_results() { if ($list = $this->print_list()) { echo '<p>' . $this->print_count() . '</p>'; echo $list; echo '<p class="more">' . $this->print_more() . '</p>'; } else { echo $this->zero_results; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract function printOutput()", "public function printResults() {\n $assertions = $this->getAssertions();\n $failures = $this->getFailures();\n $errors = $this->getErrors();\n return \"Assertions: \" . $assertions . \", Failures: \" . $failures . \" and \" . $errors . \" errors.\";\n }", "public...
[ "0.7163035", "0.7059165", "0.7037608", "0.6904549", "0.66769814", "0.6626774", "0.6606997", "0.65196073", "0.63979745", "0.6351496", "0.6339251", "0.6281294", "0.626759", "0.6262241", "0.6228144", "0.62189484", "0.6192051", "0.6173858", "0.61628175", "0.61130387", "0.61126894...
0.7460847
0
function to set shipping price
функция для установки цены доставки
public function setShippingPrice() { if ($this->price > 200) { $this->shippingPrice = 0; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setShipping($ship_key)\n {\n return 4.50;\n }", "function setPrice( $value )\n {\n if ( $this->State_ == \"Dirty\" )\n $this->get( $this->ID );\n\n $this->Price = $value;\n setType( $this->Price, \"double\" );\n }", "function setItem_price($price){\n ...
[ "0.7553018", "0.6926533", "0.6923322", "0.69061244", "0.67753637", "0.67646515", "0.6737925", "0.6727052", "0.67060894", "0.66223216", "0.6603935", "0.6503078", "0.6448832", "0.6445785", "0.6429301", "0.64170676", "0.6411084", "0.6392101", "0.6335815", "0.63263655", "0.630235...
0.78764826
0
Allows setting any param value
Позволяет установить любое значение параметра
public function __set($param, $value);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function set($params) {}", "public function setParam($name, $value);", "public function setParam($param, $value);", "abstract protected function setParameter($key, $value);", "public function setParam($key, $value);", "public function setParameter($name, $value);", "abstract public function setV...
[ "0.7533565", "0.7122675", "0.7120944", "0.7078099", "0.70670426", "0.69775724", "0.6975281", "0.6967299", "0.69639844", "0.69639844", "0.6930339", "0.6846463", "0.68289834", "0.68227017", "0.6789295", "0.6789295", "0.6789295", "0.6789295", "0.6789295", "0.6789295", "0.6789295...
0.713207
1
Returns the name of schema.
Возвращает имя схемы.
public function getSchemaName() { return $this->schemaName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSchemaName()\n {\n return $this->schemaName;\n }", "public function getSchemaName(): string;", "public function getSchemaName()\n {\n return $this->getTable()->getSchema()->getName();\n }", "function getSchemaDisplayName() {\n\t\treturn __('plugins.schemas.dc.sche...
[ "0.88741386", "0.87666196", "0.85139966", "0.8023488", "0.7965228", "0.78538316", "0.75079054", "0.7373762", "0.7346069", "0.7297001", "0.72883636", "0.7172693", "0.7170861", "0.71295214", "0.71295214", "0.70897084", "0.70897084", "0.70897084", "0.70897084", "0.70897084", "0....
0.8812968
1
Indicates whether a pdf document should be generated from the response for the specified request. The request must be for the 'pdf' format and the response format must be html.
Указывает, следует ли генерировать pdf-документ из ответа для указанного запроса. Запрос должен быть для формата 'pdf', а формат ответа — html.
public function isConvertable(Request $request, Response $response) { // Request must be for the 'pdf' format if ($request->getRequestFormat() !== $this->getFormat()) return false; // Current response must be html if (!$this->isHtmlResponse($response)) return false; // All...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function pdf($request, $response)\n {\n $id = $request->getAttribute('id');\n if (!ModelsRequests::generatePdfForId($id)) {\n return $response->withStatus(404)->withText(\"Il congedo non è stato trovato!\");\n }\n }", "public function generte_pdf(Request $reque...
[ "0.6752349", "0.59716284", "0.5959558", "0.59247404", "0.5795268", "0.5757904", "0.5757904", "0.57113576", "0.5634374", "0.5624991", "0.56138057", "0.5599685", "0.5538908", "0.54689413", "0.54665947", "0.5413307", "0.5399296", "0.5374836", "0.5370826", "0.53654677", "0.535589...
0.7042534
0
/ Plugin Name: Carousel MobileOneContainers Description: Display a carousel list of containers product Author: Edwin Marte | Ntono Digital Author URI: Version: 1.0 / Adding new metabox Image to post type Meta Boxes
/ Название плагина: Carousel MobileOneContainers Описание: Отображает карусельный список контейнеров с продуктами Автор: Edwin Marte | Ntono Digital Сайт автора: Версия: 1.0 / Добавление новой метабокса Изображение для типа поста Метабоксы
function listing_image_add_metabox () { add_meta_box( 'listingimagediv', __( 'Image Containers Loop', 'text-domain' ), 'listing_image_metabox', 'product', 'side', 'low'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function thmplt_carousel_slide_meta(){\r\n\tadd_meta_box(\"thmplt_carousel_meta_box1\", \"Slide Settings\", \"thmplt_carousel_slide_settings_html\", \"thmplt_carousel\", \"normal\", \"high\");\r\n\tadd_meta_box(\"thmplt_carousel_meta_box2\", \"Slide Images\", \"thmplt_carousel_slide_settings_html2\", \"thmplt_caro...
[ "0.7375599", "0.68776506", "0.6871126", "0.6775046", "0.6683653", "0.66329354", "0.65745693", "0.6563255", "0.6533238", "0.6505103", "0.6492187", "0.6485759", "0.6443125", "0.64393926", "0.64239436", "0.64022046", "0.64015126", "0.64001495", "0.63472784", "0.633952", "0.63312...
0.7247765
1
Tries to determine ID of the current user's language by using cookies or browser language
Пытается определить ID языка текущего пользователя с использованием кук или языка браузера
public static function run() { // We are looking for language in the user's cookie if (isset($_COOKIE['x-language-id'])) { $isset = LangHelper::getLanguageByParam('id', $_COOKIE['x-language-id']); if ($isset !== null) { return $isset['id']; } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function getLanguageId()\n {\n $languageId = \"\";\n if (isset($_SESSION['Shopware'][\"Auth\"]->localeID) && $_SESSION['Shopware'][\"Auth\"]->localeID != \"\") {\n $languageId = $_SESSION['Shopware'][\"Auth\"]->localeID;\n }\n return $languageId;\n }", "functi...
[ "0.8108536", "0.7595774", "0.7449701", "0.7379859", "0.73620707", "0.7302966", "0.72833157", "0.7271093", "0.7148458", "0.70471257", "0.70351607", "0.70329005", "0.70298284", "0.7029382", "0.6996994", "0.69765896", "0.6961427", "0.69582677", "0.69292504", "0.6906385", "0.6876...
0.7636853
1
Registers the required js files and script to initialize echarts plugin.
Регистрирует необходимые js-файлы и скрипт для инициализации плагина echarts.
protected function registerClientScript() { $id = $this->options['id']; $view = $this->getView(); $option = !empty($this->pluginOptions['option']) ? Json::encode($this->pluginOptions['option']) : '{}'; if ($this->theme) { $js = "var {$this->clientId} = echarts.init(docum...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function register_plugin_script() {\n\t\twp_enqueue_script ( 'tr-execute', plugin_dir_url ( __FILE__ ) . '../js/execute.js', array (\n\t\t\t\t'jquery' \n\t\t) );\n\t\twp_enqueue_script ( 'tr-jquery-custom', plugin_dir_url ( __FILE__ ) . '../js/jquery-ui.min.js', array (\n\t\t\t\t'jquery' \n\t\t) );\n\t\t// ...
[ "0.6930164", "0.6642013", "0.66358787", "0.659453", "0.65577745", "0.64857", "0.64182717", "0.6393153", "0.63474125", "0.63356113", "0.6265968", "0.62512493", "0.6246191", "0.62407136", "0.6223083", "0.62043434", "0.62031066", "0.61829865", "0.6176997", "0.6174723", "0.617444...
0.70504874
0
Returns the client ID of the echarts.
Возвращает идентификатор клиента echarts.
public function getClientId() { $id = $this->options['id']; if ($this->_clientId === null) { $this->_clientId = "echarts_{$id}"; } return $this->_clientId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getClientId()\n {\n return $this->client_id;\n }", "public function getClientId()\n {\n return $this->client_id;\n }", "public function getClientId()\n {\n return $this->client_id;\n }", "public function getClientId()\n {\n return $this->client...
[ "0.7346107", "0.7346107", "0.7346107", "0.7346107", "0.7346107", "0.73284566", "0.73151404", "0.73117363", "0.7284441", "0.72842646", "0.72842646", "0.72842646", "0.72842646", "0.72842646", "0.72842646", "0.7238168", "0.7238168", "0.7189344", "0.7155751", "0.7155751", "0.7084...
0.8740448
0
Registers the JS files of the given themes.
Зарегистрировать JS-файлы заданных тем.
public static function registerTheme($theme) { $themes = (array) $theme; array_walk($themes, function (&$name) { $name .= '.js'; }); static::$_themeJsFiles = array_unique(array_merge(static::$_themeJsFiles, $themes)); if (static::$_themeJsFiles) { Them...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function register_theme_styles_and_scripts(){\n // Register style\n wp_enqueue_style( 'theme-icons', get_template_directory_uri(). '/css/icons.css', array(), '1.0.0', 'all' ); // Register font icons\n wp_enqueue_style( 'google_fonts', sunset_google_fonts_url(), array(), '1.0.0'); // Register G...
[ "0.7101266", "0.705379", "0.69827694", "0.6899698", "0.6832402", "0.68117875", "0.6733613", "0.67205095", "0.6696908", "0.6695708", "0.66952455", "0.666374", "0.6651311", "0.66508657", "0.6647404", "0.6642767", "0.662506", "0.66236204", "0.66072047", "0.6562304", "0.6562304",...
0.734126
0
Registers the JS files of the given maps.
Зарегистрировать JS-файлы заданных карт.
public static function registerMap($map) { $maps = (array) $map; array_walk($maps, function (&$name) { $name = 'js/' . $name . '.js'; }); static::$_mapJsFiles = array_unique(array_merge(static::$_mapJsFiles, $maps)); if (static::$_mapJsFiles) { MapAsse...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addJavascriptFiles($js /* array */);", "protected function registerScripts() {\n\t\tforeach (static::$scripts as $handle => $scriptPath) {\n\t\t\tstatic::registerScript($handle, $scriptPath);\n\t\t}\n\t}", "public function register_assets() {\n\n $scripts = $this->get_scripts();\n ...
[ "0.67518306", "0.6558918", "0.6276848", "0.6230812", "0.6142105", "0.60572845", "0.60283715", "0.5963894", "0.59283364", "0.5891478", "0.58643115", "0.58173853", "0.5811111", "0.5769973", "0.57162094", "0.5711398", "0.57052994", "0.57046634", "0.568333", "0.56821173", "0.5674...
0.7561279
0
Given a record, add all assets it contains to the given manipulation. State can be declared for this record, otherwise the underlying DataObject will be queried for canView() to see if those assets are public
Дано запись, добавьте все содержащиеся в ней активы в заданную манипуляцию. Состояние может быть объявлено для этой записи, иначе будет выполнен запрос к базовому DataObject для проверки canView(), чтобы определить, являются ли эти активы публичными
protected function addAssetsFromRecord(AssetManipulationList $manipulation, DataObject $record, $state) { // Find all assets attached to this record $assets = $this->findAssets($record); if (empty($assets)) { return; } // Add all assets to this stage fore...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function onBeforeWrite()\n {\n if (!$this->hasAssets()) {\n return;\n }\n\n // Prepare blank manipulation\n $manipulations = new AssetManipulationList();\n\n // Mark overwritten object as deleted\n if ($this->owner->isInDB()) {\n $priorRecor...
[ "0.5983292", "0.59673995", "0.5171399", "0.5171399", "0.48691416", "0.48545712", "0.4832955", "0.48314267", "0.47808412", "0.4565236", "0.45315292", "0.44944543", "0.44396025", "0.41933188", "0.418899", "0.41816735", "0.4172173", "0.41716185", "0.4140145", "0.41389728", "0.41...
0.77252924
0
/ RELOAD FORM Gets all POST elements and then puts them into the row array. This row array is then used in all forms to load in the default value of the fields
/ ЗАГРУЗКА ФОРМЫ Получает все элементы POST и затем помещает их в массив строк. Этот массив строк затем используется во всех формах для загрузки значений по умолчанию полей
function reload_form() { global $ROW, $ERROR_MESSAGE; // Only reload if it hasn't been reloaded already if ( $ERROR_MESSAGE && ( !isset($ROW[0]['STATUS']) || $ROW[0]['STATUS'] != 'RELOAD') ) { $ROW[0]=$_POST; $ROW[0]['STATUS']='RELOAD'; LOG_MSG('INFO',"reload_form(): ROW=[".print_r($ROW,true)."]"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function RestoreCurrentRowFormValues($idx) {\r\n\t\tglobal $objForm, $rekeningju;\r\n\r\n\t\t// Get row based on current index\r\n\t\t$objForm->Index = $idx;\r\n\t\t$this->LoadFormValues(); // Load form values\r\n\t}", "public function loadForm() {\n foreach ($this->Fields as $key => $item) {\n ...
[ "0.6497502", "0.6440311", "0.6321709", "0.6300444", "0.62147075", "0.6155644", "0.6027975", "0.6012674", "0.59913504", "0.59858227", "0.587104", "0.5856399", "0.58458173", "0.5830539", "0.58298635", "0.58265984", "0.58258337", "0.5788129", "0.5763833", "0.5757229", "0.5744257...
0.7440448
0
/ Generate random password Mask Rules digit C Caps Character (AZ) c Small Character (az) X Mixed Case Character (azAZ) ! Custom Extended Characters
/ Генерация случайного пароля Маски Правила цифра C Заглавная буква (AZ) c Строчная буква (az) X Смешанный регистр (azAZ) ! Пользовательские расширенные символы
function gen_pass($mask) { $extended_chars = "!@#$%^&*()"; $length = strlen($mask); $pwd = ''; for ($c=0;$c<$length;$c++) { $ch = $mask[$c]; switch ($ch) { case '#': $p_char = rand(0,9); break; case 'C': $p_char = chr(rand(65,90)); break; case 'c': ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function generatePassword() {\n // 57 prefixes\n $aPrefix = array('aero', 'anti', 'ante', 'ande', 'auto', \n 'ba', 'be', 'bi', 'bio', 'bo', 'bu', 'by', \n 'ca', 'ce', 'ci', 'cou', 'co', 'cu', 'cy', \n 'da', 'de', 'di', 'duo', 'dy...
[ "0.78568953", "0.77681845", "0.7706031", "0.76584184", "0.7646685", "0.7636406", "0.75718534", "0.75585645", "0.7510951", "0.7465982", "0.74510753", "0.7431074", "0.73992944", "0.7389806", "0.7380706", "0.7361732", "0.73534524", "0.7347448", "0.7344949", "0.734382", "0.734068...
0.8026063
0
/ Function: get_page_params($count) / generates the different page params
/ Функция: get_page_params($count) / генерирует различные параметры страницы
function get_page_params($count) { global $ROWS_PER_PAGE; if ($ROWS_PER_PAGE == '') $ROWS_PER_PAGE=10; $page_arr=array(); $firstpage = 1; $lastpage = intval($count / $ROWS_PER_PAGE); $page=(int)get_arg($_GET,"page"); if ( $page == "" || $page < $firstpage ) { $page = 1; } // no page no if ( $page > $last...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function populateParams() {\r\n $this->pageNum = isset($_GET['p']) ? (int)$_GET['p'] : 0;\r\n $catId = isset($_GET['c']) ? (int)$_GET['c'] : 0;\r\n \r\n if ($this->pageNum < 1) {\r\n $this->pageNum = 1;\r\n }\r\n }", "function pageInfo($caps_count, $limi...
[ "0.7132374", "0.69605124", "0.68827975", "0.6872568", "0.68438023", "0.6697009", "0.66113085", "0.66006196", "0.6557842", "0.6519253", "0.6505394", "0.6505394", "0.6479073", "0.6448573", "0.64049846", "0.6393", "0.6361017", "0.63430536", "0.6303619", "0.6195957", "0.61955255"...
0.8312243
0
recursively copy a directory
рекурсивно скопировать директорию
function recurse_copy_dir($src,$dst) { $dir = opendir($src); $resp=mkdir($dst); LOG_MSG("INFO","creating directory $resp -> [$dst] "); while($dir && false !== ( $file = readdir($dir)) ) { if (( $file != '.' ) && ( $file != '..' )) { if ( is_dir($src . '/' . $file) ) { recurse_copy_dir($src . '/' . $fi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function recurse_copy($src,$dst) { \n $dir = opendir($src);\n @mkdir($dst); \n while(false !== ( $file = readdir($dir)) ) {\n if (( $file != '.' ) && ( $file != '..') && !strstr($file,'.DS_Store')) {\n if ( is_dir($src . '/' . $...
[ "0.78571546", "0.783516", "0.78284305", "0.7750978", "0.77106035", "0.76332414", "0.7616711", "0.7587495", "0.75813925", "0.7562438", "0.75414324", "0.7479173", "0.73825717", "0.7334196", "0.713173", "0.70902556", "0.7071556", "0.69858694", "0.6929019", "0.6924671", "0.690094...
0.7900599
0
recursively remove a directory
рекурсивно удалить директорию
function recurse_remove_dir($dir) { foreach(glob($dir . '/*') as $file) { if(is_dir($file)) recurse_remove_dir($file); else unlink($file); } rmdir($dir); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function rm_recursive($dir) {\n\t$dir = rtrim($dir, '\\\\/');\n\tif (is_dir($dir)) { \n\t\t$objects = scandir($dir); \n\t\tforeach ($objects as $object) { \n\t\t\tif ($object != \".\" && $object != \"..\") { \n\t\t\t\tif (filetype($dir.\"/\".$object) == \"dir\") rm_recursive($dir.\"/\".$object); else unlink($dir.\...
[ "0.7860229", "0.7705845", "0.76790226", "0.7638309", "0.7600017", "0.7590016", "0.75827116", "0.75450927", "0.75448614", "0.75397563", "0.753273", "0.7474158", "0.74741113", "0.7473814", "0.7467633", "0.7432122", "0.743117", "0.74306524", "0.74216056", "0.7407098", "0.7395388...
0.8000187
0
Calculate the percentage of success for a test
Вычислить процент успешности теста
public static function percent($suiteResults) { $sum = $suiteResults['pass'] + $suiteResults['fail']; return round($suiteResults['pass'] * 100 / max($sum, 1), 2); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSuccessRate(): int\n {\n // Fix for division by zero error\n if ($this->getTestsSum() === 0) {\n return 0;\n }\n\n return (int)round(($this->successful / $this->getTestsSum()) * 100, 0);\n }", "public function getTestedClassesPercent($asString = TRU...
[ "0.74662346", "0.649993", "0.6478119", "0.6470749", "0.6437501", "0.64136565", "0.6353298", "0.62440366", "0.6235881", "0.6219482", "0.61576104", "0.61561984", "0.6069912", "0.60361207", "0.59833914", "0.5981433", "0.5949986", "0.58984613", "0.58732677", "0.5867769", "0.58490...
0.7263251
1
Redirect to the Spotify authorize URL.
Перенаправление на URL-адрес авторизации Spotify.
private function redirectToSpotifyAuthorizeUrl() { header("Location: {$this->session->getAuthorizeUrl($this->options)}"); die(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function authorize() {\r\n\t\t$authurl = $this->tmhOAuth->url(\"oauth/authorize\", '') . \"?oauth_token={$_SESSION['oauth']['oauth_token']}\";\r\n\t\theader(\"Location: \".$authurl);\r\n\t\texit;\r\n\r\n\t\t// in case the redirect doesn't fire\r\n\t\t$this->addMsg('<p>To complete the OAuth flow please vi...
[ "0.7309922", "0.72471577", "0.7214553", "0.7021612", "0.69658715", "0.6851996", "0.6820652", "0.6668452", "0.6556567", "0.65399444", "0.65146494", "0.6509719", "0.64666533", "0.6465529", "0.6461036", "0.6440911", "0.6433697", "0.6402669", "0.6402669", "0.6402669", "0.6397886"...
0.85406005
0
Get or create fMD instance
Получить или создать экземпляр fMD
public static function getInstance() { if ( self::$instance === NULL ) { self::$instance = new fMD(); } return self::$instance; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getInstance()\n {\n if(is_null(self::$singleton)){\n self::$singleton = new System_MD();\n }\n\n return self::$singleton;\n }", "public static function create() {\n $factory = new static();\n return $factory->createFlo();\n }", "public static function getInstance()...
[ "0.6461459", "0.6368495", "0.60753214", "0.60753214", "0.60753214", "0.6074871", "0.6074871", "0.6074871", "0.6074474", "0.6074474", "0.6074474", "0.6074474", "0.60210204", "0.60172546", "0.60031986", "0.59960485", "0.5971111", "0.5962281", "0.5928171", "0.5903206", "0.586927...
0.77785313
0
Converts omeka record to appropriate request body in json format.
Преобразует запись Omeka в соответствующее тело запроса в формате JSON.
public function prepareRequestBody($record){ $requestBody = array( 'data' => array( 'name' => $record->id.'.json', 'type' => 'text/plain', 'content' => serialize($record) ) ); return $requestBody; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function _recordToJson($_record)\n {\n $converter = Tinebase_Convert_Factory::factory($_record);\n $result = $converter->fromTine20Model($_record);\n\n return $result;\n }", "function record($request) {\n\t\t$type = $request->getVar('type');\n\t\t$value = $request->getVar('va...
[ "0.6134897", "0.55030245", "0.5382027", "0.523877", "0.51920366", "0.5185566", "0.51143456", "0.5040793", "0.5040793", "0.5040793", "0.49755058", "0.4959523", "0.49371713", "0.49339497", "0.49280772", "0.49081087", "0.4906283", "0.48985237", "0.48985237", "0.48630413", "0.485...
0.7372453
0
Specification: Publish price list prices for product abstracts. Uses the given IDs of the `fos_price_product_price_list` table. Merges created or updated prices to the existing ones.
Спецификация: Публикация цен из ценового списка для абстрактных продуктов. Использует заданные идентификаторы таблицы `fos_price_product_price_list`. Объединяет созданные или обновленные цены с существующими.
public function publishAbstractPriceProductPriceList(array $priceProductPriceListIds): void;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function publishConcretePriceProductPriceList(array $priceProductPriceListIds): void;", "public function publishAbstractPriceProductPriceListByIdPriceList(int $idPriceList): void;", "public function publishConcretePriceProductPriceListByIdPriceList(int $idPriceList): void;", "public function publishCo...
[ "0.8055158", "0.7791744", "0.75901276", "0.6740554", "0.6615686", "0.65738237", "0.59323585", "0.59132767", "0.5906179", "0.5710619", "0.56863517", "0.56150806", "0.5550583", "0.54916686", "0.5474283", "0.5438785", "0.54045933", "0.5398685", "0.5302523", "0.5298761", "0.52193...
0.82506853
0
Specification: Publish price list prices for product abstracts. Uses the given abstract product IDs. Merges created or updated prices to the existing ones.
Спецификация: Публикация цен из ценового списка для абстрактных продуктов. Использует заданные идентификаторы абстрактных продуктов. Объединяет созданные или обновленные цены с существующими.
public function publishAbstractPriceProductByByProductAbstractIds(array $productAbstractIds): void;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function publishAbstractPriceProductPriceList(array $priceProductPriceListIds): void;", "public function publishConcretePriceProductPriceList(array $priceProductPriceListIds): void;", "public function publishAbstractPriceProductPriceListByIdPriceList(int $idPriceList): void;", "public function publish...
[ "0.7733322", "0.7470892", "0.6998848", "0.6969628", "0.6792842", "0.5643025", "0.56027704", "0.555223", "0.51989794", "0.5142331", "0.51414996", "0.51377356", "0.5066915", "0.5054238", "0.50529104", "0.5000146", "0.49731126", "0.49621835", "0.49568424", "0.49455938", "0.49293...
0.78147155
0
Specification: Publish price list prices for products. Uses the given IDs of the `fos_price_product_price_list` table. Merges created or updated prices to the existing ones.
Спецификация: публикация цен на товары из ценового списка. Использует заданные идентификаторы таблицы `fos_price_product_price_list`. Объединяет созданные или обновленные цены с существующими.
public function publishConcretePriceProductPriceList(array $priceProductPriceListIds): void;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function publishAbstractPriceProductPriceList(array $priceProductPriceListIds): void;", "public function publishAbstractPriceProductPriceListByIdPriceList(int $idPriceList): void;", "public function publishConcretePriceProductPriceListByIdPriceList(int $idPriceList): void;", "public function publishCo...
[ "0.7937263", "0.7360526", "0.7211644", "0.66703296", "0.65506303", "0.5937376", "0.5862801", "0.58348763", "0.5828097", "0.5784281", "0.5727903", "0.5665608", "0.5644147", "0.556371", "0.5546642", "0.55460227", "0.5511881", "0.5511405", "0.5502406", "0.5485018", "0.5443037", ...
0.7818697
1
Add version to $region_default_args properties
Добавить версию в свойства $region_default_args
public function __construct () { $this->region_default_args['properties'][] = array( 'name' => 'version', 'value' => Upfront_Layout::$version ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function default(&$args) {\n\n\t\t// Check args\n\t\tif (empty($args) || !is_array($args))\n\t\t\t$args = [];\n\n\t\t// Set agency slug\n\t\t$args['agency'] = $this->agency;\n\n\t\t// Check language\n\t\tif (!isset($args['language']) && isset($this->language))\n\t\t\t$args['language'] = $this->language;\n\...
[ "0.55579317", "0.5379492", "0.5293333", "0.5138704", "0.51216877", "0.51020133", "0.5101698", "0.50603426", "0.500928", "0.49329698", "0.49038213", "0.48948243", "0.48662868", "0.48136237", "0.4804192", "0.47919914", "0.47913826", "0.47816938", "0.4768469", "0.47440848", "0.4...
0.71187365
0
Function to get an array with all translations in all entire project
Функция для получения массива со всеми переводами по всему проекту
function getAllTranslations() { $translations = []; $modules = $this->getAllModulesOfProject(); sort($modules); foreach ($modules as $module) { $trans = $this->getTranslationsOfModule($module); if ($trans) { foreach ($trans as $value) { foreach ($value ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAllTranslationByLanguage();", "protected function translations(): array\n {\n return $this->cache->get('translations', function (): array {\n return array_values(array_map(function (SplFileInfo $file): string {\n return $file->getBasename('.yaml');\n ...
[ "0.7936426", "0.781887", "0.774593", "0.7547088", "0.7544516", "0.731501", "0.7163456", "0.71537936", "0.71046144", "0.71046126", "0.7083187", "0.7042341", "0.6965644", "0.69579184", "0.68774176", "0.6872991", "0.68667144", "0.6848462", "0.68352705", "0.6820744", "0.6805927",...
0.8123033
0
Method to get all translations of specific module
Метод для получения всех переводов конкретного модуля
function getTranslationsOfModule($module) { $translations = []; $resourcesLangPath = $this->getResourcesLangPath($module); $iniFiles = $this->getIniFilesOfModule($module); foreach ($iniFiles as $file => $data) $translations[str_replace('.ini', '', $data)] = parse_ini_file ("$resourcesLangPath/$d...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getAllTranslations()\n {\n $translations = [];\n $modules = $this->getAllModulesOfProject();\n sort($modules);\n\n foreach ($modules as $module)\n {\n $trans = $this->getTranslationsOfModule($module);\n if ($trans)\n {\n foreach ($trans as $value)\n {\n ...
[ "0.77585846", "0.7519644", "0.75016063", "0.73077905", "0.7251117", "0.70535856", "0.68925446", "0.68523324", "0.6808986", "0.6746941", "0.6741045", "0.6738055", "0.6695994", "0.6666037", "0.6640058", "0.66320163", "0.6596456", "0.65793896", "0.6564944", "0.65433246", "0.6516...
0.7816113
0
Method to get all languages where the indicated key is registered
Метод для получения всех языков, в которых зарегистрирован указанный ключ
function getAvailableLangsOfKey($key) { $langs = []; $modules = $this->getAllModulesOfProject(); foreach ($modules as $module) { $translations = $this->getTranslationsOfModule($module); foreach ($translations as $lang => $value) { if (get($value,$key)) $langs[$key][...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getLanguageList();", "public function getLanguages();", "public function getLanguages() {}", "protected function getLanguages() {}", "public function getTranslationsForKey($key);", "function GetLanguages() // static function\r\n\t{\r\n\t\treturn array_keys ( $this->m_languages );\r\n\t}",...
[ "0.74686384", "0.7355214", "0.7268893", "0.72001886", "0.7180961", "0.715266", "0.70666873", "0.7051027", "0.6897231", "0.68570435", "0.68503135", "0.68440163", "0.6818944", "0.6803733", "0.6786593", "0.67756516", "0.67755", "0.67456156", "0.67223006", "0.6699972", "0.6697188...
0.76414835
0
Private method to get resources languages folder of specific module
Приватный метод для получения папки языков ресурсов конкретного модуля
function getResourcesLangPath($module) { return "$module->path/{$this->localizationSettings->moduleLangPath}"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getLanguagePath()\n {\n return $this->resourcePath('lang');\n }", "function sti_get_localization_directory()\r\n\t{\r\n\t\treturn \"localization\";\r\n\t}", "function sti_get_localization_directory()\n\t{\n\t\treturn \"localization\";\n\t}", "public static function LanguageFol...
[ "0.74307245", "0.69792694", "0.6939375", "0.6815248", "0.67490596", "0.6584351", "0.65752465", "0.6532462", "0.6508149", "0.6459096", "0.63418084", "0.63270485", "0.6311079", "0.63049555", "0.63046765", "0.6297079", "0.62796825", "0.62702113", "0.62194806", "0.62148356", "0.6...
0.83719397
0
Private method to get all modules of current project
Приватный метод для получения всех модулей текущего проекта
private function getAllModulesOfProject() { return $this->modulesRegistry->getModules(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getModules();", "public function getModules();", "public function getModules() {\n }", "public function all()\n {\n return $this->modules;\n }", "public function getIncludedModules ();", "public function getModulesList();", "public function getModules()\n {\n ret...
[ "0.81733066", "0.81733066", "0.8046601", "0.7664847", "0.76621205", "0.7625909", "0.75027376", "0.74667656", "0.7464819", "0.74457943", "0.7423007", "0.73694557", "0.73416436", "0.7336872", "0.73325574", "0.71203834", "0.7119757", "0.70992935", "0.70629334", "0.70449466", "0....
0.8411386
0
Method to get all modules where the indicated key is registered
Метод для получения всех модулей, в которых зарегистрирован указанный ключ
function getAvailableModulesOfKey($key) { $availableModules = []; $modules = $this->getAllModulesOfProject(); foreach ($modules as $module) { $translations = $this->getTranslationsOfModule($module); foreach ($translations as $lang => $value) { if (get($value,$key) && !in_arra...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getModules();", "public function getModules();", "function qa_load_all_modules_with($method)\n{\n\t$modules = array();\n\n\t$regmodules = qa_list_modules_info();\n\n\tforeach ($regmodules as $moduletype => $modulesinfo) {\n\t\tforeach ($modulesinfo as $modulename => $moduleinfo) {\n\t\t\t$modul...
[ "0.700129", "0.700129", "0.67833364", "0.6589975", "0.655044", "0.6474812", "0.6364183", "0.61944747", "0.6189151", "0.61363125", "0.6130783", "0.61043257", "0.6074729", "0.60546374", "0.60528034", "0.60104096", "0.5999453", "0.5987314", "0.5967615", "0.59352195", "0.5924302"...
0.71593446
0
Get the intrinsic ratio used to calculate the responsive video size.
Получите внутренний коэффициент, используемый для вычисления размера адаптивного видео.
public function intrinsic_ratio() { return ($this->slide_video_dimensions['height'] / $this->slide_video_dimensions['width']); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function intrinsic_ratio()\n {\n $w = intval($this->r_width);\n $h = intval($this->r_height);\n return $h / $w;\n }", "public function ratio()\r\n {\r\n if (is_null($this->ratio)) {\r\n $this->ratio = $this->width() / 64;\r\n }\r\n\r\n return $...
[ "0.8139961", "0.75486", "0.72354454", "0.7170941", "0.6863232", "0.6560961", "0.6264969", "0.62637305", "0.6252468", "0.62079614", "0.59535044", "0.5945698", "0.59242505", "0.5867603", "0.5864762", "0.5812672", "0.57373184", "0.5709485", "0.56588614", "0.5621279", "0.5593527"...
0.87134606
0
Gets the application's auth adapter.
Получает адаптер аутентификации приложения.
public static function getAuthAdapter() { if (null == self::$_authAdapter) { throw new Celsus_Exception("Auth adapter has not been set!"); } return self::$_authAdapter; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAuthAdapter()\n {\n if (!$this->_authAdapter) {\n throw new Zend_Controller_Action_Exception(\n \"No auth adapter set\"\n );\n }\n\n return $this->_authAdapter;\n }", "public function getAuthAdapter()\n {\n if (!$this->_...
[ "0.7517111", "0.7517111", "0.70926493", "0.7074507", "0.7058152", "0.69433445", "0.676704", "0.66693985", "0.6613607", "0.6541378", "0.6526375", "0.6520811", "0.6495131", "0.6481802", "0.6472004", "0.6472004", "0.6472004", "0.6472004", "0.6472004", "0.6472004", "0.6472004", ...
0.8052087
0
/ checks if YouTube video exists
Проверяет, существует ли видео YouTube
private function validateYoutubeVideo($id_youtube) { $headers = get_headers('http://gdata.youtube.com/feeds/api/videos/' . $id_youtube); if (!strpos($headers[0], '200')) return false; // video does not exists return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hasVideo() {}", "function isYoutube($url)\n {\n\treturn (substr_count(strtolower($url), \"youtube.com\"));\n }", "function landtalk_check_youtube_id_valid( $id ) {\n\tif ( empty( $id ) ) {\n\t\treturn false;\n\t}\n\n\t$url = add_query_arg(\n\t\tarray(\n\t\t\t'part' => 'status',\n\t\t\t'id...
[ "0.7620277", "0.6999222", "0.67780435", "0.6568749", "0.6520824", "0.6519239", "0.6497901", "0.6456665", "0.63994825", "0.63982075", "0.6395107", "0.6388288", "0.6324664", "0.6307082", "0.6300856", "0.62773395", "0.6268459", "0.6256828", "0.62420994", "0.6212979", "0.6209806"...
0.7399397
1
/ checks if product has any assigned videos
Проверяет, есть ли у продукта назначенные видео
private function hasVideos($id_product) { return Db::getInstance()->getValue("SELECT COUNT(`id`) FROM `"._DB_PREFIX_."youtube` WHERE `id_product`='$id_product' AND `active`='1'"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hasVideo() {}", "public function product_videos( $product=null )\n\t{\n\t\t$CI =& get_instance();\n\t\t$this->product = ($product != null) ? $product : $this->product;\n\n\t\t$result = $CI->db->where(\"cv.product_id\",$this->product)->from(\"products_item_video AS cv\")->join(\"media_videos AS m...
[ "0.6772142", "0.65406775", "0.60900927", "0.6057279", "0.60450256", "0.59278154", "0.5810182", "0.58054364", "0.5792452", "0.57916605", "0.5627142", "0.56171227", "0.56118757", "0.56101435", "0.5608703", "0.5590502", "0.55865693", "0.55720097", "0.55720097", "0.55720097", "0....
0.7452454
0
Require Init Functions File
Требуется файл инициализации функций
protected function __init_func_loader() { require_once(INIT_FUNC_FILE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function loadInit() {}", "public function initialize()\n {\n if (file_exists($this->path.'init.php')) {\n require_once($this->path.'init.php');\n }\n }", "public function init() {\n\t\trequire(__DIR__ . '/../setup-scripts/createExplicitUsers.php');\n\t\trequire(__DIR__ . '...
[ "0.73725533", "0.72113645", "0.6878275", "0.68194246", "0.6753673", "0.67479175", "0.6638716", "0.66373515", "0.6627892", "0.6611482", "0.6606788", "0.659789", "0.658719", "0.6570231", "0.65622", "0.65578824", "0.6551566", "0.6536073", "0.6533895", "0.65211284", "0.65189785",...
0.74994653
0
Authorize Admins for access to the Admin area.
Авторизуйте администраторов для доступа к административной области.
private function authorizeAdmins() { $authorizedRoleIds = Configure::read('acl.role.access_plugin_role_ids'); $authorizedUserIds = Configure::read('acl.role.access_plugin_user_ids'); $modelRoleFk = $this->_getRoleForeignKeyName(); if (in_array($this->Auth->user($modelRoleFk), $authori...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function authorize()\n {\n return Gate::allows('admin');\n }", "public function authorize()\n {\n return Gate::allows('admin');\n }", "public static function authAdmin() {\n if (Yii::$app->user->can(\"administrator\") || Yii::$app->user->can(\"adminsite\")) {\n ...
[ "0.7631978", "0.7631978", "0.74966955", "0.74205786", "0.740605", "0.73730934", "0.73479766", "0.7312293", "0.7306907", "0.7237257", "0.72363514", "0.72122437", "0.7208024", "0.7203129", "0.7182813", "0.71687454", "0.71657455", "0.71657455", "0.71657455", "0.71304035", "0.711...
0.79690534
0
Set the Aco Variables
Установите переменные Aco
protected function setAcoVariables() { $this->set('plugin', isset($this->params['named']['plugin']) ? $this->params['named']['plugin'] : ''); $this->set('controller_name', $this->params['named']['controller']); $this->set('action', $this->params['named']['action']); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setVariables()\n \t{\t\n \t\tif (isset($this->params->plugin)) {\n \t\t\t$this->setPlPath(App::pluginPath(Inflector::humanize($this->params->plugin)));\n \t\t}\n \t\t$this->setController($this->params->controller);\n \t\t$this->setAction($this->params->action);\n \t\t$this->setConstant(Confi...
[ "0.6426496", "0.63845694", "0.6160323", "0.61217064", "0.59801626", "0.5944837", "0.5867351", "0.58112305", "0.57892907", "0.5781792", "0.5739037", "0.5672007", "0.56626254", "0.56445134", "0.5637403", "0.56333673", "0.5633296", "0.5622706", "0.5604848", "0.55785626", "0.5564...
0.8083901
0
Get the Primary Key Name for the User Model
Получить имя первичного ключа для модели пользователя
public function getUserPrimaryKeyName() { $forcedPkName = Configure::read('acl.aro.user.primary_key'); if (! empty($forcedPkName)) { return $forcedPkName; } else { /* Return the primary key's name that follows the CakePHP * conventions */ return ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function primaryKey() {\n return (new static)->getKeyName();\n }", "public function getPrimaryKeyName()\n {\n return self::$primary_key_name;\n }", "private function userKeyName()\n {\n $userModel = config('follow.user');\n\n return (new $userModel)->getKey...
[ "0.81207246", "0.80537635", "0.80530363", "0.8032713", "0.803236", "0.79726744", "0.79648507", "0.7948807", "0.79371184", "0.7924475", "0.7910404", "0.78667253", "0.78244376", "0.77758414", "0.77562934", "0.77033526", "0.77033526", "0.76473117", "0.75378853", "0.75027096", "0...
0.8695527
0
Get the Foreign Key Name for the Role Model
Получить имя иностранный ключ для модели Роли
protected function _getRoleForeignKeyName() { $forcedFkName = Configure::read('acl.aro.role.foreign_key'); if (! empty($forcedFkName)) { return $forcedFkName; } else { /* Return the foreign key's name that follows the CakePHP * conventions */ ret...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getForeignKeyName() {\n return $this->foreignKeyName;\n }", "public function getForeignKey()\n {\n return $this->getTableSingular().'_'.$this->getKeyName();\n }", "public function getQualifiedForeignKeyName()\n {\n return $this->foreignKey;\n }", "public fu...
[ "0.7569259", "0.75360084", "0.7419114", "0.73863214", "0.73412377", "0.7316087", "0.7259885", "0.71900666", "0.7155617", "0.7107631", "0.70518327", "0.6753322", "0.66961634", "0.66732", "0.66642493", "0.66597706", "0.6655589", "0.6647459", "0.6642061", "0.6631837", "0.6591524...
0.85481507
0
redirect to the referring page or the admin_index action.
перенаправить на страницу, с которой был выполнен переход, или на действие admin_index.
protected function _returnToReferer() { return $this->redirect( $this->referer( array( 'action' => 'admin_index' ))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function redirect() {\n\t\theader('Location: admin.php');\n\t\texit();\n\t}", "public static function redirect() {\n\t\tunset( $_GET['action'] );\n\n\t\twp_safe_redirect( admin_url( 'admin.php?page=' . WPFC_QS_Setup::get_template_name() . '-setup' ) );\n\n\t\texit();\n\t}", "public function index()\n {\n ...
[ "0.7361207", "0.7289132", "0.72034097", "0.7177263", "0.7059238", "0.7026167", "0.6996214", "0.69860095", "0.6976114", "0.69076633", "0.6881888", "0.6802216", "0.6802216", "0.6802216", "0.67744046", "0.67598134", "0.67345256", "0.67100114", "0.6705284", "0.6701056", "0.668244...
0.77819353
0
$sql is a string which contains $1 to $n parameters and $param_array must supply the correct amount of string parameters in the correct order. Zero parameters are also allowed
$sql — это строка, содержащая параметры $1 до $n, и $param_array должен обеспечивать правильное количество строковых параметров в правильном порядке. Также допускается отсутствие параметров
function execute_params($sql, $param_array) { // Using an empty string as stmtname here overwrites any // previous prepared statement making multiple prepares // easily doable $q = pg_prepare($this->connection, '', $sql); $q = pg_execute($this->connection, '', $param_array); $rows = array(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setParams($sql, $params)\n{\n\t$has_params = false;\n\t\n\t$pat = $this->SQL_PARAM_PATTERN;\n\tif (strpos($sql, '{')) $has_params = true;\n\tif ($this->config['pclib.compatibility']['sql_syntax'] and strpos($sql, '[')) {\n\t\t$has_params = true;\n\t\t$pat = \"/\\[([#\\?\\!]?)([a-z0-9_]+)\\]/i\";\n\t}\n\ti...
[ "0.7089347", "0.7055418", "0.69063294", "0.6806215", "0.6777838", "0.66843504", "0.6653871", "0.66308755", "0.65509635", "0.65400493", "0.64663815", "0.6454364", "0.6415091", "0.6411967", "0.6393609", "0.6391266", "0.635393", "0.6343606", "0.6310819", "0.6306672", "0.62978935...
0.7140548
0
Show the form for creating a new Medication.
Показать форму для создания нового лекарства.
public function create() { $med_categories = MedCategory::with('children')->whereNull('parent_id')->get(); $med_names = MedName::get(); $packs = MedPack::get(); $templateMeds = TemplateMed::get(); return view('medication.create') ->withMedCategories($med_categories) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create()\n {\n return view('backend.admin.medicine.create');\n }", "public function create()\n {\n return view('Medicines.create');\n }", "public function create()\n {\n $mobil = new Mobil();\n return view('mobil.form', compact('mobil'));\n }", "p...
[ "0.7291153", "0.7144382", "0.71082056", "0.7085397", "0.7032347", "0.701842", "0.6983736", "0.69143116", "0.68464106", "0.6737258", "0.670481", "0.6640224", "0.6628402", "0.6621706", "0.65985733", "0.6594298", "0.65936834", "0.6550819", "0.65471536", "0.65314263", "0.6517359"...
0.7407342
0
Distributor Address for presentation
Адрес дистрибьютора для представления
public function printDistributorAddress() { $str = '<address class="vcard">'; $str .= '<p>'; $str .= '<strong class="org">' . $this->name . '</strong>'; if ( ! empty($this->address)) { $str .= '<br><span class="adr">'; $str .= '<span class="street-address">' ....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function address() { return ($this->address); }", "public function address(): string\n {\n return $this->address;\n }", "function viewAddress(){\r\n $payment = new managePaymentModel();\r\n $payment->cust_ID = $_SESSION['cust_ID'];\r\n return $payment->viewAddress();\r\n }"...
[ "0.64839643", "0.6309607", "0.62910753", "0.62617326", "0.6122346", "0.6106823", "0.60907793", "0.6065269", "0.60634726", "0.60541743", "0.60255396", "0.59778386", "0.59553933", "0.59094447", "0.59061325", "0.58745325", "0.58720684", "0.5855768", "0.5855768", "0.584866", "0.5...
0.80096704
0
Returns the Query Builder to select all nodes ordered as tree.
Возвращает Query Builder для выбора всех узлов, упорядоченных как дерево.
public function getNodeTreeQueryBuilder() { $qb = $this->repository ->createQueryBuilder('c') ->select('c, p') ->leftJoin('c.parent', 'p') ->orderBy('c.lft'); return $qb; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getNodesQueryBuilder($parentId=null)\n {\n // Get class metadata\n $metadata = $this->getClassMetadata();\n\n // Create the query builder\n $queryBuilder = $this->_em->createQueryBuilder();\n\n $queryBuilder\n ->select('node')\n ->from($me...
[ "0.6490567", "0.6306455", "0.62454224", "0.59238976", "0.5892231", "0.58225065", "0.5818849", "0.57435685", "0.5618105", "0.55940264", "0.55886483", "0.55865026", "0.5550731", "0.5530019", "0.5510987", "0.5493688", "0.54929763", "0.5484383", "0.54810077", "0.5479525", "0.5448...
0.74920726
0
Returns ascendants of a given node filtered by published status.
Возвращает предков узла, отфильтрованных по статусу опубликованности.
public function findNodeAscendantsFilteredByPublished(NodeInterface $node, $published) { $qb = $this->getNodeAscendantsQueryBuilder($node); $qb->andWhere('c.published = :pub') ->setParameter('pub', $published); return $qb->getQuery()->getResult(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function findNodePublishedDescendantsFilteredByDepth(NodeInterface $node, $depth = 1)\n {\n $qb = $this->getNodeDescendantsQueryBuilder($node);\n $qb->andWhere('c.published = true')\n ->andWhere('c.lvl - ' . $node->getLevel() . ' <= :d')\n ->setParameter('d', $depth);\...
[ "0.59303397", "0.5769526", "0.572744", "0.5537261", "0.5366998", "0.5162558", "0.5161066", "0.51442534", "0.5068894", "0.5001943", "0.49399307", "0.49125707", "0.4904975", "0.49000794", "0.48306423", "0.48306128", "0.4817847", "0.48056942", "0.48042446", "0.4794809", "0.47849...
0.72250086
0
Returns the Query Builder to select all nodes that are not descendants of a given node.
Возвращает Query Builder для выбора всех узлов, которые не являются потомками заданного узла.
public function getNodeNotDescendantsQueryBuilder(NodeInterface $node) { $qb = $this->getNodeTreeQueryBuilder(); $qb->where('c.lft < :lft OR c.rgt > :rgt') ->setParameter('lft', $node->getLeft()) ->setParameter('rgt', $node->getRight()); return $qb; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function newQueryWithoutRelationships();", "private function findNotSoldQuery() : QueryBuilder\n {\n return $this\n ->createQueryBuilder('p')\n ->where('p.sold = false')\n ->orderBy('p.created_at', 'ASC');\n }", "public function whereNotEq()\n {\n ...
[ "0.591824", "0.5860476", "0.5846658", "0.57491595", "0.5716643", "0.5701002", "0.5688973", "0.56481946", "0.5634945", "0.5625262", "0.55713594", "0.5530799", "0.548697", "0.5470394", "0.5470253", "0.54560655", "0.54117244", "0.5397437", "0.5389121", "0.53789645", "0.5346176",...
0.75435907
0
Amenities that belong to the property.
Удобства, принадлежащие объекту.
public function amenities() { return $this->belongsToMany('App\Models\Properties\Amenity'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function amenities()\n {\n return $this->belongsToMany(\n 'App\\Amenity', 'listing_amenities', 'listing_id', 'amenity_id'\n )->select(['id', 'title', 'icon']);\n }", "public function abilities()\n {\n return $this->belongsToMany(config('rinvex.fort.models.ability')...
[ "0.68743193", "0.5743877", "0.57319707", "0.5686096", "0.56854695", "0.5666088", "0.55952317", "0.5592784", "0.55508274", "0.5509109", "0.5484758", "0.5481894", "0.54407275", "0.54223764", "0.5367487", "0.53596133", "0.5349716", "0.5349716", "0.53317046", "0.5321251", "0.5315...
0.7736862
0
Always unserialize coordinates attribute on retrieval.
Всегда десериализуйте атрибут координат при получении.
public function getCoordinatesAttribute($coordinates) { return $coordinates != null ? unserialize($coordinates) : null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setCoordinatesAttribute($coordinates)\n {\n $this->attributes['coordinates'] = serialize($coordinates);\n }", "public function serialize() {\n return array( \n 'lat' => $this->getLat(),\n 'lon' => $this->getLong()\n );\n }", "public function g...
[ "0.6557048", "0.5719965", "0.56663734", "0.56413805", "0.5551172", "0.55447596", "0.54303646", "0.5401764", "0.5382625", "0.5366854", "0.52941746", "0.5281055", "0.5281055", "0.5247889", "0.52467364", "0.5232397", "0.51980674", "0.5187305", "0.51868856", "0.5182701", "0.51769...
0.7251681
0
Attach ids of amenities that belong to the property.
Привяжите идентификаторы удобств, принадлежащих объекту недвижимости.
public function amenityIds() { $this->attributes['amenityIds'] = $this->amenities->pluck('id'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function amenities()\n {\n return $this->belongsToMany('App\\Models\\Properties\\Amenity');\n }", "public function amenities()\n {\n return $this->belongsToMany(\n 'App\\Amenity', 'listing_amenities', 'listing_id', 'amenity_id'\n )->select(['id', 'title', 'icon']);...
[ "0.59695023", "0.5592355", "0.5519928", "0.50788265", "0.4984267", "0.49646252", "0.49623868", "0.49561778", "0.49453518", "0.49078664", "0.48412922", "0.4839164", "0.48146242", "0.47847247", "0.4768297", "0.4761813", "0.4747934", "0.47055477", "0.46936214", "0.46753767", "0....
0.71790624
0
Attach ids of utilities that belong to the property.
Привяжите идентификаторы утилит, принадлежащих свойству.
public function utilityIds() { $this->attributes['utilityIds'] = $this->utilities->pluck('id'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function utilities()\n {\n return $this->belongsToMany('App\\Models\\Properties\\Utility');\n }", "function set_properties_by_id () {\n\t\t$stm = DB::$pdo->prepare(\"select * from `generated_object` where `id`=:id\");\n\t\t$stm->bindParam(':id', $this->id);\n\t\t$stm->execute();\n\t\t$res = $...
[ "0.5778601", "0.5004662", "0.49143374", "0.47113052", "0.46814117", "0.46080622", "0.4601683", "0.45984155", "0.45729363", "0.45483688", "0.45133397", "0.45086017", "0.4493528", "0.44639462", "0.4408339", "0.4395268", "0.4361364", "0.43528295", "0.4346339", "0.4341085", "0.43...
0.7843064
0
Attach image routes to property.
Привязать маршруты изображения к свойству.
public function ImageRoutes() { $routes = []; foreach ($this->images as $image) { $routes[] = '/' . env('PROPERTY_IMAGE_DISK') . '/' . $image->filepath; } if (count($routes) == 0) { $routes[] = '/imgs/default_image.png'; } $this->image_routes ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function images()\n {\n return $this->hasMany(PropertyImage::class,'property_id', 'id');\n }", "public function add_rewrite_rule() {\n\t\t\tadd_rewrite_rule(\n\t\t\t\t'photo/([a-z0-9-_]+)/?', // ([^/]+)\n\t\t\t\t'index.php?attachment=$matches[1]',\n\t\t\t\t'top'\n\t\t\t);\n\t\t}", "public f...
[ "0.5714889", "0.5680359", "0.559291", "0.5586751", "0.54304624", "0.53598565", "0.5314433", "0.52572125", "0.51980245", "0.5182699", "0.5173096", "0.5112765", "0.5106167", "0.50788325", "0.5054979", "0.5043555", "0.50340104", "0.49982843", "0.49979964", "0.4987067", "0.498588...
0.70499086
0
Get the subdivision that belongs to the city of the property.
Получите подразделение, которое принадлежит городу собственности.
public function subdivision() { $city = $this->city; $this->subdivision = $city ? $city->subdivision : null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function get_cities_origin() {\n $t_location = get_transient('wcis_location');\n return $t_location['cities'];\n }", "public function get_ville()\n {\n return $this->_ville;\n }", "public function getCity();", "public function getCity()\n {\n\n return $this->fv_city;\n ...
[ "0.6242184", "0.61974883", "0.61404765", "0.6077991", "0.6058759", "0.6030885", "0.6030885", "0.6030885", "0.6030885", "0.6030885", "0.6030885", "0.6030885", "0.6030885", "0.6030885", "0.6030885", "0.6030885", "0.6030885", "0.6030885", "0.6030885", "0.6030885", "0.6030885", ...
0.7613744
0
////////////////////////////////////////////////////////////////////////// CREATE A CONNECTION TO THE POSTGRESQL SERVER //////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////// СОЗДАНИЕ СОЕДИНЕНИЯ С СЕРВЕРОМ POSTGRESQL //////////////////////////////////////////////////////////////////////////
public function connect() { $auth = $this->auth(); $this->connection = @pg_connect( " host='" . $auth['server'] . "'" . " dbname='" . $auth['database'] . "'" . " user='" . $auth['username'] . "'" . " password='" . $auth['password'] . "'" . " connect_timeout='" . $auth['timeout'] . "'" . ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function createConection(){\n\n\t\tglobal $db_host;\n\t\tglobal $db_usr;\n\t\tglobal $db_pwd;\n\t\tglobal $db_name;\n\t\tglobal $db_port;\n\n\t\treturn pg_connect('user='.$db_usr.' password='.$db_pwd.' host= '.$db_host.' dbname = '.$db_name.' port = '.$db_port);\n\t}", "private static function get_connect(){\n ...
[ "0.7810851", "0.72651434", "0.72038406", "0.71034694", "0.70919365", "0.7058086", "0.7037945", "0.7014107", "0.700387", "0.700387", "0.7002035", "0.6928738", "0.692087", "0.6908195", "0.68989146", "0.6871471", "0.6849338", "0.6846248", "0.68344164", "0.6831336", "0.682009", ...
0.7293275
1
Get the value of admin
Получить значение admin
public function getAdmin() { return $this->admin; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAdminId()\n {\n return $this->data['fields']['admin_id'];\n }", "public function getAdmin() {\n \n return $this->admin;\n }", "function get_admin_name() {\n return $this->admin_name;\n }", "public function getAdmin() {\n $sql = \"SELECT *\n ...
[ "0.7655957", "0.75225335", "0.75152075", "0.75036067", "0.7360108", "0.73347753", "0.73347753", "0.73347753", "0.7312479", "0.7312479", "0.7278925", "0.71919763", "0.7129663", "0.7109811", "0.70641136", "0.7057862", "0.7021233", "0.69675887", "0.6905841", "0.681004", "0.67819...
0.7666034
0
/ Called when a group is attempting to be deleted Check if there are subgroups and sort out what happens them and content
Вызывается при попытке удаления группы. Проверьте, есть ли подгруппы, и определите, что с ними и содержимым происходит
function au_subgroups_delete_group($hook, $type, $return, $params) { $guid = get_input('guid'); if (!$guid) { $guid = get_input('group_guid'); } $group = get_entity($guid); if (elgg_instanceof($group, 'group')) { // determine if the group has any child groups $child = au_subgroups_get_subgro...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testDeleteGroup()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "function _deleteGroup()\n\t{\n\t\t// Get the informations\n\t\t$group = kform::getInput('group');\n\t\tlist($drawId, $groupname) = explode(';', $group);\n\n\t\t// Delete the draws...
[ "0.7309016", "0.7189372", "0.7019656", "0.7003522", "0.6992807", "0.6908704", "0.69075", "0.6874594", "0.6864696", "0.6840422", "0.6818331", "0.6803001", "0.6788614", "0.6788448", "0.67875534", "0.67852354", "0.67308295", "0.67292714", "0.6700311", "0.66999066", "0.66378796",...
0.7353069
0
A role can have een parent role.
Роль может иметь родительскую роль.
public function parentrole() { return $this->belongsTo(self::class, 'parent_id'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function parentRole()\n {\n if ($this->parent_id == null) {\n return null;\n }\n return $this->hasOne(Config::get('guardian.role'), 'id', 'parent_id');\n }", "protected function parentRole()\n {\n return !empty($this->parentRole) ? $this->parentRole : $this-...
[ "0.7558466", "0.72053415", "0.7043911", "0.70424426", "0.6691024", "0.6591013", "0.6505603", "0.6461153", "0.6369699", "0.6353067", "0.626471", "0.62257785", "0.62257785", "0.62257785", "0.620633", "0.6202284", "0.61791736", "0.6111024", "0.60926", "0.60570765", "0.6054575", ...
0.7532712
1
Get all parent roles.
Получить все родительские роли.
public function getParentRoles() { $parents = collect([]); $parent = $this->parent; while (!is_null($parent)) { $parents->push($parent); $parent = $parent->parent; } return $parents; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAllRolesWithParentRoles() {\n return RoleHelper::getUserParentRoles($this);\n }", "public function parentPermissions()\n {\n $parentPermissions = collect([]);\n\n $parent = $this->parentrole;\n\n while (!is_null($parent)) {\n if ($parent->permission...
[ "0.8765492", "0.74436235", "0.7337989", "0.72473437", "0.7016529", "0.68748724", "0.67876744", "0.6731614", "0.6718011", "0.6700322", "0.6654085", "0.6645281", "0.65859544", "0.6573733", "0.65629727", "0.6554917", "0.6536156", "0.6528295", "0.6515692", "0.65018666", "0.650125...
0.8359708
1
Get permissions from all parent roles.
Получить разрешения из всех родительских ролей.
public function parentPermissions() { $parentPermissions = collect([]); $parent = $this->parentrole; while (!is_null($parent)) { if ($parent->permissions->count()) { $parentPermissions->push($parent->permissions); } $parent = $parent->par...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAllRolesWithParentRoles() {\n return RoleHelper::getUserParentRoles($this);\n }", "public function getPermissionsViaRole()\n {\n return $this->roles->map(function (Role $role) {\n return $role->getAllPermissions();\n })->flatten();\n }", "protected fu...
[ "0.725679", "0.70296824", "0.699677", "0.68958336", "0.6870528", "0.6829015", "0.66528183", "0.6624707", "0.6621569", "0.66188425", "0.6608916", "0.65669155", "0.6542632", "0.6509425", "0.6507237", "0.6491133", "0.6443972", "0.6328512", "0.62803066", "0.6271014", "0.62388605"...
0.77577955
0
get whether or not we are allowing external connections
получить информацию о том, разрешаем ли мы внешние соединения
static function doesAllowExternalConnections() { return self::$allow_external_connections; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function checkConnection(){\r\n\t\treturn false;\r\n\t}", "public function isConnect()\n {\n return $this->bbb->isConnectionWorking();\n }", "abstract function _is_conn();", "public function isOnline() \n {\n // pings example.com and google.com\n $is_conn = null;\n ...
[ "0.7054565", "0.7030525", "0.6975314", "0.68853116", "0.68583184", "0.6839419", "0.6839419", "0.6839076", "0.6828748", "0.6808892", "0.6808892", "0.6808892", "0.6808892", "0.6808892", "0.6808892", "0.6771379", "0.6771379", "0.6771379", "0.67427135", "0.6720285", "0.6688985", ...
0.8181926
0
Perform a put request on the given url with optional body and headers
Выполните PUT-запрос на заданный url с необязательным телом и заголовками
static function put($url, $body = null, $headers = array()) { $request = new NiceHTTP\PutRequest($url, $body, $headers); return $request->send(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function put($url, $body = array(), $query = array(), $headers = array());", "public function put(string $url, array $input = [], $headers = null);", "public function put($url, $headers = [], $data = [], $options = [])\n {\n }", "public function _put($url = null, array $parameters = []);...
[ "0.8788709", "0.7896316", "0.7800557", "0.77750427", "0.77601177", "0.767182", "0.76223975", "0.75847673", "0.7391131", "0.73700523", "0.7259284", "0.7214415", "0.7204495", "0.72022486", "0.72010416", "0.7130234", "0.70983815", "0.70396346", "0.6986912", "0.69466424", "0.6930...
0.7913318
1
Search for a matcher for the given Request. If we find one, return the proper response, otherwise return null
Ищите матчер для заданного Запроса. Если найдете, верните соответствующий ответ, иначе верните null
static function match($request) { foreach (self::$matchers as $matcher) { $response = $matcher($request); if ($response !== null) { $response->request = $request; return $response; } } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function match($request)\r\n {\r\n foreach ($this->routes as $name => $route)\r\n {\r\n $route = $this->getRoute($name);\r\n\r\n if (is_array($params = $route->match($request))) {\r\n return new MatchedRoute($route, $name, $params);\r\n }\r\n ...
[ "0.6781053", "0.6550235", "0.6517535", "0.6255369", "0.6147484", "0.60608935", "0.6049397", "0.60195595", "0.60067314", "0.5973606", "0.5924475", "0.59000385", "0.581304", "0.57457614", "0.56507015", "0.564384", "0.5638988", "0.5636702", "0.56269705", "0.56119657", "0.560896"...
0.8107515
0
Finds and displays a PortfolioItem entity.
Находит и отображает сущность PortfolioItem.
public function showAction($id) { $em = $this->getDoctrine()->getManager(); $portfolio = $em->getRepository('AntBundle:Portfolio')->find($id); $portfolioItem = $em->getRepository('AntBundle:PortfolioItem')->findByPortfolioId($id); if (!$portfolioItem) { throw $this->cre...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show(Portfolio $portfolio)\n {\n //\n }", "public function showAction(PortfolioItem $portfolioitem)\r\n {\r\n $user = $this->getUser();\r\n $account = $user->getAccount();\r\n if ($account != $portfolioitem->getAccount()) return $this->redirect($this->generate...
[ "0.68475884", "0.6654383", "0.59879124", "0.5963228", "0.58728725", "0.58728725", "0.5872448", "0.5851569", "0.58394796", "0.58378035", "0.58039135", "0.58003455", "0.5768453", "0.5746798", "0.5730695", "0.5718938", "0.5716693", "0.56668675", "0.565931", "0.5637816", "0.56364...
0.73384213
0
Mark WC Vendors order as Shipped
Отметить заказ поставщика WC как отправленный
function wcfm_wcvendors_order_mark_shipped() { global $WCFM, $WCFMu, $woocommerce, $wpdb; $user_id = apply_filters( 'wcfm_current_vendor_id', get_current_user_id() ); if ( !empty( $_POST['orderid'] ) ) { $order_id = $_POST['orderid']; $product_id = $_POST['productid']; $order_item_id = $_PO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function wcfm_wcmarketplace_order_mark_shipped() {\r\n\t\tglobal $WCFM, $WCFMu, $woocommerce, $wpdb;\r\n\t\t\r\n\t\t$user_id = apply_filters( 'wcfm_current_vendor_id', get_current_user_id() );\r\n\t\t\r\n\t\tif ( !empty( $_POST['orderid'] ) ) {\r\n\t\t\t$order_id = $_POST['orderid']; \r\n\t\t\t$o...
[ "0.8012149", "0.78245276", "0.74902797", "0.6935354", "0.6845717", "0.66986763", "0.64345485", "0.63858855", "0.63169616", "0.6295898", "0.6274096", "0.62528867", "0.6143075", "0.6106249", "0.60485643", "0.60382515", "0.5964262", "0.59186786", "0.5904106", "0.58712393", "0.58...
0.80748504
0
Mark WC Product Vendors order as Fulfilled
Отметить заказ поставщика WC Product Vendors как выполненный
function wcfm_wcpvendors_order_mark_fulfilled() { global $WCFM, $WCFMu, $woocommerce, $wpdb; $user_id = apply_filters( 'wcfm_current_vendor_id', get_current_user_id() ); if ( !empty( $_POST['orderid'] ) ) { $order_id = $_POST['orderid']; $product_id = $_POST['productid']; $order_item_id = $...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function wcfm_wcvendors_order_mark_shipped() {\r\n\t\tglobal $WCFM, $WCFMu, $woocommerce, $wpdb;\r\n\t\t\r\n\t\t$user_id = apply_filters( 'wcfm_current_vendor_id', get_current_user_id() );\r\n\t\t\r\n\t\tif ( !empty( $_POST['orderid'] ) ) {\r\n\t\t\t$order_id = $_POST['orderid'];\r\n\t\t\t$product_id = $_POST['pro...
[ "0.66662884", "0.6451834", "0.63869214", "0.6166922", "0.59090817", "0.59000254", "0.58038867", "0.56576085", "0.56402695", "0.5597151", "0.5570989", "0.5551745", "0.5549113", "0.5529215", "0.5507449", "0.5482616", "0.5479839", "0.54728526", "0.5471566", "0.5453172", "0.54424...
0.7994449
0
Mark WC Marketplace order as Shipped
Отметить заказ в Marketplace WC как Отправленный
function wcfm_wcmarketplace_order_mark_shipped() { global $WCFM, $WCFMu, $woocommerce, $wpdb; $user_id = apply_filters( 'wcfm_current_vendor_id', get_current_user_id() ); if ( !empty( $_POST['orderid'] ) ) { $order_id = $_POST['orderid']; $order = wc_get_order( $order_id ); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function wcfm_wcfmmarketplace_order_mark_shipped() {\r\n\t\tglobal $WCFM, $WCFMu, $woocommerce, $wpdb;\r\n\t\t\r\n\t\t$user_id = apply_filters( 'wcfm_current_vendor_id', get_current_user_id() );\r\n\t\t\r\n\t\tif ( !empty( $_POST['orderid'] ) ) {\r\n\t\t\t$order_id = $_POST['orderid']; \r\n\t\t\t...
[ "0.78274375", "0.73035306", "0.72957855", "0.6953338", "0.6892787", "0.667168", "0.6615628", "0.6483965", "0.6479015", "0.6428056", "0.63306314", "0.62906265", "0.62633115", "0.6199688", "0.61819476", "0.6040608", "0.60170656", "0.6007457", "0.6005998", "0.5998495", "0.598584...
0.77424556
1
Mark WCfM Marketplace order as Shipped
Отметить заказ из WCfM Marketplace как Отправленный
function wcfm_wcfmmarketplace_order_mark_shipped() { global $WCFM, $WCFMu, $woocommerce, $wpdb; $user_id = apply_filters( 'wcfm_current_vendor_id', get_current_user_id() ); if ( !empty( $_POST['orderid'] ) ) { $order_id = $_POST['orderid']; $order = wc_get_order( $order_id );...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function wcfm_wcmarketplace_order_mark_shipped() {\r\n\t\tglobal $WCFM, $WCFMu, $woocommerce, $wpdb;\r\n\t\t\r\n\t\t$user_id = apply_filters( 'wcfm_current_vendor_id', get_current_user_id() );\r\n\t\t\r\n\t\tif ( !empty( $_POST['orderid'] ) ) {\r\n\t\t\t$order_id = $_POST['orderid']; \r\n\t\t\t$o...
[ "0.77678424", "0.7331125", "0.7266354", "0.6888803", "0.67891973", "0.6565327", "0.64468884", "0.6426397", "0.64220524", "0.64009774", "0.63673973", "0.6310734", "0.61712736", "0.61693716", "0.61505574", "0.6112471", "0.6097632", "0.60953647", "0.6080662", "0.605693", "0.6004...
0.79052174
0
Mark Dokan order as Shipped
Отметить заказ Mark Dokan как Отправленный
function wcfm_dokan_order_mark_shipped() { global $WCFM, $WCFMu, $woocommerce, $wpdb; $user_id = apply_filters( 'wcfm_current_vendor_id', get_current_user_id() ); if ( !empty( $_POST['orderid'] ) ) { $order_id = $_POST['orderid']; $order = wc_get_order( $order_id ); $prod...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setShipped($id){\n $this->upd(\"orders\", array(\"shipped\" => \"yes\"), array(\"order_id\" => $id));\n }", "function wcfm_wcfmmarketplace_order_mark_shipped() {\r\n\t\tglobal $WCFM, $WCFMu, $woocommerce, $wpdb;\r\n\t\t\r\n\t\t$user_id = apply_filters( 'wcfm_current_vendor_id', get_curre...
[ "0.7431695", "0.74207926", "0.7234685", "0.70458853", "0.6996642", "0.69393206", "0.6919671", "0.6882646", "0.6828139", "0.68119454", "0.6557791", "0.64496154", "0.6401753", "0.6335188", "0.6334433", "0.6252315", "0.6167029", "0.611768", "0.60541797", "0.6018588", "0.59834313...
0.75513273
0
Shopping Cart has many Cart Items
Shopping Cart имеет много Cart Items
public function cartItems() { return $this->hasMany(CartItem::class); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function cart()\n {\n return $this->hasMany(Item::class);\n }", "public function cartItem()\n {\n return $this->hasMany('App\\Model\\CartItem');\n }", "public function carts()\n\t{\n\t\treturn $this->belongsToMany(Cart::class, 'items_carts', 'item_id', 'cart_id');\n\t}", "pub...
[ "0.8017298", "0.79342914", "0.76961607", "0.76542604", "0.75875205", "0.75875205", "0.75875205", "0.75695926", "0.753876", "0.7495373", "0.7487104", "0.74207026", "0.73673517", "0.7315237", "0.7308528", "0.730656", "0.72836226", "0.72270525", "0.7177483", "0.7087602", "0.7084...
0.8001362
1
Required. Total number of shards. When any physical devices are selected, the number must be >= 1 and = 1 and int32 num_shards = 1;
Обязательно. Общее количество шардов. При выборе любого физического устройства количество должно быть >= 1 и = 1 и int32 num_shards = 1;
public function getNumShards() { return $this->num_shards; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getShardsCount()\n {\n return $this->shards_count;\n }", "public function getTotalShards()\n {\n return (int)$this->data['totalShards'];\n }", "public function setNumShards($var)\n {\n GPBUtil::checkInt32($var);\n $this->num_shards = $var;\n\n r...
[ "0.77530587", "0.74255246", "0.7311514", "0.68055606", "0.6617849", "0.62268084", "0.57737255", "0.54278", "0.5226933", "0.51572603", "0.513165", "0.50968295", "0.5050214", "0.49984208", "0.49721453", "0.49708915", "0.4936657", "0.48678342", "0.48409212", "0.48269108", "0.482...
0.8122758
0
DEPEndency injection. StripeBilling class and this object are decoupled. This setup allows for Mock object to be sent
Внедрение зависимостей. Класс StripeBilling и этот объект развязаны. Такая настройка позволяет отправлять объект-мок
public function __construct(StripeBilling $stripe) { $this->_stripe = $stripe; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setUp()\n {\n $this->_paypal = new Paypal();\n\n $this->_payment = new Payment($this->_paypal);\n }", "public function setUp()\n {\n $this->purchase = new Purchase();\n }", "public function __construct(ChargeBillingRepository $billingRepo)\n {\n $this-...
[ "0.6815441", "0.6656416", "0.6653331", "0.6648101", "0.6602994", "0.6554967", "0.65218765", "0.64062667", "0.63980705", "0.6389277", "0.6344419", "0.63276976", "0.6322218", "0.63045365", "0.6291064", "0.6282035", "0.6265328", "0.6228656", "0.6207399", "0.61981505", "0.6142949...
0.7422001
0
/ close: sends a proper disconect, then closes the socket
/ close: отправляет корректный запрос на отключение, затем закрывает сокет
function close(){ $this->disconnect(); stream_socket_shutdown($this->socket, STREAM_SHUT_WR); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function close() {\r\n\t\tfclose($this->socket);\r\n\t}", "private function close_socket() {\n\t\tfclose($this->_socket);\n\t\tif ($this->_CBC) $this->_CBC->_openSRS_crypt();\t\t\t/* destructor */\n\t\t$this->_CBC\t\t\t\t= false;\n\t\t$this->_authenticated\t= false;\n\t\t$this->_socket\t\t\t= false;\n\t}", "pu...
[ "0.78487915", "0.77117836", "0.75866485", "0.7518191", "0.7445423", "0.7444326", "0.74267966", "0.73898894", "0.7356675", "0.7116472", "0.70132244", "0.6956682", "0.6915018", "0.6881676", "0.6872263", "0.68588525", "0.6843052", "0.67003274", "0.66555864", "0.66485655", "0.664...
0.7973738
0
Determine whether the user can update the product group.
Определите, может ли пользователь обновить группу продуктов.
public function update(User $user, ProductGroup $productGroup) { if( $user->hasPermissions(['group_update'])) { return true; } else { return $user->hasPermissions(['group_self'], $productGroup); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function authorize(): bool\n {\n return Gate::allows('update', $this->product);\n }", "public function authorize()\n {\n $user = \\Auth::user();\n \n if($user->can('update', \\App\\Product::class)){\n return true;\n }\n \n return false;\...
[ "0.7324108", "0.7253346", "0.69384354", "0.6761679", "0.67539275", "0.67376304", "0.66965413", "0.6695225", "0.66925734", "0.6678436", "0.6663989", "0.66046226", "0.6589469", "0.6546452", "0.6497894", "0.6490996", "0.64484113", "0.64183354", "0.6415692", "0.63796216", "0.6363...
0.7592381
0
Determine whether the user can delete the product group.
Определите, может ли пользователь удалить группу продуктов.
public function delete(User $user, ProductGroup $productGroup) { if( $user->hasPermissions(['group_remove'])) { return true; } else { return $user->hasPermissions(['group_remove_self'], $productGroup); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function can_delete () {\r\n\r\n return $this->permissions[\"D\"] ? true : false;\r\n\r\n }", "private function canDelete()\n {\n //Checks roles allowed\n $roles = array(\n 'ROLE_MANAGER',\n 'ROLE_ADMIN',\n );\n\n foreach ($roles a...
[ "0.71113217", "0.704864", "0.69743294", "0.6826736", "0.6806197", "0.67630637", "0.6749133", "0.6731334", "0.67216104", "0.6687712", "0.66781664", "0.6665586", "0.66583085", "0.6583698", "0.6568247", "0.6564295", "0.65443325", "0.6534243", "0.65043753", "0.64999604", "0.64557...
0.7219402
0
Prints all checkLogQ messages to the console
Выводит все сообщения checkLogQ в консоль
function printCheckLogQ(){ global $checkLogQ; foreach($checkLogQ as $message){ print($message); } $checkLogQ = array(); // reset a variable to an empty array }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function printErrorLog() {}", "public static function print_log() {\n $line_break = PHP_SAPI != \"cli\" ? \"<hr/>\" : PHP_EOL; //If not cmd. EOL is a cross platform new line\n //generate a string and output\n foreach (self::$log_message as &$log) {\n $log = \"* \".$log;\n ...
[ "0.6091366", "0.60109645", "0.59499514", "0.5746436", "0.5738425", "0.55802876", "0.5545277", "0.55278695", "0.55278695", "0.5514166", "0.54529333", "0.539734", "0.537468", "0.5358286", "0.53445065", "0.53417164", "0.53377724", "0.5329484", "0.5307096", "0.5286817", "0.526260...
0.76650935
0
Return a list of tabs that will go inside the metabox.
Вернуть список вкладок, которые будут находиться внутри метабокса.
public function metabox_tabs() { $tabs = array( 'vpn-general' => array( 'label' => 'General', 'icon' => 'dashicons-text', ), 'vpn-scripts' => array( 'label' => 'Scripts', 'icon' => 'dashicons-format-aside', ), 'vpn-promotions' => array( 'label' => 'Promotions', 'icon' =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function get_tabs() {\n return array(\n 'general' => array(\n 'title' => __( 'General', 'jpid' ),\n 'group' => 'jpid_general_settings'\n ),\n 'delivery' => array(\n 'title' => __( 'Delivery', 'jpid' ),\n 'group' => 'jpid_delivery_settings'\n ),\n 'p...
[ "0.7050983", "0.7008031", "0.690626", "0.6795968", "0.674689", "0.67398816", "0.6668108", "0.6623027", "0.65878767", "0.65535724", "0.65348864", "0.6534217", "0.6385173", "0.63541055", "0.632926", "0.62576264", "0.6234833", "0.6197593", "0.61965984", "0.61478937", "0.61330837...
0.80395633
0
Creates a form to delete a indicateur entity.
Создает форму для удаления сущности indicateur.
private function createDeleteForm(Indicateur $indicateur) { return $this->createFormBuilder() ->setAction($this->generateUrl('indicateur_delete', array('id' => $indicateur->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(NatureOp $priorite)\n {\n return $this->createFormBuilder()\n ->setAction(...
[ "0.74257165", "0.7380462", "0.7135961", "0.71214646", "0.70854574", "0.70659864", "0.7058775", "0.70453566", "0.703772", "0.6994962", "0.6994265", "0.6990275", "0.6985689", "0.6983248", "0.6962638", "0.6957569", "0.6957144", "0.69505435", "0.6947112", "0.6944443", "0.6932215"...
0.7885548
0
The 404 action for the application.
Действие 404 для приложения.
public function action_404() { return Response::forge(Presenter::forge('welcome/404'), 404); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function actionNotfound()\n {\n $this->actionSlug = 'notfound';\n $this->actionParams = [];\n $this->breadcrumbs=[];\n $this->beforeAction();\n $this->breadcrumbs[] = ['title' => 404];\n header(\"HTTP/1.x 404 Not Found\");\n header(\"Status: 404 Not Found\...
[ "0.83854896", "0.8346812", "0.8331481", "0.8298381", "0.8273531", "0.81195784", "0.80202264", "0.79965556", "0.7932431", "0.79038256", "0.7851581", "0.77753454", "0.77365446", "0.772436", "0.76887536", "0.76787484", "0.766104", "0.7632863", "0.76249707", "0.76194775", "0.7613...
0.8368956
1
Return custom javascript needed to ensure persistency of virtual rule while playing with the preview grid
Вернуть пользовательский javascript, необходимый для обеспечения сохраняемости виртуального правила во время работы с сеткой предварительного просмотра
protected function _getPreviewPersistenceJavascript() { $javascript = ""; if ($rule = $this->getRequest()->getParam('rule', false)) { $jsonRule = Mage::helper("core")->jsonEncode($rule); $javascript = <<<JAVASCRIPT if ({$this->getJsObjectName()}.reloadParams ==...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function generateJavascript() {}", "protected function generateJavascript() {}", "function getJavascriptFire() {\n\t\treturn \"new SUGAR.forms.SetPanelVisibilityAction('{$this->targetPanel}','{$this->expression}')\";\n\t}", "protected function generateJavascript()\n\t{\n\t}", "protected function ...
[ "0.6497548", "0.64963424", "0.63479286", "0.6284777", "0.60817856", "0.6036589", "0.5894851", "0.5854491", "0.57311904", "0.5695847", "0.56899685", "0.5689848", "0.56778765", "0.5631239", "0.56055886", "0.5568557", "0.5560437", "0.55327666", "0.5532317", "0.5499723", "0.54895...
0.7521728
0
Prepare the product collection Collection is the matched products for the current query
Подготовьте коллекцию продуктов. Коллекция — это совпадающие продукты для текущего запроса
protected function _prepareCollection() { $baseQuery = $this->_getBaseSearchQuery(); $productIds = $this->_getProductIdsFromSearchQuery($baseQuery); if (empty($productIds)) { $productIds = array(0); } $attributes = Mage::getModel('catalog/config')->getProductCo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function _prepareCollection() {\n $collection = Mage::getModel('vidtest/video')\n ->getCollection()\n ->addProductFilter($this->getProduct()->getId())\n ;\n\n if ($storeId = $this->getProduct()->getStoreId()) {\n $collection->addStoreFilter($s...
[ "0.72974336", "0.724351", "0.7235491", "0.7202871", "0.7117323", "0.7069229", "0.7041912", "0.6981756", "0.6904291", "0.6857724", "0.68023556", "0.67710334", "0.6748615", "0.6631792", "0.65536547", "0.6537255", "0.6535089", "0.6517021", "0.6493775", "0.6492051", "0.6488541", ...
0.772621
0
Get the virtual "root category" to apply for a virtual category, if any.
Получите виртуальную «корневую категорию» для применения виртуальной категории, если она существует.
protected function _getVirtualRootCategory($category) { return Mage::helper('smile_virtualcategories')->getVirtualRootCategory($category); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_virtual_root()\n\t{\n\t\tglobal $DBPrefix, $db;\n\t\t// Virtual root element as parent.\n\t\t$query = \"SELECT right_id FROM \" . $DBPrefix . \"categories ORDER BY right_id DESC LIMIT 1\";\n\t\t$db->direct_query($query);\n\t\t$row = $db->result();\n\t\t$root = array('left_id' => 1, 'right_id' => $row[...
[ "0.71716315", "0.64109856", "0.62641716", "0.59453493", "0.59206754", "0.5819011", "0.57703555", "0.56866693", "0.5681122", "0.56720895", "0.5649985", "0.5642178", "0.5627867", "0.56274354", "0.562678", "0.5600032", "0.5512124", "0.5505646", "0.550227", "0.55016357", "0.54883...
0.71236855
1
Displays a form to edit an existing country entity.
Показывает форму для редактирования существующего сущности страны.
public function editAction(Request $request, Country $country) { $deleteForm = $this->createDeleteForm($country); $editForm = $this->createForm('B2bBundle\Form\CountryType', $country); $editForm->handleRequest($request); if ($editForm->isSubmitted() && $editForm->isValid()) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function edit(Country $country)\n {\n \n }", "public function edit(Country $country)\n {\n $langs=Lang::lists('language','id');\n return view('backend.countries.edit')->with('country',$country)->with('langs',$langs);\n }", "public function edit(Country $country)\n {\n...
[ "0.80439985", "0.7284132", "0.7261045", "0.71348256", "0.7056613", "0.7039055", "0.702156", "0.70039463", "0.6965901", "0.69474655", "0.6923719", "0.68681324", "0.68593884", "0.68550175", "0.68486136", "0.6833688", "0.6806311", "0.6760938", "0.6758943", "0.673473", "0.6678252...
0.74504596
1
Deletes a country entity.
Удаляет сущность страны.
public function deleteAction(Request $request, Country $country) { $form = $this->createDeleteForm($country); $form->handleRequest($request); if ($form->isSubmitted() && $form->isValid()) { $em = $this->getDoctrine()->getManager(); try { $em->remove($coun...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function deleted(Country $country)\n {\n\n }", "public function destroy(Country $country)\n {\n //\n }", "public function delete(model $country) {\n\n // Delete record\n return parent::_delete($country);\n }", "public function forceDeleted(Country $count...
[ "0.77608955", "0.75083005", "0.73672235", "0.7008719", "0.69454926", "0.6882619", "0.6823106", "0.676254", "0.6692958", "0.66703093", "0.6583386", "0.633823", "0.63282317", "0.63191706", "0.63134205", "0.6209367", "0.6169588", "0.6141337", "0.6126107", "0.609844", "0.6029929"...
0.7818393
0
Creates a form to delete a country entity.
Создает форму для удаления сущности страны.
private function createDeleteForm(Country $country) { return $this->createFormBuilder() ->setAction($this->generateUrl('backoffice_country_delete', array('id' => $country->getId()))) ->setMethod('DELETE') ->getForm() ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function createDeleteForm($iso_code)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('orkestro_backend_country_delete', array('iso_code' => $iso_code)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ...
[ "0.7399725", "0.71989477", "0.65310997", "0.65064156", "0.6375539", "0.61514044", "0.6146466", "0.61418074", "0.6138512", "0.61199176", "0.6112619", "0.61109596", "0.6090369", "0.60847354", "0.6069296", "0.6047175", "0.6046414", "0.6015595", "0.60115665", "0.5987653", "0.5984...
0.78188384
0
Form Fields short code For generating a form from short code values Example: [contactus new_line="," delimiter="|" questions="Your Name,Your Email|email" headings="A title prior to Your Name Field|yourname" inputs="yourname|name"]This is the form description[/contactus] In this example: The tag is "contactus", which wi...
Краткий код полей формы Для генерации формы из значений краткого кода Пример: [contactus new_line="," delimiter="|" questions="Your Name,Your Email|email" headings="A title prior to Your Name Field|yourname" inputs="yourname|name"]This is the form description[/contactus] В этом примере: Тег "contactus" будет находиться...
public function formFieldsShortCode($attributes, $content, $tag) { /** @var string $questions */ /** @var string $special_questions */ /** @var string $new_line */ /** @var string $delimiter */ /** @var string $inputs */ /** @var string $headings */ $defaults ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function formShort()\n {\n $form = new Form(new Category);\n\n $form->tab('Настройки', function($form){\n $form->display('id');\n $form->alias('alias','Алиас');\n $form->text('name','Название');\n });\n $form->tab('SEO', function($form){\n ...
[ "0.64892805", "0.6223353", "0.6174602", "0.6160791", "0.6129121", "0.59559196", "0.5926511", "0.5884824", "0.5873213", "0.5849319", "0.58040047", "0.574726", "0.5735506", "0.57145536", "0.5705095", "0.5690671", "0.56738734", "0.56662333", "0.56560475", "0.5653904", "0.5645139...
0.7102121
0
Gets query for [[Semester1Students]].
Получает запрос для [[Semester1Students]].
public function getSemester1Students() { return $this->hasMany(Semester1Students::className(), ['semester' => 'semester_id']); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_students_list(){\n return $this->n->get_list_from_db();\n }", "private function getStudent(){\n\t\t$spathSQLSelect = $this->GLOBALS_INI[\"PATHS\"][\"PATH_HOME\"] . $this->GLOBALS_INI[\"PATHS\"][\"PATH_MODEL\"] . \"select_stagiaire.sql\";\n\n\t\t$this->result[\"liste_stagiaire\"] = $...
[ "0.62867033", "0.6280684", "0.6278451", "0.61720765", "0.61219054", "0.6096722", "0.6049759", "0.6027512", "0.59634036", "0.59612", "0.59146976", "0.5894346", "0.5893825", "0.58521855", "0.58391875", "0.5798891", "0.5762266", "0.57482725", "0.574648", "0.56992376", "0.5686049...
0.7380451
0
Gets query for [[Semester2Students]].
Получает запрос для [[Semester2Students]].
public function getSemester2Students() { return $this->hasMany(Semester2Students::className(), ['semester' => 'semester_id']); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_students_list(){\n return $this->n->get_list_from_db();\n }", "public function getSemester1Students()\n {\n return $this->hasMany(Semester1Students::className(), ['semester' => 'semester_id']);\n }", "public function getStudentsQueryForGroup($group_id) {\n\t\treturn S...
[ "0.6541426", "0.6454452", "0.6315013", "0.626638", "0.6251841", "0.6160394", "0.615403", "0.6152344", "0.60128516", "0.59953856", "0.5966813", "0.5947472", "0.59391993", "0.58563966", "0.5846611", "0.58049464", "0.5768089", "0.57642883", "0.5752834", "0.57449186", "0.5744714"...
0.7215253
0
Renders the enabled state of the previous page.
Отображает состояние включения предыдущей страницы.
public function previousEnabled(int $page): string;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function previousDisabled(): string;", "public function previousPage()\n\t{\n\t\treturn $this->getIsPreviousPageAvailable() ? parent::previousPage() : false;\n\t}", "protected function renderBackButton() {}", "abstract protected function setPreviousPage();", "public function has_previous_page()\n ...
[ "0.6558906", "0.6551128", "0.64167285", "0.64136356", "0.6360696", "0.6314765", "0.625042", "0.62221706", "0.62114924", "0.6027289", "0.6026325", "0.60040456", "0.5959689", "0.5958086", "0.593562", "0.5927574", "0.58857656", "0.5863499", "0.58373964", "0.5833628", "0.583297",...
0.72105694
0
__construct Create a new Powerstack\Plugins\Memcached object Configuration: app/config.yml: plugins: memcached: servers: [Memcached servers (host:port[,host:port])]
__construct Создать новый объект Powerstack\Plugins\Memcached Конфигурация: app/config.yml: plugins: memcached: servers: [Серверы Memcached (host:port[,host:port])]
function __construct() { $conf = config('plugins'); if (!isset($conf->memcached)) { $this->conf = (object) array( 'servers' => '127.0.0.1:11211', ); } else { $this->conf = $conf->memcached; } $this->memcached = new \Memcached(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __construct() {\n include Config::create()->load('cache');\n $this->config = $cache;\n $this->mc = new Memcached();\n foreach ($this->config['server'] as $s) {\n $this->mc->addServer($s['host'], $s['port']);\n }\n }", "public function __construct()...
[ "0.76066124", "0.7481707", "0.73881114", "0.72546834", "0.71594465", "0.6974043", "0.68793637", "0.6800693", "0.6755339", "0.6690749", "0.66044253", "0.6602064", "0.65051615", "0.64911413", "0.64596003", "0.6456763", "0.64005554", "0.63803977", "0.6373554", "0.6355627", "0.63...
0.8377457
0
Delete Multi Delete multiple items from memcached
Удалить несколько элементов из memcached
function deleteMulti($keys, $time=0) { return $this->memcached->deleteMulti($keys, $time); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function wp_cache_delete_multiple(array $keys, $group = '')\n {\n }", "function multi_delete () {\n\t\t$ids_to_delete = array();\n\t\t// Prepare ids to delete\n\t\tforeach ((array)$_POST[\"items\"] as $_cur_id) {\n\t\t\tif (empty($_cur_id)) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t$ids_to_delete[$_cur_id] = $_...
[ "0.74532646", "0.7011111", "0.6802612", "0.67139", "0.67039067", "0.66248745", "0.6564758", "0.6493527", "0.64826375", "0.647363", "0.6472628", "0.6430388", "0.6361711", "0.6347832", "0.63463926", "0.6343705", "0.63312817", "0.63260835", "0.6324101", "0.63216925", "0.63177854...
0.72221875
1
Get Get an item from memcached
Получить элемент из memcached
function get($key) { return $this->memcached->get($key); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get ($key) {\n return $this->memcached->get($key);\n }", "public function get($key){\n if( $value = $this->memcache->get($this->prefix.$key) ) {\n return $value;\n }\n }", "public function get($key) {\n $value = $this->memcached->get($key);\n\n return $value;...
[ "0.8125201", "0.76511395", "0.7639137", "0.76028705", "0.7507948", "0.7507948", "0.74945104", "0.71756375", "0.71737593", "0.7123712", "0.7102081", "0.70858777", "0.7016214", "0.70043784", "0.69775563", "0.69665724", "0.6965936", "0.69190884", "0.68139684", "0.6712311", "0.66...
0.782009
1
Get All Keys Gets the keys stored on all the servers
Получить все ключи Получает ключи, хранящиеся на всех серверах
function getAllKeys() { return $this->memcached->getAllKeys(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAllKey();", "public function getKeys() {\n\t\treturn $this->getAllKeys();\n\t}", "public function retrieveKeys()\n {\n return $this->start()->uri(\"/api/key\")\n ->get()\n ->go();\n }", "public function getKeys() {}", "public function getKeys();", "static function ge...
[ "0.79576707", "0.7618327", "0.7462499", "0.7438615", "0.73016894", "0.72672427", "0.7262566", "0.7222751", "0.7218719", "0.7218719", "0.7218719", "0.7218719", "0.7218719", "0.7218719", "0.7187886", "0.71615654", "0.7138908", "0.7075611", "0.70298636", "0.6984377", "0.6984377"...
0.79591775
0
Get Multi Get multiple items from memcached
Получить несколько элементов из memcached
function getMulti($keys) { return $this->memcached->getMulti($keys); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function wp_cache_get_multiple($keys, $group = '', $force = \\false)\n {\n }", "function wp_cache_get_multiple( $keys, $group = '', $force = false ) {\n\t\t$values = array();\n\n\t\tforeach ( $keys as $key ) {\n\t\t\t$values[ $key ] = wp_cache_get( $key, $group, $force );\n\t\t}\n\n\t\treturn $values;\n\t}...
[ "0.6987854", "0.6728983", "0.66264516", "0.6474209", "0.63721836", "0.6367221", "0.6293357", "0.61977714", "0.61054945", "0.6095383", "0.60721767", "0.601287", "0.5991778", "0.596346", "0.59350455", "0.58057207", "0.578981", "0.5760802", "0.5754851", "0.57528424", "0.57122463...
0.76415044
0
Construct this object with a strict mode indicator flag. In strict mode, any dynamic properties must be supplied in a call to __setDynamicPropertyKeys. Otherwise in non strict mode, any properties may be set and got on this class with no checking.
Создайте этот объект с флагом режима строгого режима. В режиме строгого режима любые динамические свойства должны быть указаны в вызове __setDynamicPropertyKeys. В противном случае, в режиме нестрогого режима, любые свойства могут быть заданы и получены на этом классе без проверки.
public function __construct($strictMode = true) { $this->__strictMode = $strictMode; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setStrict(bool $strict) : self\n {\n $this->initialized['strict'] = true;\n $this->strict = $strict;\n return $this;\n }", "public function setStrict($strict)\n {\n $this->strict = (boolean)$strict;\n return $this;\n }", "public function setStrict(...
[ "0.62233335", "0.6041506", "0.5979815", "0.59623474", "0.5950186", "0.5514565", "0.5476406", "0.54540604", "0.5423375", "0.53907245", "0.5325056", "0.5299977", "0.5281213", "0.52127254", "0.51778907", "0.5172225", "0.5045656", "0.49394467", "0.4938116", "0.48707926", "0.48586...
0.7034262
0
Set the array of dynamic property keys permissable for mapping in strict mode.
Установите массив динамических ключей свойств, разрешенных для отображения в строгом режиме.
public function __setDynamicPropertyKeys($keys) { $this->__dynamicPropertyKeys = $keys; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static function ensure_keys($src, $props, $fill_on_missing=null){\n\t\t$props = Arrays::from($props);\n\t\tforeach($props as $prop){\n\t\t\tif(!self::is_set($src, $prop)){\n\t\t\t\t$src[$prop] = $fill_on_missing;\n\t\t\t}\n\t\t}\n\t\treturn $src;\n\t}", "public function allowAllProperties() {}", "function setE...
[ "0.5784002", "0.56098765", "0.5584173", "0.5450173", "0.5423237", "0.5415303", "0.5394008", "0.53550315", "0.5334094", "0.528714", "0.5285188", "0.52774864", "0.5257326", "0.5248365", "0.5243046", "0.52347535", "0.52344483", "0.5212014", "0.52098143", "0.51787007", "0.5167783...
0.7049758
0
Handle user check events.
Обработка событий проверки пользователя.
public function onUserCheck($event) { $this->setPermissions($event->user); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function check()\n {\n if(!empty($this->user)) {\n // If you need to check users online list in every page load, check this TRUE in config file\n if($this->config->item('check_users_on_page_load', 'online')) {\n $this->checkOnlineList();\n }\n\n ...
[ "0.65602386", "0.6133399", "0.60771954", "0.5979248", "0.5978918", "0.59740734", "0.5880663", "0.587252", "0.58474576", "0.5812375", "0.58063495", "0.5749939", "0.5716132", "0.56953496", "0.56855094", "0.5664958", "0.5651741", "0.56449246", "0.5638396", "0.56306547", "0.56224...
0.70812285
0
BizForm::GetHistoryInfo() get history info array
BizForm::GetHistoryInfo() получает массив информации о истории
public function GetHistoryInfo() { if ($this->m_Stateless == "Y") return; if (!$this->m_NoHistoryInfo) { $histInfo[] = $this->m_RecordId; $histInfo[] = $this->m_CurrentPage; $histInfo[] = $this->m_SearchRule; $histInfo[] = $this->m_SortRule; return $histInfo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getHistory(): array\n {\n return $this->history;\n }", "public function getHistory(): array\n {\n return $this->history;\n }", "public function fetchHistory(): array;", "public function getHistory()\r\r\n {\r\r\n return $this->history;\r\r\n }", "funct...
[ "0.7213989", "0.7213989", "0.704268", "0.7001648", "0.69104946", "0.68325", "0.6822492", "0.6822385", "0.67672783", "0.6668098", "0.6651414", "0.66363794", "0.6574956", "0.65746075", "0.6556228", "0.65172684", "0.65127873", "0.65068936", "0.6471042", "0.6470608", "0.6461782",...
0.77324784
0
BizForm::CleanHistoryInfo() clear history info so that the data set is fresh
BizForm::CleanHistoryInfo() очищает информацию о истории, чтобы набор данных был свежим
public function CleanHistoryInfo() { $this->m_RecordId = null; $this->m_CurrentPage = 1; $this->m_SearchRule = null; $this->m_SortRule = null; $this->m_NoHistoryInfo = true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function cleanHistory()\n\t{\n\t\t$this->taskHistoryRepository->deleteOlderThanDays($this->maxHistoryDays);\n\t\t$this->taskHistoryRepository->deleteOverCount($this->maxHistoryRecords);\n\t}", "public function clearHistory()\r\r\n {\r\r\n $this->history = array();\r\r\n }", "public funct...
[ "0.7207973", "0.7076254", "0.70105743", "0.69758177", "0.6813846", "0.67562217", "0.6553826", "0.6543943", "0.6513098", "0.6394953", "0.6274233", "0.61279833", "0.6124794", "0.595381", "0.5849656", "0.58413136", "0.57977116", "0.5762119", "0.5758686", "0.5718108", "0.57034814...
0.8270328
0
BizForm::UpdateActiveRecord() update the active record with given record array
BizForm::UpdateActiveRecord() обновляет активный запись с заданным массивом записей
final public function UpdateActiveRecord($recArr) { $this->m_ActiveRecord = $recArr; $this->m_RecordRow->SetRecordArr($this->m_ActiveRecord); // needed ??? }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateRecord() \n {\n $str = \"Id = :Id\";\n array_walk($this->arrayKeysValues(), function ($value, $key) use (&$str) {\n $str .= \", $key = :$key\";\n });\n $sql = sprintf(\"UPDATE Cubans SET %s WHERE Id = :Id\", $str);\n $statement = $this->connec...
[ "0.69247204", "0.6782369", "0.67564327", "0.6736067", "0.6734445", "0.6721066", "0.66294426", "0.66294426", "0.66294426", "0.6604887", "0.6569594", "0.6562268", "0.6474667", "0.64558935", "0.6454816", "0.6434433", "0.64241546", "0.6395014", "0.6356877", "0.6356488", "0.635046...
0.73341864
0
BizForm::RunSearch() Run search on query mode, then go read mode
BizForm::RunSearch() Выполнить поиск в режиме запроса, затем перейти в режим просмотра
public function RunSearch() { BizSystem::log(LOG_DEBUG,"FORMOBJ",$this->m_Name."::RunSearch()"); global $g_BizSystem; $this->m_SearchRule = ""; foreach ($this->m_RecordRow as $fldCtrl) { $value = $g_BizSystem->GetClientProxy()->GetFormInputs($fldCtrl->m_Name); if ($value) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function search(){}", "function showquery() {\r\n #~ echo '<td align=right>'; // see nav.inc.php for reason\r\n echo '<form name=\"search\" method=POST action=\"'.$_SERVER['PHP_SELF'].'\">';\r\n #~ echo '<img src=\"images/b_search.png\" border=\"0\">';\r\n echo lang('Search'...
[ "0.66389984", "0.6605083", "0.6596757", "0.65945494", "0.65843254", "0.6575047", "0.6552156", "0.6533281", "0.6533281", "0.6381002", "0.6374229", "0.6369271", "0.6341935", "0.6319149", "0.628871", "0.628871", "0.6275875", "0.6262573", "0.62455803", "0.6244874", "0.62211096", ...
0.7503704
0