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
Running the wizard. Basically branching out to sub functions. Also gets and saves session data in $this>wizardData
Запуск волшебника. Основная ветвление в подфункции. Также получает и сохраняет данные сессии в $this>wizardData
public function renderNewSiteWizard_run() { // Getting session data: $this->wizardData = TemplaVoilaUtility::getBackendUser()->getSessionData('tx_templavoila_wizard'); if (TemplaVoilaUtility::getBackendUser()->isAdmin()) { switch ($this->MOD_SETTINGS['wiz_step']) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function wizard($wizard_object_name, $title = NULL, $step=NULL, array $additional_parameters = array()) {\n\t//disable browser caching\n \theader('Cache-Control: no-cache, no-store, max-age=0, must-revalidate');\n\theader('Expires: Mon, 12 Jul 1996 04:11:00 GMT'); //Any date passed.\n\theader('Pragma: no-cache');\...
[ "0.712956", "0.69614196", "0.6842068", "0.6534283", "0.6501698", "0.6457235", "0.6335374", "0.63128245", "0.62819314", "0.6266159", "0.6233984", "0.62074137", "0.619819", "0.61820716", "0.6157266", "0.61405605", "0.6102182", "0.6097806", "0.60775733", "0.60604733", "0.6056086...
0.72067773
0
Wizard Step 1: Selecting template file.
Шаг волшебника 1: выбор файла шаблона.
public function wizard_step1() { $paths = $this->getTemplatePaths(); $files = $this->getTemplateFiles(); if (!empty($paths) && !empty($files)) { $this->wizardData = array(); $pathArr = GeneralUtility::removePrefixPathFromList($paths, PATH_site); $outputStr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function templateAction()\n {\n $template = $this->selectTemplate();\n\n $this->installTemplate($template);\n\n }", "public function wizard_step3()\n {\n // Save session data with filename:\n $cfg = GeneralUtility::_POST('CFG');\n if (isset($cfg['sitetitle'])) {...
[ "0.7150611", "0.65704006", "0.6442647", "0.64199287", "0.6404228", "0.62512887", "0.62471604", "0.616564", "0.6158616", "0.6146781", "0.6129981", "0.6122214", "0.6060115", "0.60039943", "0.5972097", "0.59330815", "0.5931728", "0.5887927", "0.5858176", "0.5849247", "0.58491015...
0.7474043
0
Saves the menu TypoScript code
Сохраняет код TypoScript меню
public function saveMenuCode() { // Save menu code to template record: $cfg = GeneralUtility::_POST('CFG'); if (isset($cfg['menuCode'])) { // Get template record: $TSrecord = BackendUtility::getRecord('sys_template', $this->wizardData['typoScriptTemplateID']); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function savemenu()\n\t{\n\t\tif (!$this->auth($_SESSION['leveluser'], 'menumanager', 'create')) {\n\t\t\techo $this->pohtml->error();\n\t\t\texit;\n\t\t}\n\t\tinclude_once '../'.DIR_CON.'/component/menumanager/modules/menu.php';\n\t\t$instance = new Menu;\n\t\t$instance->save();\n\t}", "public function s...
[ "0.7413124", "0.6986222", "0.66778034", "0.667767", "0.667767", "0.667767", "0.66590726", "0.665746", "0.659513", "0.6558342", "0.6506064", "0.6243888", "0.62415755", "0.62326527", "0.61975944", "0.61933064", "0.616996", "0.61267054", "0.61176103", "0.6104646", "0.6103815", ...
0.8450481
0
Check if the token found in $_POST["token"] is the same as the one in the session. If it's the same, renew the token in session. and send true, else, send false
Проверьте, совпадает ли токен, найденный в $_POST["token"], с тем, который находится в сессии. Если они совпадают, обновите токен в сессии и отправьте true, иначе отправьте false.
public static function check() { if($_SESSION["token"] == $_POST["token"]) { self::$obselete = true; self::_make(); return true; } else { return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function check($token){\n if(isset($_SESSION['token']) && $token === $_SESSION['token']){\nunset($_SESSION['token']);\nreturn true;\n }\n return False;\n }", "public static function checkToken() {\n $token = SomeRequest::getVar('token', '', 'GET');\n $original = $_SESSION['csrf_to...
[ "0.7593981", "0.73026764", "0.7119742", "0.71117455", "0.71016437", "0.7054556", "0.704971", "0.7003389", "0.6998968", "0.69589067", "0.6905759", "0.6898779", "0.68920684", "0.68775105", "0.68587023", "0.68529713", "0.68525267", "0.6849446", "0.6809528", "0.6784892", "0.67775...
0.73766494
1
Extract the token stored in the session var. If there isn't a token, build one.
Извлеките токен, хранящийся в переменной сессии. Если токена нет, создайте его.
public static function extract() { if(empty($_SESSION["token"])) { self::_make(); } return $_SESSION["token"]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getToken () {\n\n\t\t$token = $this->session->get('token');\n\n\t\treturn (!empty($token)) ? $token : $this->newToken();\n\n\t}", "protected function retrieveSessionToken() {}", "protected function retrieveSessionToken() {}", "protected function retrieveSessionToken() {}", "protected functi...
[ "0.7442488", "0.7252491", "0.7252491", "0.7252491", "0.72523206", "0.7130785", "0.70293075", "0.6981638", "0.6834464", "0.6834386", "0.6817246", "0.67938143", "0.67705005", "0.6769371", "0.6757432", "0.6708152", "0.6698229", "0.6644759", "0.664426", "0.6591289", "0.6570518", ...
0.74045646
1
Gets collection of sub path segments that made up this path segment
Получает коллекцию подотрезков пути, составляющих этот отрезок пути
public function getSubPathSegments() { return $this->_orderBySubPathSegments; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function segments()\n {\n return explode('/',trim($this->path,'/'));\n }", "public function getSegments()\n {\n return $this->segments;\n }", "public function getSegments()\n {\n return $this->segments;\n }", "public function segments()\n\t{\n\t\treturn $this->se...
[ "0.7085049", "0.7050203", "0.7050203", "0.6978025", "0.69560087", "0.693671", "0.6905143", "0.6882429", "0.67123264", "0.6688317", "0.66442114", "0.6526059", "0.6448386", "0.6403245", "0.6378432", "0.63703793", "0.63475996", "0.6290788", "0.6266697", "0.62584573", "0.6249409"...
0.7899705
0
Allows postdelete logic to be applied to resource. Subclasses may override this method.
Разрешает применение логики postdelete к ресурсу. Подклассы могут переопределить этот метод.
protected function _postDelete() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function _postDelete()\r\n {\r\n }", "protected function hook_postDelete() {\n\t}", "protected function postDelete()\n {\n return true;\n }", "protected function afterDelete()\r\n {\r\n\r\n }", "protected function willDelete() {}", "public function postDele...
[ "0.814767", "0.78019196", "0.7292393", "0.7155034", "0.71218896", "0.70139515", "0.6987919", "0.6977226", "0.6907512", "0.687679", "0.68259144", "0.67960894", "0.6795996", "0.6794447", "0.67303616", "0.6729383", "0.6729383", "0.66578454", "0.66142803", "0.6610618", "0.6608645...
0.8147208
1
todo remove destruct or ssh2_disconnect
todo удалить destruct или ssh2_disconnect
public function __destruct() { ssh2_disconnect($this->session); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __destruct()\r\n\t{\r\n\t\tssh2_disconnect($this->ssh);\r\n\t}", "public function disconnect() {\n// if disconnect function is available call it..\n if (function_exists('ssh2_disconnect')) {\n ssh2_disconnect($this->conn);\n } else { // if no disconnect func is available,...
[ "0.7858852", "0.6930041", "0.6517927", "0.6493176", "0.6493176", "0.6493176", "0.6488515", "0.6466634", "0.64033973", "0.6385462", "0.63796663", "0.63796663", "0.6366588", "0.63620937", "0.63584167", "0.63535416", "0.6280273", "0.6275085", "0.62657577", "0.62595135", "0.62595...
0.77744794
1
Static page for having sent password reset email.
Статическая страница для отправки электронной почты сброса пароля.
public function passwordResetEmailSentAction() { return $this->render("public/static-message.html.twig", [ 'title' => "Password Reset Email Sent", 'paragraphs' => [ "Please check your inbox or junk folder for an email with a link to reset your password. This link is o...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function email()\n {\n $mail = new \\Fisdap_TemplateMailer();\n $mail->addTo($this->user->email)\n ->setSubject(\"Password Reset Confirmation\")\n ->setViewParam('passwordReset', $this)\n ->setViewParam('urlRoot', \\Util_HandyServerUtils::getCurrentServer...
[ "0.79677385", "0.77398777", "0.7640606", "0.7640213", "0.7565223", "0.750937", "0.7475774", "0.7462981", "0.7416926", "0.7379263", "0.735589", "0.7342468", "0.73231745", "0.7310781", "0.7309746", "0.723662", "0.7207373", "0.7201871", "0.71904314", "0.71794313", "0.71702343", ...
0.7988505
0
Confirmation of unsubscribe to email
Подтверждение отписки от электронной почты
public function unsubscribeConfirmationAction() { return $this->render("public/static-message.html.twig", [ 'title' => "Successfully Unsubscribed", 'paragraphs' => [ "You have been unsubscribed from these types of messages.", "At any time, you can retu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function unsubscribeAction()\n {\n $email = @$_REQUEST[\"customerEmail\"];\n if (!$email) {\n $cryptkey = Mage::getStoreConfig('mailup_newsletter/mailup/webhook_crypt_key');\n foreach ($_REQUEST as $k=>$v) {\n $k = self::rc4($cryptkey, base64_decode($k))...
[ "0.74770415", "0.7296516", "0.70532167", "0.70411617", "0.68336016", "0.6717036", "0.6706364", "0.6706059", "0.6641384", "0.6640755", "0.6609708", "0.6553563", "0.6502571", "0.64544404", "0.6438405", "0.6405953", "0.63958", "0.6385854", "0.6354743", "0.6342404", "0.6332887", ...
0.7386232
1
Determine whether the string has transformations.
Определите, имеет ли строка преобразования.
protected function hasTransformations() { return str_contains($this->string, static::KEY_SEPARATOR); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hasTransformations(): bool\n {\n return Str::contains($this->rawRules, static::KEY_SEPARATOR);\n }", "public function hasTranslate()\n {\n return (bool) $this->translate;\n }", "public function hasTranslator()\n {\n return (bool)$this->_translator;\n }", ...
[ "0.7827417", "0.6334246", "0.58990574", "0.5738389", "0.5700692", "0.5695342", "0.55833036", "0.55553615", "0.5553394", "0.5550352", "0.5520525", "0.5497651", "0.54345834", "0.54046685", "0.5398637", "0.539388", "0.5360638", "0.5351386", "0.5348792", "0.53441685", "0.5338283"...
0.7913228
0
Explode the key separator.
Разделите ключ-разделитель.
protected function explodeKey() { return explode(static::KEY_SEPARATOR, $this->string); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function explode_with_keys( $str, $separator = '|' ) {\n\t\t//\n\t\t// For historical reasons, accepts either\n\t\t// a string or an array\n\t\t$output = array();\n\t\tif ( is_array( $str ) ) {\n\t\t\t$array = $str;\n\t\t} else {\n\t\t\t$array = explode( $separator, $str );\n\t\t}\n\t\t\n\t\tfor ( $i = 0; $i < cou...
[ "0.72430074", "0.64883065", "0.6378146", "0.6316064", "0.63159734", "0.6283068", "0.6059673", "0.59876454", "0.59543353", "0.5919481", "0.5906133", "0.5872273", "0.5832172", "0.5792697", "0.57805836", "0.5766333", "0.5760038", "0.5747865", "0.57403195", "0.57388455", "0.57307...
0.8201308
0
Explode the action separator.
Разделите разделитель действий.
protected function explodeActions() { $actions = last($this->explodeKey()); return explode(static::ACTION_SEPARATOR, $actions); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function explodeAction($action)\n {\n return explode(static::ARGS_LIST, $action);\n }", "public function visitSeparator($separator);", "protected function separate()\r\n {\r\n return explode($this->getSeparator(), $this->getQuery());\r\n }", "protected function getTokenSep...
[ "0.70923656", "0.57794964", "0.5743836", "0.56820637", "0.5536572", "0.5520209", "0.54892254", "0.5434642", "0.540945", "0.53509855", "0.53439164", "0.5342692", "0.53421134", "0.53226084", "0.5308744", "0.53023094", "0.5288439", "0.52736884", "0.526274", "0.52501756", "0.5223...
0.77088827
0
Push the parsed action into a list.
Добавьте разпарсенный действия в список.
protected function pushAction($action, &$list) { if (!$this->hasArguments($action)) { return $list[$action] = []; } list($key, $value) = $this->explodeAction($action); $list[$key] = $this->explodeArgs($value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function buildListActions();", "function setListAction($url){ $this->mActions[\"listAction\"] = $url; }", "function setListAction($url){ $this->mActions[\"listAction\"] = $url; }", "protected function _init_listo_actions()\n {\n foreach ($this->listo_actions as $action)\n {\n $this->listo-...
[ "0.64574856", "0.6197817", "0.6197817", "0.60567045", "0.6017215", "0.5998205", "0.58858514", "0.58208966", "0.58033377", "0.57671404", "0.57012755", "0.56999105", "0.56759703", "0.56712943", "0.56712943", "0.5663483", "0.5656522", "0.5649685", "0.5615528", "0.5602086", "0.55...
0.7532779
0
Determine whether an action has arguments.
Определите, имеет ли действие аргументы.
protected function hasArguments($action) { return str_contains($action, static::ARGS_LIST); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hasAllArguments()\n {\n foreach ($this->action->args as $key => $val) {\n if (!isset($this->arguments[$key])) {\n throw (new Exception('Argument is not provided'))\n ->addMoreInfo('argument', $key);\n }\n }\n\n return t...
[ "0.80837876", "0.7590938", "0.7288397", "0.7097552", "0.6857046", "0.6687223", "0.66655564", "0.66502005", "0.6577406", "0.65045995", "0.6494466", "0.64860845", "0.6467051", "0.64542925", "0.644753", "0.64458776", "0.64325416", "0.64035493", "0.63836586", "0.63531774", "0.634...
0.8326667
0
Explode the given action.
Развернуть заданное действие.
protected function explodeAction($action) { return explode(static::ARGS_LIST, $action); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function explodeActions()\n {\n $actions = last($this->explodeKey());\n\n return explode(static::ACTION_SEPARATOR, $actions);\n }", "protected function parseAction($action)\n {\n if (is_string($action)) {\n return [ 'uses' => $action , 'as' => null ];\n }...
[ "0.74022955", "0.6709374", "0.6060814", "0.5834253", "0.5793295", "0.5669666", "0.5498324", "0.5464135", "0.539684", "0.53851956", "0.53814185", "0.53814185", "0.5302272", "0.52640307", "0.5262399", "0.5225598", "0.5217519", "0.51860607", "0.5172646", "0.51592755", "0.5153228...
0.7986497
0
Explode the given arguments.
Развернуть заданные аргументы.
protected function explodeArgs($args) { return explode(static::ARGS_SEPARATOR, $args); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function parseArguments(array $arguments): array\n {\n $result = [];\n foreach ($arguments as $index => $argument) {\n if ($index === 0) {\n continue;\n }\n\n list($name, $value) = explode('=', $argument);\n $result[$name] = $value...
[ "0.6129585", "0.60738647", "0.6046274", "0.6043202", "0.5942491", "0.5942491", "0.5942491", "0.5942491", "0.5942491", "0.5942491", "0.59401494", "0.59382594", "0.59326184", "0.5882595", "0.58225036", "0.58201444", "0.57941556", "0.57774365", "0.5765012", "0.5746", "0.57452816...
0.7086091
0
Loads the catalogue by locale.
Загружает каталог по локали.
public function loadCatalogue(string $locale): MessageCatalogueInterface;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function loadCatalogue($locale)\n {\n if ( isset($this->catalogues[$locale]) ) {\n return;\n }\n\n if ( null === $this->options['cache_dir'] ) {\n $this->initialize();\n \\Symfony\\Component\\Translation\\Translator::loadCatalogue($locale);\n ...
[ "0.76591194", "0.7072953", "0.699651", "0.66514844", "0.6406934", "0.6384207", "0.63744116", "0.6366633", "0.6366633", "0.63475424", "0.6318122", "0.6313113", "0.63035303", "0.6285312", "0.6285312", "0.62743694", "0.6265147", "0.6207144", "0.6165184", "0.6156871", "0.61451644...
0.7764722
0
default prepend filter chain
default prepend filter chain
function prependFilterChain() { // Directed intercepting filter event (auto_prepend) // see smart/actions/class.system_sys_prepend.php M( MOD_SYSTEM, 'sys_prepend' ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function prependFilter($filter) {\n\t\t$this->addFilter($filter, 'prepend');\n\t}", "protected function _prepend() {}", "public function prepend($prepend)\n {\n return $this->addRule(new FilterRule\\Prepend($prepend));\n }", "function appendFilterChain()\n {\n // Directed interc...
[ "0.783839", "0.73352236", "0.70997864", "0.66527957", "0.66527957", "0.6602558", "0.6545146", "0.63936055", "0.6177234", "0.61478955", "0.6137979", "0.6125483", "0.61253196", "0.6114148", "0.61039275", "0.6077436", "0.60451704", "0.6044604", "0.6023077", "0.6019535", "0.60066...
0.8188786
0
default append filter chain
цепочка фильтров по умолчанию для добавления
function appendFilterChain() { // Directed intercepting filter event (auto_append) // see smart/actions/class.system_sys_append.php M( MOD_SYSTEM, 'sys_append' ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function appendFilter($filter) {\n\t\t$this->addFilter($filter, 'append');\n\t}", "public function append($append)\n {\n return $this->addRule(new FilterRule\\Append($append));\n }", "protected function _append() {}", "public static function add_filters()\n {\n }", "public...
[ "0.7281824", "0.6704823", "0.66652286", "0.64348876", "0.64338106", "0.6244292", "0.616364", "0.60717493", "0.60708404", "0.5996553", "0.58895415", "0.58767116", "0.58503777", "0.5836772", "0.57889", "0.57761", "0.57761", "0.5758822", "0.57546395", "0.5749475", "0.5730896", ...
0.7804966
0
OneToMany (owning side) Get fkFolhapagamentoConfiguracaoEmpenhoAtributos
OneToMany (сторона, владеющая связью) Получить fkFolhapagamentoConfiguracaoEmpenhoAtributos
public function getFkFolhapagamentoConfiguracaoEmpenhoAtributos() { return $this->fkFolhapagamentoConfiguracaoEmpenhoAtributos; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFkFolhapagamentoConfiguracaoEmpenho()\n {\n return $this->fkFolhapagamentoConfiguracaoEmpenho;\n }", "public function getFkPessoalConfiguracaoFerias()\n {\n return $this->fkPessoalConfiguracaoFerias;\n }", "public function getFkFolhapagamentoConfiguracaoEmpenhoLocai...
[ "0.75032896", "0.72192585", "0.7160649", "0.7140115", "0.7138413", "0.7089837", "0.6936091", "0.6897993", "0.68955266", "0.6827371", "0.6744028", "0.6744028", "0.6744028", "0.6744028", "0.6744028", "0.6694556", "0.6694556", "0.6694556", "0.6687484", "0.6680688", "0.66806865",...
0.7730849
0
OneToMany (owning side) Get fkFolhapagamentoConfiguracaoEmpenhoEventos
OneToMany (сторона, владеющая связью) Получить fkFolhapagamentoConfiguracaoEmpenhoEventos
public function getFkFolhapagamentoConfiguracaoEmpenhoEventos() { return $this->fkFolhapagamentoConfiguracaoEmpenhoEventos; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFkFolhapagamentoConfiguracaoEvento()\n {\n return $this->fkFolhapagamentoConfiguracaoEvento;\n }", "public function getFkFolhapagamentoConfiguracaoEmpenho()\n {\n return $this->fkFolhapagamentoConfiguracaoEmpenho;\n }", "public function getFkPessoalConfiguracaoFeria...
[ "0.7604325", "0.7176144", "0.6931406", "0.6898354", "0.6898354", "0.6898354", "0.6816279", "0.67328256", "0.67145747", "0.67091346", "0.6607422", "0.6596411", "0.6592945", "0.65223783", "0.6500445", "0.6500445", "0.6468584", "0.6398556", "0.6398556", "0.6398556", "0.6344698",...
0.7787132
0
OneToMany (owning side) Get fkFolhapagamentoConfiguracaoEmpenhoLotacoes
OneToMany (сторона, владеющая связью) Получить fkFolhapagamentoConfiguracaoEmpenhoLotacoes
public function getFkFolhapagamentoConfiguracaoEmpenhoLotacoes() { return $this->fkFolhapagamentoConfiguracaoEmpenhoLotacoes; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFkFolhapagamentoConfiguracaoEmpenho()\n {\n return $this->fkFolhapagamentoConfiguracaoEmpenho;\n }", "public function getFkFolhapagamentoConfiguracaoEmpenhoLocais()\n {\n return $this->fkFolhapagamentoConfiguracaoEmpenhoLocais;\n }", "public function getFkFolhapagam...
[ "0.75221807", "0.74331623", "0.7432957", "0.7402362", "0.7373225", "0.72659093", "0.7128689", "0.70290554", "0.6979261", "0.68077064", "0.6795869", "0.67340684", "0.6654657", "0.6648125", "0.66478306", "0.6584645", "0.6584645", "0.6584645", "0.6551461", "0.6541619", "0.649851...
0.747823
1
OneToMany (owning side) Get fkFolhapagamentoConfiguracaoEmpenhoLocais
OneToMany (сторона, владеющая связью) Получить fkFolhapagamentoConfiguracaoEmpenhoLocais
public function getFkFolhapagamentoConfiguracaoEmpenhoLocais() { return $this->fkFolhapagamentoConfiguracaoEmpenhoLocais; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFkFolhapagamentoConfiguracaoEmpenho()\n {\n return $this->fkFolhapagamentoConfiguracaoEmpenho;\n }", "public function getFkImaConfiguracaoBanparaLocais()\n {\n return $this->fkImaConfiguracaoBanparaLocais;\n }", "public function getFkFolhapagamentoConfiguracaoEmpenh...
[ "0.7223817", "0.7195874", "0.71417046", "0.71068966", "0.7039212", "0.69608766", "0.69298303", "0.67416203", "0.6703088", "0.6682942", "0.65609896", "0.6554788", "0.64904594", "0.6445544", "0.6437749", "0.64220756", "0.6303027", "0.6303027", "0.62960726", "0.62960726", "0.629...
0.78103477
0
OneToMany (owning side) Get fkFolhapagamentoConfiguracaoEmpenhoSubdivisoes
OneToMany (владельцем стороны) Получить fkFolhapagamentoConfiguracaoEmpenhoSubdivisoes
public function getFkFolhapagamentoConfiguracaoEmpenhoSubdivisoes() { return $this->fkFolhapagamentoConfiguracaoEmpenhoSubdivisoes; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFkFolhapagamentoConfiguracaoEmpenho()\n {\n return $this->fkFolhapagamentoConfiguracaoEmpenho;\n }", "public function getFkFolhapagamentoConfiguracaoEmpenhoEventos()\n {\n return $this->fkFolhapagamentoConfiguracaoEmpenhoEventos;\n }", "public function getFkPessoalC...
[ "0.68745345", "0.6835519", "0.6827454", "0.68221605", "0.66927886", "0.66731983", "0.6605918", "0.66008645", "0.65047747", "0.6500863", "0.64926296", "0.6371575", "0.63709384", "0.62418514", "0.6228676", "0.6218667", "0.61959934", "0.6131599", "0.6131599", "0.61149454", "0.60...
0.7826073
0
ManyToOne (inverse side) Get fkOrcamentoPao
ManyToOne (обратная сторона) Получить fkOrcamentoPao
public function getFkOrcamentoPao() { return $this->fkOrcamentoPao; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFkOrcamentoEntidade()\n {\n return $this->fkOrcamentoEntidade;\n }", "public function getFkOrcamentoEntidade()\n {\n return $this->fkOrcamentoEntidade;\n }", "public function getFkOrcamentoEntidade()\n {\n return $this->fkOrcamentoEntidade;\n }", "pub...
[ "0.74220955", "0.74220955", "0.74220955", "0.74220955", "0.74220955", "0.74220955", "0.74220955", "0.74220955", "0.73065674", "0.73065674", "0.72154266", "0.7182071", "0.7182071", "0.7182071", "0.7182071", "0.7084859", "0.7084859", "0.7084859", "0.7084859", "0.7084859", "0.68...
0.7801601
0
ManyToOne (inverse side) Get fkFolhapagamentoConfiguracaoEvento
ManyToOne (обратная сторона) Получить fkFolhapagamentoConfiguracaoEvento
public function getFkFolhapagamentoConfiguracaoEvento() { return $this->fkFolhapagamentoConfiguracaoEvento; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFkFolhapagamentoEvento()\n {\n return $this->fkFolhapagamentoEvento;\n }", "public function getFkFolhapagamentoEvento()\n {\n return $this->fkFolhapagamentoEvento;\n }", "public function getFkFolhapagamentoEvento()\n {\n return $this->fkFolhapagamentoEvent...
[ "0.7315497", "0.7315497", "0.7315497", "0.71698475", "0.71349615", "0.70846623", "0.676034", "0.6664372", "0.6649171", "0.653366", "0.653366", "0.6461714", "0.6452627", "0.6452627", "0.64492846", "0.6426924", "0.6422182", "0.6422182", "0.6422182", "0.6422182", "0.6422182", ...
0.80225915
0
ManyToOne (inverse side) Get fkOrcamentoDespesa
ManyToOne (обратная сторона) Получить fkOrcamentoDespesa
public function getFkOrcamentoDespesa() { return $this->fkOrcamentoDespesa; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFkOrcamentoEntidade()\n {\n return $this->fkOrcamentoEntidade;\n }", "public function getFkOrcamentoEntidade()\n {\n return $this->fkOrcamentoEntidade;\n }", "public function getFkOrcamentoEntidade()\n {\n return $this->fkOrcamentoEntidade;\n }", "pub...
[ "0.71694845", "0.71694845", "0.71694845", "0.71694845", "0.71694845", "0.71694845", "0.71694845", "0.71694845", "0.69230944", "0.69230944", "0.6922233", "0.69064903", "0.69064903", "0.68876016", "0.68876016", "0.68876016", "0.68876016", "0.68876016", "0.6833311", "0.67451787", ...
0.78236705
1
OneToOne (inverse side) Get fkFolhapagamentoConfiguracaoEmpenhoContaDespesa
Один к одному (обратная сторона) Получить fkFolhapagamentoConfiguracaoEmpenhoContaDespesa
public function getFkFolhapagamentoConfiguracaoEmpenhoContaDespesa() { return $this->fkFolhapagamentoConfiguracaoEmpenhoContaDespesa; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFkFolhapagamentoConfiguracaoEmpenho()\n {\n return $this->fkFolhapagamentoConfiguracaoEmpenho;\n }", "public function getFkFolhapagamentoConfiguracaoEmpenhoLla()\n {\n return $this->fkFolhapagamentoConfiguracaoEmpenhoLla;\n }", "public function getFkPessoalContrato(...
[ "0.7425821", "0.7050903", "0.7019575", "0.7019575", "0.7019575", "0.7019575", "0.7019575", "0.7017941", "0.69509953", "0.6854907", "0.67391753", "0.6660195", "0.6660195", "0.6660195", "0.65999866", "0.65999866", "0.6579172", "0.6579172", "0.6579172", "0.6579172", "0.65004593"...
0.73715365
1
The edit action request. is responsible for updating a user record within the database. User data will be sanitized and validated before upon re submitting new data. An event will be dispatched on this action
Запрос на выполнение действия редактирования отвечает за обновление записи пользователя в базе данных. Данные пользователя будут очищены и проверены перед повторной отправкой новых данных. На этом действии будет сгенерировано событие
protected function editAction() { $this->editAction ->setAccess($this, Access::CAN_EDIT) ->setOwnerAccess($this) ->execute($this, UserEntity::class, UserActionEvent::class, NULL, __METHOD__, [], ['user_id' => $this->thisRouteID()]) ->render() ->wit...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function edit()\n {\n if (filter_input(INPUT_POST, 'id', FILTER_VALIDATE_INT)) {\n $id = filter_input(INPUT_POST, 'id', FILTER_SANITIZE_NUMBER_INT);\n } else if (filter_input(INPUT_GET, 'id', FILTER_VALIDATE_INT)) {\n $id = filter_input(INPUT_GET, 'id', FILTER_SANITIZ...
[ "0.77774656", "0.76264304", "0.76011896", "0.75792056", "0.7573208", "0.7553422", "0.7509096", "0.7487583", "0.7457403", "0.73876595", "0.7335801", "0.73259306", "0.73121387", "0.7299223", "0.72987217", "0.7253377", "0.7250087", "0.72465676", "0.72360945", "0.7211881", "0.721...
0.7715479
1
Change a user status to lock
Изменить статус пользователя на заблокированный
protected function lockAction() { $this->changeStatusAction ->setAccess($this, Access::CAN_LOCK) ->execute($this, UserEntity::class, UserActionEvent::class, NULL, __METHOD__,[], [], ['status' => 'lock']) ->endAfterExecution(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function set_status($is_locked) {\n\t\t$this->chk_key();\n\t}", "private function lock()\n {\n return $this->model->action('user','lock',\n array('job' => 'lock',\n 'id_user' => (int)$this->current_id_user,\n ...
[ "0.7259851", "0.7071041", "0.6787118", "0.6675661", "0.66668844", "0.65246576", "0.6497247", "0.64958954", "0.64913607", "0.6488828", "0.64469564", "0.64399284", "0.6417091", "0.6416185", "0.6415554", "0.64010847", "0.6338315", "0.631462", "0.6281619", "0.62730294", "0.626564...
0.75882906
0
change a user status to trash and populate the deleted_at field to remove the trash user from the main table listing
изменить статус пользователя на "мусор" и заполнить поле deleted_at, чтобы удалить пользователя-мусор из основного списка таблицы
protected function trashAction() { $this->changeStatusAction ->setAccess($this, Access::CAN_TRASH) ->execute($this, UserEntity::class, UserActionEvent::class, NULL, __METHOD__, [], [], ['deleted_at' => 1, 'deleted_at_datetime' => date('Y-m-d H:i:s')]) ->en...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function untrashAction()\n {\n $this->changeStatusAction\n ->setAccess($this, Access::CAN_UNTRASH)\n ->execute($this, UserEntity::class, UserActionEvent::class, NULL, __METHOD__,[], [],['deleted_at' => 0, 'deleted_at_datetime' => null])\n ->endAfterExecution();\n\n }", ...
[ "0.737457", "0.7257129", "0.6920506", "0.68016243", "0.66614544", "0.66535884", "0.63197714", "0.62214136", "0.6189887", "0.6157294", "0.6067582", "0.60027444", "0.5933005", "0.59036475", "0.5885786", "0.58083475", "0.58075875", "0.5806875", "0.57956696", "0.5783196", "0.5778...
0.7416275
0
Change a user status to active
Изменить статус пользователя на активный
protected function activeAction() { $this->changeStatusAction ->setAccess($this, Access::CAN_CHANGE_STATUS) ->execute($this, UserEntity::class, UserActionEvent::class, NULL, __METHOD__, [], [], ['status' => 'active']) ->endAfterExecution(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function changeUserStatusAction(){\n\t\t$this->users->changeUserStatus($this->_getParam('id'));\n\t\t$user = $this->users->getUserById($this->_getParam('id'));\n\t\techo (int)$user['active']; \t\n }", "function activateUser(){\n\t\t\n\t\tif(!empty($this->data['Admin']['id'])){\n\t\t\t$existingStatus =...
[ "0.8372541", "0.7922744", "0.78872216", "0.788407", "0.7851922", "0.7829988", "0.752879", "0.75222075", "0.74900985", "0.7487417", "0.7435312", "0.74340296", "0.73865366", "0.737578", "0.73474795", "0.7316537", "0.7268686", "0.726677", "0.726483", "0.7259208", "0.72530645", ...
0.7958499
1
Render the user preferences view
Отобразить представление пользовательских предпочтений
protected function preferencesAction() { $this->updateOnEvent ->setAccess($this, Access::CAN_EDIT_PREFERENCES) ->execute($this, UserEntity::class, UserActionEvent::class, NULL, __METHOD__, [], [], $this->userPreferenceRepo) ->render() ->with( [...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function preferences() {\n\t\treturn view('users.preferences', [ 'user' => Auth::user() ]);\n\t}", "function my_preferences() {\n $view_data[\"user_info\"] = $this->Users_model->get_one($this->login_user->id);\n\n //language dropdown\n $view_data['language_dropdown'] = array();\n ...
[ "0.7963237", "0.71355766", "0.68620217", "0.6556069", "0.6556069", "0.6556069", "0.6556069", "0.6556069", "0.6556069", "0.6556069", "0.6556069", "0.6467215", "0.6453608", "0.6369795", "0.6366091", "0.63587165", "0.6356082", "0.6336832", "0.6306147", "0.62926084", "0.6285836",...
0.7333336
1
Render the user privilege view. Note that this routes is being handled by event dispatching the record gets updated when the UserRoleActionEvent gets fired which is on this route. See that \MagmaCore\UserManager\EventSubscriber\UserRoleActionSubscriber for code implimentation
Отобразите представление пользовательских привилегий. Примечание: этот маршрут обрабатывается с помощью событий, запись обновляется при возбуждении события UserRoleActionEvent, которое происходит на этом маршруте. См. \MagmaCore\UserManager\EventSubscriber\UserRoleActionSubscriber для реализации кода.
protected function privilegeAction() { $userRoleID = $this->flattenArray($this->userRole->getRepo()->findBy(['role_id'], ['user_id' => $this->thisRouteID()])); /* additional data we are dispatching on this route to our event dispatcher */ $eventDispatchData = ['user_id' => $this->thisRouteID...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function userView() {\n if(($iUserID = $this->get('view')) != '') {\n $oUser = new APP_Model_User();\n $user = $oUser->find($iUserID);\n $user['role_name'] = PPI_Helper_User::getRoleNameFromID($user['role_id']);\n $this->adminLoad('admin/user_view', arra...
[ "0.6754049", "0.64233834", "0.6228555", "0.6139904", "0.61004525", "0.60954505", "0.6029547", "0.60253674", "0.5984164", "0.5983461", "0.59732205", "0.59702194", "0.5941779", "0.59378433", "0.59331924", "0.59001046", "0.58735764", "0.58728296", "0.586921", "0.5864842", "0.584...
0.80953765
0
/ Possible solution for Single Event page 404 errors where the WP_Query has an attachment set IMPORTANT: Flush permalinks after pasting this code:
Возможное решение для ошибок 404 Single Event страниц, где WP_Query имеет установленное прикрепление. Важно: обновите преследования после вставки этого кода:
function tribe_attachment_404_fix () { if (class_exists('TribeEvents')) { remove_action( 'init', array( TribeEvents::instance(), 'init' ), 10 ); add_action( 'init', array( TribeEvents::instance(), 'init' ), 1 ); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function wp_cache_catch_404() {\n\tglobal $wp_cache_404;\n\t$wp_cache_404 = false;\n\tif( is_404() )\n\t\t$wp_cache_404 = true;\n}", "function redirect_guess_404_permalink()\n{\n}", "function wppt_no_redirect_guess_404_permalink($header){\n global $wp_query;\n\n if (is_404())\n unset($wp_query->query_vars...
[ "0.657311", "0.64530814", "0.6099074", "0.6009641", "0.6001013", "0.5989533", "0.5977375", "0.59107083", "0.5784823", "0.57686895", "0.5755552", "0.5749863", "0.57379067", "0.57297945", "0.5725191", "0.571755", "0.57098603", "0.5704052", "0.57009697", "0.5690254", "0.56891453...
0.7115002
0
Bootstraps application and returns Doctrine Resource instnace
Запускает приложение и возвращает экземпляр Doctrine Resource
private function _getDoctrineResource($environment) { /* @var $projectProfile Zend_Tool_Project_Profile */ $projectProfile = $this->_loadProfileRequired(); $applicationConfigFile = $projectProfile ->search('ApplicationConfigFile'); $applicationDirectory ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function init()\n {\n \t$user = new User();\n \t$this->em = $this->getInvokeArg('bootstrap')->getResource('doctrine');\n }", "protected function _bootstrap($resource = null)\n {\n // factories, when retrieved from container\n }", "public function bootstrap(): Container\n { ...
[ "0.63688534", "0.62843126", "0.59033746", "0.579587", "0.57492065", "0.57479936", "0.5713821", "0.5708196", "0.5703303", "0.56792563", "0.5678533", "0.5650282", "0.56481004", "0.56447184", "0.56343806", "0.5628516", "0.5617289", "0.558767", "0.55771405", "0.55717134", "0.5571...
0.7359809
0
Assembles arguments for Doctrine_Cli
Собирает аргументы для Doctrine_Cli
private function _assembleDoctrineArguments() { $arguments = array( 0 => 'doctrine', 1 => $this->_registry->getRequest() ->getProviderParameter('command')); if (($options = $this->_registry->getRequest() ->getProviderParameter('options'))) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function buildCommandArguments();", "abstract protected function getCommandLineArguments();", "function buildCommandArgs()\n {\n $driverArgsKeys = array_keys( $this->DriverArgs );\n\n $finalArgumentsList = array();\n\n foreach( $this->InjectedDriverArgs as $driverArg )\n {...
[ "0.70977795", "0.6498149", "0.6263919", "0.61949", "0.6050742", "0.60464776", "0.60222644", "0.60053456", "0.59958345", "0.5956366", "0.5950767", "0.5826087", "0.57677937", "0.57190156", "0.5708426", "0.5687173", "0.5656563", "0.56522816", "0.5649053", "0.563503", "0.56323016...
0.71614
0
Gets the decision data.
Получает данные о решении.
public function getDataDecision() { return $this->_decision; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDecision()\n\t{\n\t\treturn $this->decision;\n\t}", "public function getDecisiones()\n {\n\n return $this->decisiones;\n }", "public function get_prediction_data() {\n return $this->prediction;\n }", "public function getData() {\n\t\treturn $this -> data;\n\t}", "p...
[ "0.67543197", "0.6555362", "0.62913895", "0.60064733", "0.6001676", "0.5965327", "0.595551", "0.59536546", "0.5949618", "0.5937045", "0.59275764", "0.59275764", "0.59275764", "0.5926808", "0.5921914", "0.59178853", "0.5909702", "0.590772", "0.59021354", "0.5901356", "0.589516...
0.8294216
0
Update the $oldKey syncState to $newKey.
Обновите $oldKey syncState до $newKey.
public function setNewSyncKey($newKey) { $this->_syncKey = $newKey; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateIdentityKey($oldKey, $newKey) {\n $key=SQRLPublicKey::get()->filter('Public_Key', Convert::raw2sql($oldKey))->first();\n if(!empty($key) && $key!==false && $key->ID>0) {\n $key->Public_Key=$newKey;\n $key->write();\n }\n }", "public function mig...
[ "0.687595", "0.63647497", "0.6335561", "0.6279714", "0.6043116", "0.60087794", "0.5991693", "0.596916", "0.57721823", "0.56635773", "0.5611702", "0.5556037", "0.54754174", "0.5407593", "0.5320522", "0.52936536", "0.52261347", "0.52186745", "0.5176318", "0.5148632", "0.5109312...
0.7495744
0
Generate a random 10 digit policy key
Сгенерировать случайный 10-значный ключ политики
public function generatePolicyKey() { return mt_rand(1000000000, 9999999999); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function generateRandomKey()\n {\n return \\GGS\\Helpers\\StringHelper::generateRandomString(static::KEY_LENGTH);\n }", "protected function generateRandomKey()\n {\n return base64_encode(random_bytes(128));\n }", "public function GenerateProvisioningPolicyKey() {\n ...
[ "0.8087559", "0.799899", "0.79664654", "0.79539824", "0.7890626", "0.7786054", "0.7764084", "0.77001405", "0.7596113", "0.75908744", "0.75821626", "0.7574702", "0.7563036", "0.752465", "0.75222063", "0.75209457", "0.7472389", "0.74564385", "0.7427987", "0.74241054", "0.739523...
0.85330325
0
Set the backend driver (should really only be called by a backend object when passing this object to client code)
Установите драйвер бэкенда (должен вызываться только бэкенд-объектом при передаче этого объекта клиентскому коду)
public function setBackend(Horde_ActiveSync_Driver_Base $backend) { $this->_backend = $backend; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setDriver($driver)\n {\n $this->driver = $driver;\n }", "public function setDriver($driver)\n {\n $this->driver = $driver;\n }", "public function setBackend($backend)\n {\n $this->_backend = $backend;\n }", "public static function setDriver($driver)\n {...
[ "0.70979184", "0.70979184", "0.70896596", "0.7047058", "0.6893914", "0.65716493", "0.65586", "0.6558598", "0.65267164", "0.63392013", "0.6337642", "0.62145483", "0.6209014", "0.61743325", "0.6162525", "0.6100106", "0.6063878", "0.60466594", "0.6043929", "0.6043929", "0.603821...
0.72360915
0
Get the number of server changes.
Получить количество изменений на сервере.
public function getChangeCount() { if (!isset($this->_changes)) { $this->getChanges(); } return count($this->_changes); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getNumberOfChanges(): int\n {\n return $this->result->getCommits();\n }", "public function count()\n {\n return count($this->changes);\n }", "public function getNumConnections()\n {\n return $this->getValueByKey($this->response, 'numConnections');\n }", ...
[ "0.76344156", "0.7339906", "0.6764709", "0.668601", "0.6605733", "0.6553377", "0.6507458", "0.6467706", "0.64571595", "0.64210224", "0.63470894", "0.6271266", "0.62535745", "0.6198309", "0.6172818", "0.61403865", "0.6124671", "0.6080989", "0.60703313", "0.60609406", "0.605063...
0.7415835
1
Return the counter for the specified syncKey.
Верните счётчик для указанного syncKey.
static public function getSyncKeyCounter($syncKey) { if (preg_match('/^s{0,1}\{([a-fA-F0-9-]+)\}([0-9]+)$/', $syncKey, $matches)) { $n = $matches[2]; return $n; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static public function getNewSyncKey($syncKey)\n {\n if (empty($syncKey)) {\n return '{' . new Horde_Support_Uuid() . '}' . '1';\n } else {\n if (preg_match('/^s{0,1}\\{([a-fA-F0-9-]+)\\}([0-9]+)$/', $syncKey, $matches)) {\n $n = $matches[2];\n $...
[ "0.59065163", "0.5762991", "0.5762991", "0.5762991", "0.5644415", "0.5601461", "0.55490315", "0.55123365", "0.5294236", "0.5256541", "0.5246307", "0.52365774", "0.5212583", "0.5120229", "0.5030271", "0.4990839", "0.49424312", "0.49354017", "0.49103728", "0.4906319", "0.482907...
0.7664051
0
Reset ALL device policy keys. Used when server policies have changed and you want to force ALL devices to pick up the changes. This will cause all devices that support provisioning to be reprovisioned.
Сбросить ВСЕ ключи политики устройств. Используется, когда политики сервера изменились, и вы хотите принудить ВСЕ устройства принять изменения. Это приведет к повторному настройке всех устройств, поддерживающих настройку.
abstract public function resetAllPolicyKeys();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function resetAllPolicyKeys()\n {\n $query = 'UPDATE ' . $this->_syncUsersTable . ' SET device_policykey = 0';\n try {\n $this->_db->update($query);\n } catch (Horde_Db_Exception $e) {\n throw new Horde_ActiveSync_Exception($e);\n }\n }", "public fun...
[ "0.79507834", "0.5817791", "0.5736216", "0.56928366", "0.55862594", "0.55794156", "0.55216914", "0.55096155", "0.5433891", "0.5424616", "0.5408165", "0.5395847", "0.53887886", "0.53582776", "0.53335106", "0.5328103", "0.52950716", "0.5291446", "0.527882", "0.5247674", "0.5239...
0.8269634
0
Set new device info
Установить новые сведения о устройстве
abstract public function setDeviceInfo($data);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testUpdateDevice()\n {\n\n }", "public function setDeviceInfo($data)\n {\n /* Make sure we have the device entry */\n try {\n if (!$this->deviceExists($data->id)) {\n $this->_logger->debug('[' . $data->id . '] Device entry does not exist, creating ...
[ "0.6871327", "0.6437507", "0.63710195", "0.6343183", "0.6341621", "0.6341621", "0.6341621", "0.6305068", "0.6280579", "0.6213861", "0.61504054", "0.6087746", "0.6053828", "0.60292935", "0.5963815", "0.5963815", "0.5963815", "0.5957737", "0.59351265", "0.5931751", "0.5875559",...
0.7724653
0
List all devices that we know about.
Перечислить все устройства, о которых мы знаем.
abstract public function listDevices();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function allDevices()\n {\n // Just to make sure, lets refresh the client\n $this->http->refresh();\n\n return $this->devices;\n }", "public function getDevices(){\n\t\t\n\t\t$reqBearer = $this->bearer;\t\t\n\t\t$this->model->getDevices($reqBearer);\n\t}", "public function get...
[ "0.79302603", "0.7843099", "0.7767459", "0.76256627", "0.7578779", "0.7568036", "0.74897647", "0.74757123", "0.74740714", "0.74018353", "0.7383478", "0.7369625", "0.7369625", "0.7369625", "0.72897196", "0.72456187", "0.720388", "0.71330947", "0.70755005", "0.7038235", "0.7001...
0.86471325
0
Adds a teacher to the course. Assumes that course has valid id
Добавляет преподавателя в курс. Предполагается, что курс имеет корректный идентификатор
public function addTeacher($teacher) { $association = new CoursesToAccounts(); $association->setCourseId($this->id); $association->setAccountId($teacher->getId()); $association->insert(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addTeacher($teacher)\n {\n $this->addUser($teacher);\n }", "function addNewTeacher()\n {\n $school_id = $this->session->school_id;\n $title = $this->security->xss_clean($_REQUEST['title']);\n $name = $this->security->xss_clean($_REQUEST['name']);\n $nic...
[ "0.7571571", "0.73472476", "0.71754295", "0.71387005", "0.7098414", "0.6979839", "0.6915437", "0.6816944", "0.67236084", "0.6620797", "0.6611936", "0.6403987", "0.6400182", "0.63612163", "0.6333495", "0.6300461", "0.62742585", "0.6263777", "0.6229487", "0.6223961", "0.614816"...
0.7682943
0
Gets the root item for a given term.
Получает корневой элемент для заданного термина.
public function getTermRoot($term=null) { $em = $this->container->get('doctrine')->getEntityManager(); return $em->getRepository('EotvosVersenyrBundle:TextPage')->getTermRoot($term); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getRoot() : MetaItemObject\n {\n return $this->root;\n }", "function get_toplevel_term($termname = '') {\n\t$result = array();\n\n\t$args_main = array(\n\t\t'name'\t\t\t\t\t\t\t\t\t\t => $termname,\n\t\t'parent' => 0,\n\t\t'orderby' => 'term_group',...
[ "0.6336953", "0.5869284", "0.55393755", "0.55393755", "0.55393755", "0.55393755", "0.54733896", "0.5443188", "0.54174614", "0.5412762", "0.5395642", "0.5395642", "0.5375581", "0.5349713", "0.534884", "0.53469384", "0.5343975", "0.53430915", "0.53415126", "0.5327689", "0.53276...
0.72033757
0
Gets the controller for a round based on it's subclass.
Получает контроллер для круга на основе его подкласса.
public function getRoundController($round) { $roundController = $this->container->get($round->getRoundtype()); return $roundController; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getController()\n {\n return Arrounded::getController($this);\n }", "public function getController()\r\n {\r\n return $this->controller ?: $this->defaultController;\r\n }", "protected function getController() {\n\t\t$controller = $this->prefix . $this->name;\n\t\t$this...
[ "0.6275062", "0.5973787", "0.5935827", "0.5863763", "0.58318937", "0.57863003", "0.57825243", "0.5718647", "0.5718647", "0.5691677", "0.5683709", "0.56784576", "0.5626227", "0.56106645", "0.5599862", "0.5592811", "0.55690485", "0.5557287", "0.5554461", "0.55256754", "0.552437...
0.7356677
0
Set top margin of the logo
Установить верхний отступ логотипа
public static function get_logo_top_margin_css() { return sprintf( ' @media (min-width: 992px){ .header__logo img { margin-top: %dpx; } }', absint( get_theme_mod( 'logo_top_margin', 35 ) ) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function _custom_logo_header_styles()\n{\n}", "public function setLogo($logo);", "public function getLogoHeight(){\r\n return 50;\r\n }", "function woodmart_override_section_margin_control( $control_stack ) {\n\t\t$control = Plugin::instance()->controls_manager->get_control_from_stack( $control_sta...
[ "0.58116937", "0.5750778", "0.5720367", "0.5665102", "0.5663205", "0.5602929", "0.5567008", "0.5556872", "0.55421025", "0.55222803", "0.5510156", "0.5467994", "0.54218245", "0.54123133", "0.54077804", "0.540565", "0.5397384", "0.5393191", "0.5349791", "0.53358924", "0.5316675...
0.70502234
0
Main title background gradient or solid color
Основной фон заголовка с градиентом или твердым цветом
public static function get_main_title_background_gradient_css() { // get theme settings for the gradient control $main_title_background_settings = get_theme_mod( 'main_title_bg_gradient_setting', array( 'start_color' => '#f5f5f5', 'stop_color' => '#eeeeee', 'is_gradient' => true, 'g...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function get_title_style() {\n\t\t$post_id = wpv_get_the_ID();\n\n\t\tif ( ! current_theme_supports( 'wpv-page-title-style' ) || is_null( $post_id ) )\n\t\t\treturn;\n\n\t\t$bgcolor = wpv_sanitize_accent( wpv_post_meta( $post_id, 'local-title-background-color', true ) );\n\t\t$bgimage = wpv...
[ "0.64348716", "0.63682085", "0.63397515", "0.61918026", "0.61249673", "0.60691226", "0.600119", "0.5922783", "0.5878442", "0.58632064", "0.58517206", "0.58436066", "0.5828977", "0.5805948", "0.5782524", "0.5757675", "0.5754405", "0.57532793", "0.57532716", "0.57475287", "0.57...
0.74082994
0
Outputs the code in head of the every page Used by hook: add_action( 'wp_head' , array( $this, 'head_output' ) );
Выводит код в начале каждой страницы Используется хуком: add_action( 'wp_head' , array( $this, 'head_output' ) );
public static function head_output() { // Theme favicon output, which will be phased out, because of WP core favicon integration if ( ! function_exists( 'has_site_icon' ) || ! has_site_icon() ) { // favicon from customizer $favicon = get_theme_mod( 'favicon' ); if ( ! empty( $favicon ) ) { printf( '<...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function head() {\n\t\t\t/* I think the favicon should be added using the wp_head hook and not like this */\n\t\t\tif ( function_exists( 'thrive_get_options_for_post' ) ) {\n\t\t\t\t$options = thrive_get_options_for_post();\n\t\t\t\tif ( ! empty( $options['favicon'] ) ) {\n\t\t\t\t\techo '<link rel=\"shortc...
[ "0.8000632", "0.78270507", "0.77063805", "0.7689913", "0.76666206", "0.75376874", "0.75261396", "0.7491334", "0.74619347", "0.74383235", "0.73935616", "0.73662525", "0.73447317", "0.73251367", "0.72792095", "0.72177845", "0.716682", "0.7136101", "0.71333027", "0.71319604", "0...
0.78450406
1
Renders the phone view
Отображает вид телефона
public function render() { return view('livewire.phone'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function renderView()\n\t{\n\t\tff_renderView(substr(__CLASS__, 7));\n\t}", "public function render()\n {\n return view('components.layout.guest.call');\n }", "public function phone_field_render() {\n $phone_value = $this->get_option_in_array('kscv_cv_contact', 'phone');\n re...
[ "0.67819065", "0.6563562", "0.64235204", "0.63575184", "0.6318052", "0.6314081", "0.6298475", "0.6298475", "0.6221694", "0.6161657", "0.6124894", "0.6119091", "0.6119091", "0.6119091", "0.6119091", "0.6119091", "0.6119091", "0.6119091", "0.6119091", "0.6119091", "0.6119091", ...
0.73408854
0
Close the form view using a blade if directive in store blade file
Закройте представление формы с помощью директивы blade в файле blade для хранения
public function closeForm() { $this->isOpen = false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function close()\n {\n return $this->push()->token()->closeTag('form')->generateForm();\n }", "public function close(){\n return FormBuilder::close();\n }", "public function close(){\n return '</form>';\n }", "public function closeTag()\r\n {\r\n return $this->...
[ "0.6796224", "0.67613024", "0.6513183", "0.65071553", "0.65007114", "0.64265114", "0.6401845", "0.63855606", "0.6293035", "0.6032898", "0.60230255", "0.5999037", "0.59815145", "0.59815145", "0.59597564", "0.594585", "0.594419", "0.59343934", "0.5920513", "0.5919425", "0.58105...
0.7072109
0
get stack trace as array
получить стек-трейс как массив
public static function getTrace() { $trace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS); if ($trace) { unset($trace[0]); unset($trace[1]); $trace = array_values($trace); return $trace; } return []; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function getBacktrace(): array\n {\n $fullBacktrace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS);\n\n $backtrace = [];\n foreach ($fullBacktrace as $trace) {\n $string = '';\n if (isset($trace['class'])) {\n $string .= $trace['class'];\n ...
[ "0.7407432", "0.73508245", "0.71167064", "0.7088229", "0.6955815", "0.6915228", "0.69091266", "0.67880565", "0.6732162", "0.6689313", "0.66892225", "0.6685186", "0.66731536", "0.6663929", "0.6663289", "0.6654905", "0.6649983", "0.66126376", "0.66095567", "0.6608799", "0.65884...
0.75539774
0
If the extension of the filename ist .css it adds the file to the htmlheader.
Если расширение имени файла .css, то файл добавляется в htmlheader.
function addAdditionalHeaderFile($filename) { $filename = '/' . str_replace(PATH_site,'',$filename); $fileparts = t3lib_div::split_fileref(strtolower($filename)); if($fileparts['realFileext'] == 'css') { //$GLOBALS['TSFE']->additionalHeaderData['special_css'] .= $GLOBALS['TSFE']->additionalHeaderData[...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function addCSSFiles()\n\t{\n\t\t//example\n\t\t// $this->pageObject->AddCSSFile(\"include/mupload.css\");\n\t}", "abstract protected function addHeader($filename);", "function addCss($file,$base='css/',$version='')\r\n{\r\n global $global;\r\n\r\n if($base == false)\r\n $base ='css/';\r\n\r\n $file=str_...
[ "0.65791744", "0.65587556", "0.655158", "0.649713", "0.6451233", "0.6428452", "0.64238167", "0.64223003", "0.6289704", "0.62682635", "0.6222996", "0.62137336", "0.6164317", "0.6162584", "0.61347085", "0.6119144", "0.6106054", "0.6032108", "0.6008054", "0.599612", "0.5952824",...
0.7026479
0
Returns informationa about converting FLEXInfo to confArra Sample: return array( 'view_mode'=> 'sMAIN:view_mode', 'listView.' => array ( 'templateFile' => 'sLISTVIEW:templatefile', ), 'typodbfield.' => array ( 'file_name.' => array ( 'file.'=> array ( 'maxW'=> 'sIMAGES:preview_max_w', 'maxH'=> 'sIMAGES:preview_max_h', ...
Возвращает информацию о преобразовании FLEXInfo в confArra Пример: return array( 'view_mode'=> 'sMAIN:view_mode', 'listView.' => array ( 'templateFile' => 'sLISTVIEW:templatefile', ), 'typodbfield.' => array ( 'file_name.' => array ( 'file.'=> array ( 'maxW'=> 'sIMAGES:preview_max_w', 'maxH'=> 'sIMAGES:preview_max_h', ...
function getFLEXConversionInfo() { return array(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function info() {\n\t\t$info = $this->pdfDocument->getMetadata();\n\t\t$info[\"Reader\"] = ($this->support == \"native\") ? 'Acroform '.ACROFORM_VERSION: $this->support;\n\t\t$info[\"Fields\"] = $this->fdfDocument->getFields();\n\t\t$info[\"Buttons\"] = $this->fdfDocument->getButtons();\n\t\t$info[\"Modes\...
[ "0.6202796", "0.6040154", "0.59859633", "0.5964664", "0.59218156", "0.59061754", "0.5815679", "0.57658875", "0.5756785", "0.5714598", "0.56951344", "0.56523097", "0.56506896", "0.5636971", "0.5627876", "0.5610109", "0.5596507", "0.5588302", "0.55852944", "0.55799335", "0.5568...
0.7224499
0
Set the extension key
Установите ключ расширения
function setExtensionKey($key) { $this->extKey = $key; // The extension key. }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setExtensionKey(string $extensionKey)\n {\n $this->extensionKey = $extensionKey;\n }", "abstract function getExtensionKey();", "public function getExtensionKey() {}", "public function extensionKeyDataProvider() {}", "public function getExtkey() {}", "public function getExtens...
[ "0.7786016", "0.71654546", "0.71571904", "0.6903211", "0.6793316", "0.6733687", "0.6712046", "0.6561332", "0.6537903", "0.648915", "0.6485779", "0.6433952", "0.63328594", "0.62671846", "0.6208029", "0.61150205", "0.61150205", "0.6101899", "0.60887253", "0.60810816", "0.607864...
0.8833502
0
Merges TSSetup and the FLEX Settings together This function will handle that process automatically. It will check for flexform values, and replace the corresponding values in the $conf array. All you have to do is to provide a mapping array, with informations about where the values are located.
Объединяет TSSetup и настройки FLEX. Эта функция автоматически обрабатывает этот процесс. Она проверит значения flexform и заменит соответствующие значения в массиве $conf. Все, что вам нужно сделать, это предоставить массив сопоставления, содержащий информацию о том, где находятся значения.
function mergeTSconfFlex($flex2conf,$conf,$flexRes) { // Temporary config array $tempConfig = $conf; //t3lib_div::debug($flexRes,1); if(!is_array($flex2conf) || !is_array($conf)) return $tempConfig; // Process each entry of the mapping array foreach($flex2conf as $key=>$value) { // Check if cu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function mergeflexFormValuesIntoConf() {}", "function mergeConfAndFlexform($configuration) {\n\t\t$mergedConfiguration = array();\n\n\t\tif(is_array($configuration) && count($configuration)>0) {\n\t\t\tforeach($configuration as $key => $val){\n\t\t\t\tif(is_array($val)) {\n\t\t\t\t\t$mergedConfiguratio...
[ "0.7135945", "0.64321625", "0.63071287", "0.6115608", "0.5904057", "0.5721429", "0.5542867", "0.55353135", "0.55151373", "0.55119157", "0.53792334", "0.5220527", "0.51361006", "0.5118527", "0.51084375", "0.5101535", "0.5087214", "0.50836086", "0.50701237", "0.5068052", "0.506...
0.7010292
1
extends the pid_list given from $conf or from $this>cObj>data recursively by the pids of the subpages generates an array from the pagetitles of those pages (copied from tx_ttnews) THX!
расширяет pid_list, переданный из $conf или из $this>cObj>data рекурсивно путем добавления pids подстраниц, генерирует массив из названий страниц (скопированных из tx_ttnews) THX!
function initPIDList() { $pidArray = array(); // pid_list is the pid/list of pids from where to fetch the plugin items. $pid_list_temp = $this->cObj->data['pages']; if($pid_list_temp) $pidArray = t3lib_div::intExplode(',', $pid_list_temp); trim($this->cObj->stdWrap($this->conf['pid_list'], $this->conf['...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function pidList($pid) {\n\t\tif ($pid > 0) {\n\t\t\t$mres = $GLOBALS['TYPO3_DB']->exec_SELECTquery(\n\t\t\t\t'uid',\n\t\t\t\t'pages',\n\t\t\t\t'pid=' . intval($pid) . ' AND deleted = 0',\n\t\t\t\t'',\n\t\t\t\t'sorting'\n\t\t\t);\n\t\t\twhile ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($mres)) {\n\t\t\t\t$this->...
[ "0.62631", "0.5958255", "0.5848458", "0.57679784", "0.5749662", "0.5724123", "0.57097524", "0.5616965", "0.5592265", "0.55889505", "0.5580963", "0.5550178", "0.5503505", "0.550227", "0.54987097", "0.54951847", "0.5445899", "0.54024804", "0.5399892", "0.5396745", "0.5381493", ...
0.7430896
0
Makes a new instance of the tslib_feUserAuth Object
Создает новый экземпляр объекта tslib_feUserAuth
function initUserAuth() { require_once (PATH_tslib."class.tslib_feuserauth.php"); $this->_objUserAuth = t3lib_div::makeInstance('tslib_feUserAuth'); //debug($GLOBALS["TSFE"]->fe_user); if(!isset($GLOBALS["TSFE"]->fe_user->user)) { $this->_objUserAuth->start(); if(isset($this->conf["allowCachi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_user_object()\n\t{\n\t\treturn Sprig::factory('userauth');\n\t}", "public function createUser()\n {\n $class = $this->getClass();\n $user = new $class();\n\n return $user;\n }", "private function _initUser()\n {\n $authClass = $this->config['auth_class'];\...
[ "0.677058", "0.6514804", "0.647271", "0.64597726", "0.6426352", "0.6405303", "0.6332446", "0.6289368", "0.6232614", "0.6221563", "0.62194294", "0.620311", "0.6198755", "0.6168497", "0.61612827", "0.6148765", "0.61436254", "0.61385065", "0.6137738", "0.611645", "0.6107931", ...
0.7238476
0
OBSOLET!!!! use getTemplateContent($strView) Looks for the right filename for the required view TSExample: plugin.tx_mmdamfilelist_pi1.listView.templateFile = list_view.tmpl
Устарело!!! используйте getTemplateContent($strView) Ищет правильное имя файла для нужного представления TSПример: plugin.tx_mmdamfilelist_pi1.listView.templateFile = list_view.tmpl
function getTemplateName($strView) { $lConf = $this->conf[$strView . '.']; $strTemplateName = ($lConf["templateFile"] ? $lConf["templateFile"] : 'list_view.tmpl'); $aTemplateFileName = t3lib_div::split_fileref($strTemplateName); if(!isset($aTemplateFileName['path']) || strlen(trim($aTemplateFileName['...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getTemplateContent($strView)\n\t\t{\n\t\t$lConf \t\t\t\t= $this->conf[$strView . '.'];\n\t\t$strTemplateName\t= ($lConf[\"templateFile\"] ? $lConf[\"templateFile\"] : 'list_view.tmpl');\n\t\t$aTemplateFileName\t= t3lib_div::split_fileref($strTemplateName);\n\n\t\t//debug($strView);\n\t\t//debug($this->con...
[ "0.8320072", "0.6991636", "0.6910722", "0.68806845", "0.67440414", "0.6573491", "0.64837635", "0.63918024", "0.63800514", "0.6379735", "0.63714594", "0.6350063", "0.62908816", "0.6278938", "0.62771773", "0.62510633", "0.6240325", "0.622035", "0.61994094", "0.61882126", "0.617...
0.7612218
1
Returns the value for the field from $this>data. If "//" is found in the $field value that token will split the field values apart and the first field having a nonblank value will be returned.
Возвращает значение поля из $this->data. Если в значении $field найдено "//", этот токен разделяет значения поля, и будет возвращено первое поле с непустым значением.
function getFieldVal($field) { if (!strstr($field,'//')) { return $this->internal['currentRow'][$field]; } else { $sections = t3lib_div::trimExplode('//',$field,1); while (list(,$k) = each($sections)) { if (strcmp($this->internal['currentRow'][$k],'')) return $this->internal['curren...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function get_field_value($field) {\r\n\t\t// Whenever the field name is passed in format like \r\n\t\t// user[name][first] we need to find the path in the \r\n\t\t// array.\r\n\t\t$path = array_filter(preg_split('~\\]\\[|\\[|\\]~', $field));\r\n\r\n\t\t// Make a local reference to work with the data. \r\...
[ "0.73304313", "0.6909488", "0.6152793", "0.6057353", "0.60293454", "0.601075", "0.60095936", "0.60003465", "0.5996346", "0.59928477", "0.59627146", "0.5952549", "0.5950821", "0.5931606", "0.5929007", "0.59127253", "0.59095776", "0.59029657", "0.59026146", "0.5884811", "0.5878...
0.7446893
0
Returns an IMGTag which represents the MIMETyp of the file (WordIcon for application/msword) Sample: If the MIMEType ist application/msword the following files are possible. (Under these rules will be searched) application_msword.gif msword.gif application.gif unknown.gif
Возвращает IMGTag, представляющий MIMETyp файла (WordIcon для application/msword). Пример: Если MIMEType равен application/msword, возможны следующие файлы. (По этим правилам будет производиться поиск) application_msword.gif msword.gif application.gif unknown.gif
function getMIMEImage($filename) { $imageTag = ''; $aFileName = t3lib_div::split_fileref($filename); if(!isset($aFileName['realFileext'])) return $imageTag; $mimetype = $this->getMimeType($filename); //debug($mimetype); $iconsetPath = 'EXT:' . $this->extKey . $this->internal['iconset_path_mimety...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getIconImageType() \n\t{\n\t\tinclude_once('Modules/File/classes/class.ilObjFileAccess.php');\n\t\t\n\t\treturn ilObjFileAccess::_isFileInline($this->title) ? $this->type.'_inline' : $this->type;\n\t}", "function getFileType() {\n\t\t$types = array(\n\t\t\t'gif' => 'GIF image - good for diagrams',\n\t\t...
[ "0.72041947", "0.7096732", "0.70165527", "0.6879381", "0.6874927", "0.6760882", "0.67377347", "0.6721572", "0.67065585", "0.66848093", "0.66228825", "0.6599143", "0.65865886", "0.657618", "0.657618", "0.65678096", "0.6567433", "0.6546502", "0.6512452", "0.6508742", "0.6507239...
0.7178671
1
Generates the header for the listView
Генерирует заголовок для listView
function pi_list_header() { $lConf = $this->conf["listView."]; $content = ''; //$strTemplateName = $this->getTemplateName('listView');; // Header soll nicht angezeigt werden if(isset($lConf['showHeader']) && $lConf['showHeader'] == 0) return $content; $aFields = $GLOBALS['TYPO3_DB']->admin_get_fiel...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function buildHeader()\n {\n $this->_container .= \" <listhead>\\n\";\n for ($col = 0; $col < $this->_columnsNum; $col++) {\n $field = $this->_columns[$col]['field'];\n $label = $this->_columns[$col]['label'];\n\n if (in_array($field, $this->_sortableFields)) {\n ...
[ "0.75016445", "0.7275294", "0.7206525", "0.7183821", "0.7168117", "0.7161036", "0.70722085", "0.7045529", "0.7038266", "0.6976505", "0.68577445", "0.68377995", "0.67384803", "0.6640843", "0.6633631", "0.6611657", "0.6600277", "0.6586292", "0.65758425", "0.65735847", "0.656877...
0.7886981
0
Generates and returns the HTMLCode for the VIEWSelector
Генерирует и возвращает HTMLCode для VIEWSelector
function getViewSelector() { $conf = $this->conf[$this->getViewType() . '.']; $template = $this->getTemplateContent($this->getViewType()); $templateOS = $this->cObj->getSubpart($template, '###VIEW_SELECTOR###'); $content = ''; $elements = array(); if(!isset($this->internal['viewselector']) || coun...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getBuildViewHtml()\n\t\t{\n\t\t\t\n\t\t\t\t$tpl = new \\Worksheet\\Template;\n\t\t\t\n\t\t\t\t$content = $this->getContent();\n\t\t\t\t$type = $this->getType();\n\t\t\t\n\t\t\t\tif (file_exists(dirname(__FILE__).\"/../blocks/\".$type.\"/build_view.php\")) {\n\t\t\t\t\tinclude dirname(__FILE__).\"/....
[ "0.6651346", "0.62705934", "0.6188823", "0.6168792", "0.61222506", "0.60990286", "0.60844123", "0.6083621", "0.6015422", "0.5991256", "0.59625536", "0.59184676", "0.5909064", "0.5905496", "0.5876343", "0.5802217", "0.5779978", "0.5756635", "0.5712395", "0.5701318", "0.5689914...
0.7109383
0
Adds the dummyfields from TS (plugin.tx_mmdamfilelist_pi1.typodbfield.dummyfieldlist = ziplink,normallink) to the fieldlist
Добавляет dummyfields из TS (plugin.tx_mmdamfilelist_pi1.typodbfield.dummyfieldlist = ziplink,normallink) в список полей
function _addDummyFields($aFields,$reset = true) { if($reset) $this->_resetDummyFieldList(); if($this->_dummyFieldList != null) { foreach($this->_dummyFieldList as $key => $value) { // Fakes the Info from $GLOBALS['TYPO3_DB']->admin_get_fields(<tablename>) $aFakeFieldInfo = array( 'Field' ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function _resetDummyFieldList()\n\t\t{\n\t\t$this->_dummyFieldList \t= null;\n\t\t$lConf\t\t\t\t\t= $this->conf['typodbfield.'];\n\t\t$aDummyFields\t\t\t= null;\n\t\t\n\t\t// For keeping thing more clean - bccms-subplugins makes its settings one level deeper\n\t\t// Example-Normal Plugins: plugin.tx_mmbccms_pi1.ty...
[ "0.75505865", "0.61972934", "0.59496963", "0.5791305", "0.575141", "0.5700182", "0.5616742", "0.5514822", "0.5500548", "0.5488733", "0.54166645", "0.5405529", "0.5383946", "0.5368272", "0.5332571", "0.53187644", "0.5282497", "0.5262259", "0.52473736", "0.5190716", "0.5184451"...
0.72602
1
Recursively gather all folders of a path. For more information you can look at the T3 function getFilesInDir $aFolders = array(); $aFolders =$this>getAllFoldersInPath($aFolders,'fileadmin/');
Рекурсивно собрать все папки по пути. Для получения дополнительной информации см. функцию T3 getFilesInDir $aFolders = array(); $aFolders =$this>getAllFoldersInPath($aFolders,'fileadmin/');
function getAllFoldersInPath($folderArr,$path,$recursivityLevels=99) { $folderArr[] = $path; //$folderArr = array_merge($folderArr, t3lib_div::getFilesInDir($path,$extList,1,1)); $dirs = t3lib_div::get_dirs($path); if (is_array($dirs) && $recur...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static function getFolders($path) {\n return self::getItems($path, '*/', 'getFolderURL');\n }", "public function getFolderList( $path ) {\n\t\t$items = array();\n\t\t$handle = opendir($path);\n\t\tif (! $handle) {\n\t\t\treturn $items;\n\t\t}\n\t\twhile (false !== ($file = readdir($handle))) {\n\t\t\tif (is_...
[ "0.68634504", "0.6733333", "0.6733333", "0.67144954", "0.66873807", "0.6683223", "0.66732514", "0.6668457", "0.66496474", "0.6610775", "0.6551542", "0.6546595", "0.6514252", "0.64957774", "0.6448086", "0.64445704", "0.63945276", "0.6391802", "0.6391802", "0.6391575", "0.63232...
0.72758174
0
Set's the current viewType (listView oder singleView)
Устанавливает текущий viewType (listView или singleView)
function setViewType($viewType = 'listView') { //$this->_viewType = (($viewType == 'singleView' || $viewType = 'listView') ? $viewType : 'listView'); $this->_viewType = $viewType; return $this->_viewType; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setType($type) {\n if($type) {\n $this->viewType = $type;\n }\n }", "private function setView()\n {\n $this->view->type = $this->request->getRequestedResource();\n }", "function getViewType() \n {//---------------------------------------->> getVie...
[ "0.73512214", "0.7004772", "0.6971984", "0.69587606", "0.6862254", "0.67845756", "0.6727461", "0.6567429", "0.6529956", "0.6507419", "0.640207", "0.63106227", "0.6278579", "0.61790127", "0.61716336", "0.61261564", "0.6052752", "0.6048786", "0.60434955", "0.6015247", "0.596801...
0.84853274
0
Returns all available users. Before you can use this function it needs at least a call to initUserAuth() Includes needed: require_once (PATH_tslib."class.tslib_feuserauth.php");
Возвращает всех доступных пользователей. Перед тем как использовать эту функцию, необходимо выполнить хотя бы один вызов initUserAuth(). Требуется: require_once (PATH_tslib."class.tslib_feuserauth.php");
function getAllUsers() { if($this->_objUserAuth == null) { $this->initUserAuth(); } $dbres = null; $userrecords = null; // removes the first AND in the predefined where_clause $whereClause = preg_replace('#^\s*AND#','',$this->_objUserAuth->user_where_clause()); $dbres ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_all_users(){ // Get all users\n\t\t\n\t}", "function listAllUsers()\n {\n\t\t$queryParts = array(\n\t\t\t'SELECT' => \"*\",\n\t\t\t'FROM' => \"fe_users\",\n\t\t\t'WHERE' => \"deleted=0\",\n\t\t\t'ORDER BY'=> \"name\"\n\t\t);\n\n\t\t$result = $GLOBALS['TYPO3_DB']->exec_SELECTquery(\n\t\t\t$queryPa...
[ "0.8419559", "0.81531096", "0.80602807", "0.7933496", "0.7929352", "0.7878967", "0.7855337", "0.7848142", "0.7826419", "0.7818259", "0.7811532", "0.7797922", "0.7768237", "0.7768237", "0.77365047", "0.77272326", "0.7726145", "0.76882255", "0.76702553", "0.7663801", "0.7659240...
0.8163086
1
Returs a short md5hash value of a specific table record
Возвращает короткое значение md5hash конкретной записи таблицы
function getRecordMD5($tablename,$uid) { $md5 = null; $SQL['select'] = '*'; $SQL['from'] = $tablename; $SQL['order_by'] = ''; $SQL['group_by'] = ''; $SQL['limit'] = ''; $SQL['where'] = 'uid=' . $uid; $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery( $SQL['select'], ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hashFile() {\n return sprintf('%s.md5', $this->db);\n }", "public function getHashMD5() {\n\t\treturn $this->hashMD5;\n\t}", "function hash() {\n\t\n\t\treturn md5(\"$3cur1tY-\".$this->id.\"-(h3(k\");\n\t}", "private function getHash(): string\n {\n return md5(sprintf(\n ...
[ "0.70882905", "0.6776944", "0.6770506", "0.67403436", "0.6707937", "0.6674858", "0.66483", "0.6583409", "0.65821415", "0.6551613", "0.6541502", "0.6532933", "0.6527558", "0.6526577", "0.65046763", "0.6449974", "0.6440879", "0.6393027", "0.6390812", "0.6385998", "0.6385998", ...
0.7906272
0
Retursn true if the settings show_empty_page_if_no_pivars ist true and if there are no piVars at the beginning of the initialisation function
Возвращает true, если настройка show_empty_page_if_no_pivars истинна и в начале функции инициализации нет piVars
function isShowEmptyPageTurnedOn() { $turnEmpty = (isset($this->conf['show_empty_page_if_no_pivars']) && $this->conf['show_empty_page_if_no_pivars'] == 1 && isset($this->internal['piVarsOnInit']) && $this->internal['piVarsOnInit'] == null && count($this->internal['piVarsOnInit']) == 0); //t3lib_div::deb...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function have_option_page() {\n\n\t\tif ( isset( $this->option_page ) AND is_array( $this->option_page ) AND ! empty( $this->option_page ) ) {\n\t\t\t$this->set( 'have_option_page', 1 );\n\t\t} else {\n\t\t\t$this->set( 'have_option_page', 0 );\n\t\t}\n\n\t\treturn $this->have_option_page;\n\n\t}", "private func...
[ "0.57399005", "0.5708512", "0.5631739", "0.5616625", "0.559002", "0.55856466", "0.55638903", "0.5550476", "0.5483202", "0.5480363", "0.54674363", "0.54450864", "0.54135156", "0.54070055", "0.5390079", "0.5382859", "0.5368507", "0.53576756", "0.5355692", "0.5355347", "0.535238...
0.80309725
0
/ Reformats the PIVarKeys to LowerCase
Переформатирует PIVarKeys в нижний регистр
function reformatPIVarsKey() { foreach($this->piVars as $key => $value) { $this->piVars[strtolower($key)] = $value; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function _normalizeKeys($key){\r\n return strtolower($key);\r\n }", "public static function ucase()\n\t{\n\t}", "public function getPackageKeyLowercase() {\n\t\treturn strtolower(self::PACKAGE_KEY);\n\t}", "protected function fix_titles($field){\n\t\t\t\t\t$field['name'] = ucwords(str_rep...
[ "0.6976857", "0.61953413", "0.6126508", "0.60886085", "0.6080036", "0.59968495", "0.5840564", "0.5830537", "0.58024466", "0.5786795", "0.577041", "0.5761151", "0.57343376", "0.57296765", "0.57067376", "0.5702591", "0.5701135", "0.56769353", "0.56591594", "0.5657047", "0.56509...
0.8371739
0
Displays the Browservars (piVars, _POST and _GET)
Показывает переменные Browservars (piVars, _POST и _GET)
function debugShowBrowserVars($checkDebugSettings = true) { if($this->isDebug() || $checkDebugSettings == false) { t3lib_div::debug("- piVars -------------------",1); foreach($this->piVars as $key => $value) { t3lib_div::debug($key . ': ' . $value,1); } echo "<br />"; t3lib_div::deb...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function escapeVars ()\n {\n \n \n if (isset($_POST))\n foreach ($_POST as $pkey => $pdata)\n $_POST[$pkey] = strip_tags(addslashes(trim($pdata)), \"<p><a><b><i><strong><img><u>\");\n \n if (isset($_GET))\n foreach ($_GET as $gkey => $gdat...
[ "0.61690754", "0.6112252", "0.6056892", "0.6051435", "0.60490054", "0.59610236", "0.5920798", "0.5919766", "0.589039", "0.58897626", "0.58806276", "0.5820632", "0.5810456", "0.5805854", "0.57724327", "0.57513076", "0.57433033", "0.57042384", "0.56657267", "0.5632058", "0.5577...
0.7307861
0
Returns a seeder instance from the Kernel based on the Context we are running in.
Возвращает экземпляр сеедера из ядра на основе контекста, в котором мы находимся.
protected function makeSeeder(console\Context $context) { $kernel = $this->getKernel(); $seeder = $kernel->make($context->getInput()->options()->get('class')); // Set the Application Kernel on the Seeder instance if applicable. if($kernel and $seeder instanceof framework\interfaces\KernelAware) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getGlobalSeeder()\r\n {\r\n // get Only GlobalSeeder\r\n $globalSeeder = $this->getSeederPath() . '/GlobalSeeder.php';\r\n // get object namespace\r\n $globalSeeder = new \\App\\Database\\Seeders\\GlobalSeeder();\r\n return $globalSeeder;\r\n }", "publi...
[ "0.64801127", "0.61784554", "0.6169555", "0.607432", "0.60638887", "0.5929269", "0.5929269", "0.59127057", "0.5898555", "0.5778066", "0.5740362", "0.57396084", "0.572353", "0.5696679", "0.56944543", "0.56944543", "0.56944543", "0.5646314", "0.5552546", "0.54949933", "0.548618...
0.7575319
0
Add restaurant to the database
Добавить ресторан в базу данных
public function add() { //form attributes $attributes = Input::all(); //validation $validation = Validator::make($attributes, $this->newItemValidationRules); //run validation if($validation->fails()) { Input::flash(); return Redirect::to('restaurants/add')->withErrors($validation); } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function insert() {\n\t\tglobal $DB_LINK, $LangUI, $db_table_restaurants, $g_rb_restaurant_id_seq;\n\t\t$sql = \"INSERT INTO $db_table_restaurants (\n\t\t\t\trestaurant_name,\n\t\t\t\trestaurant_website,\n\t\t\t\trestaurant_address,\n\t\t\t\trestaurant_city,\n\t\t\t\trestaurant_state,\n\t\t\t\trestaurant_zip,\n\t\...
[ "0.6700967", "0.65601784", "0.6548318", "0.6544769", "0.6498564", "0.6495933", "0.6493265", "0.64535993", "0.6437489", "0.64249206", "0.6410994", "0.63982654", "0.6317431", "0.62899053", "0.62627274", "0.6253244", "0.6250701", "0.6249072", "0.6246699", "0.6246339", "0.6205594...
0.7178595
0
/ FIXME: accessor for postTagTagId here /is this good? accessors for class postTag accessor method for postTagTagId
/ FIXME: accessor для postTagTagId здесь / это хорошо? accessors для класса postTag accessor метод для postTagTagId
public function getPostTagTagId() { return ($this->postTagTagId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPostTagPostId() {\n\t\treturn ($this->postTagPostId);\n\t}", "public function getIdPost(){\n\t\treturn $this->idPost;\t\n\t}", "public function getPostId(){\n return $this->postId;\n }", "function tagPost($conn, $postId, $postTag) {\n // as post is associated with a user t...
[ "0.7592753", "0.67807496", "0.66929066", "0.6656023", "0.6565073", "0.64612395", "0.6385889", "0.6369558", "0.6360493", "0.6360493", "0.63496226", "0.6296765", "0.62668073", "0.62289774", "0.6193598", "0.6183124", "0.6173413", "0.61386997", "0.61351794", "0.6112482", "0.60965...
0.7783125
0
accessor method for post tag post id
метод доступа для метки поста идентификатор поста
public function getPostTagPostId() { return ($this->postTagPostId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getIdPost(){\n\t\treturn $this->idPost;\t\n\t}", "public function getPostId(){\n return $this->postId;\n }", "function getPostId();", "public function getPostTagTagId() {\n\t\treturn ($this->postTagTagId);\n\t\t}", "public function getPostId() {\n\t\treturn $this->post_id; \n }...
[ "0.79774684", "0.78886455", "0.78555965", "0.7831319", "0.77920836", "0.77270657", "0.7646698", "0.7646698", "0.7564715", "0.7564715", "0.7564715", "0.7564715", "0.7564715", "0.7564715", "0.75335866", "0.7485641", "0.74850076", "0.7440585", "0.7409561", "0.74058634", "0.72976...
0.81182605
0
Remove the given op from the support list.
Удалите указанный op из списка поддержки.
function remove_op($op) { $key = array_search($op, $this->supported_ops); if ($key !== FALSE) { unset($this->supported_ops[$key]); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function remove();", "public function remove();", "public function remove();", "public function remove();", "public function remove();", "public function remove();", "public function remove() {}", "public function remove() {}", "abstract public function remove();", "public function removeF...
[ "0.58875614", "0.58875614", "0.58875614", "0.58875614", "0.58875614", "0.58875614", "0.5719385", "0.5719385", "0.5676912", "0.5581671", "0.5578405", "0.5508903", "0.5507369", "0.54360837", "0.5423321", "0.53948176", "0.5388266", "0.53876305", "0.53355944", "0.5317093", "0.529...
0.8331852
0
Get the type name of this destination for display to the user.
Получите имя типа этого назначения для отображения пользователю.
function get_destination_type_name() { if ($type = $this->destination_type) { $types = backup_migrate_get_destination_types(); return isset($types[$type]['type_name']) ? $types[$type]['type_name'] : $type; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTypeName()\n {\n return self::getTypes()[$this->type];\n }", "public function getDestType()\n {\n return $this->getKey('DestType');\n }", "public function getTypeName()\n {\n if (!isset(self::getTypes()[$this->type])) return 'Undefined';\n\n return ...
[ "0.7374641", "0.7344708", "0.7275297", "0.7275297", "0.72632337", "0.72108555", "0.7168423", "0.7142516", "0.7021745", "0.7009949", "0.69649214", "0.69325495", "0.68604493", "0.6838616", "0.6836794", "0.67844915", "0.6778197", "0.67703617", "0.6765971", "0.6749758", "0.673819...
0.8381824
0
Create a new destination of the correct type.
Создайте новый объект назначения правильного типа.
function create($params = array()) { $out = NULL; $types = backup_migrate_get_destination_types(); // Get the type passed in in the params, or if none, check the url for a valid type name. // This is to allow new destination type to be specified in the path. $destination_type = !empty($params['type...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function backup_migrate_create_destination($destination_type, $params = array()) {\n $params['type'] = $destination_type;\n // Create a new dummy destination to call the create method on because the base item create is not static.\n $destination = new DestinationBase();\n return $destination->create($params);\...
[ "0.7591786", "0.6415436", "0.57715976", "0.5693561", "0.56464297", "0.56154865", "0.5606839", "0.5528606", "0.5522865", "0.5522865", "0.55140465", "0.54272884", "0.53597033", "0.533864", "0.52973825", "0.5288484", "0.52875215", "0.52711415", "0.5261005", "0.52569264", "0.5256...
0.71113163
1
Unpacks float (4 bytes) or double (8 bytes) from bytes. Takes into account current endianness settings.
Распаковывает число с плавающей точкой (4 байта) или двойное число с плавающей точкой (8 байт) из байтов. Учитывает текущие настройки эндекности.
protected function unpackFloat(array $bytes) { // own unpacker $bytesCount = count($bytes); // deal with endianness if ($this->endian == self::LITTLE) $bytes = array_reverse($bytes); // unpack exponent $sign = (ord($bytes[0]) & 0x80) > 0; if ($bytesCount == 4) //...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function readFloat(Stream $stream)\n {\n $bytes = $stream->read(4);\n\n if ($this->isBigEndian) {\n $bytes = strrev($bytes);\n }\n\n list(, $result) = unpack('f', $bytes);\n\n return $result;\n }", "function BytesToFloat( $byte1, $byte2, $byte3, $byte4 )...
[ "0.6657818", "0.6451914", "0.63268965", "0.6148481", "0.61150676", "0.5984171", "0.59280753", "0.57108176", "0.56585246", "0.54956436", "0.5493516", "0.5397399", "0.5208767", "0.5202536", "0.4966497", "0.4952717", "0.49373174", "0.4895088", "0.48707932", "0.48707435", "0.4851...
0.7379255
0
// TOGGLE NEW //
// ВКЛЮЧИТЬ НОВОЕ //
public static function toggle_new($ref) { $item = new Item($ref); if($item->get_is_new() == 0) { $item->set_is_new(1); $item->update_db_item(); } elseif($item->get_is_new() == 1) { $item->set_is_new(0); $item->update_db...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function toggle(): void\n {\n $this->open = !$this->open;\n }", "public function toggle(): self\n {\n\n new Commands\\Toggle();\n return $this;\n\n }", "function toggleActive($id);", "public function toggleNew()\n {\n $new = Tag::findBySlugOrName('new');\n if ($th...
[ "0.66572", "0.6520243", "0.6109313", "0.6044724", "0.58532965", "0.5743692", "0.57413554", "0.57021755", "0.56811595", "0.5671706", "0.5664047", "0.56468415", "0.551138", "0.54927355", "0.54915243", "0.54773444", "0.54773444", "0.54773444", "0.54773444", "0.54773444", "0.5477...
0.71163094
0
Get the code collab messages.
Получить код сообщений коллаборации.
public function getCodeCollabMessages(): ?string { return $this->codeCollabMessages; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCodeCollabMessages() {\n return $this->codeCollabMessages;\n }", "function getMessages();", "public function getMessage() : array;", "public function getMessages();", "public function getMessages();", "public function getMessages();", "public function getMessages();", "pu...
[ "0.8447694", "0.709849", "0.6930072", "0.68611884", "0.68611884", "0.68611884", "0.68611884", "0.67744046", "0.6773438", "0.67230403", "0.67230403", "0.67230403", "0.67230403", "0.67230403", "0.67230403", "0.67230403", "0.67230403", "0.67230403", "0.67230403", "0.67230403", "...
0.7941847
1
Get the dossier client.
Получить клиент досье.
public function getDossierClient(): ?string { return $this->dossierClient; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDossierClient() {\n return $this->dossierClient;\n }", "public function get_client() {\n return model_client::load_by_id($this->client_id);\n }", "public function getClient()\n {\n if ( $order = $this->getOrder() ){\n return $order->client;\n }...
[ "0.9003127", "0.73088765", "0.719302", "0.7176433", "0.71673375", "0.7102946", "0.7069389", "0.706196", "0.706196", "0.706196", "0.7036755", "0.70292217", "0.7017881", "0.6975153", "0.6934157", "0.69318813", "0.691705", "0.6906888", "0.6904125", "0.689542", "0.689542", "0.6...
0.796618
1
Get the nom user.
Получить пользователя nom.
public function getNomUser(): ?string { return $this->nomUser; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getNomUser() {\n return $this->nomUser;\n }", "public function getNom(){\n\t\treturn $_SESSION[self::getIdSecure()][\"user\"][self::$_inom];\n\t}", "public function getNom_utilisateur()\n {\n return $this->nom_utilisateur;\n }", "public function getUsername(): string\n ...
[ "0.86913514", "0.81057453", "0.759371", "0.7579655", "0.75036395", "0.7454104", "0.7453399", "0.74213946", "0.74213946", "0.7400574", "0.7391202", "0.7381402", "0.73711234", "0.7331289", "0.7319753", "0.7319474", "0.72986513", "0.72911483", "0.7278253", "0.7261348", "0.724856...
0.82316124
1
Set the dossier client.
Установите клиент папки.
public function setDossierClient(?string $dossierClient): iEspaceClientDroits { $this->dossierClient = $dossierClient; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setDossierClient($dossierClient) {\n $this->dossierClient = $dossierClient;\n return $this;\n }", "public function setClient($client){\n $this->client = $client;\n }", "public function getDossierClient() {\n return $this->dossierClient;\n }", "public funct...
[ "0.7394791", "0.7170923", "0.70823157", "0.7071228", "0.70303357", "0.69910014", "0.6964615", "0.679163", "0.67356956", "0.6686898", "0.6678311", "0.6678311", "0.6653571", "0.66340095", "0.6543625", "0.64850724", "0.6485039", "0.64739263", "0.6473585", "0.6466378", "0.6441698...
0.73723453
1
When given an employee, determine which kind of teacher he or she is.
По заданному сотруднику определите, какого типа учитель он или она.
public function getTeacherType(Employee $employee) { $type = '--'; switch ($employee->id) { case $this->primary_employee_id: $type = 'Primary Teacher'; break; case $this->secondary_employee_id: $type = 'Secondary Teacher'; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_teacher($courseid) {\n\n global $CFG;\n\n if ( $teachers = get_course_teachers($courseid, \"t.authority ASC\")) {\n foreach ($teachers as $teacher) {\n if ($teacher->authority) {\n return $teacher; // the highest authority teacher\n }\n }\n ...
[ "0.6192368", "0.6144206", "0.6117012", "0.6007046", "0.5972373", "0.5905661", "0.584522", "0.5844975", "0.5760673", "0.5744702", "0.571584", "0.571511", "0.57006127", "0.5689322", "0.56352574", "0.5554429", "0.5527667", "0.5502525", "0.5491507", "0.5480648", "0.54706264", "...
0.77628255
0
Return today's attendance for a class.
Вернуть сегодняшнее посещение для класса.
public function todaysAttendance() { return $this->attendance()->today()->get(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function attendance()\n {\n return $this->hasMany('App\\AttendanceClass', 'class_id');\n }", "function class_routine_attendance($where) {\n return $this->db->select()\n ->from('class_routine')\n ->join('subject_manager', 'subject_manager.sm...
[ "0.67157966", "0.6703718", "0.64877784", "0.63666844", "0.6248989", "0.6233535", "0.6173659", "0.61668956", "0.61298734", "0.60997456", "0.6002757", "0.59728223", "0.5917516", "0.5889032", "0.5854893", "0.58338594", "0.58089757", "0.5793875", "0.57804364", "0.5756437", "0.574...
0.717991
0
Can this class take attendance?
Может ли этот класс принимать явку?
public function canTakeAttendance() { return $this->course->has_attendance ? true : false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function isTimeandattendance()\n {\n \n return (Yii::app()->user->isGuest) ? FALSE : $this->level == 6;\n }", "public function attendance()\n\t{\n\t\tif($this->session->authorized) {\n\t\t\techo json_encode($this->user->attendance());\n\t\t} else {\n\t\t\techo \"unautherized\";\n\t\t}\n\t}", "func...
[ "0.7106151", "0.7050655", "0.63398975", "0.61929584", "0.6081142", "0.601249", "0.5913302", "0.5899438", "0.5872656", "0.5866036", "0.5848378", "0.58257526", "0.58215296", "0.5816431", "0.57967734", "0.5790233", "0.5780167", "0.5775955", "0.5762374", "0.5762057", "0.5750924",...
0.7136212
0
Has attendance query scope.
Имеет область запроса посещаемости.
public function scopeHasAttendance($query) { $query->whereHas('course', function ($q) { $q->active()->hasAttendance(); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function scopeAttendancePresent($query)\n {\n $query->whereHas('attendance', function ($q) {\n $q->present();\n });\n }", "public function scopeAttendanceOnDate($query, $date = 'Y-m-d')\n {\n $query->whereHas('attendance', function ($q) use ($date) {\n $...
[ "0.7179359", "0.6736657", "0.6300942", "0.6199395", "0.6114722", "0.6059187", "0.60410035", "0.6012986", "0.5970518", "0.5967687", "0.5942461", "0.5933648", "0.5883839", "0.5875659", "0.5875464", "0.58729327", "0.5864289", "0.5861197", "0.57933223", "0.57754165", "0.5772849",...
0.7765539
0
Has attendance on date query scope.
Имеется запрос на дату посещения.
public function scopeAttendanceOnDate($query, $date = 'Y-m-d') { $query->whereHas('attendance', function ($q) use ($date) { $q->where('date', $date); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function scopeHasAttendance($query)\n {\n $query->whereHas('course', function ($q) {\n $q->active()->hasAttendance();\n });\n }", "public function scopeAttendancePresent($query)\n {\n $query->whereHas('attendance', function ($q) {\n $q->present();\n ...
[ "0.7328999", "0.7049223", "0.66207457", "0.63878834", "0.63797295", "0.6280385", "0.6267761", "0.6131205", "0.61098087", "0.61054456", "0.60507315", "0.60284275", "0.6025289", "0.60203034", "0.5961844", "0.5958262", "0.5837317", "0.58308643", "0.58276254", "0.5824463", "0.582...
0.7787679
0
This class has many attendance.
Этот класс имеет много посещений.
public function attendance() { return $this->hasMany('App\AttendanceClass', 'class_id'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function attendance()\n {\n return $this->hasMany('App\\Attendance');\n }", "public function attendances()\n {\n return $this->hasMany('App\\Attendance');\n }", "public function attendances(){\n return $this->hasMany(Attendance::class, 'classroom_id');\n }", "public...
[ "0.7981536", "0.79383075", "0.7927936", "0.75386137", "0.75363636", "0.74664325", "0.6944601", "0.6867689", "0.65092504", "0.64479005", "0.6429677", "0.6419937", "0.6394649", "0.6382314", "0.629521", "0.629521", "0.629521", "0.62622374", "0.62581354", "0.6208401", "0.61814916...
0.8058116
0
This class belongs to a primaryEmployee.
Этот класс принадлежит основному сотруднику.
public function primaryEmployee() { return $this->belongsTo('App\Employee', 'primary_employee_id', 'id'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function employee(){\n\t\treturn parent::employee();\n\t}", "public function getEmployee()\n {\n return $this->hasOne(User::className(), ['id' => 'employee_id']);\n }", "public function getEmployeeId()\n\t{\n\t\treturn $this->employeeId;\n\t}", "public function getEmployeeId()\n {\n ...
[ "0.68658525", "0.6688136", "0.6635404", "0.65713036", "0.65557367", "0.654782", "0.6524946", "0.64699244", "0.640716", "0.6385315", "0.63502735", "0.6308052", "0.62846696", "0.6240874", "0.6213094", "0.6187769", "0.6178222", "0.61782056", "0.6149486", "0.61303145", "0.6121098...
0.7391236
0
This class belongs to a secondaryEmployee.
Этот класс относится к secondaryEmployee.
public function secondaryEmployee() { return $this->belongsTo('App\Employee', 'secondary_employee_id', 'id'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function employee(){\n\t\treturn parent::employee();\n\t}", "public function secondaryTeacher()\n {\n return $this->hasMany('App\\CourseClass', 'secondary_employee_id');\n }", "public function primaryEmployee()\n {\n return $this->belongsTo('App\\Employee', 'primary_employee_id', ...
[ "0.6384709", "0.6285789", "0.62669945", "0.6149963", "0.6036207", "0.5990284", "0.5986178", "0.59360754", "0.5923189", "0.5882224", "0.58589065", "0.58550686", "0.5848903", "0.5843234", "0.5790056", "0.5775925", "0.57626516", "0.57592046", "0.5740828", "0.57305306", "0.573053...
0.75186116
0
Retrieve the term name.
Получить имя термина.
public function get_term_name() : string { return $this->term->name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getAcademicTermName($term = false){\n if (!$term)\n $term = $this->getAcademicTerm();\n return $term['name'];\n }", "public function getTerm()\n {\n return $this->term;\n }", "public function getTerm()\n {\n return $this->term;\n }", "p...
[ "0.75671047", "0.74539846", "0.74539846", "0.7372591", "0.73696786", "0.7140834", "0.7101109", "0.7088135", "0.70117813", "0.6952213", "0.6868815", "0.6821613", "0.6783012", "0.66893595", "0.6672703", "0.66588885", "0.6644301", "0.6634113", "0.65382504", "0.65125304", "0.6512...
0.8617254
0
Returns tags of given node and locale.
Возвращает теги узла и локали.
private function getTags(NodeInterface $node, $locale) { return $node->getPropertyValueWithDefault( \sprintf(self::TAGS_PROPERTY, $locale), [] ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getLocalesXML($node)\n {\n $locales = $this->getLocales();\n\n foreach ($locales as $localeName => $items) {\n foreach ($items as $i => $data) {\n $data['path'] = preg_replace('|^/locale/|u', '', $data['path']);\n $data['value'] = preg_repla...
[ "0.61007667", "0.6100248", "0.599892", "0.59874177", "0.5905538", "0.5854804", "0.5696861", "0.5696861", "0.5696861", "0.56455183", "0.5583722", "0.5583722", "0.55817467", "0.5561715", "0.5529399", "0.5511119", "0.54680884", "0.5449474", "0.5442141", "0.5434997", "0.5431864",...
0.81269115
0
Returns categories of given node and locale.
Возвращает категории заданного узла и локали.
private function getCategories(NodeInterface $node, $locale) { return $node->getPropertyValueWithDefault( \sprintf(self::CATEGORIES_PROPERTY, $locale), [] ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getEnabledCategoriesAsTree($locale)\n {\n $qb = $this->getEntityManager()->createQueryBuilder();\n $result = $qb->select('c')\n ->from($this->categoryEntity, 'c')\n ->where('c.status = 1')\n ->andWhere('c.locale = :locale')->setParameter('locale', $...
[ "0.65102595", "0.6139319", "0.60821", "0.6065572", "0.6065572", "0.6065572", "0.59922975", "0.59865093", "0.59414965", "0.59277153", "0.5916419", "0.59041166", "0.58399147", "0.57937", "0.5785399", "0.57183754", "0.570987", "0.57065266", "0.5694346", "0.5693763", "0.5682886",...
0.80399734
0
Returns navigation context of given node and locale.
Возвращает контекст навигации узла и локали.
private function getNavigationContext(NodeInterface $node, $locale) { return $node->getPropertyValueWithDefault( \sprintf(self::NAVIGATION_CONTEXT_PROPERTY, $locale), [] ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function visit(Node $node): Context\n {\n // TODO: if ($this->context->isInGlobalScope()) {\n // copy local to global\n // }\n\n return \\end($this->child_context_list) ?: $this->context;\n }", "abstract public function getTranslationIn(string $locale);",...
[ "0.5632516", "0.5330219", "0.5284455", "0.5249851", "0.51925284", "0.51925284", "0.5176256", "0.49717695", "0.48349124", "0.48286083", "0.48279962", "0.48206607", "0.47760752", "0.47720477", "0.47720477", "0.47720477", "0.47720477", "0.47720477", "0.47527328", "0.47232753", "...
0.8239234
0