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
Gets query for [[RubricNews]].
Получает запрос для [[RubricNews]].
public function getRubricNews() { return $this->hasMany(RubricNews::className(), ['rubric_id' => 'id']); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getNews();", "public function get_news() {\n $where = array(\n 'news_status' => 1\n );\n $get_news = $this->get_all_rows(TBL_NEWS, '*', $where);\n\n return $get_news;\n }", "public function getNews()\n {\n return $this->hasMany(Image::classNam...
[ "0.59144926", "0.58300173", "0.5808574", "0.578682", "0.5731679", "0.5720944", "0.5679905", "0.56308436", "0.5527579", "0.552185", "0.5491797", "0.54669344", "0.54014945", "0.5399787", "0.5398178", "0.53744465", "0.5344901", "0.5337645", "0.53365135", "0.53306764", "0.5327086...
0.72167176
0
Determines if a given entity type has bundles.
Определяет, имеет ли заданный тип сущности пакеты.
public function entityTypeHasBundles($entity_type) { return !empty($this->getBundleInfo($entity_type)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function entity_get_bundles($entity_type) {\n return entity_toolbox_controller($entity_type)->getBundles();\n}", "public function entityTypeBundleCount($entity_type) {\n return count($this->getBundleInfo($entity_type));\n }", "public function testIsBundle()\n {\n $oOrderArticle = new oxOrderArti...
[ "0.6858517", "0.66971356", "0.6285285", "0.6135993", "0.60852104", "0.59380966", "0.5885564", "0.58103913", "0.5778621", "0.562564", "0.5581612", "0.5549324", "0.5541011", "0.5535102", "0.5477555", "0.54487175", "0.5432886", "0.5431019", "0.5428822", "0.5413484", "0.5412272",...
0.8739903
0
Retrieves the entity type bundle machine names.
Получает машинные имена пакетов типов сущностей.
public function getEntityTypeBundleMachineNames($entity_type) { return array_keys($this->getBundleInfo($entity_type)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getEntityTypeBundleInfo();", "function entity_get_bundles($entity_type) {\n return entity_toolbox_controller($entity_type)->getBundles();\n}", "protected function getEntityTypes(){\r\n $entity_types = $this->entityTypeManager->getDefinitions();\r\n \r\n return array_combin...
[ "0.6574566", "0.62750477", "0.62625617", "0.60874945", "0.59945714", "0.5804808", "0.57502425", "0.5730544", "0.571129", "0.5668714", "0.56622237", "0.56596893", "0.5486182", "0.54171914", "0.5379359", "0.5369396", "0.53215724", "0.5312184", "0.52991897", "0.5281905", "0.5280...
0.78320533
0
The entity type bundle count.
Счетчик типа сущности.
public function entityTypeBundleCount($entity_type) { return count($this->getBundleInfo($entity_type)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getNbBundles()\n {\n return $this->bundles->count();\n }", "public function count() {\n\t\treturn count( $this->_aEntities );\n\t}", "public function count() : int\n {\n return (int)$this->db->query(\"\n SELECT COUNT(*) AS total\n FROM bundles\n ...
[ "0.724436", "0.70132387", "0.6890517", "0.6792766", "0.67802083", "0.6597525", "0.65088445", "0.63819903", "0.63543195", "0.6291706", "0.62867707", "0.6258445", "0.6258445", "0.6238697", "0.6202598", "0.6178826", "0.6178081", "0.6158575", "0.61392", "0.61199194", "0.61198145"...
0.8428196
0
Lists all employee entities.
Список всех сущностей сотрудников.
public function employeesAction() { $em = $this->getDoctrine()->getManager(); $employees = $em->getRepository('AppBundle:Employee')->showEmployees(); return $this->render('employee/employee-all.html.twig', array( 'employees' => $employees, )); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function index()\n {\n $ec = new EmployeeClass;\n return $ec->getAll();\n }", "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $entities = $em->getRepository('RocketSellerTwoPickBundle:Employee')->findAll();\n\n return $this->re...
[ "0.77566874", "0.7665437", "0.759447", "0.75732803", "0.7560443", "0.7553892", "0.742212", "0.741697", "0.7327195", "0.7304179", "0.716139", "0.7120667", "0.709549", "0.70286435", "0.7016211", "0.70083654", "0.69941264", "0.6986955", "0.6977865", "0.6942553", "0.6918147", "...
0.81735957
0
Optional. The minimum allowed RSA modulus size (inclusive), in bits. If this is not set, or if set to zero, the servicelevel min RSA modulus size will continue to apply. Generated from protobuf field int64 min_modulus_size = 1 [(.google.api.field_behavior) = OPTIONAL];
Опционально. Минимально допустимый размер RSA-модуля (включительно), в битах. Если это значение не задано или установлено в ноль, будет применяться минимальный размер RSA-модуля, определённый на уровне службы. Сгенерировано из поля protobuf int64 min_modulus_size = 1 [(.google.api.field_behavior) = OPTIONAL];
public function setMinModulusSize($var) { GPBUtil::checkInt64($var); $this->min_modulus_size = $var; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getMinModulusSize()\n {\n return $this->min_modulus_size;\n }", "public function setMaxModulusSize($var)\n {\n GPBUtil::checkInt64($var);\n $this->max_modulus_size = $var;\n\n return $this;\n }", "public function getMaxModulusSize()\n {\n return...
[ "0.6905725", "0.6174213", "0.570117", "0.523396", "0.5229195", "0.5113391", "0.5084432", "0.49711037", "0.49245575", "0.47825882", "0.47633162", "0.47614995", "0.47260305", "0.4701796", "0.46176732", "0.45931166", "0.4568001", "0.45396176", "0.44612777", "0.44531748", "0.4433...
0.8038806
0
Optional. The maximum allowed RSA modulus size (inclusive), in bits. If this is not set, or if set to zero, the service will not enforce an explicit upper bound on RSA modulus sizes. Generated from protobuf field int64 max_modulus_size = 2 [(.google.api.field_behavior) = OPTIONAL];
Опционально. Максимально допустимый размер модуля RSA (включительно), в битах. Если это значение не задано или установлено в ноль, служба не будет налагать явный верхний лимит на размеры модулей RSA. Сгенерировано из поля protobuf int64 max_modulus_size = 2 [(.google.api.field_behavior) = OPTIONAL];
public function getMaxModulusSize() { return $this->max_modulus_size; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setMaxModulusSize($var)\n {\n GPBUtil::checkInt64($var);\n $this->max_modulus_size = $var;\n\n return $this;\n }", "public function setMinModulusSize($var)\n {\n GPBUtil::checkInt64($var);\n $this->min_modulus_size = $var;\n\n return $this;\n ...
[ "0.77651685", "0.60758984", "0.57006145", "0.51084566", "0.49039975", "0.48993745", "0.48474458", "0.47232297", "0.46636304", "0.46603155", "0.46591157", "0.4653052", "0.45981887", "0.4541548", "0.4539917", "0.45318967", "0.45193267", "0.44970387", "0.44959825", "0.43818384", ...
0.72106975
1
Optional. The maximum allowed RSA modulus size (inclusive), in bits. If this is not set, or if set to zero, the service will not enforce an explicit upper bound on RSA modulus sizes. Generated from protobuf field int64 max_modulus_size = 2 [(.google.api.field_behavior) = OPTIONAL];
Опционально. Максимальный допустимый размер модуля RSA (включительно), в битах. Если это значение не задано или установлено в ноль, служба не будет применять явный верхний предел для размеров модулей RSA. Сгенерировано из поля protobuf int64 max_modulus_size = 2 [(.google.api.field_behavior) = OPTIONAL];
public function setMaxModulusSize($var) { GPBUtil::checkInt64($var); $this->max_modulus_size = $var; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getMaxModulusSize()\n {\n return $this->max_modulus_size;\n }", "public function setMinModulusSize($var)\n {\n GPBUtil::checkInt64($var);\n $this->min_modulus_size = $var;\n\n return $this;\n }", "public function getMinModulusSize()\n {\n return...
[ "0.72118145", "0.6078501", "0.57022846", "0.5107281", "0.49036628", "0.48981413", "0.48478982", "0.47229466", "0.46634477", "0.46595463", "0.46588686", "0.46519506", "0.4598137", "0.45404795", "0.45385134", "0.453063", "0.4519402", "0.4498698", "0.44957766", "0.43810034", "0....
0.7766827
0
Return the number of covered elemetns.
Верните количество покрытых элементов.
public function getCoveredElementCount() : int { return $this->covered_statement_count + $this->covered_conditional_count + $this->covered_method_count; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function calcCoverage(): int\n {\n $cover = 0;\n $tiles = &$this->levelTiles->tiles;\n foreach ($this->markers as $marker) {\n [$x, $y] = $marker->xy;\n if (isset($tiles[$x][$y][1]) && $tiles[$x][$y][1]->id === 5) {\n ++$cover;\n }\n ...
[ "0.695146", "0.64949703", "0.63703084", "0.6285918", "0.62436813", "0.6177965", "0.61634994", "0.61392194", "0.6122314", "0.61082816", "0.60884714", "0.6072017", "0.6034935", "0.59978753", "0.5983216", "0.59729856", "0.59322345", "0.5908647", "0.5869075", "0.58462137", "0.583...
0.8051635
0
The S3 backend does not have a filter for file_exists functionality, so it depends on the general WPRO fallback.
Бэкенд S3 не имеет фильтра для функциональности file_exists, поэтому он зависит от общего WPRO-запасного варианта.
function testFileExists() { // This test just makes sure the filter returns null, which means it should do the fallback. However, the fallback is not tested here. wpro()->backends->activate_backend('Amazon S3'); $exists = apply_filters('wpro_backend_file_exists', null, 'http://example.org/2015/01/test.png'); $t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function filesMustExist();", "function checkExists($filename)\n {\n $file = $this->prefix . $filename;\n $s3 = Aws::factory($this->config)->get('s3');\n return $s3->doesObjectExist($this->bucket, $file);\n }", "function file_exists($filename)\n{\n\treturn false;\n}", "functi...
[ "0.65395755", "0.639318", "0.6319861", "0.627717", "0.6230239", "0.61134785", "0.6001331", "0.59860605", "0.5899061", "0.5890853", "0.5890071", "0.58513373", "0.5799865", "0.5781888", "0.5781888", "0.57734644", "0.57050794", "0.5705065", "0.56917614", "0.56917614", "0.5688256...
0.7791778
0
Returns a clearfloat HTML snip
Возвращает чистый HTML-фрагмент float
public static function clearfloat() { Yii::app()->clientScript->registerCss('P2Helper.clearfloat','.clearfloat{ clear:both; height:0; font-size: 1px; line-height: 0px; }'); return "<div class='clearfloat'></div>"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function cr_clear()\n\t{\n\t\t$out = '<div class=\"cr-clear\"></div>';\n\t\treturn $out;\n\t}", "static public function divClear(){\n echo '<div class=\"clear\"\"></div>';\n }", "protected function getHtmlNull()\n {\n return '<pre>NULL</pre>';\n }", "protected function html() {\n\t\tre...
[ "0.67001253", "0.6474839", "0.6332038", "0.63120323", "0.63120323", "0.63120323", "0.6148687", "0.6101046", "0.6079352", "0.59663516", "0.5932774", "0.58830285", "0.5876807", "0.5840708", "0.5839412", "0.58140135", "0.57495224", "0.5744983", "0.5740849", "0.5737316", "0.57332...
0.8100286
0
Finds a module by id, returns 'p2' if no id given
Находит модуль по идентификатору, возвращает 'p2', если идентификатор не задан
public static function findModule($id = null) { if ($id === null) $id = self::MODULE_NAME; return Yii::app()->findModule($id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function findModule($id)\n\t{\n\t\tif(($controller=$this->getController())!==null && ($module=$controller->getModule())!==null)\n\t\t{\n\t\t\tdo\n\t\t\t{\n\t\t\t\tif(($m=$module->getModule($id))!==null)\n\t\t\t\t\treturn $m;\n\t\t\t} while(($module=$module->getParentModule())!==null);\n\t\t}\n\t\tif(($m=$th...
[ "0.7675615", "0.73585", "0.69570524", "0.68722856", "0.6803015", "0.67217183", "0.64714426", "0.64276475", "0.64224315", "0.6418427", "0.63563365", "0.62678236", "0.626005", "0.6241067", "0.6208223", "0.61905795", "0.61862063", "0.61763436", "0.614445", "0.6113107", "0.610683...
0.7453731
1
Retrieves $_POST variable by array values
Получает переменную $_POST по значениям массива
public static function getPostVar($array) { switch(count($array)) { case 0: $msg = "Unable to determine POST vars!"; throw new Exception($msg); break; case 1: $return = $_POST[$array[0]]; break; c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function cr_get_array_from_POST($key)\n{\n\t$result = array();\n\t$values = $_POST[$key];\n\tforeach ($values as $value) {\n\t\t$result[] = $value;\n\t}\n\treturn $result;\n}", "public function getPost($value='') {\n return ($value == '') ? $_POST : $_POST[$value];\n }", "function post($key){\n ...
[ "0.6965111", "0.69444823", "0.69044006", "0.68204427", "0.6691269", "0.66839284", "0.6572434", "0.6533471", "0.6527404", "0.6507112", "0.6494137", "0.64731944", "0.6454628", "0.64305645", "0.6359856", "0.6313689", "0.6309497", "0.6285551", "0.6269199", "0.626118", "0.6257984"...
0.70139253
0
Adds support for the WordPress 'customheader' theme feature and registers custom headers.
Добавляет поддержку функции WordPress 'customheader' и регистрирует пользовательские заголовки.
function w4ptheme_custom_header_setup() { add_theme_support( 'custom-header', array( 'default-image' => '', 'random-default' => false, 'width' => 1280, 'height' => 400, 'flex-width' => true, 'flex-height' => true, 'heade...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function wpo_custom_header_setup() {\n /**\n * Filter Twenty Fourteen custom-header support arguments.\n *\n * @since Twenty Fourteen 1.0\n *\n * @param array $args {\n * An array of custom-header support arguments.\n *\n * @type bool $header_text Whether to display custom hea...
[ "0.8223232", "0.81122184", "0.79611725", "0.7928084", "0.78955877", "0.7780384", "0.76977473", "0.76077163", "0.74667335", "0.73673767", "0.7273176", "0.72201043", "0.7114443", "0.7112139", "0.7098685", "0.7098354", "0.7028856", "0.69865394", "0.6973265", "0.6971825", "0.6937...
0.8138355
1
Callback function for outputting the custom header CSS to `wp_head`.
Функция обратного вызова для вывода кастомного CSS заголовка в `wp_head`.
function w4ptheme_custom_header_wp_head() { if ( ! display_header_text() ) { return; } $hex = get_header_textcolor(); if ( ! $hex ) { return; } $style = "body.custom-header #site-title a { color: #{$hex}; }"; echo "\n" . '<style type="text/css" id="custom-header-css">' . esc_html( trim( $style ) ) . '</...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function head_css() {\r\n\r\n\t\tglobal $data;\r\n\r\n\t\t$output = '';\r\n\t\t\r\n\t\t$custom_css = $data['custom_css'];\r\n\t\t\r\n\t\tif ($custom_css <> '') {\r\n\t\t\t$output .= $custom_css . \"\\n\";\r\n\t\t}\r\n\t\t\r\n\t\t// Output styles\r\n\t\tif ($output <> '') {\r\n\t\t\t$output = \"<!-- Custom Styling ...
[ "0.78723997", "0.77426934", "0.7717478", "0.7651154", "0.7436728", "0.74191785", "0.7364968", "0.7358153", "0.7331597", "0.72673047", "0.72112656", "0.7157266", "0.7094987", "0.7089266", "0.7082801", "0.70644635", "0.7059461", "0.70139855", "0.7008724", "0.6998029", "0.699463...
0.82597667
0
Return default copyright field text.
Вернуть текст поля по умолчанию "авторские права".
public function get_default_copyright() { return sprintf( esc_html__( 'Copyright © %d. %s. All Rights Reserved.', 'w4ptheme' ), date( 'Y' ), get_bloginfo( 'name' ) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function start_get_copyright_text() {\n\t$copyright_text = get_field( 'copyright_text', 'option' );\n\t// Replace [year] with the year.\n\t$copyright_text = str_replace( '[year]', date( 'Y' ), $copyright_text );\n\treturn $copyright_text;\n}", "public function copyright_callback() {\n\t\t?>\n\t\t<div class=\"w4p...
[ "0.79768765", "0.7305704", "0.7177782", "0.7177782", "0.7174993", "0.71328837", "0.71229285", "0.7116132", "0.70709795", "0.69358873", "0.6879632", "0.6799877", "0.67802745", "0.67332244", "0.6728104", "0.6728104", "0.6728104", "0.6728104", "0.6728104", "0.6722721", "0.672185...
0.7695846
1
/ Method to return the last occurrence of a substring within a string
Метод для возвращения последнего вхождения подстроки внутри строки
function last_index_of($sub_str,$instr) { if(strstr($instr,$sub_str)!="") { return(strlen($instr)-strpos(strrev($instr),$sub_str)); } return(-1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function lastIndexOf(string $string)\n {\n return strrpos($this->_content, $string);\n }", "public function lastIndexOf($string){\n\t\tif (is_object($string) && $string instanceof Customweb_Core_String) {\n\t\t\t$string = $string->convertTo($this->getCharset());\n\t\t}\n\t\treturn $this->getC...
[ "0.7512298", "0.7367442", "0.72743255", "0.7060898", "0.7060898", "0.69271886", "0.6838302", "0.68128514", "0.68055165", "0.67803353", "0.675341", "0.6752113", "0.6744634", "0.66752976", "0.66131157", "0.66031414", "0.65876836", "0.6568287", "0.6544374", "0.6469237", "0.64603...
0.7977743
0
function This method defines, if the hypergate needs to be included for this request.
функция Этот метод определяет, нужно ли включать гипервентиль для этого запроса.
public static function needs_hypergate() { return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static function has_enabled_additional_gateways()\n {\n }", "public static function has_gateways()\n {\n }", "function canHandleRequest() ;", "public function isEndpointRequested() : bool;", "public static function is_requested()\n {\n }", "public functio...
[ "0.6697458", "0.62316537", "0.622705", "0.6122181", "0.6050328", "0.60443485", "0.602339", "0.5977858", "0.5977858", "0.5977858", "0.5977858", "0.5865124", "0.5854373", "0.5829296", "0.58189183", "0.57980585", "0.57950467", "0.5790497", "0.57880646", "0.57667387", "0.5756057"...
0.7329863
0
Fetch the internal fieldset.
Извлечь внутреннее поле.
public function getFieldset() { return $this->fieldset; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFieldsets($getField = false)\n {\n $this->fieldset = array();\n $result = self::$driver->query(\" SELECT * \"\n . \" FROM \".self::$table_fieldset\n . \" WHERE ...
[ "0.65303224", "0.6390399", "0.6336714", "0.62990755", "0.6286167", "0.62735575", "0.627331", "0.6267038", "0.6157846", "0.61358553", "0.60495394", "0.60112065", "0.6001162", "0.5896892", "0.58804923", "0.5871192", "0.5867787", "0.5844958", "0.583637", "0.5832287", "0.58176327...
0.74459875
0
Sort array of entities in ascending order based on the given property
Сортировать массив сущностей в порядке возрастания по заданному свойству
private function sortAscending(array &$entities, string $property): void { usort($entities, function($entityA, $entityB) use ($property) { return $entityA->{$property} <=> $entityB->{$property}; }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function array_sort_by_property($array, $key) {\n if(empty ($array)) return $array;\n\n $final_sorted_array = array();\n $key_array = array();\n\n for ($i = 0 ; $i < count($array) ; $i++) {\n $key_array[$i] = $array[$i]->{$key};\n ...
[ "0.675521", "0.6619765", "0.6590064", "0.63448477", "0.6341168", "0.62786007", "0.6194895", "0.6189013", "0.61668843", "0.6058951", "0.6038172", "0.60030633", "0.5995882", "0.5973803", "0.59737813", "0.59737813", "0.5937562", "0.590816", "0.58792156", "0.5878214", "0.5847589"...
0.73115295
0
Sort array of entities in descending order based on the given property
Сортировать массив сущностей в порядке убывания по заданному свойству
private function sortDescending(array &$entities, string $property): void { usort($entities, function($entityA, $entityB) use ($property) { return $entityB->{$property} <=> $entityA->{$property}; }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function sortDesc(){\n\n usort($this->Results, array('arrayResults', 'sortResultDesc'));\n }", "abstract public function getOrderByDesc() ;", "function descending_sort(DatastoreClient $datastore)\n{\n // [START descending_sort]\n $query = $datastore->query()\n ->kind('Task')\n ...
[ "0.6305585", "0.6154013", "0.6066055", "0.57591414", "0.5719242", "0.5716573", "0.56776106", "0.566698", "0.5662546", "0.56394243", "0.5636819", "0.56325287", "0.5606843", "0.5592246", "0.5581835", "0.5567922", "0.5561989", "0.5540196", "0.55331475", "0.5532559", "0.5503394",...
0.7453939
0
Add to job list appointment reminder
Добавить в список задач напоминание о встрече
public function regularAppointmentReminder() { $command = 'task:appointment:reminder'; $this->addRegularJob($command); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function regularAppointmentAutoReminder()\r\n {\r\n $command = 'task:appointment:reminder:auto';\r\n $this->addRegularJob($command);\r\n }", "function addReminderSchedule() {\n //echo $this->value('reminder_set');\n if ($this->value('patient_id') != \"\" && $this->value('...
[ "0.66057575", "0.6470599", "0.60472673", "0.6000309", "0.59866726", "0.58705634", "0.5827722", "0.5771401", "0.5764176", "0.57166404", "0.5649111", "0.5545858", "0.5531203", "0.55164266", "0.54245543", "0.5408093", "0.53870606", "0.5381558", "0.5351181", "0.5328094", "0.52898...
0.7188809
0
Add to job list appointment auto reminder
Добавить в список задач автоматическое напоминание о встрече
public function regularAppointmentAutoReminder() { $command = 'task:appointment:reminder:auto'; $this->addRegularJob($command); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function regularAppointmentReminder()\r\n {\r\n $command = 'task:appointment:reminder';\r\n $this->addRegularJob($command);\r\n }", "function addReminderSchedule() {\n //echo $this->value('reminder_set');\n if ($this->value('patient_id') != \"\" && $this->value('scheduled...
[ "0.7425856", "0.65425426", "0.61210376", "0.60625994", "0.6030722", "0.60131", "0.5985773", "0.5922539", "0.58533096", "0.57861704", "0.56991374", "0.5579013", "0.5532399", "0.55134255", "0.55079275", "0.55069554", "0.54982936", "0.54794395", "0.54744124", "0.54723436", "0.54...
0.7491378
0
Add to job list appointment completion
Добавить в список задач завершение назначения
public function regularAppointmentComplete() { $command = 'task:appointment:complete'; $this->addRegularJob($command); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function finish()\n {\n parent::finish();\n\n $columns = $this->get_argument( 'columns', array() );\n if( array_key_exists( 'completed', $columns ) && 1 == $columns['completed'] )\n {\n $appointment_class_name = lib::create( 'database\\appointment' );\n $appointment_mod = lib::create(...
[ "0.60463345", "0.5902153", "0.57574797", "0.57463175", "0.5631887", "0.56041515", "0.55962896", "0.552891", "0.5506175", "0.54659235", "0.54494244", "0.5436523", "0.5433661", "0.541522", "0.537317", "0.5372194", "0.53713036", "0.5361356", "0.5348159", "0.526084", "0.521923", ...
0.7486366
0
Add to job list update appointment's video status
Добавить в список задач обновление статуса видео встречи
public function updateVideoStatuses() { $command = 'task:appointment:video:status:update'; $queue = 'update_video_status'; $max = 10; $i = 0; try { while ($i < $max && ($redisJob = Resque::reserve($queue))) { $videoPath = $redisJob->get...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function status_update($videoId,$status,$feaStatus)\n {//function for updating status of playlist starts\n if(isset($status))\n {\n $result = $this->_wpdb->update( $this->_videotable, array('publish' => $status), array( 'vid' => $videoId ));\n }\n ...
[ "0.63711077", "0.6211495", "0.60769624", "0.5875178", "0.5858636", "0.5791259", "0.5743662", "0.5719093", "0.5650929", "0.5559109", "0.5528104", "0.55257666", "0.5499912", "0.54780555", "0.5475203", "0.54281557", "0.5379166", "0.5376652", "0.5349969", "0.5333733", "0.53059876...
0.74171346
0
Form for adding mapping organizerlibrary.
Форма для добавления отображения организаторской библиотеки.
function thisted_event_import_add_mapping($form, $form_state) { $libraries = thisted_event_import_get_not_mapped_libraries(); $form['add_organizer_mapping'] = array( '#type' => 'fieldset', '#title' => t('Add organizer mapping to library.'), '#collapsible' => FALSE, '#collapsed' => TRUE, ); $fo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function _thisted_event_import_add_mapping_submit($form, $form_state) {\n $values = $form_state['values'];\n $mapped_libraries = variable_get('mapped_libraries', array());\n\n $mapped_libraries[$values['library_id']] = $values['events_uri'];\n\n variable_set('mapped_libraries', $mapped_libraries);\n\n drupal_...
[ "0.6370599", "0.62014955", "0.5748663", "0.55234164", "0.54849935", "0.54781175", "0.5471814", "0.5432854", "0.5385467", "0.5369835", "0.53327274", "0.53118956", "0.53019464", "0.5272395", "0.5257743", "0.52571976", "0.5254366", "0.52541244", "0.525006", "0.52401656", "0.5235...
0.72208124
0
Get not mapped libraries.
Получить неотображаемые библиотеки.
function thisted_event_import_get_not_mapped_libraries() { $all_libraries = thisted_events_import_get_libraries(); $mapped_libraries = variable_get('mapped_libraries', array()); $not_mapped = array_diff_key($all_libraries, $mapped_libraries); return $not_mapped; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function getLibraries(): array\n {\n return array_map(\n function ($library) {\n $library = array_merge(\n [\n 'homepage' => null,\n 'version' => null,\n ],\n $library...
[ "0.65175843", "0.63858145", "0.6249405", "0.6221675", "0.62167376", "0.6201149", "0.61681527", "0.6010259", "0.5979717", "0.59211016", "0.5838687", "0.5819433", "0.57798576", "0.577159", "0.5743936", "0.5720761", "0.56990457", "0.568223", "0.55556494", "0.55293673", "0.552184...
0.7849398
0
Returns post by Id
Возвращает пост по Id
public function getPostById($id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPostByID($id);", "abstract public function getPost($id);", "public function findPost($id);", "public function getPost($id) {\n return Post::find($id);\n }", "public function findPostById($id)\n {\n return Post::find($id);\n }", "public function getPostById($id) {\n $q...
[ "0.8788931", "0.8397108", "0.8367551", "0.8266247", "0.8099256", "0.80325645", "0.79719365", "0.7932251", "0.78658944", "0.78451025", "0.78213495", "0.7819652", "0.78184575", "0.77492756", "0.76362836", "0.7622327", "0.76222855", "0.75783163", "0.75729084", "0.7560154", "0.75...
0.8810421
1
Returns posts by Ids
Возвращает посты по Ids
public function getPostsByIds(array $ids);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getByPostIds($ids)\n {\n return $this->model->whereIn('post_id', $ids);\n }", "public function findPost($id);", "public function fetchAllByPostId($postId);", "public function getPostByID($id);", "public function getPostById($id);", "public function getPostById($id);", "publ...
[ "0.7217142", "0.71304953", "0.70126367", "0.6994413", "0.69828826", "0.69828826", "0.689367", "0.6837849", "0.67245245", "0.6622909", "0.6603111", "0.65920705", "0.65796703", "0.6571006", "0.6501446", "0.64974445", "0.6476098", "0.6443766", "0.6428271", "0.6425921", "0.637648...
0.7490936
0
Returns posts by query
Возвращает посты по запросу
public function getPosts(PostQuery $postQuery);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function woodmart_get_posts_by_query() {\n\t\t$search_string = isset( $_POST['q'] ) ? sanitize_text_field( wp_unslash( $_POST['q'] ) ) : ''; // phpcs:ignore\n\t\t$post_type = isset( $_POST['post_type'] ) ? $_POST['post_type'] : 'post'; // phpcs:ignore\n\t\t$results = array();\n\n\t\t$query = new WP_Query...
[ "0.7606111", "0.7365062", "0.7318926", "0.72645265", "0.71599674", "0.71476", "0.7076496", "0.70121497", "0.698732", "0.69674635", "0.6952175", "0.6878908", "0.6859318", "0.68543833", "0.68262297", "0.6821471", "0.6820357", "0.6817386", "0.6798142", "0.6790972", "0.67737246",...
0.7925112
0
Show tours for selected guide
Показать туры для выбранного гида
public function guide_tours($id) { $guide = Guide::find($id); $tours = $guide->tours->where('tour_time', '>', now()); return view('admin/guide_tours', compact('guide', 'tours')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show(Guide $guide)\n {\n \n }", "public function show(Guide $guide)\n {\n //\n }", "public function show(Tourguide $tourguide)\n { $data = ['LoggedUserInfo'=>user::where('id','=', session('LoggedUser'))->first()];\n $tourguidelist = Tourguide::paginate(5);\n ...
[ "0.65547466", "0.651973", "0.6255133", "0.61298317", "0.59796363", "0.5956666", "0.58914405", "0.58911705", "0.5887699", "0.58809215", "0.58690506", "0.579726", "0.5794854", "0.5786784", "0.57715166", "0.57689196", "0.5754", "0.5628497", "0.55689865", "0.55657876", "0.5565028...
0.7264184
0
Show details for a selected booker
Показать детали для выбранного книжного издателя
public function booker_details() { $bookers = User::where('type', 'booker')->get(); return view('admin/booker_details', compact('bookers')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show(book $book)\n {\n //\n }", "public function show(book $book)\n {\n //\n }", "public function show(book $book)\n {\n //\n }", "public function show(Book $book)\n {\n \n }", "public function show(Book $book)\n {\n //\n }", ...
[ "0.72299397", "0.72299397", "0.72299397", "0.7164678", "0.70861953", "0.70861953", "0.70861953", "0.70861953", "0.70861953", "0.70861953", "0.70861953", "0.70861953", "0.70861953", "0.70861953", "0.70861953", "0.7026848", "0.67790616", "0.6714998", "0.66960555", "0.6641838", ...
0.7621832
0
/ check for too long running crons and remove old jobs
Проверить наличие слишком долгих cron-задач и удалить старые задания
public function cleanup() { // old active crons $sql = "SELECT *, CONCAT(SUBSTRING(`arguments`,1,100), '...') AS 'arguments_short' FROM `".$this->table."` WHERE (`status` = 'starting' OR `status` = 'running') AND `start_from` < %d;"; $active_expiration = time() - (60*15); // 15 minutes - 3 cron executions $still_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function check_schedules_to_run() {\n\t\t$cron_time_running = time() - get_option('lepress-cron-is-running', 0);\n\t\tif(($jobs = $this->getJobs()) && $cron_time_running > 10) {\n\t\t\tforeach($jobs as $schedule_obj) {\n\t\t\t\tif($schedule_obj->scheduled_time <= time()) {\n\t\t\t\t\t$deleted = $this->delete_sched...
[ "0.7424282", "0.73579717", "0.7243177", "0.71568227", "0.7088831", "0.69640034", "0.69264424", "0.6921787", "0.68474364", "0.67898667", "0.6623177", "0.64276034", "0.6382986", "0.6326224", "0.6296254", "0.6290599", "0.6274948", "0.6274948", "0.6274948", "0.62598217", "0.62475...
0.7850429
0
Constructor method for ExportSurveyWithHTMLRemovedResponse
Конструктор метода ExportSurveyWithHTMLRemovedResponse
public function __construct($exportSurveyWithHTMLRemovedResult = null) { $this ->setExportSurveyWithHTMLRemovedResult($exportSurveyWithHTMLRemovedResult); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __construct($surveyArray)\n {\n $this->_isComplete = @$surveyArray['surveySaveDate'] != '0000-00-00 00:00:00';\n $this->_dateTime = new DateTime(@$surveyArray['surveySaveDate']);\n $this->_qa = new ArrayObject();\n\n $lastId = -1;\n $answers = array();\n ...
[ "0.54057556", "0.5381399", "0.5381399", "0.52256685", "0.5211785", "0.5205449", "0.5185994", "0.50236964", "0.49834624", "0.4947592", "0.49471703", "0.49113566", "0.49113566", "0.4877864", "0.4877864", "0.48031852", "0.4781693", "0.4758202", "0.47481862", "0.47385955", "0.473...
0.7713811
0
result_array Subclass implementation returns the result set as a numeric array.
result_array Реализация подкласса возвращает набор результатов в виде числового массива.
abstract public function result_array();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract function getArrayResult( Database_QueryResult $oQResult );", "protected function initializeResultArray() : array {}", "function getResultArray(){\n\t\treturn $this->data;\n\t}", "public function asArray(): array\n {\n return $this->result;\n }", "public function asArray()\n ...
[ "0.73218554", "0.72587615", "0.72463393", "0.71943885", "0.7189445", "0.7071379", "0.6880119", "0.6880119", "0.6869507", "0.6810849", "0.6808057", "0.6730109", "0.67261", "0.6715237", "0.66853416", "0.66641986", "0.66493523", "0.6628966", "0.66216743", "0.66216743", "0.662167...
0.8012949
0
result_assoc Subclass implementation returns the result set as an associative array.
result_assoc Реализация подкласса возвращает набор результатов в виде ассоциативного массива.
abstract public function result_assoc();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function result_array()\n\t{\n\t $this->dataassoc= array();\n\n\t if($this->source)\n\t {\n\t\t foreach($this->source as $rs)\n\t\t {\n\t\t\t $this->dataassoc[] = $rs;\n\t\t }\n\t }\n\n\t return $this->dataassoc;\n\t}", "public function fetchAssocResult()\n {\n $aResults = ar...
[ "0.77917457", "0.7522971", "0.7283523", "0.72720927", "0.71568984", "0.7153121", "0.71464294", "0.70897317", "0.69773346", "0.69697475", "0.69586873", "0.69430935", "0.69119644", "0.6883314", "0.6847915", "0.68359697", "0.6835318", "0.6818549", "0.6802968", "0.67990905", "0.6...
0.85289973
0
Increments last index in the path of filter
Увеличивает последний индекс в пути фильтра
protected function incrementCurrentFilterPath() { $start = strrpos($this->currentFilterPath, '['); $index = substr( $this->currentFilterPath, $start + 1, strlen($this->currentFilterPath) - $start - 2 ); $this->cu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getNextIndex() {}", "public function nextIndex() {}", "public function testFilterLastIndex(): void\n {\n $result = (new JSONPath(['first', 'second', 'third', 'fourth', 'fifth']))\n ->find('$[-1]');\n\n self::assertEquals(['fifth'], $result->getData());\n }", "fu...
[ "0.61135364", "0.58235395", "0.55338895", "0.5495124", "0.5483203", "0.5447918", "0.54236203", "0.54063344", "0.5201753", "0.5193952", "0.51884794", "0.51788455", "0.5174224", "0.51650167", "0.516397", "0.515777", "0.5134112", "0.5113724", "0.5064874", "0.5030971", "0.5015773...
0.7776402
0
Gets a datagrid column frontend type for the given field type
Получает тип фронтенд-колонки датагрида для заданного типа поля
protected function getFrontendFieldType($fieldType) { switch ($fieldType) { case 'integer': case 'smallint': case 'bigint': return PropertyInterface::TYPE_INTEGER; case 'decimal': case 'float': return PropertyInterfa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getType() : IColumnComponentType;", "function zen_field_type($tbl, $fld) {\n global $db;\n $rs = $db->MetaColumns($tbl);\n $type = $rs[strtoupper($fld)]->type;\n return $type;\n }", "public function getFieldType()\n {\n return $this->fieldType;\n }", "public function...
[ "0.7092602", "0.69943357", "0.685982", "0.68546504", "0.67788523", "0.6751038", "0.6743746", "0.67376727", "0.6698404", "0.6691973", "0.65718085", "0.6500747", "0.64783114", "0.6454151", "0.6449099", "0.6444936", "0.6427332", "0.6417085", "0.6407229", "0.6385315", "0.63827", ...
0.70359206
1
Get filter type for given field type
Получить тип фильтра для заданного типа поля
protected function getFilterType($fieldType) { switch ($fieldType) { case 'integer': case 'smallint': case 'bigint': case 'decimal': case 'float': return 'number'; case 'boolean': return PropertyInterface...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFilteredType();", "function acf_get_field_type($name) {}", "protected function getFilterFormType()\n {\n return sprintf('%s_filter', $this->action->getAdministration()->getNameLowerCase());\n }", "public function getFilterClass($type)\r\n\t{\r\n\t\treturn '\\Engine\\Db\\Filter...
[ "0.7578055", "0.71393293", "0.68563956", "0.6779456", "0.6755904", "0.66924715", "0.6690139", "0.66418844", "0.65277857", "0.65214026", "0.65020406", "0.6451216", "0.6446814", "0.64149314", "0.6414636", "0.64142674", "0.64142674", "0.64142674", "0.64040697", "0.6313496", "0.6...
0.72016627
1
register_js : enregistre le JS $key
register_js : зарегистрирует JS $key
public function register_js ($key, $src = null) { return $this->register('js', $key, $src); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function registerClientScript($js, $key = null)\n {\n $view = $this->getView();\n PellAsset::register($view);\n $view->registerJs($js, View::POS_END, $key);\n }", "final protected function addJavascript($key, $source) {\n\t\t$this->js_includes[$key] = $source;\n\t}", "publi...
[ "0.70772344", "0.6994599", "0.6922348", "0.67725307", "0.651955", "0.64191794", "0.6393096", "0.63588697", "0.6313164", "0.6312665", "0.631053", "0.62860525", "0.62452245", "0.62070197", "0.61675006", "0.6149144", "0.61401284", "0.6132434", "0.61318547", "0.61226565", "0.6114...
0.7323276
0
register_head : enregistre le head $key
register_head : регистрирует head $key
public function register_head ($key, $src = null) { return $this->register('heads', $key, $src); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function add_head($head){\n\t\t\n\t\t$this->data['head'] .= $head;\n\t\t\n\t}", "public function set_head($head)\n\t{\n\t\t\t$this->head = $head;\n\t}", "function addHead($head) {\r\n\t\t$regex = \"#([<]!--%HEAD%--[>])#\";\r\n\t\t$this->template = preg_replace($regex,$head.\"\\n<!--%HEAD%-->\",$this->template)...
[ "0.7214932", "0.65563166", "0.65201354", "0.64128953", "0.6389769", "0.6387589", "0.6249856", "0.62198335", "0.6201366", "0.6166577", "0.616452", "0.61370635", "0.61292857", "0.6103324", "0.6088705", "0.6075963", "0.60347456", "0.60142076", "0.6013849", "0.6008901", "0.599823...
0.768616
0
register_foot : enregistre le foot $key
register_foot : регистрирует фут $key
public function register_foot ($key, $src = null) { return $this->register('foots', $key, $src); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function p_foot(){}", "public function unregister_foot ($key)\n {\n return $this->unregister('foots', $key);\n }", "protected function footerRegisterFields(){\n\t\t\n\t}", "public static function addToFoot($code)\n {\n static::$foot[] = $code;\n }", "function control_panel__add_to...
[ "0.6738134", "0.64230746", "0.6052581", "0.59551305", "0.5781924", "0.5725058", "0.5711631", "0.5655517", "0.5636109", "0.5592892", "0.554753", "0.5534807", "0.5532238", "0.551599", "0.550088", "0.5479979", "0.5445361", "0.5440313", "0.54208314", "0.54146093", "0.5398162", ...
0.73780274
0
unregister_css : supprime la CSS $key du head
unregister_css : удаляет CSS $key из head
public function unregister_css ($key) { return $this->unregister('css', $key); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function wp_deregister_style($handle)\n{\n}", "function removeStylesheet($pattern)\n{\n $keys = array_keys($this->stylesheets);\n foreach ($keys as $key) {\n if (preg_match($pattern, $key))\n unset ($this->stylesheets [$key]);\n }\n}", "function remove_grunion_style() {\n\t\twp_dereg...
[ "0.6453953", "0.6417822", "0.6409344", "0.6371502", "0.6351699", "0.6344129", "0.62612045", "0.62137896", "0.61975056", "0.6153245", "0.6128524", "0.61191154", "0.60859984", "0.6064554", "0.6050224", "0.60192585", "0.6018601", "0.6013863", "0.60079753", "0.59740394", "0.59716...
0.775059
0
unregister_js : supprime le JS $key du head
unregister_js : удаляет JS $key из head
public function unregister_js ($key) { return $this->unregister('js', $key); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function clear_js(){\n\t\t\n\t\t$this->data['js'] = '';\n\t\t\n\t}", "function removeJs($pattern = '.*')\n{\n $keys = array_keys($this->jsfiles);\n foreach ($keys as $key) {\n if (preg_match(\"/$pattern/i\", $key))\n unset ($this->jsfiles [$key]);\n }\n}", "function nzf_js_alter(&$ja...
[ "0.6708173", "0.6662572", "0.66545236", "0.64491206", "0.6391858", "0.62384284", "0.61594015", "0.61516654", "0.61331713", "0.60868204", "0.6065128", "0.6045194", "0.6040527", "0.5954769", "0.5933447", "0.5930955", "0.5908155", "0.5869309", "0.580808", "0.57793784", "0.575899...
0.816653
0
unregister_head : supprime le head $key du head
unregister_head : удаляет head $key из head
public function unregister_head ($key) { return $this->unregister('heads', $key); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function remove( $key ) {\n\t$headers = H\\Header::instance();\n\n\t$headers->remove( $key );\n}", "public function remove_header($key)\n {\n }", "public function remove_header($key)\n {\n }", "public function removeHttpMeta($key)\n\t{\n\t\tunset($this->httpMeta[$key]);\n\t}", "public function ...
[ "0.68135613", "0.6779626", "0.6779626", "0.663263", "0.66182977", "0.63729775", "0.62068784", "0.6160048", "0.61312234", "0.61193424", "0.611756", "0.611756", "0.611756", "0.611756", "0.611756", "0.611756", "0.611756", "0.611756", "0.611756", "0.611756", "0.611756", "0.6117...
0.83453417
0
unregister_foot : supprime le foot $key du head
unregister_foot : удаляет foot $key из head
public function unregister_foot ($key) { return $this->unregister('foots', $key); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function unregister_head ($key)\n {\n return $this->unregister('heads', $key);\n }", "function remove( $key ) {\n\t$headers = H\\Header::instance();\n\n\t$headers->remove( $key );\n}", "public function register_foot ($key, $src = null)\n {\n return $this->register('foots', $key, $...
[ "0.69673944", "0.623814", "0.61860204", "0.6104833", "0.6104833", "0.5915266", "0.5878967", "0.58520114", "0.5811085", "0.5722004", "0.5683589", "0.5663002", "0.5643398", "0.5582367", "0.5555207", "0.55471784", "0.55419534", "0.5538656", "0.5533908", "0.55246973", "0.5515974"...
0.8230463
0
Add the "User Registration" trigger to specific actions
Добавьте триггер "Регистрация пользователя" в конкретные действия
public static function add_trigger_to_action( $options ) { $options['event'][] = 'user_registration'; return $options; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function actionRegistration() {\n\t\tif( $this->user->isLoggedIn()){ $this->redirect('Profil:default'); }\n\t\t\n\t\t\n\t}", "public function signupAction()\n\t{\n\t}", "public static function add_registration_trigger( $triggers ) {\n\t\t$triggers['user_registration'] = __( 'Successful user registration', 'frm...
[ "0.67605525", "0.67407596", "0.67246664", "0.66613454", "0.6626963", "0.66132855", "0.6594289", "0.65631396", "0.63949907", "0.6388923", "0.63810784", "0.63496447", "0.6320537", "0.63075936", "0.6277792", "0.62672263", "0.623668", "0.6216726", "0.62066126", "0.6184396", "0.61...
0.702951
0
Add a new row of user meta
Добавить новую строку метаданных пользователя
public static function add_user_meta_row() { $meta_name = $meta_key = absint( $_POST['meta_name'] ); $form_id = absint( $_POST['form_id'] ); $field_id = 0; $echo = false; $fields = self::get_user_meta_fields( $form_id ); // Set action ID $action_control = FrmFormActionsController::get_form_actions( 're...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function insert_User_Meta($data){\n\t\treturn UserMeta::insert($data);\n }", "function add_user_meta($user_id, $meta_key, $meta_value, $unique = \\false)\n{\n}", "function learn_press_add_user_item_meta( $user_item_id, $meta_key, $meta_value, $prev_value = '' ) {\n\treturn add_metadata( 'learnpress_u...
[ "0.7138335", "0.6967782", "0.6606692", "0.6606692", "0.6570318", "0.65311456", "0.650011", "0.6473709", "0.6449126", "0.63860685", "0.627112", "0.6259295", "0.61852026", "0.61799496", "0.6148392", "0.6129169", "0.6123073", "0.6116421", "0.6023407", "0.60031134", "0.59746706",...
0.82543623
0
Check if an imported action is a registration action
Проверьте, является ли импортированное действие действием регистрации
private static function is_imported_registration_action( $action ) { return isset( $action['post_excerpt'] ) && $action['post_excerpt'] === 'register'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function hasAction($action);", "function action_exists($name)\n{\n return Plugins::instance()->action_exists($name);\n}", "function action_exists($name)\n{\n\treturn Hooks::action_exists($name);\n}", "private static function imported_action_needs_migration( $action ) {\n\t\t$settings = FrmAppHelper::maybe...
[ "0.6708266", "0.66675335", "0.6371453", "0.6338205", "0.62673134", "0.62348634", "0.6175635", "0.61436415", "0.6129331", "0.60235965", "0.5988688", "0.5959438", "0.59424263", "0.59294176", "0.58478874", "0.5845416", "0.5815089", "0.5806358", "0.5805722", "0.5784556", "0.57827...
0.8063373
0
Check if an imported registration action needs migrating
Проверьте, требуется ли миграция импортированного действия регистрации
private static function imported_action_needs_migration( $action ) { $settings = FrmAppHelper::maybe_json_decode( $action['post_content'] ); return isset( $settings['reg_email_msg'] ) && ! empty( $settings['reg_email_msg'] ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static function is_imported_registration_action( $action ) {\n\t\treturn isset( $action['post_excerpt'] ) && $action['post_excerpt'] === 'register';\n\t}", "public function isMigrated() {}", "private function should_try_migrate() {\r\n $key = $this->get_should_migrate_transient_key();\r\n\r\...
[ "0.70344204", "0.6679524", "0.6530762", "0.6437569", "0.63922095", "0.62398994", "0.61288595", "0.61023206", "0.6051989", "0.5917444", "0.59040767", "0.58700407", "0.58569914", "0.58539826", "0.5849924", "0.58398247", "0.580084", "0.5784326", "0.57492745", "0.5708894", "0.568...
0.7406361
0
Generate the post content for the admin email action
Создать содержимое письма для действия электронной почты администратора
private static function generate_post_content_for_admin_email( $form_id ) { $post_content = array( 'email_to' => '[admin_email]', 'cc' => '', 'bcc' => '', 'from' => '[sitename] <[admin_email]>', 'reply_to' => '', 'email_subject' => self::default_admin_email_su...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function email_menu_content() {\n return Helper::load_template(\n 'email-test',\n [\n 'form_action' => admin_url('admin-post.php'),\n 'action' => $this->_form_fields['email_test_form']['action'],\n 'nounce_name' => $this->_form_fields...
[ "0.72971964", "0.68189424", "0.65874416", "0.6294258", "0.6252921", "0.61670405", "0.61635864", "0.6156515", "0.61478907", "0.6114052", "0.6112473", "0.61055243", "0.6102736", "0.61018336", "0.6091628", "0.607822", "0.607595", "0.6052166", "0.6048495", "0.60389477", "0.601391...
0.70918596
1
Move the user_url custom user meta to setting
Переместить пользовательский мета-пользователя user_url в настройки
private static function migrate_user_url_setting( &$register_action ) { $register_settings = $register_action->post_content; if ( ! isset( $register_settings['reg_usermeta'] ) || empty( $register_settings['reg_usermeta'] ) ) { return; } foreach ( $register_settings['reg_usermeta'] as $meta_key => $user_me...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function set_custom_meta_info($user_id, $meta, $value)\r\n\t{\r\n\t\tupdate_user_meta ($user_id, $meta, $value);\t\t\r\n\t\treturn $user_id;\r\n\t\t\r\n\t}", "public function setUserUrl($user_url)\n {\n $this->user_url = $user_url;\n }", "function update_user_meta($user_id, $meta_key, $meta_value, $prev_valu...
[ "0.67196053", "0.6504721", "0.64475566", "0.6304205", "0.62791413", "0.6203797", "0.6192871", "0.6119597", "0.6113319", "0.60776424", "0.6034496", "0.6026021", "0.6026021", "0.6023991", "0.6021625", "0.6021625", "0.6013231", "0.6004343", "0.5984669", "0.5979235", "0.59755665"...
0.7129823
0
Get the default title for an admin email notification
Получить default заголовок для уведомления электронной почты администратора
private static function default_title_for_admin_email() { return __( 'Admin Email Notification', 'frmreg' ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static function default_admin_email_subject() {\n\t\treturn sprintf( __( '[%s] New User Registration' ), '[sitename]' );\n\t}", "public function getAdminTitle()\n\t{\n\t return $this->_getHelper('heidelpay')->__($this->getConfigData('title'));\n\t}", "public function getGenericTitle()\n {\n ...
[ "0.7480333", "0.72311896", "0.7230996", "0.7067602", "0.7032603", "0.69687444", "0.6955181", "0.6947477", "0.69472486", "0.6903266", "0.6887264", "0.68733156", "0.68577486", "0.6841936", "0.68377715", "0.683436", "0.6812161", "0.680921", "0.68023664", "0.680171", "0.679253", ...
0.88123894
0
Get the default To settings for a user email
Получить настройки To по умолчанию для электронной почты пользователя
private static function default_to_for_user_email( $register_settings ) { $email_field_id = self::get_value_from_setting( $register_settings, 'reg_email' ); if ( ! $email_field_id ) { $to = ''; } else { $to = '[' . $email_field_id . ']'; } return $to; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_to_email();", "public static function resolveDefaultToEmail($to = null)\n {\n // In case of multiple recipients, do not validate anything\n if (is_array($to) || strpos($to, ',') !== false) {\n return $to;\n }\n $original_to = $to;\n if (!empty(...
[ "0.7146657", "0.71034104", "0.6907427", "0.6891215", "0.68021506", "0.6795354", "0.67336315", "0.6538374", "0.65344965", "0.6518488", "0.64702", "0.6447668", "0.6381077", "0.6369107", "0.63439596", "0.632941", "0.62976384", "0.62897956", "0.62211657", "0.61536336", "0.6153633...
0.739029
0
Get the default user email subject
Получить стандартный email-тему пользователя
private static function default_subject_for_user_email() { return sprintf( __( 'Welcome to %s', 'frmreg' ), '[sitename]' ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_default_email_subject() {\n\t\t\t/**\n\t\t\t * Filter the default subject.\n\t\t\t * Note: This filter will deprecate soon.\n\t\t\t *\n\t\t\t * @since 1.0\n\t\t\t */\n\t\t\t$subject = apply_filters(\n\t\t\t\t'give_offline_admin_donation_notification_subject',\n\t\t\t\t__( 'New Pending Donation'...
[ "0.8045215", "0.7894757", "0.7768137", "0.76832116", "0.7672078", "0.7660967", "0.7638742", "0.76366484", "0.7392649", "0.7353502", "0.7339582", "0.7233142", "0.7126253", "0.71018106", "0.70801944", "0.70771766", "0.6999759", "0.69942254", "0.69578236", "0.69578236", "0.69379...
0.828016
0
Get the default admin email subject
Получить подразумеваемый email-тему для администратора
private static function default_admin_email_subject() { return sprintf( __( '[%s] New User Registration' ), '[sitename]' ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_default_email_subject() {\n\t\t\t/**\n\t\t\t * Filter the default subject.\n\t\t\t * Note: This filter will deprecate soon.\n\t\t\t *\n\t\t\t * @since 1.0\n\t\t\t */\n\t\t\t$subject = apply_filters(\n\t\t\t\t'give_offline_admin_donation_notification_subject',\n\t\t\t\t__( 'New Pending Donation'...
[ "0.80849075", "0.79979295", "0.78325814", "0.7804562", "0.7696526", "0.7647615", "0.7518753", "0.7506262", "0.7301314", "0.7247958", "0.7222714", "0.7155061", "0.71453094", "0.71396893", "0.70762277", "0.69440913", "0.6942621", "0.6919129", "0.68852556", "0.68609655", "0.6853...
0.8351542
0
Get the registration email event
Получить событие электронной почты регистрации
private static function registration_email_event() { return array( 'user_registration' ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getNotificationRegistrationUsersEmail();", "public function getEmail() {\n return $this->formState->get('pre_registration_email');\n }", "public function getNotificationEmail() {}", "function getEventEmail() \n {\n return $this->getValueByFieldName( 'event_contactEmail' );\n ...
[ "0.7492953", "0.7084015", "0.7004034", "0.6708592", "0.6689798", "0.6672994", "0.6657357", "0.6526006", "0.6492346", "0.6488521", "0.6475798", "0.64499044", "0.644837", "0.64423764", "0.64422333", "0.64422333", "0.64422333", "0.64422333", "0.64338064", "0.64319736", "0.643197...
0.80970347
0
Get a random host reference with the specified role, skipping hosts which failed recent health checks.
Получить случайный хост с указанным ролью, пропуская хосты, которые не прошли недавние проверки работоспособности.
public function getAnyHostForRole($role) { $hosts = $this->getAllHostsForRole($role); shuffle($hosts); foreach ($hosts as $host) { $health = $host->getHealthRecord(); if ($health->getIsHealthy()) { return $host; } } throw new PhabricatorClusterNoHostForRoleException($role);...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAllHostsForRole($role) {\n // if the role is explicitly set to false at the top level, then all hosts\n // have the role disabled.\n if (idx($this->config, $role) === false) {\n return array();\n }\n\n $hosts = array();\n foreach ($this->hosts as $host) {\n if ($host-...
[ "0.57848364", "0.5396375", "0.51178455", "0.51065993", "0.50574166", "0.50262177", "0.46832457", "0.4659294", "0.46250734", "0.4620465", "0.45542213", "0.45341724", "0.4529889", "0.4516323", "0.4479596", "0.44733015", "0.4467424", "0.44588575", "0.44531468", "0.444967", "0.44...
0.71526206
0
Get all configured hosts for this service which have the specified role.
Получить все настроенные хосты для этого сервиса, которые имеют указанную роль.
public function getAllHostsForRole($role) { // if the role is explicitly set to false at the top level, then all hosts // have the role disabled. if (idx($this->config, $role) === false) { return array(); } $hosts = array(); foreach ($this->hosts as $host) { if ($host->hasRole($role...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getHosts()\n {\n if (array_key_exists(\"hosts\", $this->_propDict)) {\n return $this->_propDict[\"hosts\"];\n } else {\n return null;\n }\n }", "public function getHosts()\n {\n }", "public function hosts() {\n\t\t$res = $this->zap->request(...
[ "0.61616516", "0.6026476", "0.59804785", "0.59650046", "0.5898533", "0.5858013", "0.58556503", "0.5813566", "0.5796908", "0.5794209", "0.5780122", "0.5723459", "0.5708841", "0.5656751", "0.56539977", "0.55368835", "0.54071933", "0.5320258", "0.52993244", "0.5239249", "0.52111...
0.806224
0
Load all valid PhabricatorFulltextStorageEngine subclasses
Загрузить все допустимые подклассы PhabricatorFulltextStorageEngine
public static function loadAllFulltextStorageEngines() { return id(new PhutilClassMapQuery()) ->setAncestorClass('PhabricatorFulltextStorageEngine') ->setUniqueMethod('getEngineIdentifier') ->execute(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function loadAll()\n {\n global $taxonomies_infos;\n\n // Classes\n $subclasses = self::getSubclasses();\n foreach ($subclasses as $class) {\n $instance = new $class;\n $taxonomies_infos = array_merge(\n $taxonomies_infos,\n ...
[ "0.57953745", "0.5685961", "0.563723", "0.5632021", "0.5617356", "0.56070435", "0.5596831", "0.55610335", "0.55588514", "0.5516573", "0.55030555", "0.55030555", "0.5472325", "0.54533637", "0.5449941", "0.5449941", "0.5446886", "0.5435241", "0.54253525", "0.5404773", "0.540327...
0.7747293
0
GETTERS Retourne identifiant de l'invitation
GETTERS Возвращает идентификатор приглашения
public function getId_invitation() { return $this->_id_invitation; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getInviteeUserId();", "public function show(Invitation $invitation)\n {\n //\n }", "public function show(Invitation $invitation)\n {\n //\n }", "function invitation ($id=null) {\n\t\t$this->layout = 'snappi-guest';\n\t\t// get Group data\n\t\t$options = array(\n\t\t\...
[ "0.69574994", "0.6598531", "0.6598531", "0.65034556", "0.6491997", "0.63781065", "0.6353506", "0.6273466", "0.6241524", "0.6107385", "0.60919106", "0.6081142", "0.6081142", "0.60660094", "0.6060181", "0.6013913", "0.6013913", "0.5970906", "0.5936609", "0.5899488", "0.5898589"...
0.753631
0
Package of functions for operations on upload forms html_write_form_line: Function to write a line in the form Function to write a line in the form Returns nothing Input: $field_name: the name of the field $is_required: a boolean whether field is required $has_error: a boolean whether field has error $field_error: the ...
Пакет функций для операций с формами загрузки html_write_form_line: Функция для записи строки в форму Функция для записи строки в форму Возвращает ничего Вход: $field_name: имя поля $is_required: булевое значение, указывающее, является ли поле обязательным $has_error: булевое значение, указывающее, есть ли ошибка в пол...
function html_write_form_line($field_name, $is_required, $has_error, $field_error, $input_type, $field_input, $field_desc) { // Header print <<<STRING <tr> <th STRING; // Red field if ($has_error) { print " class=\"redtext\""; } // Close "th" tag print ">"; // Field name if ($is_required) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function add_to_form ($line) {\n\t\t$this->form_lines[]= $line.\"\\n\";\n\t}", "function writeFormField($id, $label, $type) {\n echo \"<label for=\\\"$id\\\">$label</label><br>\";\n if ($type == 'text') {\n echo \"<input type=\\\"text\\\" name=\\\"$id\\\" id=\\\"$id\\\" required=\\\"true\\\">\";\n }...
[ "0.6513232", "0.6086444", "0.60587925", "0.5846427", "0.5769719", "0.5765773", "0.5763175", "0.57364047", "0.57361305", "0.57298154", "0.5722111", "0.57049304", "0.56761825", "0.5671932", "0.5629226", "0.56243354", "0.56032735", "0.560233", "0.5553668", "0.5551105", "0.555029...
0.83038354
0
Returns the new data model, with default values. Such model should be used for the insert scenario. Context foreign keys will be set to this model.
Возвращает новый модель данных с значениями по умолчанию. Такая модель должна использоваться для сценария вставки. Внешние ключи контекста будут установлены для этой модели.
public function newModel() { $model = parent::newModel(); $activeContexts = $this->getActiveContexts(); foreach ($activeContexts as $activeContext) { $foreignKeyName = $activeContext['foreignKeyName']; $model->$foreignKeyName = $activeContext['model']->getPrimaryKey(); } return $model; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getNewModelWithDefaults()\n {\n $model = new $this->modelName;\n $databaseName = Yii::$app->params['defaultSchema'];\n $tableName = $model->tableName();\n $results = Yii::$app->db->createCommand(\"\n SELECT COLUMN_NAME, COLUMN_DEFAULT\n FROM info...
[ "0.7019197", "0.7013983", "0.6612426", "0.641966", "0.63987213", "0.6344451", "0.6269191", "0.62379086", "0.6230774", "0.62034476", "0.61505", "0.6148412", "0.6140904", "0.6128075", "0.6107774", "0.6066405", "0.60247475", "0.601308", "0.5991877", "0.59527016", "0.594935", "...
0.76003623
0
Adds node to current relation. Relation's definition is extended by adding nodes. Added nodes must be declaring reference on preceding node. Relation is completed by adding nonpartial node not declaring reference on another succeeding node . Adding further nodes is rejected then.
Добавляет узел в текущую связь. Определение связи расширяется за счёт добавления узлов. Добавленные узлы должны объявлять ссылку на предыдущий узел. Связь завершается добавлением неполного узла, не объявляющего ссылку на другой последующий узел. Добавление дальнейших узлов отклоняется в таком случае.
public function add( model_relation_node $node, $isPartialNode = false ) { if ( $this->isComplete() ) throw new \LogicException( 'adding to completed relation rejected' ); if ( !$node->isValid() ) throw new \InvalidArgumentException( 'invalid relational node' ); if ( !$node->wantsPredecessor() ) throw...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract function add(Node $node): void;", "public function addRelation(string $relation, ?CriteriaContract $criteria = null): static;", "public function append( $node ){\n $this->nodes[] = $node;\n $this->numNodes++; \n }", "public function addChild(Node $node);", "function...
[ "0.6454452", "0.5957304", "0.5815425", "0.57610077", "0.5759317", "0.5707609", "0.5684433", "0.5650642", "0.56220186", "0.5592923", "0.5512612", "0.5476472", "0.54147893", "0.5397357", "0.537481", "0.53610665", "0.5297141", "0.52888477", "0.52684397", "0.5252854", "0.5230378"...
0.73375094
0
Detects if relation is declared completely.
Определяет, объявлен ли соотношение полностью.
public function isComplete() { // relation is declared completely if set of references has been derived // from set of nodes on recently adding node not wanting another successor return !is_null( $this->references ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hasRelation(): bool;", "public function hasRelations() {\n return !empty($this->_relations);\n }", "public function hasRelations()\n {\n return 0 < count($this->relations);\n }", "public function isCorrectlyDeclared(): bool\n {\n return ! ($this->hasType && $t...
[ "0.7089578", "0.64106625", "0.64020675", "0.63214326", "0.626768", "0.6230986", "0.62183917", "0.620362", "0.6076029", "0.6055621", "0.6037156", "0.59740317", "0.5970565", "0.59559786", "0.5922876", "0.5917959", "0.59178406", "0.587334", "0.5831841", "0.5767182", "0.57400507"...
0.7276576
0
Retrieves name of relation declared used model_relation::setName().
Получает имя отношения, объявленного в модели model_relation::setName().
public function getName() { return $this->relationName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getRelationName(): Name\n {\n return new Name('conductor');\n }", "public static function getRelationName(): Name\n {\n return new Name('design/illustration');\n }", "public function getRelationTablename() {}", "public static function getRelationName(): Name\n...
[ "0.7548722", "0.7489568", "0.7484233", "0.74808407", "0.74722904", "0.74391425", "0.74330354", "0.7420148", "0.7317618", "0.72967166", "0.7291828", "0.7281971", "0.7276214", "0.72537374", "0.72374195", "0.723269", "0.7217918", "0.71818805", "0.71505845", "0.7140218", "0.71279...
0.82039917
0
Retrieves all unbound references from current relation.
Получает все несвязанные ссылки из текущего отношения.
public function getUnboundReferences() { if ( !$this->isComplete() ) throw new \InvalidArgumentException( 'relation is not complete, yet' ); return array_filter( array_map( function( $reference ) { /** @var model_relation_reference $reference */ return $reference->isBound() ? null : $reference; }, $thi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getForeigns();", "public function getRelations() {\n\t\treturn array_values($this->_relations);\n\t}", "final public static function getForeignReferences() {\n\t\t$calledClass = get_called_class();\n\n\t\tif ( !isset( self::$foreignReferences[ $calledClass ] ) ) { // runs once per recordClass\n...
[ "0.615608", "0.59857106", "0.5924543", "0.59124523", "0.58790576", "0.574855", "0.56951785", "0.56773037", "0.56472504", "0.5596987", "0.5586996", "0.55706406", "0.5567403", "0.5560945", "0.55316025", "0.55316025", "0.55146044", "0.5506828", "0.55065995", "0.5500212", "0.5496...
0.77967775
0
Unbinds all nodes of relation.
Открепляет все узлы отношения.
public function unbind() { if ( $this->isComplete() ) foreach ( $this->nodes as $node ) { /** @var model_relation_node $node */ $node->bindOnPredecessor( null ); $node->bindOnSuccessor( null ); } return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function unlinkRelations() {\n\t\t$this->internal->relations = array();\n\t}", "public function clear_relations() {\n\t\t$this->_rels = [];\n\n\t\tforeach ($this->_tables as &$table)\n\t\t\t$table->clear_relations();\n\t}", "public static function resetRelations(){\n\t\t$self = static::_object();\n\t\t$...
[ "0.7296309", "0.71093535", "0.6994108", "0.66057324", "0.6292192", "0.62474555", "0.6131225", "0.610725", "0.6105767", "0.60607135", "0.60194224", "0.60054237", "0.5899923", "0.585835", "0.5757303", "0.57561684", "0.5695629", "0.56677943", "0.5644183", "0.5624411", "0.5614664...
0.72462815
1
Detects if any node or all nodes of relation is/are bound.
Определяет, связаны ли любой узел или все узлы отношения.
public function isBound( $requireAll = false ) { if ( !$this->isComplete() ) return false; foreach ( $this->nodes as $node ) /** @var model_relation_node $node */ if ( $node->isBound() ) { if ( !$requireAll ) return true; } else if ( $requireAll ) return false; return $requireAll ? true...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isBound();", "public function isBound()\n {\n return $this->bound;\n }", "public function isBound()\n\t\t{\n\t\t\treturn $this->isBound;\n\t\t}", "public function getConditionOnBoundNodes() {\n\t\tif ( !$this->isComplete() )\n\t\t\tthrow new \\RuntimeException( 'relation is not c...
[ "0.67757845", "0.6472873", "0.6361513", "0.61695206", "0.61686605", "0.600664", "0.5897521", "0.5797079", "0.57041574", "0.5700709", "0.5700709", "0.5650165", "0.5558339", "0.5511051", "0.55105555", "0.54925895", "0.5403799", "0.53748214", "0.53350466", "0.5296089", "0.525325...
0.7754493
0
Retrieves node at given index if matching model and/or alias.
Получает узел по заданному индексу, если он соответствует модели и/или псевдониму.
protected function _isNodeMatching( $index, $model = null, $alias = null ) { $node = $this->nodeAtIndex( $index ); $matching = ( $model === null || $node->isAssociatedWithModel( $model ) ); $matching |= ( $alias === null || $node->getName() == $alias ); return $matching ? $node : null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getNode(int|string $index)\n {\n }", "function &getNodeByAlias($alias) {\n\t\t$id = $this->alias_index[strtolower($alias)];\n\t\tif (isset($id))\n\t\t return $this->id_index[$id];\n\t\treturn null;\n\t}", "public function get($index)\n {\n $result = array_slice($this->nodes, $i...
[ "0.6373351", "0.6308967", "0.6210797", "0.62088865", "0.58915865", "0.588434", "0.57912385", "0.57455564", "0.56986904", "0.56986904", "0.5679224", "0.5609347", "0.5534779", "0.5527657", "0.54684615", "0.5436418", "0.5424644", "0.53924966", "0.53846055", "0.5365795", "0.53518...
0.7387855
0
Tries binding values on node at given index if matching model and/or alias.
Пытается привязать значения к узлу по заданному индексу, если соответствует модель и/или псевдоним.
protected function _tryBindMatchingNode( $index, $model = null, $alias = null, $tryOnSucceeding = true, $values ) { $node = $this->_isNodeMatching( $index, $model, $alias ); if ( !$node ) // node isn't matching, so don't try to bind actually return null; // check if node is capable of binding in desired di...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function _isNodeMatching( $index, $model = null, $alias = null ) {\n\t\t$node = $this->nodeAtIndex( $index );\n\n\t\t$matching = ( $model === null || $node->isAssociatedWithModel( $model ) );\n\t\t$matching |= ( $alias === null || $node->getName() == $alias );\n\n\t\treturn $matching ? $node : null;\n\t...
[ "0.5991248", "0.5772905", "0.5383499", "0.5370075", "0.5164318", "0.51349336", "0.4807412", "0.47985926", "0.47975782", "0.4785949", "0.47227764", "0.4688625", "0.46561506", "0.46538115", "0.46390283", "0.4614539", "0.45880938", "0.45851913", "0.45681897", "0.45555758", "0.45...
0.7157841
0
Retrieves conditions describing all currently bound nodes. The resulting array includes element for each binding of nodes in current relation (containing up to two elements per node). Every element consist of element 'filter' giving SQLlike condition with parameter markers and element 'values' containing values to bind...
Возвращает условия, описывающие все текущие привязанные узлы. Результирующий массив включает элемент для каждой привязки узлов в текущем отношении (до двух элементов на узел). Каждый элемент состоит из элемента 'filter', предоставляющего SQL-подобное условие с маркерами параметров, и элемента 'values', содержащего знач...
public function getConditionOnBoundNodes() { if ( !$this->isComplete() ) throw new \RuntimeException( 'relation is not complete' ); $conditions = array(); foreach ( $this->nodes as $node ) { /** @var model_relation_node $node */ $state = $node->isBound( null ); if ( $state & model_relation_node::BIN...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getConditions()\n {\n $inputs = $this->inputs();\n\n if (empty($inputs)) {\n return [];\n }\n\n if ($this->conditions !== null) {\n return $this->conditions;\n }\n\n $params = [];\n\n foreach ($inputs as $key => $value) {\n ...
[ "0.7151067", "0.62416357", "0.6051868", "0.59927833", "0.59837884", "0.5964911", "0.58749753", "0.5863591", "0.58356607", "0.58356607", "0.5825054", "0.580935", "0.57657206", "0.574246", "0.57252264", "0.5717352", "0.5606988", "0.5590183", "0.5589054", "0.55830276", "0.558302...
0.8020509
0
Detects if first node of relation is bound.
Обнаруживает, является ли первый узел отношения связанным.
public function isBoundAtStart() { return $this->nodeAtIndex( 0 )->isBound(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isBound()\n {\n return $this->bound;\n }", "public function isBound();", "public function isBound( $requireAll = false ) {\n\t\tif ( !$this->isComplete() )\n\t\t\treturn false;\n\n\t\tforeach ( $this->nodes as $node )\n\t\t\t/** @var model_relation_node $node */\n\t\t\tif ( $node->...
[ "0.6636115", "0.6575287", "0.6516969", "0.64499766", "0.6419238", "0.6048363", "0.58759403", "0.5751794", "0.5751794", "0.57171214", "0.5653152", "0.5468622", "0.54252577", "0.5389575", "0.5368437", "0.5353251", "0.5324166", "0.53046125", "0.5289143", "0.5271768", "0.52309203...
0.7302503
0
Detects if last node of relation is bound.
Обнаруживает, является ли последний узел отношения связанным.
public function isBoundAtEnd() { return $this->nodeAtIndex( -1 )->isBound(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isBound()\n {\n return $this->bound;\n }", "public function isBound()\n\t\t{\n\t\t\treturn $this->isBound;\n\t\t}", "public function isLast()\n {\n if ($this->isRoot()) {\n return false;\n }\n\n return $this->getParent()->getLastChild() === $this;...
[ "0.66687745", "0.6557291", "0.6417121", "0.6412177", "0.62942976", "0.62600213", "0.6210819", "0.61188114", "0.60537827", "0.60416687", "0.6023539", "0.60193104", "0.60101765", "0.59667015", "0.5925113", "0.59000874", "0.58987606", "0.58750546", "0.5861016", "0.5838672", "0.5...
0.7515569
0
Detects if relation is of type "manytomany". A manytomanyrelation consists of at least one manytomanynode. This is a node actively referencing either of its neighbouring nodes.
Определяет, является ли отношение типом "многокко многим". Отношение "многокко многим" состоит как минимум из одного узла "многокко многим". Это узел, активно ссылающийся на один из соседних узлов.
public function isManyToMany() { if ( !$this->isComplete() ) return false; if ( $this->size() <= 2 ) return false; return !!$this->findNode( null, null, function( $node ) { /** @var model_relation_node $node */ return $node->isManyToMany(); } ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isHasManyAndBelongsToMany() {\n return $this->isHasManyAndBelongsToMany;\n }", "public function isManyMutation($mutation)\n {\n return isset($this->mutations[$mutation]) && $this->mutations[$mutation]['type'] === 'many';\n }", "protected function parseManyRelationship($re...
[ "0.62402403", "0.6199517", "0.61840636", "0.61788774", "0.6167064", "0.61128783", "0.6065845", "0.6037395", "0.6013633", "0.5980187", "0.5937306", "0.59258235", "0.5902261", "0.58672655", "0.5850653", "0.57857347", "0.57260394", "0.5721652", "0.5663917", "0.56634974", "0.5657...
0.705818
0
Retrieves editor instance for managing current relation.
Получает экземпляр редактора для управления текущей связью.
public function editor() { return new model_editor_related( $this ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getEditor()\n {\n return $this->editor;\n }", "public function getEditor()\n {\n return $this->editor;\n }", "function GetEditor()\r\n\t{\r\n\t\treturn $this->m_editor;\r\n\t}", "protected function getEditor()\n\t{\n\t\t// Only create the editor if it is not already ...
[ "0.7322033", "0.7322033", "0.7246556", "0.71665394", "0.69569415", "0.68060106", "0.67886555", "0.6671576", "0.6644708", "0.645444", "0.63003963", "0.6282981", "0.6282981", "0.623999", "0.61138016", "0.60525393", "0.6042014", "0.6013174", "0.59529227", "0.59243876", "0.590277...
0.8136741
0
Create the timezone select box.
Создайте выпадающий список часовых поясов.
public function makeElement() { $selected = $this->splitTz($this->value); $tzlist = array(); $out = "<select name='timezone[]' id='tz_region' class='selectbox' tabindex='{$this->attributes['tabindex']}'>\n"; $out .= "\t<option></option>\n"; if ($selected[0] == 'UTC') { $out .= "\t<option value='UTC...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function select_time_zone_tag($name, $selected = null, $choices = null, $html_options = null)\n{\n return CForm::select_time_zone($name, $selected, $choices, $html_options);\n}", "function generate_timezones($current = '') {\n\n $output = '';\n \n $timezone_identifiers = DateTimeZone::listIdentifiers();\n ...
[ "0.7435289", "0.71415484", "0.6968801", "0.69533217", "0.68857265", "0.6753543", "0.67169553", "0.6692547", "0.6529656", "0.6373163", "0.6255544", "0.62177193", "0.6192919", "0.60697395", "0.60328025", "0.59785753", "0.5951112", "0.5942533", "0.59422743", "0.5939907", "0.5934...
0.747877
0
Check a user submitted timezone is valid.
Проверьте, является ли часовой пояс, отправленный пользователем, допустимым.
public function isValid($submitted) { $this->error_message = t('timezone_validation_failure'); if (empty($submitted)) { if ($this->required) { $this->valid = false; } else { $this->valid = true; } return $this->valid; } $submitted = implode('/', $submitted); try { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testInvalidTZ() {\n $stmt = PDODAO::$PDO->query('SELECT o.* FROM '. $this->user_database .\n '.tu_owners o WHERE o.email = \"me@example.com\"');\n $row = $stmt->fetch(PDO::FETCH_ASSOC);\n $this->assertEqual($row['timezone'], 'UTC');\n $this->assertEqual($row['emai...
[ "0.7259342", "0.70405626", "0.69588184", "0.6424814", "0.6354656", "0.6348423", "0.6303417", "0.6297723", "0.6295146", "0.6201768", "0.61843616", "0.61801636", "0.61664385", "0.61269885", "0.60903186", "0.6070538", "0.6023578", "0.59919876", "0.5965113", "0.5955574", "0.59307...
0.7243336
1
Test loading of hooks
Тестирование загрузки хуков
public function testLoadHooks() { $hooks = $this->discuss->loadHooks(); $this->assertInstanceOf('disHooks',$hooks); $this->assertInstanceOf('disHooks',$this->discuss->hooks); $this->discuss->hooks = null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testLoadHooks() {\n $hooks = $this->quip->loadHooks('unit');\n $this->assertInstanceOf('quipHooks',$hooks);\n $this->assertInstanceOf('quipHooks',$this->quip->unitHooks);\n $this->quip->unitHooks = null;\n }", "private function hooks()\n {\n }", "abs...
[ "0.78468126", "0.703312", "0.70121795", "0.6950879", "0.69443756", "0.6885499", "0.6883459", "0.67772675", "0.67158884", "0.66980726", "0.6658196", "0.66338634", "0.6621981", "0.66215897", "0.6619392", "0.6612279", "0.65391403", "0.6534878", "0.6496819", "0.6474822", "0.64614...
0.71710646
1
Test loading of tree parser
Тест загрузки парсера дерева
public function testLoadTreeParser() { $treeParser = $this->discuss->loadTreeParser(); $this->assertInstanceOf('disTreeParser',$treeParser); $this->assertInstanceOf('disTreeParser',$this->discuss->treeParser); $this->discuss->treeParser = null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function loadTreeData() {}", "public function testParseNested()\n {\n $this->assertNotNull(\n self::$compiler->parse(file_get_contents('tests/input/netscape_nested.htm'))\n );\n }", "public function testLoad()\n {\n $validPath = sprintf('%sfiles/valid.xml', $t...
[ "0.655164", "0.64511824", "0.6348039", "0.62003136", "0.60833335", "0.6007918", "0.596799", "0.5865975", "0.5865975", "0.580139", "0.5782035", "0.57721025", "0.5770423", "0.5762242", "0.57371527", "0.57220465", "0.57220465", "0.5709494", "0.5703111", "0.57030344", "0.5699944"...
0.7716059
0
The unique channel ID for the channel. The first 3 bytes are the block height, the next 3 the index within the block, and the last 2 bytes are the output index for the channel. Generated from protobuf field uint64 chan_id = 1;
Уникальный идентификатор канала для канала. Первые 3 байта — это высота блока, следующие 3 — индекс внутри блока, а последние 2 байта — индекс выхода для канала. Сгенерировано из поля protobuf uint64 chan_id = 1;
public function getChanId() { return $this->chan_id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getChannelId()\n {\n return self::$channel_id;\n }", "public function getChannelId()\n {\n return $this->channelId;\n }", "public function getChannelId() {\n return $this->channelId;\n }", "public function setChanId($var)\n {\n GPBUtil::che...
[ "0.6975092", "0.6895727", "0.68796986", "0.6877774", "0.6877774", "0.68075144", "0.6637533", "0.65074205", "0.61285365", "0.60326266", "0.58090186", "0.5803423", "0.5685878", "0.5670205", "0.55032825", "0.54639584", "0.5440623", "0.5382514", "0.53401893", "0.5337272", "0.5325...
0.7280238
1
Creates a Pageplanner client based on the config.
Создает клиент Pageplanner на основе конфигурации.
public function createFromConfig() { $config = $this->configFactory->get('pageplanner.settings'); $client_configuration = [ 'baseUrl' => $config->get('base_url'), 'access_token_url' => $config->get('access_token_url'), 'client_id' => $config->get('client_id'), 'client_secret' => $config-...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function factory($config = array()) {\n\t\t$default = array(\n 'base_url' => 'https://my.rightscale.com/',\n 'version' => '1.0',\n 'curl.CURLOPT_FOLLOWLOCATION' => false,\n 'curl.CURLOPT_RETURNTRANSFER' => true\n );\n\t\t$required = array ('acct_num', 'base_url', 'version');\n\...
[ "0.589269", "0.56591886", "0.5611916", "0.5608609", "0.544673", "0.5438752", "0.53812695", "0.536054", "0.53473115", "0.53204286", "0.53101736", "0.5303859", "0.5281442", "0.52418023", "0.52396166", "0.5223288", "0.5182758", "0.51740223", "0.5133805", "0.51177514", "0.5114257...
0.85108775
0
Get the route I/O implementation. When no implementation is provided through the constructor, a new implementation will be constructed based on the configuration.
Получите реализацию ввода-вывода маршрута. Если реализация не предоставлена через конструктор, будет создана новая реализация на основе конфигурации.
final protected function getIO() { if ($this->io) { return $this->io; } $objectFactory = new ObjectFactory(); $this->io = $objectFactory->createFromConfig(self::CONFIG_ROUTER_IO, self::DEFAULT_ROUTER_IO, self::CLASS_ROUTER_IO); return $this->io; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getTargetHandler(): TargetHandlerInterface\n {\n return new Route();\n }", "public function getRoute() {\n return new Route(new Request());\n }", "public function __invoke(): RouterAdapterInterface\n {\n $parser = new RouteParser\\Std;\n $generator = n...
[ "0.5728421", "0.56790453", "0.5642945", "0.56292874", "0.56292874", "0.5626678", "0.5552771", "0.540827", "0.540827", "0.540761", "0.54072225", "0.5363315", "0.52957124", "0.5291361", "0.52874243", "0.5286259", "0.52728575", "0.52299494", "0.5182032", "0.5167767", "0.51622874...
0.7483556
0
Validate that the shared secret is present, either from the constructor or an environment variable.
Проверьте, что общий секрет присутствует, либо из конструктора, либо из переменной окружения.
private function checkSharedSecret($sharedSecret) { if (!is_null($sharedSecret)) { return $sharedSecret; } $sec = getenv('APPLE_IAP_SHARED_SECRET'); if (!is_null($sec) && $sec) { return $sec; } throw new IAPSharedSecretException('An error ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testSecretRequired() {\r\n\t\t$config = array('secret' => '');\r\n\t\t$hd3 = new HD3($config);\r\n\t}", "private function checkKey()\n {\n if ($this->secret == null)\n throw new \\Exception(\"Secret must be set\");\n }", "private function validateSecret()\n\t{\n\t\tif (s...
[ "0.6596329", "0.6552299", "0.63359183", "0.62482417", "0.6159209", "0.6078702", "0.6002188", "0.5943635", "0.5759173", "0.5746942", "0.5724714", "0.5711327", "0.5710372", "0.5707937", "0.56542766", "0.56542766", "0.56542766", "0.56377584", "0.56364757", "0.5629885", "0.561460...
0.71178234
0
Sanitise the receipt data.
Очистите данные чека.
private function sanitise($receiptData) { return str_replace("\r\n", '', $receiptData); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function cleanData()\n {\n $this->sanitizeData();\n }", "public function sanitize()\n {\n $purifier = $this->_purifier;\n $this->_sanitized_data = array_map(\n function ($field) use ($purifier) {\n return strip_tags($purifier->purify($field));\n ...
[ "0.7163163", "0.7048423", "0.67910886", "0.6635465", "0.6520095", "0.64677644", "0.63564765", "0.6344687", "0.6336512", "0.63134396", "0.62931657", "0.62896824", "0.62532514", "0.62292385", "0.6227534", "0.6218878", "0.6217376", "0.6203315", "0.6203238", "0.61882305", "0.6186...
0.7589649
0
Get real path to video file
Получить реальный путь к файлу видео
public function videoPath();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getVideoPath()\n {\n $leagueName = $this->game->league->name;\n $startDate = $this->game->start_date->format('Y-m-d');\n $gameSlug = str_slug($this->game->homeTeam->nickname . ' ' . $this->game->awayTeam->nickname . ' ' . $this->game->id);\n $fileName = str_slug($this...
[ "0.8130591", "0.7865285", "0.7425562", "0.7060125", "0.6949543", "0.6914217", "0.6826084", "0.67882794", "0.6786562", "0.6721562", "0.6718103", "0.66969776", "0.6654779", "0.65657383", "0.6513043", "0.6512702", "0.6439401", "0.6429019", "0.64233106", "0.6419869", "0.6385776",...
0.83919275
0
Get the time for result video duration
Получить время для продолжительности видео с результатом
public function duration();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDuration()\n {\n if (!isset($this->thumbnail)) {\n $this->duration = $this->getByMetaProperty('video:duration');\n }\n\n return $this->duration;\n }", "private function getVideoDuration($videoPath)\n {\n $getID3 = new \\getID3;\n $file = $...
[ "0.73334354", "0.71813", "0.715252", "0.715252", "0.71131986", "0.7063934", "0.69958234", "0.6985395", "0.6869773", "0.68380517", "0.68192935", "0.67933285", "0.6783574", "0.6773437", "0.67630655", "0.67462486", "0.6731025", "0.67087126", "0.66347045", "0.66347045", "0.663470...
0.74392426
0
Returns all registered handlers as array( $name => array( $type => array( $priority => array( callback, callback, ) ) )
Возвращает все зарегистрированные обработчики в виде массива( $name => массив( $type => массив( $priority => массив( callback, callback, ) ) ) )
public function getAllHandlers() { $ret = []; foreach ($this->registrations as $name => $types) { foreach ($types as $type => $registrations) { foreach ($registrations as $registration) { $priority = $registration[self::REG_KEY_PRIORITY]; $handler = $registration[self::REG_KEY_HANDLER]; $ret[$...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getHandlers(): array;", "public function getHandlers(): array\n {\n return $this->handlers;\n }", "public function getHandlers(): array\n {\n return $this->handlers;\n }", "public function getHandlers(): array;", "public function getHandlers(): array;", "public function...
[ "0.81403285", "0.81056905", "0.81056905", "0.81012934", "0.81012934", "0.81012934", "0.809625", "0.809625", "0.78584856", "0.76795024", "0.7605464", "0.7605464", "0.7605464", "0.7573912", "0.7564637", "0.75008523", "0.7496123", "0.74648315", "0.73401344", "0.73396766", "0.723...
0.8793732
0
Is a handler registered for this specific name and type? "all" handlers are not considered. If you need to consider "all" handlers, you must check them independently, or use (bool)elgg_get_ordered_hook_handlers().
Зарегистрирован ли обработчик для этого конкретного имени и типа? Обработчики "all" не учитываются. Если вам нужно учитывать обработчики "all", вы должны проверять их отдельно или использовать (bool)elgg_get_ordered_hook_handlers().
public function hasHandler($name, $type) { return !empty($this->registrations[$name][$type]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hasHandler($entity_type_id, $handler_type);", "public function hasHandlers() {\n return !empty($this->handlers);\n }", "public function has($name)\n {\n return isset($this->handlers[$name]);\n }", "public static function hasHandler($name, $plugin=null) {\r\n if (ar...
[ "0.72055304", "0.7032729", "0.69128156", "0.68877596", "0.68718505", "0.67608595", "0.6705924", "0.66769755", "0.6180191", "0.6164526", "0.60675144", "0.60157716", "0.59728354", "0.5946055", "0.59081894", "0.5867558", "0.58553106", "0.5830427", "0.5787456", "0.5771814", "0.57...
0.7956945
0
Returns an ordered array of handlers registered for $name and $type.
Возвращает упорядоченный массив обработчиков, зарегистрированных для $name и $type.
public function getOrderedHandlers($name, $type) { $registrations = []; if (!empty($this->registrations[$name][$type])) { if ($name !== 'all' && $type !== 'all') { array_splice($registrations, count($registrations), 0, $this->registrations[$name][$type]); } } if (!empty($this->registrations['all'][$t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function executeHandlersByType($type) {\n\t\t$result = array();\n\n\t\tif (isset($this->handlers[$type])) {\n\t\t\tforeach ($this->notificationClient->data as $notificationData) {\n\t\t\t\tforeach ($this->handlers[$type] as $handler) {\n\t\t\t\t\t$result[] = $handler->execute($notificationData);\n\t\t\t\t}\...
[ "0.7161018", "0.7026488", "0.66113025", "0.6379648", "0.6107522", "0.6107522", "0.608803", "0.6029227", "0.6029227", "0.6029227", "0.59928787", "0.5945849", "0.5945849", "0.59303594", "0.58992445", "0.5879072", "0.58011216", "0.5765971", "0.57299995", "0.56806815", "0.5678479...
0.8531514
0
Retrieve the folder list
Получить список папок
public function fetchFolderList() { $client = new Client($this->getUrl()); $args = array( 'sid' => new Value($this->getSid()), ); $response = $client->send(new Request('folder.list', array(new Value($args, "struct")))); $response = json_decode(json_encode($respon...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDirList();", "public function listFolders()\n {\n return $this->_driver->listFolders();\n }", "public function getDirectories();", "public function getDirectories();", "public function listFolders()\n {\n return $this->decodeList($this->_listFolders());\n }", ...
[ "0.8484952", "0.80418897", "0.7961529", "0.7961529", "0.7913016", "0.7912574", "0.7639715", "0.74905777", "0.74160355", "0.74160355", "0.74000865", "0.73791766", "0.7378712", "0.73241615", "0.73236805", "0.7318604", "0.7307601", "0.72877115", "0.7251974", "0.7222656", "0.7213...
0.82878464
1
Fetch the document report state
Получить состояние отчета документа
public function fetchDocumentReportState($document_id) { $client = new Client($this->getUrl()); $args = array( 'sid' => new Value($this->getSid()), 'id' => new Value($document_id), ); $response = $client->send(new Request('document.get', array(new Value($args...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_documentState() :int\n\t{\n\t\treturn( $this->documentState );\n\t}", "public function getReport() {}", "public function getReport() {}", "function getReport() ;", "public function getDocumentsStatuses();", "private function query_report_data()\n {\n }", "protected function ...
[ "0.6434507", "0.63355", "0.63355", "0.6117104", "0.6025682", "0.5967133", "0.5676298", "0.5641673", "0.5618857", "0.5591743", "0.5581803", "0.55745405", "0.55716085", "0.55584836", "0.5537741", "0.5510609", "0.55091584", "0.55044657", "0.548563", "0.5480077", "0.5472045", "...
0.7153301
0
Fetch the document report ID
Получить идентификатор отчета документа
public function fetchDocumentReportId($document_id) { $client = new Client($this->getUrl()); $args = array( 'sid' => new Value($this->getSid()), 'id' => new Value($document_id), ); $response = $client->send(new Request('document.get', array(new Value($args, "...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getId() {\n\t\treturn $this->get('reportid');\n\t}", "public function getReportId(): string\n {\n return $this->reportId;\n }", "public function getReportId()\n\t{\n\t\treturn $this->report_id;\n\t}", "function getReportID() {\n\t\treturn $this->_ReportID;\n\t}", "public functi...
[ "0.74781", "0.7407043", "0.7296133", "0.72374976", "0.7165756", "0.6876116", "0.6864428", "0.6685102", "0.6668466", "0.6595459", "0.659429", "0.6584339", "0.6563596", "0.65163344", "0.64862293", "0.63471144", "0.6258361", "0.62327975", "0.6216223", "0.61977625", "0.6188312", ...
0.75795394
0
Add class to bottom sidebar widgets based on how many they are
Добавить класс к нижним виджетам боковой панели в зависимости от их количества
function cosmos_bottom_sidebar_class($params) { $sidebar_id = $params[0]['id']; if ( $sidebar_id == 'sidebar-bottom' ) { $total_widgets = wp_get_sidebars_widgets(); $sidebar_widgets = count($total_widgets[$sidebar_id]); $class = 'class="span' . floor(12 / $sidebar_widgets) . ' '; $params[0]['before_widget...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ti_footer_sidebar_class() {\n\t$count = 0;\n\n\tif ( is_active_sidebar( 'sidebar-3' ) )\n\t\t$count++;\n\n\tif ( is_active_sidebar( 'sidebar-4' ) )\n\t\t$count++;\n\n\tif ( is_active_sidebar( 'sidebar-5' ) )\n\t\t$count++;\n\n\t$class = '';\n\n\tswitch ( $count ) {\n\t\tcase '1':\n\t\t\t$class = ' col-1';...
[ "0.75337255", "0.7105763", "0.70128655", "0.6958141", "0.6936132", "0.68994963", "0.6839526", "0.67365664", "0.6620956", "0.66158795", "0.6540675", "0.6526998", "0.65110403", "0.6434694", "0.6402753", "0.6391378", "0.63322115", "0.62800354", "0.62608737", "0.6260805", "0.6218...
0.782104
0
Traverses the JWT payload to the given claim and sets a value.
Проходит по JWT payload до указанного утверждения и устанавливает значение.
protected function internalSetClaim(&$payload, $claim, $value) { $current_claim = (is_array($claim)) ? array_shift($claim) : $claim; if (is_array($claim) && count($claim) > 0) { if (!isset($payload->$current_claim)) { $payload->$current_claim = new \stdClass(); } $this->internalSetCl...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setClaim($key, $value){\n\t\t$this->payload[$key] = $value;\n\t\treturn $this;\n\t}", "public function update(Request $request, Claim $claim)\n {\n //\n }", "function setField($key, $value)\n{\n $host = getenv('Z_URL') ? getenv('Z_URL') : 'http://localhost:8080';\n $bearer = ...
[ "0.61161107", "0.5574237", "0.55351037", "0.5224094", "0.5095632", "0.5094144", "0.50593626", "0.5018905", "0.5000803", "0.49686524", "0.4956498", "0.4954332", "0.49280933", "0.48923603", "0.4892011", "0.48841655", "0.48841655", "0.48841655", "0.48546278", "0.48039994", "0.48...
0.70129365
0
Traverses the JWT payload to the given claim and unset its value.
Проходит по JWT payload до указанного утверждения и удаляет его значение.
protected function internalUnsetClaim(&$payload, $claim) { $current_claim = (is_array($claim)) ? array_shift($claim) : $claim; if (!isset($payload->$current_claim)) { return; } if (is_array($claim) && count($claim) > 0) { $this->internalUnsetClaim($payload->$current_claim, $claim); } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function destroy(Claim $claim)\n {\n //\n }", "public function destroy(Claim $claim)\n {\n //\n }", "protected function _unsetTokenRequest() {\n \n $sessionStorage = $this->getSessionStorage();\n $sessionStorage->tokenRequest = null;\n unset($session...
[ "0.59622973", "0.59622973", "0.5720983", "0.54547435", "0.5407743", "0.5396113", "0.5318857", "0.5304542", "0.5288652", "0.522043", "0.52193594", "0.51880586", "0.51459354", "0.51388305", "0.5102131", "0.50986123", "0.50963575", "0.50911266", "0.5068065", "0.5064195", "0.5055...
0.73240256
0
Is data to be render as reverse heading.
Данные должны отображаться как обратный заголовок.
private function is_reverse_heading() { return in_array( $this->id, [ 'links_ratio', 'keywords_meta', 'page_objects' ], true ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isDisplayingHeaders()\n\t\t{\n\t\t\treturn $this->displayHeaders;\n\t\t}", "public function hasHeadings()\n {\n return (bool) $this->headings;\n }", "public function getSubHeading()\n {\n return false;\n }", "public function render($data=NULL) {\n\t\treturn parent::r...
[ "0.567824", "0.5629914", "0.5595981", "0.54988366", "0.54837555", "0.5348828", "0.5341114", "0.53230447", "0.5321234", "0.5303389", "0.5296077", "0.52771574", "0.52557003", "0.5248757", "0.5210278", "0.5209881", "0.5192269", "0.5180118", "0.517761", "0.51685697", "0.51387024"...
0.80024296
0
Get tag cloud HTML.
Получить HTML теговой облака.
private function get_tag_cloud( $data ) { $font_size_max = 22; $font_size_min = 10; $max = max( $data ); $html = '<div class="wp-tag-cloud">'; foreach ( $data as $keyword => $occurrences ) { $size = ( $occurrences / $max ) * ( $font_size_max - $font_size_min ) + $font_size_min; $size = round( $size, 2...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getTagCloud()\n {\n if (!$this->tag_cloud) {\n $this->tag_cloud = $this->buildTagCloud();\n }\n return $this->tag_cloud;\n }", "function print_tag_cloud()\n{\n global $ilance, $myapi, $ilconfig, $ilpage, $show;\n \n\tif ($ilconfig['enablepopu...
[ "0.7045135", "0.69770616", "0.696068", "0.69417137", "0.69000906", "0.68904924", "0.6867985", "0.6837156", "0.659075", "0.6590201", "0.6518335", "0.6456914", "0.64353496", "0.6421965", "0.6406376", "0.6324286", "0.63235843", "0.63161093", "0.6306379", "0.6284131", "0.62802255...
0.70370823
1
Gets the states of a site.
Получает состояния сайта.
public function get_site_states( $site ) { $available_states = array( 'public' => __( 'public', 'wordpress-seo' ), 'archived' => __( 'archived', 'wordpress-seo' ), 'mature' => __( 'mature', 'wordpress-seo' ), 'spam' => __( 'spam', 'wordpress-seo' ), 'deleted' => __( 'deleted', 'wordpress-seo' ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getstates()\r\n\t{\r\n\t\treturn $this->api->get( 'states', 'getList', array() )->response();\r\n\t}", "public static function getStates();", "public static function getStates();", "public function states()\n {\n return response(LocationService::getStates());\n }", "public func...
[ "0.7277003", "0.7092814", "0.7092814", "0.67104447", "0.65732795", "0.65732795", "0.65732795", "0.65732795", "0.6513483", "0.6502114", "0.64591026", "0.64530903", "0.64219165", "0.6373933", "0.6350699", "0.6324024", "0.6306406", "0.62642103", "0.62183285", "0.6169718", "0.615...
0.7588428
0
Handles a request to update plugin network options. This method works similar to how option updates are handled in `wpadmin/options.php` and `wpadmin/network/settings.php`.
Обрабатывает запрос на обновление параметров сети плагина. Этот метод работает аналогично тому, как обрабатываются обновления параметров в `wpadmin/options.php` и `wpadmin/network/settings.php`.
public function handle_update_options_request() { $option_group = filter_input( INPUT_POST, 'network_option_group', FILTER_SANITIZE_STRING ); $this->verify_request( "{$option_group}-network-options" ); $whitelist_options = Yoast_Network_Settings_API::get()->get_whitelist_options( $option_group ); if ( empty(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function update_network_option($network_id, $option, $value)\n{\n}", "public function update_options($request)\n {\n }", "protected function processUpdateOptions()\n {\n parent::processUpdateOptions();\n // @TODO Trigger cache clear on options change, when templates are affected ...
[ "0.68729573", "0.6333156", "0.6198476", "0.61445576", "0.6143669", "0.5925467", "0.58763146", "0.5852235", "0.5826135", "0.58143145", "0.5810594", "0.5803399", "0.5702496", "0.5697519", "0.5690769", "0.56591874", "0.5653246", "0.56527245", "0.56525767", "0.5652133", "0.565213...
0.81408536
0