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
Class profits_header_widget ends here Register and load the widget
Класс profits_header_widget заканчивается. Регистрация и загрузка виджета
function profit_header_load_widget() { register_widget('profits_header_widget'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function hotpro_load_widget() {register_widget( 'data_hotpro_widget' );}", "function generate_construct_header_widget() {\n\t\tif ( is_active_sidebar( 'header' ) ) : ?>\n\t\t\t<div class=\"header-widget\">\n\t\t\t\t<?php dynamic_sidebar( 'header' ); ?>\n\t\t\t</div>\n\t\t<?php endif;\n\t}", "function header_wi...
[ "0.6875719", "0.6601905", "0.657223", "0.65186024", "0.64580643", "0.64568704", "0.63545555", "0.63382465", "0.63365275", "0.63359994", "0.62689584", "0.625474", "0.6245398", "0.61643374", "0.6104757", "0.6060996", "0.6060578", "0.5997197", "0.59774274", "0.59322804", "0.5917...
0.8666772
0
Convert RGB Color to Hexadecimal color Example: Scaffold_rgbtohex(array(255,255,255)) => FFFFFF
Преобразование цвета RGB в шестнадцатеричный цветовой код Пример: Scaffold_rgbtohex(array(255,255,255)) => FFFFFF
function Scaffold_rgbtohex($rgb) { $hex = ""; for($i=0; $i < 3; $i++) { // Convert the decimal digit to hex $hexDigit = dechex($rgb[$i]); // Add a leading zero if necessary if(strlen($hexDigit) == 1) { $hexDigit = "0" . $hexDigit; } // Append to the hex string $hex .= $hexDigit; } // Return the ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static function rgb2hex($rgb) {\n $rgb = Util::eliminarEspacios($rgb);\n if (is_string($rgb)) {\n if (strpos($rgb, \"rgb\") !== false) {\n $rgb = str_replace(\"rgb(\", \"\", str_replace(\")\", \"\", $rgb));\n }\n $rgb = explode(\",\", $rgb);\n }\...
[ "0.8495073", "0.80945987", "0.7744209", "0.7718092", "0.7377211", "0.734296", "0.72700983", "0.71354944", "0.7053817", "0.7001189", "0.6924923", "0.6903224", "0.6883056", "0.6836512", "0.68276757", "0.6803947", "0.67793596", "0.6721955", "0.67114466", "0.669272", "0.6670706",...
0.8777558
0
create two taxonomies, genres and tags for the post type "tag"
создать два таксономии, жанры и метки для типа поста "тег"
function create_tag_taxonomies() { // Add new taxonomy, NOT hierarchical (like tags) $labels = array( 'name' => _x( 'Tags', 'taxonomy general name' ), 'singular_name' => _x( 'Tag', 'taxonomy singular name' ), 'search_items' => __( 'Search Tags' ), 'popular_items' => __( 'Popular Tags' ), 'all_i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function create_taxonomies($tax,$val) {\n \n\n // register_taxonomy( 'genre', $taxonomies, $args );\n\n // Add new taxonomy, NOT hierarchical (like tags)\n $labels = array(\n 'name' => _x( $tax, 'taxonomy general name', 'textdomain' ),\n 'singular_name' ...
[ "0.7217996", "0.7068023", "0.70214385", "0.6942771", "0.6910526", "0.688963", "0.6871671", "0.6839763", "0.6837624", "0.68300444", "0.67965204", "0.6752528", "0.6731873", "0.6729583", "0.6729583", "0.6729583", "0.6715729", "0.6712638", "0.67042303", "0.66906714", "0.66896445"...
0.7785577
0
Checks whether there are cached data records.
Проверяет, есть ли запись кэшированных данных.
public function hasCachedData(): bool { return !empty(static::$cachedData); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isCachedDataAvailable(){\n\t\treturn $this->_dataAvailable;\n\t}", "public static function hasCache() {\n\t\treturn false;\n\t}", "public function hasCache(): bool\n {\n return isset($this->contents);\n }", "public function hasCache()\n {\n return (null !== $this->getCa...
[ "0.7413823", "0.7311962", "0.72608185", "0.7184609", "0.7097664", "0.704938", "0.70341855", "0.7027135", "0.7024026", "0.6941496", "0.69309884", "0.69237196", "0.6904145", "0.6839759", "0.6826429", "0.67567647", "0.67321396", "0.67321396", "0.66928834", "0.66677", "0.6665447"...
0.78665626
0
Adds an array of objectives. Will overwrite any previous objectives.
Добавляет массив целей. Перезапишет любые предыдущие цели.
public function addObjectives(array $objectives) { if ($this->properties->has('level[objectives]')) { $currentObjectives = $this->getObjectives(); $objectives = array_merge($currentObjectives, $objectives); } $this->setProperty('objectives', $objectives); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function add($object){if(is_array($this->arrayObj))\n \n {$tmp = count($this->arrayObj);$this->arrayObj[$tmp]=$object;\n\n }else{$this->arrayObj[0]=$object;}\n }", "function add($object){if(...
[ "0.6042673", "0.6042673", "0.58658975", "0.5730784", "0.56379074", "0.56050575", "0.55601454", "0.5391322", "0.532768", "0.5229312", "0.52095497", "0.5186191", "0.5175255", "0.5137915", "0.5083235", "0.508078", "0.50536096", "0.5049491", "0.5038629", "0.50233966", "0.5021615"...
0.78542835
0
Returns all ratings of FAQ records.
Возвращает все оценки записей FAQ.
public function getAllRatings() { $ratings = []; switch (PMF_Db::getType()) { case 'mssql': case 'sqlsrv': // In order to remove this MS SQL 2000/2005 "limit" below: // The text, ntext, and image data types cannot be compared or sorted, excep...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAllRatings(){\n return self::all();\n }", "function GetRatings()\n\t{\n\t\t$result = $this->sendRequest(\"GetRatings\", array());\t\n\t\treturn $this->getResultFromResponse($result);\n\t}", "public function getRatings(): Collection\n {\n\n return $this->ratings;\n\n }"...
[ "0.7133772", "0.65020007", "0.6182907", "0.61799127", "0.61701113", "0.60548866", "0.6019849", "0.5945178", "0.59121394", "0.58365935", "0.57926375", "0.5786831", "0.5783891", "0.5758096", "0.5726103", "0.5722584", "0.5722584", "0.5696382", "0.56629765", "0.56628805", "0.5647...
0.77991015
0
Overloading this method to show the Amazon id of the order instead of the name of the Magento store
Переопределение этого метода для отображения идентификатора Amazon заказа вместо названия магазина Magento
public function getOrderStoreName() { if ($this->getOrder()) { $name = array(); if($this->getOrder()->getAmazonOrderId()){ $name = array( Mage::helper('amazonOrders')->__('Imported from Amazon'), "#" . $this->getOrder()->getAmazonOrderId() ); } if (count($na...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAmazonOrderId()\n {\n return $this->_fields['AmazonOrderId']['FieldValue'];\n }", "public function getAmazonOrderId()\n {\n if (isset($this->data['AmazonOrderId'])) {\n return $this->data['AmazonOrderId'];\n } else {\n return false;\n ...
[ "0.6447388", "0.62352896", "0.6193489", "0.6155817", "0.6108584", "0.60926235", "0.60804284", "0.605017", "0.6049936", "0.6001951", "0.59453756", "0.59066594", "0.5880674", "0.5861086", "0.58481914", "0.58465976", "0.5844659", "0.5844659", "0.58427066", "0.58232826", "0.58124...
0.74730736
0
Check if options displayed.
Проверьте, отображаются ли параметры.
public function isOptionsVisible() { return WebElementsService::isWebElementVisible($this->getOptionsXpath()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hasOptions();", "public function has_options() {\n\t\treturn count( $this->get_options() ) > 0;\n\t}", "public function isOptions(): bool {}", "public function hasOption(){\n return $this->_has(35);\n }", "public function has_option() {\n return false;\n }", "public func...
[ "0.7838073", "0.75924677", "0.7544481", "0.72648746", "0.72237414", "0.7106029", "0.71001667", "0.70991594", "0.7090712", "0.6930247", "0.6878223", "0.6875187", "0.6804817", "0.67028713", "0.668676", "0.6662604", "0.6578547", "0.6533249", "0.6533249", "0.6502611", "0.6476748"...
0.7604418
1
Click on $xpath menu element.
Нажмите на элемент меню $xpath.
public function clickOnMenuElement($xpath) { WebElementsService::clickOn($xpath); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function iClickOnTheElementWithXPath($xpath)\n {\n $session = $this->getSession(); // get the mink session\n $element = $session->getPage()->find(\n 'xpath',\n $session->getSelectorsHandler()->selectorToXpath('xpath', $xpath)\n ); // runs the actual query and returns the element\n\n /...
[ "0.6765386", "0.6695456", "0.6344531", "0.6196224", "0.6052544", "0.604653", "0.6039562", "0.5977126", "0.5935852", "0.5888265", "0.5739686", "0.57009214", "0.56733596", "0.5665997", "0.5654855", "0.56209785", "0.55796826", "0.54122984", "0.53878057", "0.5314528", "0.5289651"...
0.8655718
0
Return xpath of $label option.
Вернуть xpath элемента $label.
protected function getOptionXpath($label) { return sprintf(Dropdown::OPTION_XPATH,$this::$keyWord,$label); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function getSelectFieldXPath(string $label): string\n {\n $labelXPath = $this->getFormFieldLabelXPath($label);\n $inputContainerXPath = \"div[contains(@class, 'sonata-ba-field')]\";\n $inputXPath = \"select[contains(@class, 'form-control')]\";\n\n return \"$labelXPath/followi...
[ "0.7594032", "0.72179735", "0.719341", "0.67987067", "0.67749023", "0.6738231", "0.63846177", "0.6360508", "0.62922454", "0.59659964", "0.59478563", "0.58663386", "0.5849812", "0.5804292", "0.56850326", "0.56734186", "0.5664236", "0.5664236", "0.5630488", "0.5574971", "0.5564...
0.86246485
0
Return xpath of dropdown button.
Вернуть xpath кнопки раскрывающегося списка.
private function getButtonXpath() { return sprintf(Dropdown::BUTTON_XPATH,$this::$keyWord); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function getOptionsXpath() {\n return sprintf(Dropdown::OPTIONS_XPATH,$this::$keyWord);\n }", "private function getOptionsListXpath() {\n return sprintf(Dropdown::OPTIONS_LIST_XPATH,$this::$keyWord);\n }", "protected function getOptionXpath($label) {\n return sprintf(Dropdown...
[ "0.71818894", "0.6904282", "0.60336816", "0.59394264", "0.57732785", "0.56107324", "0.56107324", "0.55930716", "0.53312916", "0.5308436", "0.52388215", "0.51753443", "0.51694804", "0.5154607", "0.49968383", "0.49125722", "0.48961273", "0.48672625", "0.48405758", "0.4825265", ...
0.838076
0
Return xpath of options.
Вернуть xpath опций.
private function getOptionsXpath() { return sprintf(Dropdown::OPTIONS_XPATH,$this::$keyWord); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function getOptionsListXpath() {\n return sprintf(Dropdown::OPTIONS_LIST_XPATH,$this::$keyWord);\n }", "protected function getOptionXpath($label) {\n return sprintf(Dropdown::OPTION_XPATH,$this::$keyWord,$label);\n }", "public function getOptions(){\n //$this->xpath = new ...
[ "0.812845", "0.6874215", "0.63501984", "0.634123", "0.6310724", "0.59520835", "0.5749788", "0.56838983", "0.5643021", "0.5632443", "0.5632443", "0.5632443", "0.5632443", "0.5632443", "0.5632443", "0.5632443", "0.5632443", "0.5632443", "0.5632443", "0.5632443", "0.5632443", ...
0.8569137
0
Return xpath of options list.
Вернуть xpath списка опций.
private function getOptionsListXpath() { return sprintf(Dropdown::OPTIONS_LIST_XPATH,$this::$keyWord); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function getOptionsXpath() {\n return sprintf(Dropdown::OPTIONS_XPATH,$this::$keyWord);\n }", "public function getOptions(){\n //$this->xpath = new DOMXPath($this->document);\n $cssname = \"options-list\";\n $tag = \"ul\";\n $consulta = \"/...
[ "0.80503523", "0.6696989", "0.6402757", "0.63894534", "0.5956354", "0.5885428", "0.54793024", "0.5389568", "0.5363487", "0.53440225", "0.5264848", "0.5243704", "0.52327865", "0.5216436", "0.52068317", "0.5167201", "0.51613945", "0.5120374", "0.51189774", "0.51075315", "0.5081...
0.85064095
0
Renders a page with a button to clear server cache
Отображает страницу с кнопкой для очистки кэша сервера
public function clearServerCache() { return view('pilot::admin.clear.cache'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function clearPageCacheContent() {}", "function clear_cache() {\n $this->output->set_header(\"cache-control: no-store, no-cache, must-revalidate, no-transform, max-age=0, post-check=0, pre-check=0\");\n $this->output->set_header(\"Pragma:no-cache\");\n }", "public function ajaxClearCach...
[ "0.71834224", "0.70975137", "0.6814297", "0.6720733", "0.67001003", "0.66333723", "0.654564", "0.6539392", "0.6495994", "0.6495994", "0.64833444", "0.6453783", "0.6375003", "0.6357458", "0.6316888", "0.6309644", "0.6258505", "0.61937976", "0.61905414", "0.61432415", "0.613183...
0.72104263
0
Check if infoblock's scope.visibility allows the current user to see this block
Проверьте, позволяет ли область видимости infoblockа текущему пользователю увидеть этот блок
public function isAvailableForUser() { $c_user = fx::user(); $ib_visibility = isset($this['scope']['visibility']) ? $this['scope']['visibility'] : null; if (!$ib_visibility || $ib_visibility === 'all') { return true; } if ($ib_visibility === 'nobody') { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function is_block_visible_for_user($user_id)\n {\n \t$user_info = api_get_user_info($user_id);\n\t\t$user_status = $user_info['status'];\n\t\t$is_block_visible_for_user = false;\n \tif (UserManager::is_admin($user_id) || in_array($user_status, $this->permission)) {\n \t\t$is_block_visible_for_us...
[ "0.7278635", "0.68712354", "0.6816247", "0.6769581", "0.6768395", "0.6626255", "0.66131496", "0.65867007", "0.6578796", "0.6442035", "0.6431867", "0.6426075", "0.64065665", "0.63986635", "0.6391879", "0.6389823", "0.63557214", "0.6343013", "0.63066715", "0.62898046", "0.62659...
0.7116243
1
Constructor. Set up the regex and name caches.
Конструктор. Настройте кэши регулярных выражений и имен.
public function __construct() { $this->regex = '/(' . implode(')|(', array_values($this->tokens)) . ')/u'; $this->name_cache = array_keys($this->tokens); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function init()\n {\n if ($this->regex) {\n return;\n }\n\n $this->regex = $this->path;\n $matches = [];\n\n if ($count = preg_match_all('@{([^A-Za-z]*([A-Za-z]+))([?]?)(?::([^}]+))?}@', $this->regex, $matches)) {\n $this->tokens = new \\SplFixe...
[ "0.7170215", "0.68078196", "0.6755858", "0.62901884", "0.604596", "0.5919106", "0.5917276", "0.58848035", "0.5875426", "0.5833157", "0.58292943", "0.57990074", "0.5768347", "0.57482266", "0.57431364", "0.5741567", "0.5738516", "0.57066953", "0.5640682", "0.56279314", "0.56256...
0.7938754
0
Get a random word from the database
Получить случайное слово из базы данных
public function getRandomWord() { $repo = $this->entityManager->getRepository('AppBundle:Word'); $totalWordsCount = $repo->createQueryBuilder('w') ->select('count(w.id)') ->getQuery() ->getSingleScalarResult(); $word = $repo->createQueryB...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function lookupWordRandomly();", "public function getRandomWord() {\n return $this->_index[array_rand($this->_index)];\n }", "private function getRandomWord($len) {\n // OUT (String) : Una palabra de longitud aleatoria $len\n $rqtxt='SELECT word FROM words WHERE LENGTH(w...
[ "0.8060048", "0.79971105", "0.7235489", "0.72351134", "0.71338564", "0.7077444", "0.70064247", "0.69411427", "0.6922362", "0.6857586", "0.6733013", "0.6629746", "0.6612883", "0.65922606", "0.6581309", "0.6580472", "0.65511256", "0.65346134", "0.65279925", "0.65213895", "0.650...
0.81763005
0
Create word context from a word
Создать контекст слова из слова
public function getWordContext() { $word = $this->getRandomWord(); return new WordContext($word); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function build($word, $content);", "public function makeWord()\n {\n return $this->setDocumentPropertiesWithMetas(new PhpWord());\n }", "public function wordEngine(){\n $getSomeWords = $this->getSomeWords();\n if(!$getSomeWords['status']){\n return $getSomeWords;\n }\n $wor...
[ "0.65369385", "0.6024026", "0.5694382", "0.5626091", "0.56071997", "0.5542339", "0.54244864", "0.5405416", "0.5341798", "0.53271765", "0.53068537", "0.524932", "0.51935124", "0.51429945", "0.50112563", "0.5004709", "0.49719578", "0.49671337", "0.49575907", "0.4946808", "0.489...
0.7225079
0
Getter function for barcode
Функция-получатель для штрих-кода
public function getBarcode() { return $this->barcode; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected function getTCPDFBarcode();", "abstract public function barcode($data, $format);", "public function getCode() {}", "public function getAvecCodeBarre() {\n return $this->avecCodeBarre;\n }", "public function getCode()\n {\n }", "public function getBarCode()\n {\n ...
[ "0.7933652", "0.6651591", "0.6592039", "0.6567145", "0.6550147", "0.65116465", "0.6495421", "0.6495421", "0.6495421", "0.6495421", "0.6495421", "0.6495421", "0.6428926", "0.6428926", "0.6428926", "0.63946706", "0.6373898", "0.63335544", "0.62849385", "0.62428", "0.62296486", ...
0.79311895
1
Getter function for used_by_variance
Функция-получатель для used_by_variance
public function getUsedByVariance() { return $this->usedByVariance; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function variance() {\n $n = count($this->value);\n $accumulator = 0.0;\n for ($i=0; $i < $n; $i++) {\n $accumulator += $this->value[$i]* $this->value[$i];\n }\n\n return $accumulator / ($n-1) - ($n/($n-1)) * $this->mean() * $this->mean();\n }", "public fun...
[ "0.71009535", "0.6640906", "0.6270013", "0.6158003", "0.59401315", "0.5935611", "0.5874162", "0.58360636", "0.5832237", "0.5694048", "0.5617709", "0.55650604", "0.5439941", "0.54365367", "0.543245", "0.5425852", "0.53898233", "0.5349244", "0.5269186", "0.5179338", "0.5177259"...
0.75712216
0
Setter function for used_by_variance
Функция установки для used_by_variance
public function setUsedByVariance($variance) { $this->usedByVariance = $variance; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function variance() {\n $n = count($this->value);\n $accumulator = 0.0;\n for ($i=0; $i < $n; $i++) {\n $accumulator += $this->value[$i]* $this->value[$i];\n }\n\n return $accumulator / ($n-1) - ($n/($n-1)) * $this->mean() * $this->mean();\n }", "public fun...
[ "0.6502564", "0.6399841", "0.56857085", "0.5549815", "0.55402", "0.5517895", "0.54805976", "0.54729027", "0.54470336", "0.5402577", "0.5282139", "0.51645875", "0.5163817", "0.51532286", "0.4899396", "0.48467457", "0.4830945", "0.48230758", "0.47833076", "0.47265142", "0.46720...
0.7298196
0
Getter function for label version no
Функция получения версии метки
public function getLabelVersionNo() { return $this->labelVersionNo; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function GetLabel();", "public function get_label();", "public function get_label();", "function getLabel(): string;", "public function getLabel(): string;", "public function getLabel(): string;", "public function getLabel() {}", "public function getLabel() {}", "public function label() { }"...
[ "0.7084322", "0.69787914", "0.69787914", "0.6966163", "0.68483615", "0.68483615", "0.66021276", "0.66021276", "0.6579292", "0.6551029", "0.6432717", "0.6432717", "0.6432717", "0.6432717", "0.6432717", "0.6432717", "0.6432717", "0.6432717", "0.6432717", "0.6432717", "0.6432717...
0.7917782
0
Remove all Material(s) for a product THis actually removes all the ProductInfo(s) for a product and type ProductInfoType::ID_MATERIAL
Удалить все Material(s) для продукта. Это на самом деле удаляет все ProductInfo(s) для продукта и типа ProductInfoType::ID_MATERIAL
public function clearMaterial() { ProductInfo::updateByCriteria('active = ?', 'productId = ? and typeId = ? and entityName = ?', array(0, $this->getId(), ProductInfoType::ID_MATERIAL, ProductInfoType::ENTITY_NAME_MATERIAL)); return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function clearProducts()\n\t{\n\t\t$sql=\"SET FOREIGN_KEY_CHECKS = 0\";\n\t\t$this->exec_stmt($sql);\n\t\t$tables=array(\"catalog_product_bundle_option\",\n\t\t\t\t\t \"catalog_product_bundle_option_value\",\n\t\t\t\t\t \"catalog_product_bundle_selection\",\n\t\t\t\t\t \"catalog_product_entity_datetime\"...
[ "0.59546155", "0.5919347", "0.5855349", "0.5737247", "0.57142603", "0.57061076", "0.5689881", "0.5652096", "0.56187934", "0.5547577", "0.5531972", "0.5512781", "0.5499218", "0.544107", "0.54141814", "0.5403322", "0.53727037", "0.53572106", "0.535456", "0.5333671", "0.53122663...
0.70194894
0
Adding this product to all stores
Добавление этого продукта во все магазины
public function addToAllStore() { $store = new Store(); $store->setId(0); $this->addInfo(ProductInfoType::get(ProductInfoType::ID_STORE), $store, 0, true); return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function actionAddProductList()\n\t{\n\t\t$order_id=Yii::app()->request->getQuery('id');\n\t\t$model = $this->_loadModel($order_id);\n\t\t$dataProvider = new StoreProduct('search');\n\n\t\tif(isset($_GET['StoreProduct']))\n\t\t\t$dataProvider->attributes = $_GET['StoreProduct'];\n\n\t\t$this->renderPartial(...
[ "0.66454977", "0.6511548", "0.6442422", "0.6417949", "0.6407415", "0.6299583", "0.62730306", "0.61970973", "0.6175132", "0.6136131", "0.61177796", "0.61101836", "0.6098767", "0.6098754", "0.6096483", "0.6090005", "0.60883933", "0.6039972", "0.6019496", "0.6006595", "0.5996595...
0.734458
0
Lists all TblSupervisores models.
Список всех моделей TblSupervisores.
public function actionIndex() { $searchModel = new TblSupervisoresSearch(); $dataProvider = $searchModel->search(Yii::$app->request->queryParams); $dataProvider->pagination->pageSize = 30; return $this->render('index', [ 'searchModel' => $searchModel, 'dataPr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getListado(){\n return Dispositivo::model()->findAll();\n }", "public function getAllSupervisors()\n {\n return $this->getMineListSupervisors();\n }", "public function viewallunitmodelsAction() {\n\n\t\t$model = new Unit_Model_UnitModel();\n\t\t$this->view-...
[ "0.5974931", "0.5927432", "0.58521515", "0.58154815", "0.57602525", "0.57504964", "0.57447493", "0.5737523", "0.57164246", "0.56481904", "0.56472", "0.5641924", "0.5638558", "0.5603866", "0.55656064", "0.5543701", "0.55134815", "0.5510637", "0.5510637", "0.550394", "0.5497821...
0.7137508
0
Creates a new TblSupervisores model. If creation is successful, the browser will be redirected to the 'view' page.
Создаёт новый объект модели TblSupervisores. Если создание успешно, браузер будет перенаправлен на страницу просмотра.
public function actionCreate() { $model = new TblSupervisores(); $tiposDocumento = \app\models\TblTiposDocumentos::find()->all(); $departamentos = \app\models\TblDepartamentos::find()->all(); $model->id_matricula_fk = 1; if ($model->load(Yii::$app->request->post()) && $model-...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function actionCreate()\n\t{\n //if(!Yii::app()->user->checkAccess(Params::DEFAULT_CREATE)){throw new CHttpException(401,Yii::t('mds','You are prohibited to access this page. Contact Super Administrator'));}\n\t\t$model=new RKInfoPasienLamaV;\n\n\t\t// Uncomment the following line if AJAX val...
[ "0.7012784", "0.7011868", "0.69541925", "0.6941496", "0.6899311", "0.68436265", "0.6822045", "0.677756", "0.67684823", "0.6751192", "0.67271686", "0.670367", "0.6690925", "0.66862375", "0.6664823", "0.66593266", "0.6658529", "0.66523516", "0.6646831", "0.6642048", "0.6633745"...
0.79941785
0
Function to generate the data that will be passed to javascript for dataTables to render Grabs all rows from the database and builds a tree structure with the CEO as the root
Функция для генерации данных, которые будут переданы javascript для отображения в dataTables. Выполняет выборку всех строк из базы данных и строит иерархическую структуру с CEO в качестве корня
function generate_data() { // Boss map, employees array, queue array and ceo array $boss_map = array(); $employees = array(); $queue = array(); $ceo = array(); //Get all employees $sql = "SELECT * FROM employees"; $res = query($sql); while($j = fetch($res)) { //Map employee id to name $employees[$j['id']] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function BuildTree($items)\r\n\t{\r\n\t\tif (!empty($items))\r\n\t\t{\r\n\t\t\t# Columns\r\n\t\t\t# * Gather all columns required for display and relation.\r\n\t\t\t# Children\r\n\t\t\t# * Map child names to child index.\r\n\r\n\t\t\t$cols[$this->ds->table] = array($this->ds->id => 1);\r\n\t\t\tif (!empty($this->d...
[ "0.5958221", "0.58934355", "0.57636535", "0.56906676", "0.5668581", "0.5667496", "0.56548727", "0.56284297", "0.5623634", "0.5608487", "0.56057334", "0.558787", "0.5581347", "0.5542536", "0.55409706", "0.5513466", "0.5502094", "0.5492745", "0.5491858", "0.5463011", "0.5460948...
0.7367779
0
Calculate total number of subordinate employees for a given employee using recursion
Вычислить общее количество подчиненных сотрудников для заданного сотрудника с использованием рекурсии
function assign_subordinate_count($employee) { $count = 0; //Get subordinate employees of current employee $employees = $employee->getSubordinates(); //Add to count $count += count($employees); //Recursively add all subordinate employees number of employees to current employees count foreach($employees AS $emp) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getNrEmployeesBranch($username){\n\n global $db;\n\n $stmt=$db->prepare('SELECT count(*) as nrEmployees from employee\n WHERE employee_branch_id=(\n SELECT client_branch\n FROM client\n JOIN\n (\n SELECT client_id ...
[ "0.5929706", "0.5877162", "0.5555115", "0.55134", "0.54977053", "0.5426608", "0.54137176", "0.5259671", "0.52588916", "0.51397985", "0.5080739", "0.50494003", "0.5031099", "0.49722075", "0.49419516", "0.49285042", "0.49187142", "0.4918409", "0.49022382", "0.4897613", "0.48904...
0.80555105
0
Deletes a blocked day fromm the database
Удаляет заблокированный день из базы данных
function delete_blocked_day() { $db = JFactory::getDBO(); $sql = sprintf('delete from #__pbbooking_block_days where id = %s',$db->escape(JRequest::getVar('id'))); $db->setQuery($sql); $db->query(); $this->setRedirect('index.php?option=com_pbbooking&controller=manage&task=blockdays'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function delete_stale_information($dow) {\n $delete_sql = \"DELETE FROM link_times_development \"\n \t\t .\"WHERE day = $dow \";\n\n $this->database->execute_sql($delete_sql);\n }", "public function cleanScheduleAction(){\n \t$actual = new Frogg_Time_Time();\n \t$cleaning_day = $actual->subtrac...
[ "0.6855102", "0.65642005", "0.6172881", "0.6152908", "0.6135576", "0.61299783", "0.607255", "0.5965789", "0.5947851", "0.59291697", "0.5921442", "0.59193087", "0.5913087", "0.58906025", "0.5858244", "0.5843967", "0.58401734", "0.58152854", "0.57951736", "0.57829964", "0.57811...
0.8076172
0
view_ical used to render an ics file that the user can dump into their diary app
view_ical используется для отображения файла ics, который пользователь может сохранить в свою приложение дневника
function view_ical() { if (!JRequest::getVar('format') == 'raw') { $this->setRedirect(JURI::root(false).'administrator/index.php?option=com_pbbooking&controller=manage&task=view_ical&id='.JRequest::getInt('id').'&format=raw'); return; } $view=$this->getView('manage','raw'); $view->setLayout('ics_vi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ical() {\n \t$filter = ProjectUsers::getVisibleTypesFilter($this->logged_user, array(PROJECT_STATUS_ACTIVE), get_completable_project_object_types());\n if($filter) {\n $objects = ProjectObjects::find(array(\n \t\t 'conditions' => array($filter . ' AND completed_on IS NULL AND state >= ?...
[ "0.6981924", "0.67952913", "0.6676531", "0.6656392", "0.65342915", "0.6308847", "0.62426144", "0.6236596", "0.6214256", "0.6210372", "0.608663", "0.6086484", "0.6030799", "0.58993393", "0.5726037", "0.57044417", "0.56094027", "0.55681133", "0.55492663", "0.5522826", "0.551530...
0.7621386
0
Lists all furTexture entities.
Перечисляет все сущности furTexture.
public function indexAction() { $em = $this->getDoctrine()->getManager(); $furTextures = $em->getRepository('UnicornBundle:furTexture')->findAll(); return $this->render('furtexture/index.html.twig', array( 'furTextures' => $furTextures, )); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAllEntities();", "public function index()\n {\n return ImageEntity::all();\n }", "public function get_entities();", "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $entities = $em->getRepository('CrudforgeBundle:Users')->find...
[ "0.5907804", "0.5761466", "0.5759667", "0.5737906", "0.567602", "0.5653502", "0.5640266", "0.563372", "0.5616117", "0.5616117", "0.55756867", "0.5561029", "0.5551323", "0.5526378", "0.55074847", "0.5497758", "0.5496682", "0.54613507", "0.54518837", "0.5451791", "0.5438359", ...
0.70311266
0
Gets the DynaGridStore configuration instance
Получает экземпляр конфигурации DynaGridStore
public function getStore() { $settings = [ 'id' => $this->dynaGridId, 'name' => $this->name, 'category' => $this->category, 'storage' => $this->storage, 'userSpecific' => $this->userSpecific ]; if (isset($this->id) && !empty($this->...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function _getDpgConfig()\n {\n $config = Mage::getSingleton('dpg/config');\n return $config->setStore($this->getStore());\n }", "public static function getInstance(): Config\n {\n if (is_null(static::$store)) {\n static::$store = static::createConfig();\n ...
[ "0.76424116", "0.7267713", "0.7100692", "0.6550001", "0.653918", "0.6491737", "0.64514095", "0.6450878", "0.6441958", "0.6391585", "0.6375942", "0.6372753", "0.6359107", "0.63572717", "0.6344555", "0.63347626", "0.6334402", "0.63343984", "0.6328501", "0.6307997", "0.6289649",...
0.7460804
1
Fetches grid configuration settings from store
Загружает настройки конфигурации сетки из хранилища
public function fetchSettings() { return $this->store->fetch(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function getAllConfig() {\n $this->user_panel->checkAuth();\n $this->config->findAll();\n }", "protected function _getConfig()\n {\n return Mage::getSingleton('customgrid/column_renderer_config_collection');\n }", "public function loadConfig()\n {\n $this->setGlo...
[ "0.63916487", "0.6328137", "0.62886477", "0.62371826", "0.61417246", "0.6033346", "0.5991536", "0.59908175", "0.597144", "0.5940942", "0.5932943", "0.59280473", "0.5911799", "0.5889918", "0.58863765", "0.586022", "0.58496034", "0.5848951", "0.58410025", "0.58358425", "0.58198...
0.7333951
0
Saves grid configuration settings to store
Сохраняет настройки конфигурации сетки для хранения
public function saveSettings() { $this->store->save($this->data); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function save()\n\t{\n\t\t$this->componentConfig->save();\n\t}", "public function save()\n {\n $config_content = file_get_contents($this->config_path);\n\n foreach ($this->fields as $configuration => $value) {\n $config_content = str_replace(str_replace('\\\\', '\\\\\\\\', $val...
[ "0.741802", "0.73677206", "0.72362244", "0.72257257", "0.70773035", "0.70331293", "0.7005447", "0.6992368", "0.68396664", "0.68207", "0.6814125", "0.67436886", "0.66654724", "0.66470945", "0.66256005", "0.65832406", "0.65194786", "0.64991367", "0.6488498", "0.64809996", "0.64...
0.7933397
0
Deletes grid configuration settings from store
Удаляет настройки конфигурации сетки из хранилища
public function deleteSettings() { $master = new DynaGridStore([ 'id' => $this->dynaGridId, 'category' => DynaGridStore::STORE_GRID, 'storage' => $this->storage, 'userSpecific' => $this->userSpecific ]); $config = $this->storage == DynaGrid::TY...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function clearConfig()\n {\n $this->_xcoobee->getStore()->clearStore();\n }", "protected function deleteConfiguration(){\n Configuration::deleteByName($this->name.'_settings');\n }", "function clear_integration_settings() {\n\tglobal $db;\n\t\n\t$config_fields = get_db_schema();\n...
[ "0.7524371", "0.7367992", "0.71419346", "0.6889994", "0.67518234", "0.6655889", "0.66440135", "0.66342455", "0.6632941", "0.6581649", "0.6569866", "0.65285313", "0.6506302", "0.6503231", "0.6422866", "0.6417303", "0.6415153", "0.6378917", "0.63504285", "0.6255177", "0.6250833...
0.85020447
0
Register the plugin:list command.
Зарегистрируйте команду плагина:list.
protected function registerPluginListCommand() { $this->app->singleton('command.plugin.list', function ($app) { return new PluginListCommand($app['plugins']); }); $this->commands('command.plugin.list'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function listPlugin()\n\t{\n\t\t\n\t}", "protected function registerListCommand()\n {\n $this->app->singleton('command.module.list', function ($app) {\n return new \\Pw\\Core\\Console\\Commands\\ModuleListCommand($app['modules']);\n });\n\n $this->commands('command.modul...
[ "0.7836309", "0.7482863", "0.64678246", "0.64274716", "0.6347014", "0.6059224", "0.6048014", "0.6013477", "0.59664017", "0.5914595", "0.59128904", "0.58977383", "0.5873162", "0.57969004", "0.5755384", "0.57171446", "0.5695565", "0.5663307", "0.56529677", "0.56502944", "0.5625...
0.8820267
0
Register the plugin:migrate command.
Зарегистрируйте команду плагина:migrate.
protected function registerPluginMigrateCommand() { $this->app->singleton('command.plugin.migrate', function ($app) { return new PluginMigrateCommand($app['migrator'], $app['plugins']); }); $this->commands('command.plugin.migrate'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function registerMigrateCommand()\n {\n $this->app->singleton('command.module.migrate', function ($app) {\n return new \\Pw\\Core\\Console\\Commands\\ModuleMigrateCommand($app['migrator'], $app['modules']);\n });\n\n $this->commands('command.module.migrate');\n }", ...
[ "0.7604389", "0.7472265", "0.7452799", "0.71933883", "0.7180311", "0.7093281", "0.681038", "0.669298", "0.66402155", "0.6409046", "0.6371802", "0.61739707", "0.6160839", "0.6100698", "0.60532653", "0.603339", "0.60199344", "0.60199344", "0.6000894", "0.59678173", "0.5955543",...
0.8287139
0
Register the plugin:migrate:refresh command.
Зарегистрируйте команду плагина:migrate:refresh.
protected function registerPluginMigrateRefreshCommand() { $this->app->singleton('command.plugin.migrate.refresh', function ($app) { return new PluginMigrateRefreshCommand($app['plugins']); }); $this->commands('command.plugin.migrate.refresh'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function registerMigrateRefreshCommand()\n {\n $this->app->singleton('command.module.migrate.refresh', function () {\n return new \\Pw\\Core\\Console\\Commands\\ModuleMigrateRefreshCommand();\n });\n\n $this->commands('command.module.migrate.refresh');\n }", "prote...
[ "0.83024514", "0.704728", "0.65867484", "0.6541119", "0.6536433", "0.6472226", "0.6202226", "0.59793806", "0.57934284", "0.5781904", "0.57274", "0.56988555", "0.5660893", "0.5546303", "0.55159664", "0.5492297", "0.54750097", "0.5455738", "0.5440983", "0.54390377", "0.54003114...
0.8555532
0
Register the plugin:migrate:reset command.
Зарегистрируйте команду плагина:migrate:reset.
protected function registerPluginMigrateResetCommand() { $this->app->singleton('command.plugin.migrate.reset', function ($app) { return new PluginMigrateResetCommand($app['plugins'], $app['files'], $app['migrator']); }); $this->commands('command.plugin.migrate.reset'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function registerMigrateResetCommand()\n {\n $this->app->singleton('command.module.migrate.reset', function ($app) {\n return new \\Pw\\Core\\Console\\Commands\\ModuleMigrateResetCommand($app['modules'], $app['files'], $app['migrator']);\n });\n\n $this->commands('comma...
[ "0.80530953", "0.70414704", "0.66899776", "0.66237855", "0.63474596", "0.6321869", "0.627897", "0.6242711", "0.6103271", "0.5997545", "0.5792654", "0.5593008", "0.5509013", "0.5472308", "0.54620755", "0.5460137", "0.54201335", "0.5359696", "0.5358458", "0.5356676", "0.5356394...
0.84767574
0
Register the plugin:migrate:rollback command.
Зарегистрируйте команду плагина:migrate:rollback.
protected function registerPluginMigrateRollbackCommand() { $this->app->singleton('command.plugin.migrate.rollback', function ($app) { return new PluginMigrateRollbackCommand($app['migrator'], $app['plugins']); }); $this->commands('command.plugin.migrate.rollback'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function registerMigrateRollbackCommand()\n {\n $this->app->singleton('command.module.migrate.rollback', function ($app) {\n $repository = $app['migration.repository'];\n $table = $app['config']['database.migrations'];\n\n $migrator = new Migrator($table, $repos...
[ "0.7901439", "0.66819143", "0.6091139", "0.6032072", "0.5872749", "0.5725627", "0.5710847", "0.5630541", "0.5412594", "0.5363787", "0.5363787", "0.5363787", "0.5363787", "0.53555423", "0.5308239", "0.5308068", "0.5242861", "0.5225984", "0.52139366", "0.5164505", "0.516167", ...
0.8155297
0
Register the plugin:seed command.
Зарегистрируйте команду плагина:seed.
protected function registerPluginSeedCommand() { $this->app->singleton('command.plugin.seed', function ($app) { return new PluginSeedCommand($app['plugins']); }); $this->commands('command.plugin.seed'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function registerSeedCommand()\n {\n $this->app->singleton('command.module.seed', function ($app) {\n return new \\Pw\\Core\\Console\\Commands\\ModuleSeedCommand($app['modules']);\n });\n\n $this->commands('command.module.seed');\n }", "private function registerSee...
[ "0.76133686", "0.722749", "0.64181507", "0.6340731", "0.61712587", "0.6135812", "0.6025424", "0.5732121", "0.57014805", "0.56500804", "0.5649854", "0.5539282", "0.55292654", "0.55233186", "0.55202335", "0.5497686", "0.5473434", "0.5456053", "0.5420832", "0.539244", "0.5381588...
0.8476752
0
Register the make:plugin command.
Зарегистрируйте команду make:plugin.
private function registerPluginMakeCommand() { $this->app->bindShared('command.make.plugin', function ($app) { return new PluginMakeCommand($app['files'], $app['plugins']); }); $this->commands('command.make.plugin'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function registerMigrationMakeCommand()\n {\n $this->app->bindShared('command.make.plugin.migration', function ($app)\n {\n return new MigrationMakeCommand($app['files'], $app['plugins']);\n });\n\n $this->commands('command.make.plugin.migration');\n }", "priv...
[ "0.740278", "0.7366321", "0.7233077", "0.712062", "0.7099911", "0.70345587", "0.6841358", "0.6633123", "0.6589437", "0.6472326", "0.6405587", "0.6314378", "0.6193578", "0.6130005", "0.605786", "0.59717137", "0.5946911", "0.5901456", "0.58490056", "0.57593083", "0.57271147", ...
0.88065714
0
Register the make:plugin:controller command.
Зарегистрируйте команду make:plugin:controller.
private function registerControllerMakeCommand() { $this->app->bindShared('command.make.plugin.controller', function ($app) { return new ControllerMakeCommand($app['files'], $app['plugins']); }); $this->commands('command.make.plugin.controller'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function registerPluginMakeCommand()\n {\n $this->app->bindShared('command.make.plugin', function ($app)\n {\n return new PluginMakeCommand($app['files'], $app['plugins']);\n });\n\n $this->commands('command.make.plugin');\n }", "private function registerModel...
[ "0.78329444", "0.6900601", "0.6787467", "0.66222024", "0.65172076", "0.64939135", "0.6118159", "0.6013958", "0.5815318", "0.5790535", "0.5755703", "0.575211", "0.5733365", "0.555956", "0.5492085", "0.5472344", "0.54674333", "0.5437414", "0.54080695", "0.53618747", "0.53323436...
0.8575514
0
Register the make:plugin:middleware command.
Зарегистрируйте команду make:plugin:middleware.
private function registerMiddlewareMakeCommand() { $this->app->bindShared('command.make.plugin.middleware', function ($app) { return new MiddlewareMakeCommand($app['files'], $app['plugins']); }); $this->commands('command.make.plugin.middleware'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function registerPluginMakeCommand()\n {\n $this->app->bindShared('command.make.plugin', function ($app)\n {\n return new PluginMakeCommand($app['files'], $app['plugins']);\n });\n\n $this->commands('command.make.plugin');\n }", "private function registerPolic...
[ "0.73462117", "0.6632823", "0.6387804", "0.6326368", "0.59073246", "0.58112484", "0.57462496", "0.559114", "0.5567726", "0.555221", "0.54680836", "0.5444103", "0.5416243", "0.52793056", "0.5221422", "0.52193135", "0.52080923", "0.52020794", "0.5184098", "0.51814663", "0.51700...
0.8431433
0
Register the make:plugin:model command.
Зарегистрируйте команду make:plugin:model.
private function registerModelMakeCommand() { $this->app->bindShared('command.make.plugin.model', function ($app) { return new ModelMakeCommand($app['files'], $app['plugins']); }); $this->commands('command.make.plugin.model'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function registerPluginMakeCommand()\n {\n $this->app->bindShared('command.make.plugin', function ($app)\n {\n return new PluginMakeCommand($app['files'], $app['plugins']);\n });\n\n $this->commands('command.make.plugin');\n }", "private function registerContr...
[ "0.7765329", "0.7159537", "0.6972451", "0.68378204", "0.6729008", "0.6405262", "0.60888517", "0.6021836", "0.59225446", "0.56860614", "0.5628", "0.56203395", "0.55451566", "0.5471991", "0.53176624", "0.5265691", "0.526561", "0.5255689", "0.5227284", "0.5221629", "0.5220121", ...
0.8615172
0
Register the make:plugin:policy command.
Зарегистрируйте команду make:plugin:policy.
private function registerPolicyMakeCommand() { $this->app->bindShared('command.make.plugin.policy', function ($app) { return new PolicyMakeCommand($app['files'], $app['plugins']); }); $this->commands('command.make.plugin.policy'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function registerPluginMakeCommand()\n {\n $this->app->bindShared('command.make.plugin', function ($app)\n {\n return new PluginMakeCommand($app['files'], $app['plugins']);\n });\n\n $this->commands('command.make.plugin');\n }", "private function registerMiddl...
[ "0.7221918", "0.62786114", "0.61724883", "0.59574956", "0.57645845", "0.5733436", "0.5501701", "0.54612267", "0.544549", "0.5328515", "0.5265876", "0.5188003", "0.5177328", "0.5149771", "0.5112402", "0.50648767", "0.50355166", "0.50232893", "0.50119376", "0.49126863", "0.4900...
0.854931
0
Register the make:plugin:migration command.
Зарегистрируйте команду make:plugin:migration.
private function registerMigrationMakeCommand() { $this->app->bindShared('command.make.plugin.migration', function ($app) { return new MigrationMakeCommand($app['files'], $app['plugins']); }); $this->commands('command.make.plugin.migration'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function registerPluginMigrateCommand()\n {\n $this->app->singleton('command.plugin.migrate', function ($app) {\n return new PluginMigrateCommand($app['migrator'], $app['plugins']);\n });\n\n $this->commands('command.plugin.migrate');\n }", "private function regist...
[ "0.7793832", "0.74271923", "0.72385716", "0.6867094", "0.68547684", "0.67563903", "0.6738536", "0.65372026", "0.6511113", "0.64993566", "0.6401827", "0.6300279", "0.6260723", "0.6160273", "0.6126194", "0.610806", "0.5975447", "0.57966053", "0.5785827", "0.5733558", "0.5709871...
0.8441781
0
Register the make:plugin:seeder command.
Зарегистрируйте команду make:plugin:seeder.
private function registerSeederMakeCommand() { $this->app->bindShared('command.make.plugin.seeder', function ($app) { return new SeederMakeCommand($app['files'], $app['plugins']); }); $this->commands('command.make.plugin.seeder'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function registerPluginSeedCommand()\n {\n $this->app->singleton('command.plugin.seed', function ($app) {\n return new PluginSeedCommand($app['plugins']);\n });\n\n $this->commands('command.plugin.seed');\n }", "private function registerPluginMakeCommand()\n {\n...
[ "0.7802551", "0.72753453", "0.66647184", "0.6577703", "0.6158316", "0.60649633", "0.6023677", "0.60074425", "0.59345514", "0.5910208", "0.58800983", "0.58622617", "0.57192564", "0.56668043", "0.5628035", "0.5626696", "0.53846663", "0.53590965", "0.5322104", "0.526473", "0.518...
0.80252
0
Define a new activity type.
Определите новый тип деятельности.
public function defineType($name, $activity = []) { $this->SQL->replace('ActivityType', $activity, ['Name' => $name], true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function run()\n {\n $activity_type = \\App\\Activity_type::create([\n 'name' => 'قطع غيار جديدة',\n \n ]);\n\n $activity_type = \\App\\Activity_type::create([\n 'name' => 'قطع غيار تشليح'\n \n ]);\n\n $activity_type = \\App\\Ac...
[ "0.62327427", "0.60593265", "0.60380274", "0.5858225", "0.5851745", "0.58347136", "0.5824459", "0.57949686", "0.578496", "0.5777673", "0.57599", "0.57420635", "0.5740492", "0.5735808", "0.5735501", "0.571925", "0.56785524", "0.5677396", "0.56560904", "0.56368405", "0.5631854"...
0.71056116
0
Get number of activity related to a particular role.
Получить количество активности, связанной с определенной ролью.
public function getCountForRole($roleID = '') { if (!is_array($roleID)) { $roleID = [$roleID]; } return $this->SQL ->select('a.ActivityID', 'count', 'ActivityCount') ->from('Activity a') ->join('ActivityType t', 'a.ActivityTypeID = t.ActivityTypeI...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function userCountByRole($role)\n {\n return User::where('role', $role)->count();\n }", "public function getActivitiesCount() : int;", "function roleCount($UserID = null)\n\t{\n $databaseManager = Rbac::getInstance()->getDatabaseManager();\n \n if($UserID ==...
[ "0.67970866", "0.6162685", "0.5945713", "0.59277034", "0.5857442", "0.5800211", "0.57581127", "0.57527333", "0.5712438", "0.5699519", "0.5694057", "0.5642243", "0.55072415", "0.54676723", "0.54248524", "0.54235333", "0.54157406", "0.5400899", "0.53566486", "0.5345942", "0.532...
0.7460738
0
Join the users to the activities.
Присоедините пользователей к мероприятиям.
public static function joinUsers(&$activities) { Gdn::userModel()->joinUsers( $activities, ['ActivityUserID', 'RegardingUserID'], ['Join' => ['Name', 'Email', 'Gender', 'Photo']] ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function activities() {\n \n // Verify if is a team's member\n if ( $this->session->userdata( 'member' ) && !get_user_option('display_activities') ) {\n redirect('user/app/dashboard');\n }\n \n // Check if the current user is admin and if session exists\n...
[ "0.6226891", "0.5920913", "0.58763665", "0.587031", "0.57926285", "0.57510555", "0.5684711", "0.5626242", "0.56209046", "0.5572398", "0.55466336", "0.5539136", "0.55229604", "0.5520257", "0.54925984", "0.54808366", "0.5477305", "0.54650885", "0.5382861", "0.53483295", "0.5343...
0.7971732
0
Send all notifications in the queue.
Отправьте все уведомления из очереди.
public function sendNotificationQueue() { foreach ($this->_NotificationQueue as $userID => $notifications) { if (is_array($notifications)) { // Only send out one notification per user. $notification = $notifications[0]; /* @var Gdn_Email $Email */ ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function flushNotificationQueue() {\r\n\t\t// Logfile entries\r\n\t\tforeach ($this->notificationQueue as $key => $message) {\r\n\t\t\t// Log the message\r\n\t\t\t$this->log($message);\r\n\t\t}\r\n\t\t$sendNotifications = Configure::read('Alert.send');\r\n\t\tif (!$sendNotifications) {\r\n\t\t\treturn true;...
[ "0.7394986", "0.68472946", "0.6576856", "0.65762043", "0.6549178", "0.6432119", "0.63901544", "0.6358515", "0.6330749", "0.6294968", "0.62443763", "0.6195702", "0.6163093", "0.609171", "0.6089085", "0.6012481", "0.5986223", "0.5968316", "0.5962382", "0.5957441", "0.59543717",...
0.7632366
0
Get the exact timestamp to prune.
Получите точный временной штамп для удаления.
private function getPruneDate() { if (!$this->pruneAfter) { return null; } else { $tz = new \DateTimeZone('UTC'); $now = new DateTime('now', $tz); $test = new DateTime($this->pruneAfter, $tz); $interval = $test->diff($now); if ($i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function prunable()\n {\n return static::where(static::UPDATED_AT, '<=', now()->subWeek());\n }", "public function getRemovalTime(): ?string;", "public function getRemovalTime(): ?string;", "function timestamp() {\n\t\tif (isset($this->_timestamp)) return $this->_timestamp;\n\t\t$this->_t...
[ "0.5823448", "0.55826706", "0.55826706", "0.55026174", "0.5438007", "0.5398086", "0.53891337", "0.53462356", "0.532332", "0.52882826", "0.5283254", "0.5280578", "0.5277334", "0.5274549", "0.5268591", "0.5259671", "0.5231141", "0.5231141", "0.5231141", "0.5223417", "0.5211883"...
0.71749717
0
A test for creating a new task
Тест на создание новой задачи
public function testNewTask() { $userId = User::first()->value('id'); $response = $this->json('POST', '/api/v1.0.0/users/'.$userId.'/tasks', [ 'description' => 'A new task from PHPUnit', ]); $response ->assertStatus(200) ->assertJson([ ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testCreateTask()\n {\n }", "public function test_create_task()\n {\n \n $response = $this->post('/task', [\n 'name' => 'Task name', \n 'priority' => 'urgent', \n 'schedule_date_date' => '2020-12-12',\n 'schedule_date_time' => '12:...
[ "0.8670612", "0.8393524", "0.82477623", "0.7898734", "0.767466", "0.7442585", "0.7409591", "0.74009186", "0.73935616", "0.7385936", "0.73331815", "0.7245637", "0.7225112", "0.71625626", "0.7153543", "0.7144056", "0.7140956", "0.7132784", "0.71198916", "0.7077728", "0.7072341"...
0.84925294
1
A test for reading specified task
Тест на чтение указанного задания
public function testReadTask() { $userId = User::first()->value('id'); $taskId = Task::orderBy('id', 'desc')->first()->id; $response = $this->json('GET', '/api/v1.0.0/users/'.$userId.'/tasks/'.$taskId); $response ->assertStatus(200) ->assertJson([ ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getTask() ;", "public function testGetTask()\n {\n }", "public function getTask() {}", "public function getTask() {}", "public function getTask() {}", "abstract protected function checkIfInstanceOf($task);", "public function testCreateTask()\n {\n }", "public function getTask();"...
[ "0.6576651", "0.6382481", "0.6323863", "0.6323646", "0.6323646", "0.6312364", "0.6279334", "0.6234213", "0.6234213", "0.6128328", "0.6038611", "0.5960838", "0.59547156", "0.59520555", "0.5891957", "0.5879511", "0.5876832", "0.5860958", "0.58601487", "0.5831636", "0.57921076",...
0.7486764
0
A test for updating specified task
Тест на обновление указанной задачи
public function testUpdatedTask() { $userId = User::first()->value('id'); $taskId = Task::orderBy('id', 'desc')->first()->id; $response = $this->json('PUT', '/api/v1.0.0/users/'.$userId.'/tasks/'.$taskId, [ 'description' => 'An updated task from PHPUnit', 'completed'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testUpdateTask()\n {\n }", "public function testUpdate()\n {\n $this->actingAs(User::factory()->make());\n $task = new Task();\n $task->title = 'refined_task';\n $task->completed = false;\n $task->save();\n\n $response = $this->put('/tasks/' . $t...
[ "0.8209953", "0.7795147", "0.7661127", "0.7642155", "0.7198463", "0.6787412", "0.6751222", "0.667324", "0.665346", "0.6643765", "0.6643765", "0.66080624", "0.6578544", "0.6578544", "0.65190035", "0.64863056", "0.64849263", "0.6449534", "0.6446178", "0.64306325", "0.6428317", ...
0.8433676
0
Init JSON REST API Menu routes.
Инициализация JSON REST API маршрутов меню.
function wp_rest_menus_init() { if ( ! defined( 'JSON_API_VERSION' ) && ! in_array( 'json-rest-api/plugin.php', get_option( 'active_plugins' ) ) ) { $class = new WP_REST_Menus(); add_filter( 'rest_api_init', array( $class, 'register_routes' ) ); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __construct(){\n add_action('rest_api_init', function () {\n register_rest_route( 'v2/rest-menu', 'menus',array(\n 'methods' => 'GET',\n 'callback' => array($this,'get_list_of_menus')\n ));\n });\n\n //End poi...
[ "0.7516352", "0.7454535", "0.6957139", "0.64791995", "0.6430401", "0.64226484", "0.63903356", "0.6367173", "0.62440395", "0.62321734", "0.6204807", "0.6195651", "0.617921", "0.6161933", "0.6116668", "0.61141205", "0.61058915", "0.6099145", "0.6080863", "0.6078309", "0.6076984...
0.8010276
0
Logs an emerg message.
Записывает сообщение уровня emerg.
public function emerg($message) { $this->log($message, self::EMERG); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function emerg($message)\n {\n static::_log(self::EMERG, $message);\n }", "public function emerg($message)\r\n {\r\n $this->log($message, SF_LOG_EMERG);\r\n }", "public static function emerg() {\n\t\t# Get arguments to this function:\n\t\t$args = func_get_args();\n\n\t\t# Add me...
[ "0.780564", "0.7763627", "0.7588366", "0.72344834", "0.6411417", "0.636041", "0.6360281", "0.6120802", "0.5876493", "0.5844073", "0.5836323", "0.5743309", "0.5741324", "0.5729126", "0.56831366", "0.55680954", "0.5556902", "0.5534434", "0.5517829", "0.55130124", "0.5511658", ...
0.81022674
0
Logs an alert message.
Записывает сообщение о предупреждении.
public function alert($message) { $this->log($message, self::ALERT); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function alert($message)\r\n {\r\n $this->log($message, SF_LOG_ALERT);\r\n }", "public function alert($message) {\n if (!$this->logging_enabled) {\n return;\n }\n \n $this->logger->alert($message);\n }", "public static function alert($message)\n {\n ...
[ "0.792286", "0.77471215", "0.7622396", "0.74325097", "0.7398907", "0.72769624", "0.7269653", "0.725747", "0.69509465", "0.6900326", "0.6888471", "0.6880999", "0.6831517", "0.68169975", "0.67862177", "0.67519397", "0.67359066", "0.67359066", "0.6674611", "0.6655878", "0.6649",...
0.7875222
1
Logs a notice message.
Записывает сообщение уведомления.
public function notice($message) { $this->log($message, self::NOTICE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function notice($message)\r\n {\r\n $this->log($message, SF_LOG_NOTICE);\r\n }", "public static function notice() {\n\t\t# Get arguments to this function:\n\t\t$args = func_get_args();\n\n\t\t# Add message to log:\n\t\treturn self::add(LOG_NOTICE, $args);\n\t}", "public static function notice($mess...
[ "0.80893046", "0.78994167", "0.77570814", "0.7723626", "0.7700615", "0.73285633", "0.72878313", "0.7201445", "0.7164861", "0.7145621", "0.7129099", "0.7109875", "0.7074625", "0.70635086", "0.70628226", "0.70628226", "0.705589", "0.7021605", "0.70157313", "0.70043015", "0.6995...
0.8131184
0
Logs a debug message.
Записывает сообщение отладки.
public function debug($message) { $this->log($message, self::DEBUG); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function debug($message)\r\n {\r\n $this->log($message, SF_LOG_DEBUG);\r\n }", "public function debug($message) {}", "public function logDebug($message) {\n $this->log($message);\n }", "public function debug(string $message);", "public static function debug($message)\n\t{\n\t\tstatic:...
[ "0.7897121", "0.7822938", "0.7822187", "0.7805242", "0.77773756", "0.77471685", "0.7694217", "0.7665123", "0.76640314", "0.76290345", "0.76179177", "0.7615208", "0.75734806", "0.7556127", "0.7532402", "0.74798304", "0.74146616", "0.7400949", "0.7394262", "0.7386865", "0.73864...
0.78865284
1
Gets users from Log
Получает пользователей из Лога
public function getUsersFromLog() { $select = parent::select()->from($this,array('username'=>'username')) ->distinct()->order(array("username asc")); $results = self::fetchAll($select)->toArray(); $res = array(); return $results; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function get_users() {\n\t\t\t$users = wp_cache_get( 'mycred_users' );\n\n\t\t\tif ( false === $users ) {\n\t\t\t\t$users = array();\n\t\t\t\t$blog_users = get_users( array( 'orderby' => 'display_name' ) );\n\t\t\t\tforeach ( $blog_users as $user ) {\n\t\t\t\t\tif ( false === $this->core->exclude_user( $...
[ "0.72054565", "0.6933988", "0.6933988", "0.6933988", "0.691851", "0.68692523", "0.6857383", "0.6857383", "0.6725469", "0.6721534", "0.66879785", "0.66812724", "0.6663052", "0.6641834", "0.6639234", "0.6625462", "0.66092324", "0.6559821", "0.65580195", "0.6521863", "0.6489833"...
0.76628155
0
Retrieves logs by event id
Получает журналы по идентификатору события
public function recoverLogsbyEventId($eventid) { $select = parent::select()->where('idEvento =?',$eventid)->order('id asc'); $res = parent::fetchAll($select)->toArray(); return $res; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function logs($id);", "public function get($id)\n {\n $log = R::load('mcslogs',$id);\n return $log;\n }", "public function get(string $id)\n {\n $ch = curl_init($this->url(\"/api/logs/{$id}\"));\n curl_setopt($ch, CURLOPT_HTTPHEADER, $this->headers());\n curl_...
[ "0.7322623", "0.70409906", "0.68879616", "0.6855762", "0.68266594", "0.68149966", "0.6746951", "0.6599362", "0.64486474", "0.6395067", "0.6380585", "0.6326018", "0.62807786", "0.6181381", "0.61398286", "0.6132706", "0.61318535", "0.6114356", "0.60991955", "0.60923445", "0.608...
0.7130078
1
Add new IP. return Location
Добавить новый IP. вернуть Location
public static function add($ip) { //SELECT * FROM `ip2location_db11` WHERE INET_ATON('116.109.245.204') <= ip_to LIMIT 1 $location = self::where('ip_address', '=', $ip)->first(); if (!is_object($location)) { $location = new self(); } $location->ip_address = $ip; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function locate($ip);", "abstract public function getIpLocation($ip);", "public function add($param)\n {\n $sentence = new SentenceUtil();\n $sentence->addCommand(\"/ip/address/add\");\n foreach ($param as $name => $value) {\n $sentence->setAttribute($name, $value);\n ...
[ "0.66183376", "0.6586684", "0.613517", "0.60299194", "0.58661515", "0.58242047", "0.57887936", "0.57871616", "0.5775166", "0.5760948", "0.5745111", "0.5744345", "0.5729159", "0.5713666", "0.5710293", "0.5704768", "0.5695915", "0.56580955", "0.5656616", "0.5645171", "0.5624277...
0.70226157
0
clear all templates that have been loaded this is needed in a few places (e.g. setup_fatal_error_context) when we have to discard all previously loaded templates.
очистить все загруженные шаблоны это необходимо в нескольких местах (например, setup_fatal_error_context), когда нам нужно отбросить все ранее загруженные шаблоны.
public static function resetTemplates() { self::$_template_names = array(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function clearTemplateCache()\n {\n $this->loadedTemplates = array();\n }", "public function deleteCompiledTemplates() {\n\t\t// templates\n\t\t$filenames = glob(WCF_DIR.'templates/compiled/*_'.$this->languageID.'_*.php');\n\t\tif ($filenames) foreach ($filenames as $filename) @unlink($filena...
[ "0.82534856", "0.7129658", "0.69437295", "0.6841781", "0.6561434", "0.6556717", "0.6516829", "0.6433131", "0.63522834", "0.6308994", "0.6300324", "0.6245947", "0.6244525", "0.62025714", "0.62013847", "0.61953324", "0.61668104", "0.6163034", "0.6147954", "0.6133729", "0.612889...
0.77750427
1
output all enqued footer scripts. used as custom template function
вывести все отложенные скрипты подвалов. используется как пользовательская функция шаблона
public function footer_scripts() { global $context, $settings; if(!empty($context['theme_scripts'])) { foreach($context['theme_scripts'] as $type => $script) { echo ' <script type="text/javascript" src="',($script['default'] ? $settings['default_theme_url'] : $settings['theme_url']) . '/' . $script['name...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function print_footer_scripts()\n {\n }", "public function print_footer_scripts()\n {\n }", "public function footer_scripts() {\n\n\t\tif ( ! empty( $this->element_footer_scripts ) ) {\n\t\t\techo \"<script type=\\\"text/javascript\\\">\\r\\n\";\n\t\t\tforeach ( $this->element_footer...
[ "0.80130845", "0.80017006", "0.78766024", "0.77855605", "0.77101386", "0.7704807", "0.76320046", "0.7628733", "0.76174486", "0.758224", "0.75224185", "0.7378726", "0.73747134", "0.73118436", "0.72951657", "0.7290863", "0.72804374", "0.72477", "0.72056544", "0.7205259", "0.719...
0.80600184
0
Filter the query on the id_persona column Example usage: $query>filterByIdPersona(1234); // WHERE id_persona = 1234 $query>filterByIdPersona(array(12, 34)); // WHERE id_persona IN (12, 34) $query>filterByIdPersona(array('min' => 12)); // WHERE id_persona > 12
Фильтрация запроса по столбцу id_persona Пример использования: $query>filterByIdPersona(1234); // WHERE id_persona = 1234 $query>filterByIdPersona(array(12, 34)); // WHERE id_persona IN (12, 34) $query>filterByIdPersona(array('min' => 12)); // WHERE id_persona > 12
public function filterByIdPersona($idPersona = null, $comparison = null) { if (is_array($idPersona)) { $useMinMax = false; if (isset($idPersona['min'])) { $this->addUsingAlias(MenuPersonaPeer::ID_PERSONA, $idPersona['min'], Criteria::GREATER_EQUAL); $useMinMax = true; } if (isset($idPersona['max'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function filterByIdPersona($idPersona = null, $comparison = null)\n\t{\n\t\tif (is_array($idPersona) && null === $comparison) {\n\t\t\t$comparison = Criteria::IN;\n\t\t}\n\t\treturn $this->addUsingAlias(PersonaPeer::ID_PERSONA, $idPersona, $comparison);\n\t}", "public function filterByPersonaId($personaId...
[ "0.63588125", "0.60873246", "0.5787159", "0.5572213", "0.55235964", "0.5507588", "0.546259", "0.54596984", "0.54020816", "0.5363765", "0.53244185", "0.53203696", "0.52625203", "0.52618206", "0.5252117", "0.52432156", "0.52330625", "0.52324086", "0.52324086", "0.518515", "0.51...
0.70465845
0
Consumer::getAuthorizationBasic Gets Consumer HTTP_AUTHORIZATION Bearer code.
Consumer::getAuthorizationBasic Получает код Bearer Consumer HTTP_AUTHORIZATION.
public function getAuthorizationBasic() { if ( ! empty($this->key) && ! empty($this->secret)) { $key = rawurlencode($this->key); $secret = rawurlencode($this->secret); return 'Basic ' . base64_encode($key . ':' . $secret); } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_authorization(){\n\t\t$bvars = $this->get_bvars();\n\t\tif ( array_key_exists( 'Authorization', $bvars ) ) {\n\t\t\treturn $bvars[ 'Authorization' ];\t\n\t\t}\n\t\t\n\t\treturn 'Basic Kjo=';\n\t}", "function wp_populate_basic_auth_from_authorization_header()\n {\n }", "public static f...
[ "0.7432054", "0.7076157", "0.69052726", "0.68913436", "0.6722596", "0.6626426", "0.6559026", "0.64736736", "0.6408718", "0.6385755", "0.63671374", "0.6355683", "0.6350947", "0.6346494", "0.6308254", "0.6258218", "0.6257869", "0.62441695", "0.6237988", "0.6214038", "0.62018996...
0.7312144
1
Create a new S3BrowserBasedUploads instance.
Создайте новый экземпляр S3BrowserBasedUploads.
public function make(array $config): S3BrowserBasedUploads { $adapter = $this->getS3Adapter($config); return new S3BrowserBasedUploads( $adapter->getClient(), $adapter->getBucket(), $this->getInputs($config), $this->getConditions($config), ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAdapter()\n {\n $client = new S3Client([\n 'credentials' => [\n 'key' => $this->accessKey,\n 'secret' => $this->secret,\n ],\n 'region' => $this->region,\n 'version' => $this->version, // or \"latest\"\n ...
[ "0.5934584", "0.5713374", "0.5684964", "0.5647068", "0.54735273", "0.5470488", "0.5457707", "0.54536027", "0.5448086", "0.5417879", "0.54163283", "0.5407867", "0.5391453", "0.53402406", "0.5296888", "0.5269851", "0.52486247", "0.52382123", "0.5234674", "0.5213807", "0.5110522...
0.7931766
0
get the s3 adapter.
получить адаптер s3.
protected function getS3Adapter(array $config): AwsS3Adapter { return app('filesystem')->disk(Arr::get($config, 'disk', 's3'))->getAdapter(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAdapter()\n {\n $client = new S3Client([\n 'credentials' => [\n 'key' => $this->accessKey,\n 'secret' => $this->secret,\n ],\n 'region' => $this->region,\n 'version' => $this->version, // or \"latest\"\n ...
[ "0.85968053", "0.7119198", "0.68366945", "0.67225814", "0.66513973", "0.66286635", "0.64920807", "0.6468124", "0.6407579", "0.6379342", "0.63625413", "0.63625413", "0.63625413", "0.63625413", "0.63625413", "0.63625413", "0.63625413", "0.63625413", "0.635483", "0.6185719", "0....
0.7449229
1
Constructor Decodes json source in php array and sets id and method members of json request
Конструктор декодирует json-источник в массив php и устанавливает члены id и method json-запроса
public function __construct() { parent::__construct(); $data = SkrillPsp_Json::getQIWIJson(); $this->json = $this->decode($data, true); $this->json['id'] = $this->setId(); $this->json['method'] = $this->method; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function _JsonData() \n {\n $raw = file_get_contents('php://input', true);\n $body = json_decode($raw);\n \n $this->__new((array) $body);\n }", "public function __construct()\n\t {\n\t \t $data = SkrillPsp_Json::getPaySafeCardPAJson();\n\t \t $this->json = $this->decode($data,...
[ "0.69015884", "0.6681834", "0.6509452", "0.6496121", "0.6363527", "0.63603467", "0.63393945", "0.6303781", "0.6216822", "0.61967003", "0.6161716", "0.61408144", "0.60917604", "0.6079412", "0.6078284", "0.6054838", "0.5933308", "0.58855057", "0.58729655", "0.58266646", "0.5769...
0.73037106
0
Checks if we should filter the value for the Varnish purge.
Проверяет, следует ли фильтровать значение для очистки Varnish.
private function should_filter_varnish() { // This filter is documented in inc/classes/subscriber/Addons/Varnish/VarnishSubscriber.php. if ( ! apply_filters( 'do_rocket_varnish_http_purge', false ) && ! $this->options->get( 'varnish_auto_purge', 0 ) ) { // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function shouldPurge()\n {\n // we only need to send a purge request if varnish is enabled\n if ($this->scopeConfig->getValue(\n 'system/full_page_cache/caching_application',\n \\Magento\\Store\\Model\\ScopeInterface::SCOPE_STORE\n ) == 2) {\n return...
[ "0.7011172", "0.6329347", "0.6038297", "0.5988666", "0.5726487", "0.5704695", "0.564973", "0.55836964", "0.55330914", "0.5495705", "0.54898906", "0.5385073", "0.533488", "0.5324994", "0.53233194", "0.53184587", "0.5286606", "0.5286443", "0.5248415", "0.5242693", "0.52102566",...
0.74980533
0
Automatically set Cloudflare development mode value to off after 3 hours to reflect Cloudflare behaviour.
Автоматически установите значение режима разработки Cloudflare в выключенное состояние после 3 часов, чтобы отразить поведение Cloudflare.
public function deactivate_devmode() { $this->options->set( 'cloudflare_devmode', 'off' ); $this->options_api->set( 'settings', $this->options->get_options() ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function useDevelopmentMode();", "function turnOffDebugMode()\n {\n $this->debugmode = false;\n }", "function confdev()\n{\n global $app, $appname, $appversion;\n $app->config([\n 'debug' => true,\n 'cookies.lifetime' => '5 minutes',\n 'cookies.secret_key' => 'b49...
[ "0.6113033", "0.5886946", "0.568852", "0.5648188", "0.558613", "0.5538556", "0.55360055", "0.55128473", "0.5496666", "0.5496582", "0.54236853", "0.54122275", "0.5405852", "0.5374354", "0.53697616", "0.5351875", "0.53324854", "0.5327558", "0.5308217", "0.52788377", "0.52745324...
0.71097624
0
Purge Cloudflare cache automatically if Cache Everything is set as a Page Rule.
Автоматически очищайте кэш Cloudflare, если Cache Everything задан как Правило страницы.
public function auto_purge() { if ( ! current_user_can( 'rocket_purge_cloudflare_cache' ) ) { return; } $cf_cache_everything = $this->cloudflare->has_page_rule( 'cache_everything' ); if ( is_wp_error( $cf_cache_everything ) || ! $cf_cache_everything ) { return; } // Purge CloudFlare. ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function purge_cloudflare_full() {\n\t\tcheck_ajax_referer( 'np_cf_ei_secure_me', 'np_cf_ei_nonce' );\n\n\t\tself::$which_cloudflare_method = __METHOD__;\n\n\t\tif ( ! current_user_can( 'edit_posts' ) ) {\n\t\t\techo 'Current user cannot clear the Cloudflare cache';\n\t\t\tdie();\n\t\t}\n\n\t\techo s...
[ "0.7171041", "0.68811893", "0.6835959", "0.68086535", "0.6559303", "0.6549579", "0.6494307", "0.6483772", "0.6372288", "0.6363682", "0.631605", "0.62746394", "0.6254291", "0.6254291", "0.6233105", "0.6218409", "0.614058", "0.6115821", "0.6110934", "0.61102194", "0.61072326", ...
0.8303174
0
Set Real IP from CloudFlare.
Установить реальный IP от CloudFlare.
public function set_real_ip() { // only run this logic if the REMOTE_ADDR is populated, to avoid causing notices in CLI mode. if ( ! isset( $_SERVER['HTTP_CF_CONNECTING_IP'], $_SERVER['REMOTE_ADDR'] ) ) { return; } $cf_ips_values = $this->cloudflare->get_cloudflare_ips(); $cf_ip_ranges = $cf_ips_v...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function set_real_ip() {\n\n\t\t$is_cf = ( isset( $_SERVER['HTTP_CF_CONNECTING_IP'] ) ) ? true : false;\n\t\tif ( ! $is_cf ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// only run this logic if the REMOTE_ADDR is populated, to avoid causing notices in CLI mode.\n\t\tif ( isset( $_SERVER['REMOTE_ADDR'] ) ) {\n\n\t\t\t/...
[ "0.7655002", "0.6699963", "0.6580829", "0.634213", "0.63274556", "0.59078723", "0.58831203", "0.5875683", "0.5864624", "0.58630025", "0.5789596", "0.5786246", "0.5781765", "0.5781765", "0.5780637", "0.57787335", "0.5777172", "0.5761268", "0.5729141", "0.5710153", "0.5706482",...
0.7737613
0
This notice is displayed after purging the CloudFlare cache.
Это уведомление отображается после очистки кэша CloudFlare.
public function maybe_display_purge_notice() { if ( ! current_user_can( 'rocket_purge_cloudflare_cache' ) ) { return; } $user_id = get_current_user_id(); $notice = get_transient( $user_id . '_cloudflare_purge_result' ); if ( ! $notice ) { return; } delete_transient( $user_id . '_cloudf...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function purge_cloudflare_full() {\n\t\tcheck_ajax_referer( 'np_cf_ei_secure_me', 'np_cf_ei_nonce' );\n\n\t\tself::$which_cloudflare_method = __METHOD__;\n\n\t\tif ( ! current_user_can( 'edit_posts' ) ) {\n\t\t\techo 'Current user cannot clear the Cloudflare cache';\n\t\t\tdie();\n\t\t}\n\n\t\techo s...
[ "0.7152211", "0.68079865", "0.67483526", "0.65016586", "0.63651377", "0.6276794", "0.6248941", "0.6194012", "0.6146116", "0.61334276", "0.612225", "0.6107855", "0.60924447", "0.6014962", "0.60141146", "0.60056436", "0.59971464", "0.5996657", "0.5977005", "0.59755546", "0.5953...
0.71415937
1
Get the value of studentId
Получить значение studentId
public function getStudentId() { return $this->studentId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_student_id() {\n\t\t\treturn $this->student_id;\n\t\t}", "public function getIdStudent(){\n\t\treturn $this->idStudent;\n\t}", "public function getStudentId(): int\n {\n return $this->studentId;\n }", "public function getIdStudent()\n {\n return $this->id_student;\n...
[ "0.78031254", "0.7801303", "0.77913064", "0.77817005", "0.77364075", "0.74751586", "0.73274857", "0.72067964", "0.69598776", "0.6800084", "0.6678113", "0.6601985", "0.6532665", "0.6482011", "0.6476485", "0.6428621", "0.64249164", "0.6404434", "0.63950074", "0.63936037", "0.63...
0.7918013
0
Get the value of careerId
Получить значение careerId
public function getCareerId() { return $this->careerId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getCedarId() { \n\t $this->load();\n\t return $this->mCedarId; \n }", "public function getCarId()\n {\n return $this->attributes['car_id'];\n }", "function getERCId() {\n\t\treturn $this->getData('ercId');\n\t}", "public function getId()\n {\n return $this->c_id;\n ...
[ "0.6604089", "0.64933234", "0.64733315", "0.63972855", "0.6338489", "0.6337994", "0.6296576", "0.628451", "0.6258674", "0.62416553", "0.6236524", "0.6236524", "0.62289506", "0.62189454", "0.6173707", "0.6149272", "0.61487067", "0.61405206", "0.61396736", "0.6133577", "0.61335...
0.80861133
1
Get the value of fileNumber
Получить значение fileNumber
public function getFileNumber() { return $this->fileNumber; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFile_id() {\n return (int) $this->_file_id;\n }", "public function getFileID()\n {\n return $this->get('FileID');\n }", "public function getFileId(): string\n {\n return $this->file_id;\n }", "public function fileCode() { return $this->_m_fileCode; }", ...
[ "0.69876075", "0.68775", "0.6643478", "0.6621315", "0.6591665", "0.6464993", "0.6446901", "0.64357716", "0.64146477", "0.63549995", "0.6342966", "0.63021284", "0.63021284", "0.6235594", "0.62163264", "0.61746603", "0.6136774", "0.6129149", "0.6120593", "0.60369956", "0.603228...
0.8545292
0
Add our resources to the theme as soon as it is available, otherwise return
Добавьте наши ресурсы в тему как только она станет доступной, иначе верните
private function addToTheme() { static $addedResource = false; if ($this->activated && !$addedResource) { if (isset($GLOBALS['xoTheme'])) { /* $xoops = Xoops::getInstance(); $head = '</style>' . $this->renderer->renderHead() ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function mightyResources() {\n $css_file = get_stylesheet_directory() . '/dist/assets/css/style.min.css';\n wp_enqueue_style('theme', get_stylesheet_directory_uri() . '/dist/assets/css/style.min.css', '', date('m.d.Y.H.i.s', filemtime($css_file)));\n\t\twp_dequeue_style('wp-block-library');\n\n ...
[ "0.7130416", "0.6751047", "0.66358095", "0.6613623", "0.65931255", "0.6534532", "0.6500077", "0.6492729", "0.6436466", "0.6411904", "0.63371253", "0.63212943", "0.6321055", "0.6300137", "0.624496", "0.6241471", "0.61941403", "0.6185063", "0.6184126", "0.6179152", "0.6178277",...
0.7221214
0
Convert the collection to a Symfony RouteCollection instance.
Преобразуйте коллекцию в экземпляр Symfony RouteCollection.
public function toSymfonyRouteCollection() { $symfonyRoutes = new SymfonyRouteCollection; /* This function is used to generate cached route file with Symfony, and the Symfony will also be used while finding route in the cache file. Therefore we have to sort route...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCollection() : RouteCollectionInterface\n {\n return $this->collection;\n }", "public static function getRouteCollection()\n {\n return static::$_collection;\n }", "public function getRoutes()\n {\n return $this->collection;\n }", "public function rou...
[ "0.7232727", "0.66590035", "0.6614905", "0.65837216", "0.62136716", "0.620019", "0.6115779", "0.60557485", "0.60401225", "0.5887849", "0.57750297", "0.5768578", "0.5749698", "0.5745349", "0.56759274", "0.56293905", "0.55566627", "0.55505633", "0.5484076", "0.5465092", "0.5459...
0.7533356
0
Compile the routes for caching.
Скомпилируйте маршруты для кэширования.
public function compile() { $compiled = $this->dumper()->getCompiledRoutes(); /* This line is added in order to compile `conditions` into cache file. */ $compiled[4] = $this->dumper()->getCompiledRoutes(true)[4]; $attributes = []; foreach ($this->getRoutes() as $route) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function routes()\n {\n if ($this->app->routesAreCached()) {\n return;\n }\n\n\n /**\n * Porteiro; Routes\n */\n $this->loadRoutesForRiCa(__DIR__.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'routes');\n }", "public function cacheFile()\n\t{\...
[ "0.6758545", "0.6429916", "0.6393608", "0.639167", "0.63069946", "0.6262555", "0.6199453", "0.6194339", "0.61885655", "0.6153062", "0.6108085", "0.6040378", "0.5989562", "0.59721226", "0.59509224", "0.5858197", "0.5857092", "0.5855775", "0.5844396", "0.5814372", "0.5811414", ...
0.7321813
0
Find a AdminHelp record by UniqueIdentifier
Найдите запись AdminHelp по UniqueIdentifier
public static function by_uid($uid) { return AdminHelp::get()->filter('UniqueIdentifier', $uid)->first(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function find($identifier);", "function find_admin_by_id($admin_id) {\r\n\t\tglobal $db;\r\n\t\t\r\n\t\t$safe_admin_id = mysqli_real_escape_string($db, $admin_id);\r\n\t\t$query = \"SELECT * FROM admins \";\r\n\t\t$query .= \"WHERE id = {$safe_admin_id} \";\r\n\t\t$query .= \"LIMIT 1\";\r\n\t\t\r\n\t\t$id...
[ "0.5586526", "0.54899204", "0.54245967", "0.54220253", "0.5340959", "0.533758", "0.5297304", "0.5269039", "0.526725", "0.52670485", "0.52603376", "0.5242388", "0.51874536", "0.518344", "0.51804143", "0.5139269", "0.5139269", "0.5138735", "0.51184136", "0.5083079", "0.5073117"...
0.73810214
0
Returns a link to view this AdminHelp item in the CMS
Возвращает ссылку для просмотра этого элемента AdminHelp в CMS
public function Link() { return Controller::join_links('admin/admin-help/show/help', $this->ID); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getOverviewUrl()\n {\n return Mage::helper(\"adminhtml\")->getUrl('adminhtml/mzeis_documentation_module/view', array('module' => $this->getName()));\n }", "public function viewLink()\n {\n return app('html')->link(\n 'admin/partials/view/' . $this->object->getId(...
[ "0.69270456", "0.6909853", "0.68793976", "0.68175226", "0.6815216", "0.67353606", "0.67215747", "0.6688855", "0.66805506", "0.66160643", "0.65825444", "0.6510771", "0.64874727", "0.6463432", "0.64619", "0.64619", "0.64364135", "0.64347214", "0.64338917", "0.6427095", "0.64254...
0.7583758
0
Show the page containing products belonging to the current vendor.
Показать страницу, содержащую продукты, принадлежащие текущему поставщику.
public function ShowVendorProducts() { $GLOBALS['BreadCrumbs'] = array( array( 'name' => GetLang('Vendors'), 'link' => VendorLink() ), array( 'name' => $this->vendor['vendorname'], 'link' => VendorLink($this->vendor) ), array( 'name' => GetLang('Products') ) ); $title = spri...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function ShowVendors()\n\t{\n\t\t$GLOBALS['BreadCrumbs'] = array(\n\t\t\tarray(\n\t\t\t\t'name' => GetLang('Vendors')\n\t\t\t)\n\t\t);\n\t\t$GLOBALS['ISC_CLASS_TEMPLATE']->SetPageTitle(GetConfig('StoreName').' - '.GetLang('Vendors'));\n\t\t$GLOBALS['ISC_CLASS_TEMPLATE']->SetTemplate('vendors');\n\t\t$GLOBAL...
[ "0.7312268", "0.7112363", "0.71049476", "0.6945475", "0.6920425", "0.6901654", "0.684036", "0.6830805", "0.68253374", "0.67833406", "0.678076", "0.6774265", "0.67449254", "0.67418396", "0.6720788", "0.67075396", "0.67061985", "0.6706029", "0.6685756", "0.666404", "0.6651464",...
0.84323925
0
Show the page containing a web page set up by a particular vendor.
Показать страницу, содержащую веб-страницу, настроенную определенным поставщиком.
public function ShowVendorPage() { if(isset($_REQUEST['pageid'])) { $pageWhere = " pageid='".(int)$_REQUEST['pageid']."'"; } else { $page = preg_replace('#\.html$#i', '', $GLOBALS['PathInfo'][2]); $page = MakeURLNormal($page); $pageWhere = " LOWER(pagetitle)='".$GLOBALS['ISC_CLASS_DB']->Quote(isc_str...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show(Vendor $vendor)\n {\n //\n }", "public function ShowVendors()\n\t{\n\t\t$GLOBALS['BreadCrumbs'] = array(\n\t\t\tarray(\n\t\t\t\t'name' => GetLang('Vendors')\n\t\t\t)\n\t\t);\n\t\t$GLOBALS['ISC_CLASS_TEMPLATE']->SetPageTitle(GetConfig('StoreName').' - '.GetLang('Vendors'));\n\t\t...
[ "0.68381524", "0.68360615", "0.6627945", "0.6581867", "0.6380152", "0.6338733", "0.6234429", "0.6216846", "0.620616", "0.60589623", "0.6032917", "0.6027528", "0.5986388", "0.59737575", "0.5965106", "0.5950802", "0.59503335", "0.594697", "0.59249604", "0.58851725", "0.5837049"...
0.8068273
0
Show the profile page belonging to the current vendor.
Показать страницу профиля, принадлежащую текущему поставщику.
public function ShowVendorProfile() { $GLOBALS['BreadCrumbs'] = array( array( 'name' => GetLang('Vendors'), 'link' => VendorLink() ), array( 'name' => $this->vendor['vendorname'], ) ); $title = isc_html_escape($this->vendor['vendorname']); $GLOBALS['ISC_CLASS_TEMPLATE']->SetPageTitle(G...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function profile(){\n $title = array('pageTitle' => Lang::get(\"website.Profile\"));\n $result['commonContent'] = $this->index->commonContent();\n if(auth()->guard('customer')->user()->user_type==2){\n return view('web.vendor_profile', ['result' =>$result,'tit...
[ "0.7178437", "0.6924234", "0.69034344", "0.6903002", "0.68881154", "0.6886891", "0.68680245", "0.68493867", "0.6826859", "0.6795518", "0.6788308", "0.67859256", "0.6780031", "0.6750857", "0.67066604", "0.67029387", "0.670257", "0.66927683", "0.6681857", "0.6681857", "0.668185...
0.87367845
0
Show a listing of all of the vendors configured on the store.
Показать список всех поставщиков, настроенных в магазине.
public function ShowVendors() { $GLOBALS['BreadCrumbs'] = array( array( 'name' => GetLang('Vendors') ) ); $GLOBALS['ISC_CLASS_TEMPLATE']->SetPageTitle(GetConfig('StoreName').' - '.GetLang('Vendors')); $GLOBALS['ISC_CLASS_TEMPLATE']->SetTemplate('vendors'); $GLOBALS['ISC_CLASS_TEMPLATE']->ParseTempl...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function index()\n {\n $vendors = Vendor::all();\n\n return view('admin.vendors.index', [\n 'items' => $vendors\n ]);\n }", "public function index()\n {\n if (request()->status == 'deleted') {\n $vendors = Vendor::onlyTrashed()->get();\n } ...
[ "0.7750374", "0.7575048", "0.7466686", "0.7423623", "0.7416827", "0.72081375", "0.7065438", "0.7029023", "0.6833207", "0.68277013", "0.68007344", "0.6795353", "0.6777362", "0.672532", "0.6716553", "0.66233325", "0.6610905", "0.66060156", "0.656041", "0.65595734", "0.65130514"...
0.8129548
0
Load a vendor based on the passed vendor ID.
Загрузите поставщика на основе переданного идентификатора поставщика.
private function LoadVendorById($id) { $query = " SELECT * FROM [|PREFIX|]vendors WHERE vendorid='".(int)$id."' "; $result = $GLOBALS['ISC_CLASS_DB']->Query($query); return $GLOBALS['ISC_CLASS_DB']->Fetch($result); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function vendor($vendor_id)\n\t{\n\t\t$this->_vendors_array('all');\n\t\t\n\t\tif (isset($this->vendors_cache[$vendor_id]))\n\t\t{\n\t\t\treturn $this->vendors_cache[$vendor_id];\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn $this->vendors_cache[1];\n\t\t}\n\t}", "public function getVendor($id) {\n try {\n...
[ "0.72453403", "0.6600764", "0.6299133", "0.6267735", "0.6171514", "0.61668396", "0.61414427", "0.6044051", "0.6036914", "0.6005247", "0.5944102", "0.5917201", "0.59106094", "0.5908154", "0.5848394", "0.58427936", "0.58005047", "0.57660264", "0.5745602", "0.572483", "0.5718053...
0.7850961
0
Load a vendor based on the passed vendor friendly name.
Загрузите поставщика на основе переданного дружественного имени поставщика.
private function LoadVendorByFriendlyName($friendlyName) { $query = " SELECT * FROM [|PREFIX|]vendors WHERE vendorfriendlyname='".$GLOBALS['ISC_CLASS_DB']->Quote($friendlyName)."' LIMIT 1 "; $result = $GLOBALS['ISC_CLASS_DB']->Query($query); return $GLOBALS['ISC_CLASS_DB']->Fetch($result); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static function vendor() {\n $file = Storange::getPathFile('vendor/autoload.php');\n if (file_exists($file)) {\n include_once $file;\n } else {\n throw new exceptions\\LoadFiles('Error to load vendor autoload. Check the composer libs', 0);\n }\n }", "p...
[ "0.6227921", "0.62190944", "0.60749084", "0.59802634", "0.5955264", "0.59233123", "0.5896874", "0.57646567", "0.5757373", "0.56738526", "0.55490035", "0.5510682", "0.5489889", "0.54622346", "0.54505336", "0.54214114", "0.54212606", "0.537454", "0.5317934", "0.5303057", "0.528...
0.7137081
0
Remember a value into the provided value property.
Запомните значение в предоставленное свойство значения.
protected function rememberValue( array $path, $value ) { $this->setValue($this->value, $path, $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setRememberToken($value) {\n dd('asd2f');\n if (! empty($this->getRememberTokenName())) {\n $this->{$this->getRememberTokenName()} = $value;\n }\n }", "public function setValue($value)\n {\n $this->_value = new Zend_Memory_Value($value, $this);\n }"...
[ "0.6398365", "0.6385415", "0.6302936", "0.6302936", "0.6302936", "0.6302936", "0.6302936", "0.6302936", "0.6302936", "0.6302936", "0.6302936", "0.6302936", "0.6288608", "0.6288608", "0.6288608", "0.6288608", "0.6288608", "0.6288608", "0.6288608", "0.6288608", "0.6288608", "...
0.7306414
0
Lists all Peserta entities.
Перечисляет все сущности Peserta.
public function indexAction() { $em = $this->getDoctrine()->getManager(); $paginator = $this->get('knp_paginator'); $query = $em->getRepository('AppBundle:Peserta')->dataAllQuery(); $pagination = $paginator->paginate( $query, $this->get('request')->query->get('page', 1), 25 ); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $entities = $em->getRepository('PruebasBundle:Paciente')->findAll();\n\n return array(\n 'entities' => $entities,\n );\n }", "public function indexAction()\n {\n $em = $this->g...
[ "0.70261055", "0.69781893", "0.6914875", "0.6900689", "0.6827159", "0.6733879", "0.6704343", "0.6655739", "0.6638931", "0.66299975", "0.65648454", "0.65525806", "0.65171635", "0.6507406", "0.65019435", "0.65000665", "0.649667", "0.6480085", "0.6453938", "0.64181656", "0.64168...
0.76476294
0
Extracts the specified stub project.
Извлекает указанный проект-заглушку.
private static function extractStubProject($filename) { //die(self::$stubDirectory . DIRECTORY_SEPARATOR . $filename); $stub_archive = new ZipArchive(); if ($stub_archive->open(self::$stubDirectory . DIRECTORY_SEPARATOR . $filename)) { $stub_archive->extractTo(self::$stubDirector...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function getProject()\n {\n $url = $this->base_uri.\"project/\".$this->project;\n $project = $this->request($url);\n return $project;\n }", "public function getProject();", "public function setUp(): void\n {\n try {\n self::extractStubProject('example_project.z...
[ "0.5373271", "0.53640515", "0.53146476", "0.51849705", "0.5161167", "0.5044851", "0.49952427", "0.49860922", "0.49542722", "0.49417424", "0.49267992", "0.4897874", "0.4879899", "0.4878462", "0.48598638", "0.48502138", "0.48323268", "0.4827383", "0.48273137", "0.48207086", "0....
0.709411
0
TODO Name validation here;
TODO Проверка имени здесь;
function _name_check($str){ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function forName();", "abstract public function get_name();", "abstract public function get_name();", "abstract public function get_name();", "abstract protected function getName();", "abstract protected function getName();", "abstract function getName();", "function getName() ;", "function ...
[ "0.77205676", "0.7173988", "0.7173988", "0.7173988", "0.7087099", "0.7087099", "0.69720787", "0.69623166", "0.69623166", "0.69623166", "0.69623166", "0.69590634", "0.6950729", "0.6950729", "0.6950729", "0.6950729", "0.6950729", "0.6950729", "0.6950729", "0.6950729", "0.695072...
0.74323785
1
Related to hotel, foreign key hotel
Связанный с отелем, внешний ключ hotel
public function hotel() { return $this->belongsTo('App\Hotel', 'hotel', 'id'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hotel()\n {\n return $this->hasOne('App\\Hotels');\n }", "public function getHotels()\n {\n return $this->hasOne(Hotel::className(), ['id_hotel' => 'id_hotels']);\n }", "public function hotels()\n {\n return $this->belongsToMany('App\\Models\\Admin\\Hotel\\Ho...
[ "0.77241504", "0.7102351", "0.65620065", "0.60426694", "0.6011123", "0.6007637", "0.6007637", "0.59874636", "0.5880807", "0.5880807", "0.5847774", "0.57336754", "0.56626666", "0.5577199", "0.55289036", "0.547391", "0.54643494", "0.54601264", "0.5436736", "0.54166824", "0.5376...
0.71797615
1
Get template by IP address
Получить шаблон по IP-адресу
public static function getTemplate(string $ip) { return DB::select("SELECT id, hotel, data, scheduled, schedule_start_time, schedule_end_time FROM `templates` WHERE hotel IN (SELECT id from hotels WHERE id IN (SELECT hotel FROM nas WHERE nasname = :ip)) AND `activated`='yes' AND `deleted_at` IS NULL ", ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTemplate();", "public function getTemplate();", "public function getTemplate();", "public function getTemplate();", "public function getTemplate();", "public function getTemplate();", "public function get($ipAddress) {}", "function get_template()\n {\n }", "function getTemp...
[ "0.6425553", "0.6425553", "0.6425553", "0.6425553", "0.6425553", "0.6425553", "0.6287556", "0.6238273", "0.6219827", "0.6211844", "0.6171897", "0.6006866", "0.6006292", "0.5945384", "0.59313905", "0.5894317", "0.58938265", "0.5857741", "0.58194596", "0.58075553", "0.58053887"...
0.7429796
0
/ exists() checks if sid cookie exists on user's computer. If so, set id.
/ exists() проверяет, существует ли cookie sid на компьютере пользователя. Если да, устанавливает id.
function exists() { $this->log .= "exists() called<br />"; if (!isset($_COOKIE['sid'])) { $this->log .= "sid cookie does not exist.<br />"; return false; } $this->id = $_COOKIE['sid']; $this->filename = $this->dir."sid_".$this->id; return true; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function exists() {\r\n\t\t$this->log .= \"exists() called<br />\";\r\n\t\tif (!isset($_COOKIE['sid'])) {\r\n\t\t $this->log .= \"sid cookie does not exist.<br />\";\r\n\t\t return false;\r\n\t\t}\r\n\t\t$this->id = $_COOKIE['sid'];\r\n\t\t$this->filename = $this->dir.\"sid_\".$this->id;\r\n\t\treturn true;\r\n\...
[ "0.7601705", "0.66602564", "0.6395188", "0.6326357", "0.6237032", "0.6062525", "0.59535915", "0.59106797", "0.59024847", "0.58806455", "0.5870061", "0.5762921", "0.57601804", "0.57526684", "0.57519096", "0.56273353", "0.56094444", "0.5602262", "0.55707526", "0.55632985", "0.5...
0.74884087
1
/ newId() generates a 40 character identifier that is extremely difficult to predict. Save to a cookie to persist between pages.
newId() генерирует идентификатор из 40 символов, который крайне трудно предсказать. Сохраните его в файл cookie для сохранения между страницами.
function newId() { $this->log .= "newId() called<br />"; $this->id = sha1(uniqid(rand(), true)); $this->filename = $this->dir."sid_".$this->id; if (!setcookie('sid' ,$this->id, null, "/", $this->domain_cookie)) { $this->log .= "sid cookie save failed. This may be due to brows...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function newId() {\r\n\t\t$this->log .= \"newId() called<br />\";\r\n\t\t$this->id = md5(uniqid(rand(), true));\r\n\t\t$this->filename = $this->dir.\"sid_\".$this->id;\r\n\t\tif (!setcookie('sid' ,$this->id, null, \"/\")) {\r\n\t\t\t$this->log .= \"sid cookie save failed. This may be due to browser\"\r\n\t\t\t.\" ...
[ "0.779311", "0.7669943", "0.7636603", "0.74520034", "0.7220279", "0.71892494", "0.71880186", "0.7143145", "0.71006465", "0.7077581", "0.7062884", "0.70077294", "0.69361633", "0.69304", "0.69249994", "0.6893161", "0.68906635", "0.6887305", "0.688591", "0.67840314", "0.67445654...
0.7872879
0
/ cleanAll() will clean up your session dir removing all 'sid_' files with a modified date older than the number of minutes passed in. This method is here as a convenience. You probably want to create a cron job that cleans this up on a daily basis.
Функция cleanAll() очистит вашу директорию сессии, удалив все файлы с именем 'sid_' с датой последнего изменения, старше, чем указанное количество минут. Этот метод предоставлен для удобства. Скорее всего, вы захотите создать крон-задачу, которая будет очищать это ежедневно.
function cleanAll($minutes = CLEAN_ALL_MINUTES) { $sessions = @scandir(SESSIONS_DIR); $sess_dir = rtrim(SESSIONS_DIR, '/').'/'; for($n=count($sessions),$i=0;$i<$n;$i++) { if($sessions[$i]!='.' && $sessions[$i]!='..') { $last_modified = @filemtime($sess_dir . $sessions...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function cleanAll($minutes) {\r\n\t\t$this->log .= \"cleanAll() called to delete sessions older than \"\r\n\t\t.$minutes.\" minutes<br />\";\r\n\t\tchdir($this->dir);\r\n\t\t$ret = shell_exec(\"find -type f -name 'sid_*' -maxdepth 1 -mmin +\".$minutes.\" -exec rm -f {} \\;\");\r\n\t}", "public static function cl...
[ "0.8157979", "0.69646955", "0.67480737", "0.6496964", "0.6470797", "0.6399761", "0.63545907", "0.63167936", "0.62228096", "0.6199423", "0.61847603", "0.61825085", "0.6163068", "0.6100363", "0.6086457", "0.6059203", "0.6040604", "0.60269076", "0.5962554", "0.5960793", "0.59602...
0.80489725
1
Returns the related page for the product
Возвращает связанную страницу для продукта
function getRelatedPage() { return $this->relatedpage; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function relatedProductsAction()\n {\n $productId = Mage::app()->getRequest()->getParam('productId');\n $relatedProducts = [];\n\n if ($productId != null) {\n $product = Mage::getModel('catalog/product')->load($productId);\n $relatedProductsId = ...
[ "0.61975974", "0.61398417", "0.6129385", "0.6117341", "0.6102854", "0.6089641", "0.6079227", "0.60752887", "0.6074358", "0.60701156", "0.60586166", "0.6048265", "0.60357964", "0.60138136", "0.59893435", "0.5917811", "0.58565104", "0.5826479", "0.5821072", "0.57659525", "0.576...
0.7069329
0