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
Prints watch videos page.
Печатает страницу видео с часами.
function wpc_2018_print_watch_videos_content( $content ) { if ( function_exists( 'wpcampus_print_watch_videos' ) ) { wpcampus_print_watch_videos( 'wpc-videos', array( 'playlist' => 'wpcampus-2018', 'show_event' => false, 'show_filters' => false, )); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function wpc_2016_print_watch_videos_content( $content ) {\n\tif ( function_exists( 'wpcampus_print_watch_videos' ) ) {\n\t\twpcampus_print_watch_videos( 'wpc-videos', array(\n\t\t\t'playlist' => 'wpcampus-2016',\n\t\t\t'show_event' => false,\n\t\t\t'show_filters' => false,\n\t\t));\n\t}\n}", "public funct...
[ "0.72184587", "0.6371902", "0.63163924", "0.63097936", "0.62435746", "0.622321", "0.6176564", "0.6164794", "0.6153655", "0.6133823", "0.6124422", "0.6115143", "0.60959274", "0.60726327", "0.6063696", "0.6013747", "0.6006231", "0.5990126", "0.59749126", "0.59701407", "0.595036...
0.71291244
1
encode id to hash string
закодировать id в хеш-строку
public static function hashEncodeInt($id) { $salt = \Yii::$app->params['hashid.salt']; $minLength = \Yii::$app->params['hashid.minLength']; $encodeString = ''; $ha = new Hashids($salt, $minLength); $encodeString = $ha->encode($id); return $encodeString; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getIdHash() {\n return encrypt( [ 'id' => $this->id ] );\n }", "private function encode_id( $id ) {\n\t\treturn base64_encode( $id );\n\t}", "function hashid_encode($data, $name = null)\n {\n return hashid($name)->encode($data);\n }", "public static function encodeIdAct...
[ "0.7730453", "0.772805", "0.7471882", "0.7462594", "0.7402388", "0.7264607", "0.7242917", "0.7193168", "0.7179232", "0.7132763", "0.7087553", "0.69910973", "0.69087344", "0.6888903", "0.6871193", "0.67771757", "0.67180806", "0.6675878", "0.6599424", "0.65475595", "0.65045196"...
0.7815603
0
split http header response into array
разделить http заголовок ответа на массив
function http_response_header_lines($hdr_str) { $lines = explode("\n", $hdr_str); $hdr_arr['status_line'] = trim(array_shift($lines)); foreach ($lines as $line) { list($key, $val) = explode(':', $line, 2); $hdr_arr[trim($key)] = trim($val); } return $hdr_arr; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function http_response_headers($ret_str) {\n\t$hdrs = array();\n $arr = explode(\"\\r\\n\\r\\n\", $ret_str);\n foreach ($arr as $each)\n\t\tif (substr($each, 0, 4) == 'HTTP')\n\t\t\t$hdrs[] = $each;\n return $hdrs;\n}", "function getHeaders($respHeaders)\n{\n $headers = array();\n\n $headerText = ...
[ "0.73479515", "0.72186905", "0.7212431", "0.71825874", "0.7142414", "0.7142414", "0.7142414", "0.7142414", "0.7142414", "0.7142414", "0.7142414", "0.70838654", "0.704647", "0.7034281", "0.7026964", "0.6987525", "0.69862616", "0.6935225", "0.69257486", "0.69257486", "0.6925748...
0.7586716
0
Get current class loader
Получить текущий загрузчик классов
public function getClassLoader() { return $this->classLoader; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected static function getClassLoader() {}", "public function get_loader()\n {\n return $this->loader;\n }", "public function get_loader() {\n\t\treturn $this->loader;\n\t}", "public function get_loader() {\n\t\treturn $this->loader;\n\t}", "public function get_loader() {\n\t\treturn $this-...
[ "0.75710714", "0.7341214", "0.7317648", "0.7317648", "0.7317648", "0.7317648", "0.7317648", "0.7317648", "0.7317648", "0.7317648", "0.7317648", "0.710501", "0.7070505", "0.6943578", "0.6754278", "0.66970307", "0.6660568", "0.66097414", "0.6464757", "0.6407922", "0.639319", ...
0.8027073
0
Adds a key to the array if not allready exists like: $array = array('foo' => 'bar'); $array = array_add($array, 'key', 'value');.
Добавляет ключ в массив, если он еще не существует, например: $array = array('foo' => 'bar'); $array = array_add($array, 'key', 'value');.
function array_add($array, $key, $value) { if (!isset($array[$key])) { $array[$key] = $value; } return $array; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function array_add($array, $key, $value)\n\t{\n\t\tif ( ! isset($array[$key])) $array[$key] = $value;\n\n\t\treturn $array;\n\t}", "function array_add(array $array, string $key, $value):array\n\t{\n\t\tif (is_null(get($array, $key)))\n\t\t{\n\t\t\tset($array, $key, $value);\n\t\t}\n\n\t\treturn $array;\n\t}", ...
[ "0.81507206", "0.76679283", "0.7539807", "0.7490153", "0.7490153", "0.7129647", "0.7006724", "0.6836951", "0.6780913", "0.64957905", "0.64640117", "0.6351146", "0.6292318", "0.6284772", "0.62483805", "0.6234855", "0.62160766", "0.62023747", "0.61330223", "0.6118586", "0.60863...
0.8506814
0
Returns a list of page numbers separated by $separator
Возвращает список номеров страниц, разделенных $separator
function pageNumbers($separator=null) { if (empty($this->_pageDetails) || $this->_pageDetails['pageCount'] == 1) { return false; } $t = array(); $text = ''; $pc = 1; do { if($pc == $this->_pageDetails['page']) { $text = '<span>'.$pc.'</span>'; } else { if($this->style == 'a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function myPageNumbers($separator=null)\n\t{\n\t\tif (empty($this->_pageDetails) || $this->_pageDetails['pageCount'] == 1) { return false; }\n\t\t$t = array();\n\t\t$text = '';\n\t\t$pc = 1;\n\t\t do \n\t\t {\n\t\t\t if($pc == $this->_pageDetails['page'])\n\t\t\t {\n\t\t\t\t$text = '<span class=numberlinkon> '.$...
[ "0.8161145", "0.67474955", "0.62342", "0.6144174", "0.60108674", "0.5964183", "0.595724", "0.594568", "0.5809402", "0.5756099", "0.56740075", "0.55723804", "0.5505724", "0.5476217", "0.5471395", "0.54218286", "0.54218286", "0.54006463", "0.5388477", "0.53874815", "0.5366174",...
0.82875407
0
Returns a list of page numbers separated by $separator
Возвращает список номеров страниц, разделенных $separator
function myPageNumbers($separator=null) { if (empty($this->_pageDetails) || $this->_pageDetails['pageCount'] == 1) { return false; } $t = array(); $text = ''; $pc = 1; do { if($pc == $this->_pageDetails['page']) { $text = '<span class=numberlinkon> '.$pc.'</span>'; } else { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function pageNumbers($separator=null)\n\t{\n\t\tif (empty($this->_pageDetails) || $this->_pageDetails['pageCount'] == 1) { return false; }\n\t\t$t = array();\n\t\t$text = '';\n\t\t$pc = 1;\n\t\t do \n\t\t {\n\t\t\t if($pc == $this->_pageDetails['page'])\n\t\t\t {\n\t\t\t\t$text = '<span>'.$pc.'</span>';\n\t\t\t ...
[ "0.82875407", "0.67474955", "0.62342", "0.6144174", "0.60108674", "0.5964183", "0.595724", "0.594568", "0.5809402", "0.5756099", "0.56740075", "0.55723804", "0.5505724", "0.5476217", "0.5471395", "0.54218286", "0.54218286", "0.54006463", "0.5388477", "0.53874815", "0.5366174"...
0.8161145
1
Displays a link to the previous page, where the page doesn't exist then display the $text
Показывает ссылку на предыдущую страницу, если страница не существует, отображает $text
function prevPage($text='prev') { if (empty($this->_pageDetails)) { return false; } if ( !empty($this->_pageDetails['previousPage']) ) { if($this->style == 'ajax') { //$t = $this->Ajax->linkToRemote($text, array("fallback"=>$this->action."#","url" => $this->link.$this->_pageDetails['previousPage'],"up...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function previous($text)\n\t{\n\t\treturn $this->backwards(__FUNCTION__, $text, $this->page - 1);\n\t}", "function PreviousUrl($id, $text)\n\t{\n\t\t$path = ARTICLE;\n\t\t$new_id = $id - 1;\n\t\t// if id=0 this is the first article, so don't show text\n\t\tif ($new_id == 0){\n\t\t\treturn \"\";\n\t\t//...
[ "0.7728658", "0.761609", "0.7378077", "0.7298928", "0.72882986", "0.7176808", "0.7164734", "0.71109456", "0.70618325", "0.70093465", "0.700824", "0.691703", "0.6864042", "0.6854228", "0.67319095", "0.67174816", "0.67074054", "0.6676611", "0.6676403", "0.66725117", "0.6671372"...
0.8316928
0
Displays a link to the next page, where the page doesn't exist then display the $text
Показывает ссылку на следующую страницу, если страница не существует, то отображает $text
function nextPage($text='next') { if (empty($this->_pageDetails)) { return false; } if (!empty($this->_pageDetails['nextPage'])) { if($this->style == 'ajax') { //$t = $this->Ajax->linkToRemote($text, array("fallback"=>$this->action."#","url" => $this->link.$this->_pageDetails['nextPage'],"update" => "...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function next() {\n if ($this->currentPage < $this->totalPage) {\n print '<li><a href=\"' . $this->url . '&page=' . ($this->currentPage + 1) . '\">&gt;</a></li>';\n }\n }", "public function next(string $text = 'Next', array $options = []): string\n {\n return $this->generateLink($te...
[ "0.72525835", "0.7088597", "0.7022927", "0.69762427", "0.68411785", "0.68309224", "0.6763134", "0.6693151", "0.6586086", "0.6478846", "0.64167935", "0.6394911", "0.63409", "0.6329707", "0.6272749", "0.6260567", "0.6243084", "0.62086666", "0.62011236", "0.61731035", "0.6145034...
0.8054678
0
Create the view object.
Создайте объект view.
public function createView();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createView(){\n\t\t$vue = new View(\"Create\");\n\t\t$vue->generer();\n\t}", "public function create()\n {\n return view($this->_config['view']);\n }", "function __construct()\r\n {\r\n $this->view = new View();\r\n }", "function __construct()\n {\n $this->...
[ "0.794952", "0.76571953", "0.7395223", "0.7379122", "0.7336238", "0.7288675", "0.7211296", "0.7208456", "0.71926713", "0.7186296", "0.7142922", "0.70601517", "0.702001", "0.70051837", "0.6971911", "0.697179", "0.6914115", "0.68875027", "0.68810904", "0.6880818", "0.68716836",...
0.84783465
0
Create the owner representation.
Создайте представление владельца.
public function createOwner();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create()\n {\n return view ('owner.create');\n }", "public function create()\n {\n //\n return view('create_owner');\n }", "public function create()\n {\n return view('owner.create');\n }", "public function create()\n {\n return view('ow...
[ "0.7349649", "0.723654", "0.7211741", "0.7211741", "0.7182614", "0.6769957", "0.6648783", "0.66088873", "0.6580069", "0.65343875", "0.64591855", "0.6400853", "0.6386555", "0.63546115", "0.62972206", "0.6227148", "0.62033653", "0.620312", "0.620312", "0.620312", "0.62007326", ...
0.79933745
0
Create the data provider.
Создайте поставщика данных.
public function createProvider();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createData()\n {\n // TODO: Implement createData() method.\n }", "protected function initDataProvider() {\n\t\t/** @var $dataProvider Tx_Taxonomy_Service_ExtDirect_Controller_DataProvider */\n\t\t$dataProvider = t3lib_div::makeInstance('Tx_Taxonomy_Service_ExtDirect_Controller_DataPr...
[ "0.691703", "0.6883793", "0.67868966", "0.66193867", "0.65907615", "0.6486428", "0.6482713", "0.6482713", "0.62751126", "0.622989", "0.62173843", "0.6124171", "0.607909", "0.6061989", "0.6054555", "0.60082346", "0.598421", "0.59657675", "0.593381", "0.5905784", "0.58849627", ...
0.7122672
0
Return true if timer is elapsed.
Верните true, если таймер истек.
public function isElapsed() { return ($this->isTimeout() || $this->isLimitExceeded()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testElapsed() {\n // Stop the timer\n $this->timer->stop();\n\n // Get the elapsed time\n $elapsed_time = $this->timer->get_elapsed();\n\n // It should be less than a second\n $this->assertTrue( $elapsed_time > 0 && $elapsed_time < 1 );\n }", "public f...
[ "0.7291701", "0.72388834", "0.7129007", "0.6868388", "0.680269", "0.67644596", "0.6743978", "0.66864604", "0.6598486", "0.6591055", "0.64075446", "0.63855726", "0.63587296", "0.6354655", "0.6304697", "0.62776744", "0.6229328", "0.62247473", "0.6218459", "0.61759305", "0.61748...
0.7796271
0
Runs the deploy process
Запускает процесс развертывания
public function deploy(){ // load all configuration, payload, etc $this->load(); // setup directories $this->setup_dirs(); // initialise local git repositories $this->init_repo(); // run the deployment $this->_deploy(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function rdeploy() {\n\t\techo BR, TAB, TAB, '### checkOnce', BR;\n\t\t$this->checkOnce();\n\n\t\techo BR, TAB, TAB, '### pushAll', BR;\n\t\t$this->pushAll();\n\t\ttry {\n\t\t\t$exists = $this->rexists();\n\t\t} catch (\\SystemCommandException $e) {\n\t\t\t$exists = false;\n\t\t}\n\n\t\techo 'The destination folde...
[ "0.7791337", "0.75530183", "0.7403991", "0.7403991", "0.71118796", "0.6850574", "0.6759336", "0.64493597", "0.64446783", "0.64348465", "0.6363942", "0.630397", "0.63000774", "0.6112146", "0.60748327", "0.6056126", "0.6055078", "0.60430974", "0.60372525", "0.60299265", "0.6026...
0.8422718
0
Tests commands needed for deployment
Команды тестирования, необходимые для деплоя
public function test_commands() { // test git if ( ! $this->test_cmd( 'git' ) ) { error( '501 Not Implemented', '<code>git</code> is not installed' ); } // if we're running a slim deploy but the remote deosn't support `git archive`, // we need svn to run `svn export` if ( SLIM && ($this...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testDeploy()\n {\n }", "public function beforeStartingDeploy()\n {\n // $this->runLocal('./vendor/bin/simple-phpunit');\n }", "public function testNameAndArguments()\n {\n $this->assertEquals('contao:install-web-dir', $this->command->getName());\n $this->asse...
[ "0.7459329", "0.7122933", "0.63586414", "0.6288866", "0.62183785", "0.6218028", "0.61845714", "0.61533713", "0.6142157", "0.6081859", "0.60757345", "0.60705394", "0.6056716", "0.6052736", "0.60347545", "0.5993077", "0.5987081", "0.5967315", "0.5966268", "0.596555", "0.5935672...
0.7939011
0
Initialises local git repos
Инициализирует локальные репозитории git
public function init_repo() { // we don't need to maintain local repos for slim deploys if ( SLIM ) { return; } // if the repo is already initialised, we don't need to if ( is_dir( "wpd-repos/{$this->config->repo[ 'name' ]}/.git" ) ) { return; } // store the directory we're in right now,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function init() {\n $git_wrapper = new \\GitWrapper\\GitWrapper();\n if (file_exists($this->directory)) {\n $this->git = $git_wrapper->workingCopy($this->directory);\n $this->git->checkout($this->branch);\n }\n else {\n $this->git = $git_wrapper->cloneRepository($this->getReposito...
[ "0.7279545", "0.6670897", "0.6670897", "0.654073", "0.64604723", "0.6432269", "0.63350374", "0.63283527", "0.63090694", "0.62556434", "0.62288153", "0.615954", "0.6146635", "0.6120152", "0.5970345", "0.59287566", "0.59048176", "0.5866624", "0.5812064", "0.5783141", "0.5760324...
0.7953516
0
Associate the current subdomain with it's set association
Связать текущий поддомен с его установленной ассоциацией
function associateSubdomain($sd=false) { if(!$sd) $sd = SUBDOMAIN; if($sd) { global $DB; return $DB->subdomains->getCell(array('subdomain' => $sd), 'assoc'); } else { return 'frontpage'; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function register_subdomain() {\n\t$host = $_SERVER['HTTP_HOST'];\n\tif ($this->config->base_domain) $this->subdomain = preg_replace('/\\.'.$this->config->base_domain.'$/i', '', $host);\n\telse {\n\t\t$parts = explode('.', $host);\n\t\t// we're going to assume a single level tld, like .com, rather than a m...
[ "0.65115553", "0.6146808", "0.59660184", "0.5785171", "0.57528764", "0.5716687", "0.56461585", "0.5638809", "0.5620155", "0.5549493", "0.55481905", "0.55077696", "0.5505932", "0.54905224", "0.5456437", "0.5420965", "0.53574", "0.53569096", "0.5341232", "0.53346074", "0.531813...
0.72454435
0
This function takes an error code and redirects it to an errorpage
Эта функция принимает код ошибки и перенаправляет его на страницу ошибки
function errorPage($error){ switch($error){ case 401: header('HTTP/1.1 401 Unauthorized'); break; case 403: header('HTTP/1.1 403 Forbidden');; break; case 404: header('HTTP/1.1 404 Not Found'); break; } global $C...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function redirect_error($code, $url = null) {\n\n global $CFG;\n\n // Set the redirect URL if it wasn't specified as a parameter\n if (!$url) {\n $url = $CFG->wwwroot;\n }\n\n // URL encode parameters to error page\n $code = urlencode($code);\n $url = urlencode($url);\n\n // Redirect...
[ "0.7973909", "0.7315906", "0.7278016", "0.72668135", "0.72423583", "0.7224111", "0.7188935", "0.7155267", "0.71461207", "0.7076318", "0.7050263", "0.7047342", "0.7018382", "0.7002094", "0.69734836", "0.69505495", "0.69312435", "0.6897051", "0.6889859", "0.6879199", "0.6874412...
0.7574105
1
Checks if the given path is a file, and if it's extension is a known imageextension
Проверяет, является ли заданный путь файлом, и если его расширение является известным расширением изображения
function isImage($path) { global $CONFIG; return (is_file($path) && in_array(strtolower(pathinfo($path, PATHINFO_EXTENSION)), $CONFIG->extensions->images)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function isImage(string $path): bool\n{\n $ext = getExtension($path);\n return ($ext === \"jpg\" || $ext === \"jpeg\" || $ext === \"png\");\n}", "function isPhoto($path) \n {\n $exploded = explode('.', $path);\n $ext = strtolower(end($exploded));\n // Define the photos extensions\n ...
[ "0.7891073", "0.76301455", "0.757281", "0.74448603", "0.7400308", "0.7331621", "0.72882354", "0.72719467", "0.72670346", "0.72578436", "0.7213137", "0.71207684", "0.7076717", "0.7015753", "0.7009175", "0.7009175", "0.6962504", "0.6929038", "0.69110715", "0.68848616", "0.68692...
0.78463125
1
runkit_function_redefine('_', '$str', 'return (!empty($str) ? gettext($str) : "";'); Uses the pear Text_Diff library to generate a diff between two files. The only HTMLtags allowed are and , all other will be stripped.
runkit_function_redefine('_', '$str', 'return (!empty($str) ? gettext($str) : "");'); Использует библиотеку pear Text_Diff для генерации разницы между двумя файлами. Разрешены только HTML-теги и , все остальные будут удалены.
function diff($text1, $text2) { __autoload('TextDiff'); include_once 'Text/Diff.php'; include_once 'Text/Diff/Renderer.php'; include_once 'Text/Diff/Renderer/unified.php'; $vtext1 = chunk_split(strip_tags($text1, '<p><div>'), 1, "\n"); $vtext2 = chunk_split(strip_tags($text2, '<p><div>'), 1, "\n"); $vlin...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function text_diff( $left_string, $right_string, $args = null ) {\n\t\t$defaults = array(\n\t\t\t'title' => '',\n\t\t\t'title_left' => '',\n\t\t\t'title_right' => '',\n\t\t\t'leading_context_lines' => 1,\n\t\t\t'trailing_context_lines' => 1,\n\t\t);\n\n\t\t$args = wp_parse_args( $args, $defaults );\n...
[ "0.6367125", "0.62404084", "0.6216445", "0.618392", "0.59367263", "0.588464", "0.58702266", "0.5829656", "0.580066", "0.5792969", "0.57221717", "0.5652708", "0.5611527", "0.5563281", "0.55473584", "0.55318266", "0.5486468", "0.5446819", "0.5445218", "0.5443194", "0.5425905", ...
0.7464799
0
Prepend an array with a value and return the new array
Представить массив с значением в начале и вернуть новый массив
function arrayPrepend($array, $value) { array_unshift($array, $value); return $array; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function prepend($array, $value, $key = null)\n {\n if (is_null($key)) {\n array_unshift($array, $value);\n } else {\n $array = [$key => $value] + $array;\n }\n\n return $array;\n }", "function array_prepend($array, $value, $key = null)\n {...
[ "0.824486", "0.8198338", "0.80102855", "0.75249577", "0.7500424", "0.7308498", "0.7224125", "0.7217231", "0.7143761", "0.7122985", "0.6857518", "0.682815", "0.67646223", "0.66396856", "0.6598507", "0.64426047", "0.64299524", "0.63584507", "0.6327717", "0.6308613", "0.62941426...
0.86719376
0
Extracts data from an array. The array can be a multidimensional array or an array of objects, and the property may thus be an array index, property name or even, with the function parameter set, a class method to call for result
Извлекает данные из массива. Массив может быть многомерным массивом или массивом объектов, и соответственно, свойство может быть индексом массива, именем свойства или даже, при настройке параметров функции, методом класса, который вызывается для получения результата.
function arrayExtract($array, $property, $keep_keys = false, $function=false) { $r = array(); foreach($array as $key => $a) { if(is_object($a)) { if($keep_keys) { if($function && method_exists($a, $property)) { $r[$key] = $a->$property(); }...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function extractInArray(array $array);", "protected static function getPropertyFromArray(array $dataArray, string $property, array $subProperties = [])\n {\n\n if (isset($dataArray[$property])) {\n\n if (is_array($dataArray[$property])) {\n\n self::getPropertiesFromArra...
[ "0.6166735", "0.6165866", "0.6084929", "0.6055655", "0.581391", "0.5744903", "0.56974685", "0.56848854", "0.56456816", "0.56347746", "0.5617737", "0.5583763", "0.55718195", "0.55344975", "0.5528535", "0.5523481", "0.5517173", "0.54748124", "0.54574895", "0.5422146", "0.542083...
0.7064305
0
Sort an array of objects according to a given property
Сортировать массив объектов в соответствии с заданным свойством
function propsort(&$array, $property) { uasort($array, create_function('$a,$b','return strcmp($a->'.$property.', $b->'.$property.');')); return $array; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ObjectSorter(&$array, $props){\n if(!is_array($props)) $props = array($props => true); \n\t\t$function = '$props=unserialize(\\''.trim(serialize($props)).'\\');\n\t\t\t\tforeach($props as $prop => $ascending) { \n\t\t\t\t\tif($a->$prop != $b->$prop) { \n\t\t\t\t\t\tif($ascending==\"ASC\") return ($a->$...
[ "0.74469507", "0.70988613", "0.69171304", "0.6845156", "0.6765783", "0.64983946", "0.64234835", "0.6415525", "0.6328104", "0.63248456", "0.6224221", "0.61687917", "0.61304015", "0.6087654", "0.602138", "0.5955248", "0.594134", "0.59401274", "0.5938257", "0.5914599", "0.589934...
0.7859561
0
Convert a number to text Works for numbers up to 20
Преобразование числа в текст. Работает для чисел до 20
function numberToText($num) { if(!is_numeric($num)){ $num = intval($num); if(!is_numeric($num)) return 'NaN'; } $numbers = array('zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine', 'ten', 'eleven', 'twelve', 'thirteen', 'fourteen', 'fifteen', 'sixteen', 'seventeen...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function getNumberToText(int $number): string {\n\t\tswitch($number) {\n\t\t\tcase 0:\n\t\t\t\treturn Language::out()->get0Name();\n\t\t\tcase 1:\n\t\t\t\treturn Language::out()->get1Name();\n\t\t\tcase 2:\n\t\t\t\treturn Language::out()->get2Name();\n\t\t\tcase 3:\n\t\t\t\treturn Language::out()->get3Name...
[ "0.71019256", "0.6986452", "0.69324136", "0.6810607", "0.67665786", "0.67665786", "0.67591923", "0.66238016", "0.6580977", "0.6480469", "0.64412045", "0.6434796", "0.64276403", "0.6380777", "0.6353703", "0.63449705", "0.6322046", "0.6321694", "0.63196915", "0.63056606", "0.62...
0.7535265
0
Calculates the relative path between $path and $rel
Вычисляет относительный путь между $path и $rel
function relativePath($path, $rel=false) { $relpath = ''; if(!$rel) $rel = getcwd(); $apath = explode(DIRECTORY_SEPARATOR, realpath($path)); $arel = explode(DIRECTORY_SEPARATOR, realpath($rel)); while(isset($apath[0]) && isset($arel[0]) && $apath[0] == $arel[0]) { array_shift($apath); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static function rel2abs_url( $path )\n {\n if( substr( $path, 0, 1 ) == \"/\" ) return $path;\n $dir = @getcwd();\n\n if( !isset( $_SERVER[ 'DOCUMENT_ROOT' ] ) || ( $dir === false ) )\n return false;\n\n $dir = self::normalize( $dir );\n ...
[ "0.6867227", "0.67079884", "0.6542726", "0.63866204", "0.63704085", "0.63596874", "0.6331498", "0.6303299", "0.6271455", "0.6261987", "0.62147766", "0.6199806", "0.6171473", "0.61463815", "0.61432534", "0.6100414", "0.6095798", "0.6082337", "0.60546166", "0.6047338", "0.60050...
0.7656842
0
Find all directories with files that match a given pattern
Найдите все директории с файлами, соответствующими заданному шаблону
function findDirectoriesWithFiles($path, $pattern = '*') { $res = array(); if(substr($path, -1) != '/') $path = $path.'/'; foreach(glob($path.$pattern, GLOB_BRACE) as $file) { $res[] = dirname($file); } foreach(glob($path.'*', GLOB_ONLYDIR|GLOB_BRACE) as $file) { $res = array_merge($...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function find($dir, $pattern){\n // escape any character in a string that might be used to trick\n // a shell command into executing arbitrary commands\n $dir = escapeshellcmd($dir);\n // get a list of all matching files in the current directory\n $files = glob(\"$dir/$pattern\");\n // find a lis...
[ "0.7741564", "0.6880518", "0.68499774", "0.6830415", "0.67901915", "0.675162", "0.67503697", "0.67409074", "0.6733775", "0.6703066", "0.6621217", "0.6567973", "0.65216756", "0.6448307", "0.6437987", "0.64120555", "0.6358692", "0.62945175", "0.62757033", "0.6273639", "0.625826...
0.72798556
1
Beheerder kan hier de desbetreffende kolom verwijderen waarbij $columnId = id van de kolom
Администратор может здесь удалить соответствующую колонку, где $columnId = идентификатор колонки
function deleteByColumnId($columnId) { $this->db->where('planningKolomId', $columnId); $this->db->delete('aanwezigheid'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function withdraw($columnId, $userId)\n {\n $this->db->where('gebruikerId', $userId);\n $this->db->where('planningKolomId', $columnId);\n $this->db->delete('aanwezigheid');\n }", "private function DeleteColumn(string $Column){\n return $this->Connection->exec('ALTER TABLE '.$this->...
[ "0.6653683", "0.59138584", "0.57321835", "0.57287085", "0.56800467", "0.5679142", "0.5659805", "0.5614969", "0.554716", "0.55308163", "0.5526045", "0.550642", "0.54734826", "0.5453377", "0.5448131", "0.5414671", "0.5398385", "0.539816", "0.5395479", "0.53720653", "0.53634214"...
0.71187615
0
Guarda un objeto Proveedor en la base de datos.
Сохраните объект Поставщик в базе данных.
public function insert($proveedor);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store()\n\t{\n\t\t$authuser = Auth::user();\n\t\t$rules = array(\n\t\t\t'proveedor_tipo' => 'not_in:NA',\n\t\t\t'nombre_usuario' => 'required',\n\t\t\t'nombre' => 'required',\n\t\t\t//'direccion' => 'required',\n\t\t\t//'telefono' => 'required',\n\t\t\t//'facebook' => 'required',\n\t\t\t...
[ "0.658083", "0.65154624", "0.64936125", "0.64691424", "0.642821", "0.63903636", "0.6331015", "0.6322302", "0.63174355", "0.62954617", "0.6276084", "0.6269909", "0.6252022", "0.62214845", "0.6216492", "0.62156814", "0.6195148", "0.6162741", "0.6112412", "0.61071867", "0.609514...
0.7514581
0
Elimina un objeto Proveedor en la base de datos.
Удалите объект Поставщик из базы данных.
public function delete($proveedor);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function destroy(Proveedor $proveedor)\n {\n //\n }", "public function destroy(ProveedoresModel $proveedor)\n {\n //\n }", "public function EliminarProveedores()\n\t\t{\n\t\t\tif($_SESSION['acceso'] == \"administrador\") {\n\n\t\t\t\t$sql = \" select codproveedor from compras w...
[ "0.7843265", "0.76307636", "0.6959245", "0.6580722", "0.64543563", "0.64077103", "0.6384368", "0.63628274", "0.6306772", "0.63024527", "0.6301882", "0.62959117", "0.62944233", "0.6255204", "0.6248938", "0.6215888", "0.61923736", "0.6191895", "0.6170335", "0.6134639", "0.61122...
0.8131264
0
Busca un objeto Proveedor en la base de datos.
Найдите объект Поставщик в базе данных.
public function select($proveedor);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_proveedor($idProveedor,$idEmpresa){\n if($idProveedor != '' || $idEmpresa != ''){\n\n $this->_query =\n \"\n select \n idproveedor,\n idempresa,\n nombre_proveedor,\n descripcion_...
[ "0.7329527", "0.72033685", "0.7023036", "0.6996642", "0.68944323", "0.6864452", "0.6864452", "0.6837825", "0.6765021", "0.6744742", "0.6634423", "0.6591746", "0.6589306", "0.6555631", "0.6538108", "0.65228534", "0.65064824", "0.64948326", "0.6491467", "0.64854574", "0.6459801...
0.7667254
0
This function calls the parent data and returns the template to werde_deletecache_admin.tpl
Эта функция вызывает родительские данные и возвращает шаблон для werde_deletecache_admin.tpl
public function render() { parent::render(); return "werde_deletecache_admin.tpl"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function call_admin_template($data = null){\n\t \t\n\t \t$this->load->view('template/admin_template_v', $data);\n\t }", "function doRealDelete()\n {\n /* Query data of this section */\n $this->dbQuerySingle();\n /* Check the presence of GET or POST parameter 'returntoparent'. */\n ...
[ "0.62337923", "0.6058721", "0.5875817", "0.5849738", "0.5784982", "0.56534415", "0.5653009", "0.5653009", "0.56236994", "0.56135225", "0.55350953", "0.5499438", "0.54934025", "0.5467574", "0.53767633", "0.53647125", "0.53628564", "0.53628564", "0.5360391", "0.52873087", "0.52...
0.76216197
0
Get the default value from the settings configuration file, for the given setting name.
Получите значение по умолчанию из файла настроек конфигурации для заданного имени настройки.
private function getDefaultFromConfigFor($name) { list($module, $settingName) = explode('::', $name); return mconfig("$module.settings.$settingName.default", ''); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setting($name, $default = null) {\n $settings = get_option(sprintf('%s_settings', __CLASS__), array());\n return isset($settings[$name]) ? $settings[$name] : $default;\n }", "public function getSetting( $name, $default = null );", "protected function getSettingValue($name, $default = null)\n ...
[ "0.78602695", "0.77412957", "0.7638977", "0.76162905", "0.7604542", "0.7297566", "0.7277362", "0.72270334", "0.7216146", "0.72081995", "0.7201563", "0.7175335", "0.7175335", "0.7175335", "0.71704745", "0.7091213", "0.7063575", "0.70430815", "0.70184755", "0.6948736", "0.69242...
0.7748094
1
Sets an attribute enabled/disabled. If the key did not exist before it will be created.
Устанавливает атрибут включённый/отключённый. Если ключ не существовал ранее, он будет создан.
public function setAttribute($scope, $key, $enabled);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function setAttribute($key, $value);", "public function set_attribute($key, $value) {\n\t\t$this->attributes[$key] = $value;\n\t}", "public function setAttribute($key, $value);", "public function setAttribute($key, $value);", "public function setAttribute($key, $value = null);", "public f...
[ "0.6924575", "0.6823728", "0.68034005", "0.68034005", "0.65354806", "0.6435138", "0.641523", "0.63617706", "0.6349097", "0.6324979", "0.63225937", "0.63211936", "0.6284109", "0.6248734", "0.6141958", "0.61410046", "0.6135718", "0.6128029", "0.61217177", "0.60954297", "0.60870...
0.74649954
0
Returns the API url of this document This can be extended by adding: 'slide/x/' to retrieve slide number x for a presentation or with 'image/' to retrieve the resized image of an image document
Возвращает URL API этого документа. Это можно расширить, добавив: 'slide/x/' для получения слайда x в презентации или 'image/' для получения масштабированного изображения документа-изображения.
public function getApiUrl() { if(in_array($this->getType(), array('presentation', 'document'))) { return SERVER_PROTOCOL .'://'. SERVER_ADDRESS .':'.SERVER_PORT . SERVER_ROOT .'/api/'. $this->getType() .'/'. $this->getId() .'/'; } else { return SERVER_PROTOCOL .'://'. SERVER_ADDR...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getUrl()\n {\n return $this->api\n . '?method='\n . $this->getMethod()\n . '&api_key='\n . $this->getApiKey()\n . '&tags='\n . $this->getTag()\n . '&per_page='\n . $this->getPerPage()\n . '&page='\n . $this->getPage()\n...
[ "0.6633188", "0.65852696", "0.6496659", "0.6393424", "0.6325681", "0.62989026", "0.6289788", "0.60982656", "0.6094479", "0.6067897", "0.6042629", "0.60171366", "0.6014391", "0.59536827", "0.5936316", "0.593505", "0.5934434", "0.5914987", "0.5914863", "0.5908345", "0.5908135",...
0.737505
0
Returns the modification date of this document
Возвращает дату последнего изменения этого документа
public function getModificationDate() { return $this->modificationDate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getModificationDate()\n {\n return $this->modificationDate;\n }", "public function get_modification_date()\n {\n return $this->get_default_property(self::PROPERTY_MODIFICATION_DATE);\n }", "public function getDateModification()\n {\n return $this->dateModific...
[ "0.82694364", "0.8055439", "0.7949888", "0.76934636", "0.76723236", "0.7653574", "0.7485886", "0.74192697", "0.7371976", "0.7322645", "0.7253996", "0.723889", "0.72357774", "0.7222352", "0.71894413", "0.71544605", "0.71401733", "0.7112384", "0.7069783", "0.70296407", "0.69287...
0.82847404
0
Get user aliases path
Получить путь пользовательских псевдонимов
public function getUserAliasesPath() { if(!$this->hasUserAliasesPath() && $this->hasDefaultUserAliasesPath()) $this->setUserAliasesPath($this->getDefaultUserAliasesPath()); return $this->userAliasesPath; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDefaultUserAliasesPath()\n {\n return $this->getUserHomePath().'/'.self::USER_ALIASES_DIR_NAME;\n }", "public function aliasPath(): string\n {\n return $this->_aliasPath;\n }", "public function hasUserAliasesPath()\n {\n return !empty($this->userAliasesPat...
[ "0.77855396", "0.7177975", "0.6424047", "0.6238146", "0.62202626", "0.62202626", "0.62202626", "0.62202626", "0.6215509", "0.61698157", "0.613496", "0.60694", "0.6052336", "0.6040332", "0.6029832", "0.60096556", "0.6001542", "0.5995896", "0.5990391", "0.5986431", "0.5968525",...
0.82206804
0
Validates if user aliases path is valid
Проверяет, является ли путь пользовательских псевдонимов допустимым
public function isUserAliasesPathValid($path) { return (is_string($path) && !empty($path))?:false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hasUserAliasesPath()\n {\n return !empty($this->userAliasesPath)?:false;\n }", "function path_admin_form_validate($form, &$form_state) {\n $src = $form_state['values']['src'];\n $dst = $form_state['values']['dst'];\n $pid = isset($form_state['values']['pid']) ? $form_state['values...
[ "0.6757073", "0.6390587", "0.6207587", "0.61845607", "0.5993335", "0.5918532", "0.5694377", "0.5662228", "0.56369156", "0.5626693", "0.56194794", "0.5601067", "0.55725414", "0.55138916", "0.54741764", "0.54674846", "0.54623014", "0.5444483", "0.54402214", "0.5398273", "0.5395...
0.7691198
0
Checks if user aliases path is set
Проверяет, задан ли путь пользовательских алиасов
public function hasUserAliasesPath() { return !empty($this->userAliasesPath)?:false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hasDefaultUserAliasesPath()\n {\n return !empty($this->getDefaultUserAliasesPath())?:false;\n }", "public function userAliasesDirectoryExist()\n {\n return file_exists($this->getUserAliasesPath())?:false;\n }", "public function isUserAliasesPathValid($path)\n {\n ...
[ "0.7748395", "0.76350576", "0.7192105", "0.6353558", "0.6316176", "0.6173999", "0.60652107", "0.6031963", "0.59272915", "0.5753584", "0.5749079", "0.5713182", "0.56995", "0.56790847", "0.5655186", "0.56488967", "0.5647139", "0.5629692", "0.56181437", "0.5617994", "0.5513474",...
0.82215333
0
Checks if default user aliases path is set
Проверяет, задан ли по умолчанию путь к алиасам пользователя
public function hasDefaultUserAliasesPath() { return !empty($this->getDefaultUserAliasesPath())?:false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hasUserAliasesPath()\n {\n return !empty($this->userAliasesPath)?:false;\n }", "public function userAliasesDirectoryExist()\n {\n return file_exists($this->getUserAliasesPath())?:false;\n }", "public function getDefaultUserAliasesPath()\n {\n return $this->ge...
[ "0.7872407", "0.74766606", "0.7344577", "0.6463527", "0.64553535", "0.62074995", "0.6113392", "0.5826104", "0.5824663", "0.5708007", "0.5652674", "0.56374097", "0.55467284", "0.5519671", "0.5514894", "0.5464759", "0.54275227", "0.5419248", "0.5414231", "0.5403456", "0.5384767...
0.8370778
0
Get default user aliases path
Получить путь к алиасам пользователя по умолчанию
public function getDefaultUserAliasesPath() { return $this->getUserHomePath().'/'.self::USER_ALIASES_DIR_NAME; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getUserAliasesPath()\n {\n if(!$this->hasUserAliasesPath() && $this->hasDefaultUserAliasesPath())\n $this->setUserAliasesPath($this->getDefaultUserAliasesPath());\n return $this->userAliasesPath;\n }", "public function hasDefaultUserAliasesPath()\n {\n ret...
[ "0.79473716", "0.6796304", "0.6683898", "0.66278344", "0.6167079", "0.61451906", "0.6133794", "0.6115452", "0.6067055", "0.6021898", "0.6021716", "0.59830713", "0.5976017", "0.5976017", "0.5976017", "0.5976017", "0.5889116", "0.58445925", "0.58261657", "0.58198225", "0.581670...
0.8807762
0
Create user aliases directory
Создать директорию для алиасов пользователя
public function createUserAliasesDirectory() { if(!$this->userAliasesDirectoryExist()) return $this->createDirectory($this->getUserAliasesPath()); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function siteAlias($args, $assoc_args) {\n $location = $this->input()->optional(\n [\n 'key' => 'location',\n 'choices' => $assoc_args,\n 'default' => getenv('HOME') . '/.drush/onealias.aliases.drushrc.php',\n ]\n );\n if (is_dir($location)) {\n $message = '...
[ "0.6056239", "0.5831992", "0.57926136", "0.574109", "0.5634124", "0.5542194", "0.5538783", "0.5360504", "0.52312535", "0.5217733", "0.52176756", "0.52167946", "0.51643777", "0.5133658", "0.51175094", "0.5107444", "0.5105338", "0.50772554", "0.5069512", "0.506409", "0.50485843...
0.7431925
0
Sets the local path to the file to be signed. This method is only an alias fo the setFileToSignFromPath() method.
Устанавливает локальный путь к файлу, который необходимо подписать. Этот метод является лишь алиасом метода setFileToSignFromPath().
public function setFileToSign($path) { $this->setFileToSignFromPath($path); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setLocalFile($localFilePath) {\n\t\t$this->localFilePath = $localFilePath;\n\t}", "public function setFileToSignFromPath($path)\n {\n if (!file_exists($path)) {\n throw new \\Exception(\"The provided file to be signed was not found\");\n }\n\n $this->fileToSignP...
[ "0.6857141", "0.6621907", "0.6621907", "0.64501864", "0.6100515", "0.5922541", "0.5865195", "0.5858504", "0.5858504", "0.58584785", "0.57971287", "0.5708299", "0.56873876", "0.56873876", "0.5647066", "0.556268", "0.55089843", "0.54598343", "0.5438985", "0.5376086", "0.536818"...
0.73169076
1
Sets the list of data hashes by passing a pure PHP model. If preferred, the JSON file can be provided using the method setDataHashes().
Устанавливает список хэшей данных, передавая чистую PHP-модель. Если это предпочтительнее, можно использовать метод setDataHashes() для предоставления файла JSON.
public function setDataHashes($dataHashes) { $models = array(); foreach($dataHashes as $dh) { array_push($models, $dh->toModel()); } if (!($json = json_encode($models))) { throw new \Exception("The provided data hashes was not valid"); } $temp...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setHashAdapters($hashList);", "public static function bindData(array $hashData)\n {\n static::$hashData = $hashData;\n }", "public function testSetHash()\n {\n $validator = new File\\Md5('12345');\n $validator->setHash('12333');\n $this->assertEquals(['12333...
[ "0.60793173", "0.5932761", "0.5780503", "0.5667581", "0.55507135", "0.53787905", "0.52799207", "0.52761495", "0.52423286", "0.51911", "0.5186566", "0.51639855", "0.51566255", "0.5107348", "0.5036377", "0.5009124", "0.49543658", "0.4924125", "0.49021482", "0.4868126", "0.48569...
0.7506159
0
returns single line of address which number is $line
возвращает одну строку адреса, номер которой равен $line
public function getLine($line);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function get_line() { \n\t\t$line = $this->lines[$this->cursor]; \n\t\t$this->cursor++; return $line; \n\t}", "function getLine()\r\n {\r\n\t\t\tdo\r\n\t\t\t{\r\n\t\t\t\t$sLine = trim($this->referString[$this->currentLine]);\r\n\t\t\t\t$this->currentLine++;\r\n\t\t\t} while ($this->currentLine < count...
[ "0.7337679", "0.7311519", "0.72788274", "0.7116505", "0.7087814", "0.69932336", "0.6954411", "0.6954411", "0.6944314", "0.6925979", "0.6864805", "0.6864805", "0.6864805", "0.6864805", "0.6864805", "0.6864805", "0.68622935", "0.68578994", "0.68578994", "0.6829066", "0.6823132"...
0.7488274
0
returns total number of lines that this IAddress may represent.
возвращает общее количество строк, которые может представлять этот IAddress.
public function getLinesCount();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function numLines() {\r\n\t\treturn $this->lines;\r\n\t}", "protected function get_line_len()\n {\n return count($this->buffer);\n }", "public function getLineCount() {}", "public function numLines()\n {\n if($this->state['numlines']) {\n return $this->sta...
[ "0.7453195", "0.7152699", "0.7110588", "0.69877267", "0.68574244", "0.6773752", "0.67736185", "0.6763348", "0.6701279", "0.6659539", "0.6548277", "0.6416865", "0.6284988", "0.62838316", "0.6273335", "0.6235725", "0.6219744", "0.6163236", "0.615204", "0.61324376", "0.60941696"...
0.7358888
1
returns postcode of the address.
возвращает почтовый код адреса.
public function getPostcode();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getPostcode()\n {\n return $this->checkoutSession->getLastRealOrder()->getBillingAddress()->getPostcode();\n }", "public function getPostcode(): string\n {\n return $this->postcode;\n }", "public function getPostcode()\n {\n return $this->postcode;\n }"...
[ "0.80491596", "0.76735604", "0.7664224", "0.7664224", "0.7664224", "0.7544685", "0.75357187", "0.75156426", "0.74146473", "0.74019563", "0.74019563", "0.7268599", "0.7217776", "0.71228445", "0.7110134", "0.70700324", "0.70671916", "0.70545393", "0.69945693", "0.69760925", "0....
0.7741459
1
returns one part of the postcode. Most commonly first part of postcode may be used independently. Also may be used to retrieve a second part.
возвращает одну часть почтового индекса. Чаще всего первую часть почтового индекса можно использовать независимо. Также её можно использовать для получения второй части.
public function getPostcodePart($part = IAddress::POSTCODE_PART_ONE);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPostcode();", "function ExtractMatchString( $Postcode )\n{\n\t$SpacePos = strpos( $Postcode, \" \" );\n\tif( $SpacePos )\n\t{\n\t\tif( substr( $Postcode, $SpacePos + 1, 1) == \" \" )\n\t\t{\n\t\t\treturn substr( $Postcode, 0, $SpacePos + 1 ) . substr( $Postcode, $SpacePos + 2\t, 1 );\n\t\t}\n\...
[ "0.65724015", "0.6407077", "0.62163806", "0.62163806", "0.62163806", "0.6196637", "0.61037743", "0.5887798", "0.56655985", "0.5664813", "0.5638105", "0.55547446", "0.5548867", "0.5503229", "0.5503229", "0.5502349", "0.54727036", "0.547207", "0.5423586", "0.5410096", "0.538005...
0.7370118
0
returns ID of the address in the postcodeAnywhere database if it has one; null otherwise.
возвращает ID адреса в базе данных postcodeAnywhere, если он существует; null в противном случае.
public function getPostcodeAnywhereId();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAddressId() \n {\n return $this->address_id;\n }", "public function getZohoAddressId();", "public function getBillingAddressId();", "public function getAddress()\n {\n $address = null;\n if ($data = $this->getLocationData()) {\n $address = Address::create()...
[ "0.68717664", "0.6842663", "0.65116405", "0.6349251", "0.63195395", "0.620886", "0.598515", "0.59767985", "0.59355646", "0.59162474", "0.59108186", "0.59092313", "0.5902166", "0.5878164", "0.58322966", "0.5831127", "0.5808772", "0.5781222", "0.57656157", "0.5747084", "0.57326...
0.7239681
0
Lists all creditInfo entities.
Список всех сущностей creditInfo.
public function indexAction() { $em = $this->getDoctrine()->getManager(); $creditInfos = $em->getRepository('AppBundle:CreditInfo')->findAll(); return $this->render('creditinfo/index.html.twig', array( 'creditInfos' => $creditInfos, )); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function actionIndex() {\n $searchModel = new CreditSearch();\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams);\n\n return $this->render('index', [\n 'searchModel' => $searchModel,\n 'dataProvider' => $dataProvider,\n ]...
[ "0.6347158", "0.59950393", "0.59759474", "0.5968247", "0.5921126", "0.58915967", "0.5890987", "0.58732206", "0.5864416", "0.5832881", "0.5810455", "0.5807005", "0.58052987", "0.5767612", "0.5762164", "0.5745808", "0.5737595", "0.57221955", "0.5716083", "0.57069993", "0.570097...
0.7377111
0
Ensure that the specified table is present in the destination DB as an empty copy of the source
Убедитесь, что указанный таблица присутствует в базе данных назначения как пустая копия источника
private function ensureEmptyTargetTable($table, Connection $sourceConnection, Connection $destConnection) { // SchemaManager doesn't do enums! $destConnection->exec('DROP TABLE IF EXISTS ' . $sourceConnection->quoteIdentifier($table)); $driverName = $sourceConnection->getDriver()->getName()...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function empty_table($table = '')\n\t{\n\t\tif ($table === '')\n\t\t{\n\t\t\tif ( ! isset($this->qb_from[0]))\n\t\t\t{\n\t\t\t\treturn ($this->db_debug) ? $this->display_error('db_must_set_table') : FALSE;\n\t\t\t}\n\n\t\t\t$table = $this->qb_from[0];\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$table = $this->protect_i...
[ "0.5905646", "0.5847931", "0.58424616", "0.57968694", "0.56508213", "0.56473243", "0.5598984", "0.55865467", "0.5556654", "0.5514695", "0.5490318", "0.5481813", "0.540932", "0.54080635", "0.54080635", "0.5397256", "0.5388375", "0.5372643", "0.53482544", "0.5347975", "0.534673...
0.7553517
0
Check if "height" has been set
Проверьте, было ли задано значение "height"
public function hasHeight() : bool;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hasHeight()\n {\n return $this->height !== null;\n }", "public function hasImageHeight()\n {\n return $this->image_height !== null;\n }", "public function isAutoHeight() {\n\t\tif ($this->_height==0) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}"...
[ "0.79277056", "0.7188172", "0.7042197", "0.69540477", "0.69267553", "0.6717599", "0.67155147", "0.67155147", "0.6697209", "0.6588197", "0.6493271", "0.6438556", "0.6433856", "0.6419823", "0.6398155", "0.6343338", "0.63297224", "0.62741965", "0.62739795", "0.62729853", "0.6272...
0.7917462
1
Get a default "height" value, if any is available
Получить значение по умолчанию "height", если оно доступно
public function getDefaultHeight() : ?float;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getHeight()\n {\n if (array_key_exists(\"height\", $this->_propDict)) {\n return $this->_propDict[\"height\"];\n } else {\n return null;\n }\n }", "public function testDefaultHeight()\n {\n $form = $this->factory->create('ckeditor');\n ...
[ "0.7458024", "0.71031207", "0.7059774", "0.69578683", "0.6941431", "0.69215465", "0.69151694", "0.68585867", "0.6852155", "0.6851212", "0.68489146", "0.68489146", "0.6848284", "0.68094987", "0.6799212", "0.6799121", "0.6799121", "0.6799121", "0.6799121", "0.6799121", "0.67986...
0.83512485
0
Get Products by criteria.
Получить продукты по критериям.
public function getProducts($criteria = []) { if (!$criteria instanceof ElementCriteriaModel) { $criteria = craft()->elements->getCriteria('DigitalProducts_Product', $criteria); } return $criteria->find(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAllProducts() {\n $searchCondition .= \"searchCriteria[filter_groups][0][filters][0][field]=category_id&\";\n $searchCondition .= \"searchCriteria[filter_groups][0][filters][0][value]=25&\";\n $searchCondition .= \"searchCriteria[filter_groups][0][filters][0][condition_type]...
[ "0.69840455", "0.6899192", "0.68462396", "0.6755407", "0.64861655", "0.64771706", "0.64566725", "0.64454293", "0.6435958", "0.64082193", "0.6389446", "0.63621557", "0.635936", "0.635936", "0.634835", "0.6339017", "0.6320012", "0.628246", "0.6265285", "0.626525", "0.6254374", ...
0.70282626
0
Creates a form to delete a SvCfgCalzadaCarril entity.
Создает форму для удаления сущности SvCfgCalzadaCarril.
private function createDeleteForm(SvCfgCalzadaCarril $svCfgCalzadaCarril) { return $this->createFormBuilder() ->setAction($this->generateUrl('svcfgcalzadacarril_delete', array('id' => $svCfgCalzadaCarril->getId()))) ->setMethod('DELETE') ->getForm() ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function createDeleteForm($id,$idcupo)\n {\n\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('liquidaciones_delete', array('id' => $id,'idcupo'=>$idcupo)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete','attr' ...
[ "0.7063467", "0.69667834", "0.67409843", "0.6692823", "0.66592586", "0.6619199", "0.6614296", "0.6583932", "0.6559359", "0.6527039", "0.65194976", "0.6517043", "0.65096676", "0.64998555", "0.6472747", "0.64585733", "0.64558613", "0.64399177", "0.6433952", "0.64223593", "0.641...
0.79635614
0
Get the default editing service.
Получить стандартный сервис редактирования.
public function get() { $editing_service = new DefaultPlaceEditingService( $this->commandBus, $this->uuidGenerator, $this->placeJsonLdRepository, $this->placeCommandFactory, $this->placeRepository ); if ($this->config->get('publication_date')) { $publicationDate = \Date...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getService ()\n {\n if (null === $this->_service) {\n $this->setService('Default_Service_Spirit');\n }\n return $this->_service;\n }", "protected function getRouting_ResourcesLocator_DefaultService()\n {\n return $this->services['routing.resources_l...
[ "0.6098191", "0.60196674", "0.5873266", "0.58377963", "0.5827025", "0.55958503", "0.5575934", "0.55286473", "0.55135185", "0.5478375", "0.54738855", "0.54738855", "0.5472626", "0.545844", "0.54470694", "0.5445974", "0.5443236", "0.54409003", "0.54353774", "0.5422558", "0.5409...
0.7202705
0
Get all templates from DB
Получить все шаблоны из БД
public function getTemplatesFromDB();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAllTemplates(){ //return all templates in database to the select to choose from templates\n return TemplatesResource::collection(TemplateProject::all());\n }", "public function getTemplates(){\n\t\n\t\tif( empty($this->_templates) ){\n\t\n\t\t\t$query\t= $this->_db->getQuery(true);\n...
[ "0.8262818", "0.7802904", "0.7788046", "0.7597968", "0.73624873", "0.7150043", "0.70923656", "0.7080438", "0.70491445", "0.7039374", "0.70229", "0.70114887", "0.7009191", "0.69464266", "0.6906768", "0.68943524", "0.6741189", "0.6728478", "0.67074895", "0.6686109", "0.66610825...
0.8624964
0
Copy images to storage
Копирование изображений в хранилище
public function copyImages();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function copyImages()\n {\n $media = [\n 'slider-woman-on-the-beach.jpg'\n ];\n\n $this->mediaMigration->copyMediaFiles($media, self::MIGRATION_MODULE, 'scandiweb/slider/s/l');\n }", "private function copyToStorage(Image $image) {\n \t$attrs = $image->attributesTo...
[ "0.74411803", "0.7068767", "0.6778374", "0.6717099", "0.6654278", "0.6540883", "0.63669074", "0.6115651", "0.59764445", "0.59682953", "0.58841497", "0.5808245", "0.58032787", "0.5763859", "0.5722151", "0.57065827", "0.56740564", "0.55958104", "0.55422777", "0.55406654", "0.55...
0.822315
0
Get validation rules for updating a template
Получить правила валидации для обновления шаблона
public function getValidationRulesUpdate(): array;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getUpdateRules()\n {\n return [\n \"id\" => \"required\"\n ];\n }", "public function getRulesForUpdate()\r\n\t{\r\n\t \treturn $this->rules_for_update ? $this->rules_for_update : array();\r\n\t}", "abstract protected function getValidationRules();", "public func...
[ "0.73560274", "0.7029944", "0.6998964", "0.69760776", "0.695345", "0.67695546", "0.67648745", "0.6729979", "0.6683829", "0.66539997", "0.6649985", "0.66413826", "0.66347283", "0.6589461", "0.6586514", "0.65696627", "0.65399384", "0.6539754", "0.65358686", "0.65288645", "0.652...
0.73301095
1
End Action controllers for generating enlistment report Start Action controllers for generating attendance report generate_voc_program_attendance_report function. commit 10/11/2018
Конечные действия контроллеров для генерации отчета о зачислении Начальные действия контроллеров для генерации отчета о посещаемости generate_voc_program_attendance_report функция. commit 10/11/2018
public function generate_voc_program_attendance_report(){ $this->crud->credibilityAuth(array('Administrator','Registrar')); // get inputs $condition= array('vocational_program'=>$this->input->post('vocational_program'),'batch_year'=> $this->input->post('batch_year_id')); $range1 = $this-...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function generate_subject_code_attendance_report(){\n $this->crud->credibilityAuth(array('Administrator','Registrar','Faculty'));\n // get inputs\n $con = array('subject_code'=>$this->input->post('subject_code'),'batch_year'=> $this->input->post('batch_year_id'));\n $range1 = ...
[ "0.76985073", "0.7221716", "0.6984586", "0.6580522", "0.650633", "0.6465776", "0.63977027", "0.63785875", "0.6225617", "0.6208223", "0.61751956", "0.614161", "0.6124895", "0.61182946", "0.6103934", "0.61004525", "0.6095921", "0.6072185", "0.60597414", "0.603011", "0.5998244",...
0.8395774
0
generate_subject_code_attendance_report function. commit 10/11/2018
Функция generate_subject_code_attendance_report. коммит 10/11/2018
public function generate_subject_code_attendance_report(){ $this->crud->credibilityAuth(array('Administrator','Registrar','Faculty')); // get inputs $con = array('subject_code'=>$this->input->post('subject_code'),'batch_year'=> $this->input->post('batch_year_id')); $range1 = $this->in...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function generate_subject_code_remarks_report(){\n $this->crud->credibilityAuth(array('Administrator','Registrar','Faculty'));\n // get inputs\n $con = array('subject_code'=>$this->input->post('subject_code'),'batch_year'=> $this->input->post('batch_year_id'));\n $range1 = $th...
[ "0.77966917", "0.6952219", "0.6225241", "0.59348047", "0.5846901", "0.58378285", "0.5793984", "0.5739033", "0.57314277", "0.5726573", "0.57134396", "0.57125956", "0.57031906", "0.56990755", "0.5669414", "0.563711", "0.5636193", "0.56284374", "0.56207716", "0.55699575", "0.556...
0.79717195
0
End Action controllers for generating attendance report Start Action controllers for generating remarks report generate_subject_code_remarks_report function. commit 10/12/2018
Конец действий контроллеров для генерации отчета о посещаемости Начало действий контроллеров для генерации отчета о замечаниях generate_subject_code_remarks_report функция. commit 10/12/2018
public function generate_subject_code_remarks_report(){ $this->crud->credibilityAuth(array('Administrator','Registrar','Faculty')); // get inputs $con = array('subject_code'=>$this->input->post('subject_code'),'batch_year'=> $this->input->post('batch_year_id')); $range1 = $this->input...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function generate_subject_code_attendance_report(){\n $this->crud->credibilityAuth(array('Administrator','Registrar','Faculty'));\n // get inputs\n $con = array('subject_code'=>$this->input->post('subject_code'),'batch_year'=> $this->input->post('batch_year_id'));\n $range1 = ...
[ "0.78921235", "0.6877639", "0.63729405", "0.63677514", "0.6346944", "0.6255291", "0.60872173", "0.6075249", "0.5999765", "0.59749573", "0.5970591", "0.5963558", "0.5930038", "0.59207654", "0.5920088", "0.5911183", "0.58961457", "0.58660185", "0.58473986", "0.5843417", "0.5839...
0.84146255
0
Gets the invoice timestamp.
Получает временной штамп счета.
public function getInvoiceTimestamp();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getInvoiceDate() {\r\n\r\n\t\tself::errorReset();\r\n\t\t$this->reload();\r\n\t\treturn $this->invoiceDate;\r\n\t}", "function getTimestamp() {\r\r\n\t\treturn $this->timestamp;\r\r\n\t}", "public function getTimestamp();", "public function getTimestamp();", "public function getTimestamp();...
[ "0.70949066", "0.70701075", "0.70630103", "0.70630103", "0.70630103", "0.70532495", "0.7046818", "0.7046818", "0.7046818", "0.7046818", "0.7046818", "0.7046818", "0.7046818", "0.7046818", "0.7046818", "0.7046818", "0.7046818", "0.7016278", "0.69950724", "0.69950724", "0.69841...
0.89875394
0
Returns route that can be matched against specified methods.
Возвращает маршрут, который можно сопоставить с указанными методами.
public function withMethods(array $methods): Route;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getRoutesForMethod($method);", "public function test_match_withSupportedMethod()\n {\n $route = new Route('GET|POST', '/home', 'test');\n $this->assertTrue(\n $route->match('GET', '/home'),\n 'match() must return true if method provided is supported b...
[ "0.76350987", "0.72354025", "0.71437126", "0.6987343", "0.6827819", "0.6740208", "0.6739182", "0.6672395", "0.6671263", "0.6658784", "0.66331995", "0.6502796", "0.6476182", "0.6460012", "0.64570296", "0.6456512", "0.642763", "0.64084524", "0.6405221", "0.64032155", "0.6403215...
0.7759646
0
Sets up the $categoryWithPermissions array Key is the category name Value is permission with dots
Настройка массива $categoryWithPermissions. Ключ — это название категории, значение — разрешение с точками.
private static function setupCategoriesPermissions() { $result = []; // Looping into userPermissions and getting the category as the key and the value as an array of permissions foreach(self::$userPermissions as $userPermissionWithDots) { // checking if the permission has a menu category or not, it is sepa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store(Request $request)\n {\n $category=new User_category();\n\n $this->validate(request(),[\n 'name'=>'required',\n 'description'=>'required',\n ]);\n\n // User::create($request->all());\n\n\n $category->category_name=$request->input('name');\n ...
[ "0.5981092", "0.597878", "0.58900464", "0.5832863", "0.5684485", "0.56338066", "0.5620916", "0.555938", "0.5548968", "0.5526383", "0.53283894", "0.5316216", "0.53121877", "0.530834", "0.53014857", "0.5289787", "0.52774435", "0.5274407", "0.5219961", "0.5214245", "0.52108973",...
0.7674575
0
Widgets for current permission level Uses the role id to get all widgets linked to the role
Виджеты для текущего уровня разрешений Использует идентификатор роли для получения всех виджетов, связанных с ролью
public static function getAllowedWidgets($roleId = null) { if(is_null($roleId)) $roleId = session('admin.user.role_id'); // Getting an array of the widgets allowed to the current role_id $allowedWidgets = PermissionModel::where('role_id', $roleId) ->where('permission', 'like', 'widgets.%') ->get() -...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function roles_dashboard_update_widget_definitions() {\n\n\t$widget_types = elgg_get_widget_types('all', true);\n\tforeach ($widget_types as $handler => $options) {\n\t\t$context = $options->context;\n\t\t$context[] = 'dashboard';\n\t\t$context = array_unique($context);\n\t\telgg_register_widget_type($handler, $op...
[ "0.622101", "0.5974379", "0.58389336", "0.58389336", "0.5833121", "0.5819376", "0.5814579", "0.5766606", "0.57638645", "0.568372", "0.5662139", "0.5602385", "0.5586383", "0.55735177", "0.555928", "0.55482394", "0.5543467", "0.55425495", "0.5511548", "0.5493753", "0.54492646",...
0.73286635
0
/ viewAddResources Renders the add resources page
/ viewAddResources Отображает страницу добавления ресурсов
public function viewAddResources() { echo Template::instance()->render('view/include/head.php'); echo Template::instance()->render('view/include/top-nav.php'); echo Template::instance()->render('view/edit-resources.php'); echo Template::instance()->render('view/include/footer.php'); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function add_resources()\n\t{\n\t\t\n\t}", "public function actionAdd()\n\t{\n\t\t$this->render('add');\n\t}", "public function postAddResource()\n {\n\n $errors = validateAddResources();\n\n if(!($errors === true)) {\n\n $this->_f3->set('errors', $errors);\n echo ...
[ "0.70956415", "0.686092", "0.67862123", "0.66067195", "0.65433717", "0.6538168", "0.6532919", "0.6522265", "0.6388805", "0.63888025", "0.62770903", "0.6261078", "0.62582153", "0.6235059", "0.6217802", "0.6195584", "0.61924314", "0.6179709", "0.61661065", "0.6148068", "0.61478...
0.79143375
0
/ viewEditResources Loads a specific resource for editing and renders the edit resources page
/ viewEditResources Загружает конкретный ресурс для редактирования и отображает страницу редактирования ресурсов
public function viewEditResources() { $database = new Database(); $id = $this->_params['id']; $resource = $database->getResourceById($id); $availableResource = new Resource($resource['ResourceID'], $resource['ResourceName'], $resource['Description'] , $resource['Contact...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function postEditResources()\n {\n $id = $this->_params['id'];\n\n $errors = validateEditResource($id);\n\n if(!($errors === true)) {\n $database = new Database();\n\n $resource = $database->getResourceById($id);\n /*construct($resourceID = \"0\", $re...
[ "0.7460722", "0.69512355", "0.68485713", "0.6796208", "0.67901796", "0.67579526", "0.67425245", "0.6713578", "0.6629987", "0.6572274", "0.6498282", "0.64602315", "0.6423282", "0.6422785", "0.6415895", "0.6414357", "0.64009565", "0.63885695", "0.63796145", "0.6374096", "0.6373...
0.8596455
0
/ postAddResource Checks to see if the user data is valid if so it will add it to the DB if the user data is invalid will reload the add user page.
После добавления ресурса проверяет, является ли данные пользователя допустимыми. Если данные допустимы, они добавляются в базу данных. Если данные недопустимы, перезагружается страница добавления пользователя.
public function postAddResource() { $errors = validateAddResources(); if(!($errors === true)) { $this->_f3->set('errors', $errors); echo Template::instance()->render('view/include/head.php'); echo Template::instance()->render('view/include/top-nav.php'); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function post_add_users() {\n\t}", "public function action_add()\r\n\t{\r\n\t\tif ( Request::current()->method() == Request::POST )\r\n\t\t{\r\n\t\t\treturn $this->_add();\r\n\t\t}\r\n\t\t\r\n\t\t$this->template->title = __('Add user');\r\n\t\t$this->breadcrumbs\r\n\t\t\t->add($this->template->title);\r\n...
[ "0.6500552", "0.6489134", "0.6451038", "0.6303201", "0.61842513", "0.6104865", "0.6099151", "0.605396", "0.6046741", "0.603245", "0.59373516", "0.59210557", "0.59074485", "0.59061795", "0.59047186", "0.5889217", "0.58758897", "0.5873581", "0.58488464", "0.5834428", "0.5826928...
0.70471954
0
/ postEditResources Checks to see if the user data is valid if so it will update the DB if the user data is invalid will reload the edit user page.
После редактирования ресурсов проверяет, является ли данные пользователя корректными. Если данные корректны, обновляет базу данных. Если данные некорректны, перезагружает страницу редактирования пользователя.
public function postEditResources() { $id = $this->_params['id']; $errors = validateEditResource($id); if(!($errors === true)) { $database = new Database(); $resource = $database->getResourceById($id); /*construct($resourceID = "0", $resourceName = "Res...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function post_edit() {\n //try to edit the user\n if (AuxUser::editUser()) {\n //if the edit process worked, redirect to the profile page\n echo '<script>alert(\"User data edited\");</script>';\n Response::redirect('/profile');\n } else {\n //if not, print the error message\n ...
[ "0.6944832", "0.6506544", "0.64835507", "0.6443123", "0.63922614", "0.637695", "0.63103336", "0.6148198", "0.61414236", "0.6123014", "0.6107582", "0.6100233", "0.6037071", "0.60338557", "0.6010923", "0.5978386", "0.59742177", "0.5962707", "0.5936845", "0.59142584", "0.5901627...
0.71640736
0
/ deleteResource Does not delete resource rather deactivates the resources
/ deleteResource Не удаляет ресурс, а деактивирует ресурсы
public function deleteResource() { $database = new Database(); $id = $this->_params['id']; $database->deleteResource($id); $this->_f3->reroute('/Admin'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isDeleteResource();", "protected function _postDelete()\n {\n $this->clearResources();\n }", "public function deleteAllResources() {\n\t\t$this->resources = array();\n\t}", "public function destroy(Resource $resource)\n {\n //\n }", "public function delete()\n {...
[ "0.7185629", "0.6980644", "0.66985935", "0.6495744", "0.64732426", "0.6464758", "0.6454451", "0.63758194", "0.63742036", "0.6359977", "0.62655574", "0.6264933", "0.6247014", "0.61904836", "0.61854434", "0.6162815", "0.61621654", "0.6136099", "0.61252105", "0.61252105", "0.612...
0.7421805
0
/ reactivateResource reactivates resources
/ reactivateResource повторно активирует ресурсы
public function reactivateResource() { $database = new Database(); $id = $this->_params['id']; $database->reactivateResource($id); $this->_f3->reroute('/Admin'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function reactivateAction()\n {\n $this->reactivateParameters = $this->reactivateParameters + $this->_reactivateExtraParameters;\n\n parent::reactivateAction();\n }", "public function reactivate()\n {\n $project = $this->getProject();\n $recovery_plan_id = $this->reque...
[ "0.64953566", "0.6302144", "0.60357034", "0.589782", "0.5866548", "0.58366936", "0.5817751", "0.5729667", "0.5701669", "0.5700907", "0.5700907", "0.5695641", "0.569047", "0.56877214", "0.5616308", "0.559881", "0.5586113", "0.55649954", "0.55649954", "0.554401", "0.55416965", ...
0.8236729
0
/ viewResources Loads from the db all active AND current events and renders the resources page
/ viewResources Загружает из базы данных все активные и текущие события и отображает страницу ресурсов
public function viewResources() { $database = new Database(); $resources = $database->getAllActiveResourcesNoLimit(); $resourceArray = array(); $i = 1; foreach ($resources as $resource) { $availableResource = new Resource($resource['ResourceID'], $resource['Re...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function indexAction() {\n $this->view->events = $this->_events->getEventsAdmin($this->_getParam('page'));\n }", "public function events()\n {\n $eventdata = $this->Event->find('all', \n array(\n 'order' => array('Event.time' => 'DESC'),\n 'cond...
[ "0.68937624", "0.6832855", "0.6737387", "0.66969204", "0.6687211", "0.66647995", "0.6630551", "0.6605819", "0.65798235", "0.65522707", "0.6503299", "0.64920044", "0.64855295", "0.64187247", "0.6392682", "0.6380522", "0.6375011", "0.63708305", "0.6357326", "0.6346072", "0.6332...
0.7391225
0
Get the class name for the filters, the part after _Agenda_Filter_
Получите имя класса для фильтров, часть после _Agenda_Filter_
abstract public function getFilterClass();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected function getFilterClassName($string);", "abstract public function getFilterName();", "public static function getFiltername(): string\n {\n return self::FILTERNAME;\n }", "public function getFilterClass()\n {\n return 'XorAppointmentFilter';\n }", "protected func...
[ "0.76527405", "0.73842394", "0.72981423", "0.72673875", "0.70962036", "0.70402944", "0.6758032", "0.6728297", "0.65830535", "0.6531211", "0.6508014", "0.64513385", "0.6425756", "0.64106566", "0.6368361", "0.6333866", "0.632712", "0.6317778", "0.6281755", "0.62220657", "0.6213...
0.77549744
0
Set the maximum length of the calculated name field
Установите максимальную длину поля вычисленного имени
public function setMaximumCalcLength($length = 200) { $this->_maxNameCalcLength = $length; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setMaxLength($maxLength) {}", "function set_field_length($len) \n {\n $this->attribs['maxlength'] = $len;\n }", "public function setMaxLength($length);", "function setMaxLength($length) {\n\n $this->field['maxlength'] = $length;\n return $this;\n\n }", "public function s...
[ "0.74492687", "0.73886585", "0.7307014", "0.7132721", "0.6975488", "0.6970148", "0.68450147", "0.6787955", "0.67832434", "0.6746053", "0.6727918", "0.67233795", "0.66960144", "0.65862185", "0.6548397", "0.65476453", "0.6528528", "0.65157795", "0.6489467", "0.6470448", "0.6462...
0.7674192
0
Sanitize key, removing spaces and replace them to underscore
Очистить ключ, удалив пробелы и заменив их на подчеркивание
protected function sanitize($key) { return strtolower(str_replace(' ', '_', $key)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function sanitize_key( $key ) {\n\t$raw_key = $key;\n\t$key = strtolower( $key );\n\t$key = preg_replace( '/[^a-z0-9_\\-]/', '', $key );\n\n\t/**\n\t * Filter a sanitized key string.\n\t *\n\t * @since 3.0.0\n\t *\n\t * @param string $key Sanitized key.\n\t * @param string $raw_key The key prior to sanitizatio...
[ "0.78319865", "0.763481", "0.7522966", "0.75154793", "0.7513388", "0.74508363", "0.7443278", "0.73540926", "0.7339959", "0.72198635", "0.7205389", "0.71277475", "0.708133", "0.7064286", "0.69064254", "0.6821983", "0.677941", "0.6736304", "0.67110133", "0.66038823", "0.6601618...
0.830038
0
Prepend output (HTML code or PHP code with tags) before the output (but after the namespace statement if present).
Добавьте вывод (HTML-код или PHP-код с тегами) перед выводом (но после утверждения пространства имен, если оно присутствует).
public function prependOutput($code) { $this->setOutput( $this->hasNamespaceStatement($namespaceStatement, $output) ? $this->concatCode( $this->closePhpCode($namespaceStatement), $code, $this->openPhpCode($output) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function prependCode($code)\n {\n return $this->prependOutput($this->closePhpCode($this->openPhpCode($code)));\n }", "protected function transpileEndPrepend(): string\n {\n return '<?php $__env->stopPrepend(); ?>';\n }", "public function prependNamespace($namespace, $hints);", ...
[ "0.58757246", "0.5805363", "0.58006907", "0.5750906", "0.56097054", "0.554297", "0.54619336", "0.5320644", "0.52834266", "0.52182925", "0.5192875", "0.5177417", "0.51601654", "0.5148874", "0.51479465", "0.5146182", "0.5137702", "0.512527", "0.51183283", "0.5111244", "0.510777...
0.73823994
0
Test Case: Validate that the project has a title.
Тест-кейс: Проверить, что проект имеет заголовок.
public function shouldHaveTitle() { // Arrange $attributes = factory(Project::class)->raw([ 'title' => '', ]); // Action $response = $this->post('/projects', $attributes); // Assert $response->assertSessionHasErrors('title'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getProjectTitle();", "public function testGettingTheTitle()\n {\n $this->assertEquals('title', $this->revision->getTitle());\n }", "public function testAssignTitle()\n {\n $this->markTestIncomplete(\n 'This test has not been implemented yet.'\n );\n }",...
[ "0.71535224", "0.70882756", "0.6800982", "0.6733853", "0.66882277", "0.66729856", "0.66538966", "0.663283", "0.65382916", "0.6493532", "0.6470231", "0.64035076", "0.640006", "0.63973784", "0.6364185", "0.63316715", "0.62585", "0.62511885", "0.62008727", "0.61617523", "0.61182...
0.7968348
0
Test Case: Validate that the project has a description.
Тест-кейс: Проверить, что проект имеет описание.
public function shouldHaveDescription() { // Arrange $attributes = factory(Project::class)->raw([ 'description' => '' ]); // Action $response = $this->post('/projects', $attributes); // Assert $response->assertSessionHasErrors('description'); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function a_project_require_a_description()\n {\n $project = factory(Project::class)->raw(['description' => '']);\n $this->post('/api/projects', $project)->assertStatus(422)->assertJsonStructure([\n 'errors' => [\n 'description',\n ],\n ]);\n }"...
[ "0.83257455", "0.6658854", "0.6538204", "0.64926475", "0.6483126", "0.6443382", "0.6401218", "0.6279939", "0.62030315", "0.6143676", "0.6071989", "0.60656685", "0.59975594", "0.5943932", "0.5922573", "0.592254", "0.5910526", "0.5910526", "0.5910526", "0.5910526", "0.5910526",...
0.8085601
1
Check if there is no user in system before run install
Проверьте, что в системе нет пользователей перед запуском установки
private function checkinstallrequirement() { $userCount = Core_User::getUsers(array(), '', '', '', true); if($userCount > 0) return false; else return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function check_user_installed()\n {\n if ($this->uid == 0) {\n return true;\n }\n\n $exists = $this->STOR->get_folder_id_from_path('waste');\n if (empty($exists)) {\n $this->create_user();\n }\n }", "public static function isInstalled(){\n\t\t...
[ "0.7581932", "0.715836", "0.7073247", "0.6882467", "0.6655213", "0.66145295", "0.64996564", "0.6467071", "0.6458869", "0.6385002", "0.63844544", "0.6367339", "0.63509744", "0.6332938", "0.6308024", "0.6225235", "0.62100196", "0.6204143", "0.6195796", "0.61802447", "0.61358196...
0.76897407
0
Returns the default area.
Возвращает область по умолчанию.
public function getDefault(): AreaContract;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getArea(){}", "abstract protected function getArea();", "public function getArea()\n {\n return $this->area;\n }", "public function getArea()\n {\n return $this->area;\n }", "public function getArea()\n {\n return $this->area;\n }", "public function getMinA...
[ "0.71531254", "0.703821", "0.70051736", "0.70051736", "0.70051736", "0.6843785", "0.6804903", "0.6653907", "0.6632202", "0.6630729", "0.6630361", "0.6607033", "0.6565798", "0.65325135", "0.64702046", "0.64623237", "0.63978213", "0.6356822", "0.6306662", "0.6298281", "0.627624...
0.778171
0
Checks if the route has area.
Проверяет, имеет ли маршрут область.
public function hasAreaInUri(): bool;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hasAreas()\n\t{\n\t\treturn count($this->getAreas()) > 0 ? true : false;\n\t}", "public static function canDisplayAreasMenu()\n\t{\n\t\treturn PermissionValidator::hasPermission(PermissionConstants::VIEW_AREA);\n\t}", "public function hasMapareas(){\n return $this->_has(30);\n }", "pu...
[ "0.7603163", "0.69949114", "0.69821006", "0.6713858", "0.65964144", "0.6544885", "0.6253558", "0.61429286", "0.6127362", "0.6124531", "0.6122773", "0.6086456", "0.6034936", "0.6012592", "0.596994", "0.5922196", "0.589419", "0.58625555", "0.585383", "0.58433014", "0.58283865",...
0.7533639
1
Returns collection of frontend areas.
Возвращает коллекцию фронтенд-зон.
public function getFrontendAreas(): AreasCollection;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getBackendAreas(): AreasCollection;", "public function getAreas(): AreasCollection;", "function getAreas()\n {\n if($this->initAdapter === false){\n $this->initAdapters();\n }\n return $this->areas;\n }", "function getAreas () {\n return $this->tem...
[ "0.8302107", "0.768433", "0.7483156", "0.67402995", "0.65598005", "0.6485121", "0.64217377", "0.6399152", "0.63838756", "0.6331877", "0.6327003", "0.6270569", "0.624795", "0.6233313", "0.6231023", "0.6228049", "0.61884534", "0.6188238", "0.60617375", "0.6052353", "0.5984779",...
0.8913702
0
Returns collection of backend areas.
Возвращает коллекцию областей бэкенда.
public function getBackendAreas(): AreasCollection;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFrontendAreas(): AreasCollection;", "function getAreas()\n {\n if($this->initAdapter === false){\n $this->initAdapters();\n }\n return $this->areas;\n }", "public function getAreas(): AreasCollection;", "public static function getAllAreas() {\n\t\t$db ...
[ "0.7982292", "0.7863667", "0.7485426", "0.67022675", "0.6593737", "0.64866", "0.64379495", "0.63639337", "0.6276418", "0.61409205", "0.6113982", "0.6099114", "0.60839504", "0.6070243", "0.60538787", "0.5982377", "0.5981833", "0.59129614", "0.58314604", "0.58313364", "0.582948...
0.8922755
0
Checks if the current area belongs to the Frontend Areas.
Проверяет, принадлежит ли текущая область к областям Frontend.
public function isFrontendArea(): bool;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isBackendArea(): bool;", "public static function canDisplayAreasMenu()\n\t{\n\t\treturn PermissionValidator::hasPermission(PermissionConstants::VIEW_AREA);\n\t}", "public function hasAreas()\n\t{\n\t\treturn count($this->getAreas()) > 0 ? true : false;\n\t}", "public function is_frontend_edit...
[ "0.7264344", "0.65700805", "0.6398109", "0.63687813", "0.618559", "0.61806226", "0.6110364", "0.6110364", "0.60622245", "0.6055879", "0.60200214", "0.595142", "0.5877826", "0.58299637", "0.5816312", "0.5805617", "0.5796868", "0.57897466", "0.57710737", "0.575129", "0.5743461"...
0.79931414
0
Checks if the current area belongs to the Backend Areas.
Проверяет, принадлежит ли текущая область к областям бэкенда.
public function isBackendArea(): bool;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isFrontendArea(): bool;", "public function hasAreas()\n\t{\n\t\treturn count($this->getAreas()) > 0 ? true : false;\n\t}", "public function isBackendContext() {}", "function is_tabber_tabs_area_active( $index ){\n global $wp_registered_sidebars;\n\n $widgetcolums = wp_get_sidebars_widgets()...
[ "0.7092595", "0.6393919", "0.63526136", "0.62928677", "0.6259223", "0.6258937", "0.62406784", "0.6200967", "0.6059259", "0.60461396", "0.60113114", "0.5998781", "0.59457684", "0.59419745", "0.592258", "0.5914644", "0.58738714", "0.58577", "0.58510315", "0.58357435", "0.581941...
0.8198973
0
Returns a collection with areas.
Возвращает коллекцию с областями.
public function getAreas(): AreasCollection;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFrontendAreas(): AreasCollection;", "public function getBackendAreas(): AreasCollection;", "function getAreas()\n {\n if($this->initAdapter === false){\n $this->initAdapters();\n }\n return $this->areas;\n }", "public function panelAreas(): Collection ...
[ "0.79317886", "0.7533631", "0.7391379", "0.67795515", "0.6763452", "0.6625361", "0.65923315", "0.6533913", "0.6423929", "0.6423929", "0.6423929", "0.6423929", "0.6415804", "0.6271613", "0.62576985", "0.62463355", "0.61914504", "0.6172695", "0.61725247", "0.6172076", "0.614599...
0.86310095
0
Returns an area object based on ID. Default area returns if not found the desired one.
Возвращает объект области на основе ID. Если не найдена нужная область, возвращается объект по умолчанию.
public function getByIdOrDefault(string $id): AreaContract;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function particulararea($id)\n\t{\n\t\t$getarea=\"SELECT * from area where id = $id\";\n\t\t$ggetareadata = $this->get_results( $getarea );\n\t\treturn $ggetareadata;\n\t}", "public function getArea($area_id) {\n $query = $this->db->query(\"SELECT a.area_id,a.code,a.status,a.name,c.city_id,z.zone_id,coun....
[ "0.6818367", "0.68054247", "0.675593", "0.66526365", "0.6623228", "0.65929544", "0.6525969", "0.6503645", "0.64695245", "0.64217967", "0.63493794", "0.63383394", "0.63373303", "0.6288028", "0.62364167", "0.61606807", "0.61251014", "0.598079", "0.5980592", "0.59436256", "0.592...
0.79509115
0
Apply discount/coupon on subscription
Применить скидку/промокод к подписке
function applyDiscountOnSubscription($subscriptionId = null) { $db = new db(); $db->makeConnection(); if($subscriptionId != null) { \Stripe\Stripe::setApiKey(STRPIE_CLIENT_SECRET); $date = date('Y-m-d 00:00:00'); $discountTotal = 0; // ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function applyCoupon()\n {\n // check if the current coupon we are trying to apply is associated to a booking.\n // if it is, we will have to calculate the discount based on the the used coupon.\n if ($this->booking->isUsingCoupon($this->coupon)) {\n $this->coupon = $this-...
[ "0.67926526", "0.6785508", "0.67720866", "0.6667279", "0.6549684", "0.65437543", "0.65316623", "0.6530725", "0.65135664", "0.6509255", "0.6507628", "0.6461083", "0.64513326", "0.64356816", "0.63701975", "0.635742", "0.6281496", "0.6249001", "0.6246762", "0.6207004", "0.620137...
0.83097464
0
/ creation d'un lot catalogue
/ создание лота каталога
function createCatalog($ar){ $rs = selectQueryGetAll('select count(distinct categ) as nb from '.$this->wtscatalog); $p= new XParam($ar, array('prdconf'=>NULL, 'categ'=>'Lot '.($rs[0]['nb']+1), 'wtspool'=>NULL, 'wtsticket'=>NULL, 'wtsperson'=>NULL)); $added = 0; $prdco...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function preCreateCatalog($ar){\n // lot\n $rs = selectQueryGetAll('select count(distinct categ) as nb from '.$this->wtscatalog);\n $newval = 'Groupe '.($rs[0]['nb']+1);\n $fdl = new XShortTextDef();\n $fdl->field = 'categ';\n $fdl->table = $this->wtscatalog;\n $fdl->fieldcount = '32';\n $f...
[ "0.74085134", "0.689524", "0.6711217", "0.62744534", "0.6160358", "0.5952195", "0.58899945", "0.5806396", "0.5796995", "0.57410246", "0.5710859", "0.5672943", "0.5601688", "0.5583919", "0.55301535", "0.55263233", "0.54898703", "0.5486411", "0.5461777", "0.54476166", "0.542186...
0.75418735
0
/ browse d'une table de base
/ просматривать базовую таблицу
function browseTable($ar){ $p = new XParam($ar, array('tplentry'=>'br')); $boid = $p->get('boid'); $tplentry = $p->get('tplentry'); $options = $p->get('options'); $x = XDataSource::objectFactory8($boid); $lar = array('options'=>$options, '_options'=>array('local'=>true), 'pagesize'=>9999, 'first...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTable();", "public function getTable();", "public function getTable();", "public function getTable();", "public function getTable();", "public function getTable();", "public function getTable();", "public function getTable();", "abstract public function getTable();", "abstract...
[ "0.69066596", "0.69066596", "0.69066596", "0.69066596", "0.69066596", "0.69066596", "0.69066596", "0.68663263", "0.6788869", "0.6788869", "0.6784087", "0.67251194", "0.6706494", "0.6637506", "0.6529571", "0.652892", "0.64077574", "0.63447714", "0.6343819", "0.63433725", "0.63...
0.7221671
0
/ charger les types de personnes
/ загрузка типов людей
private function loadPersonTypes($clearbefore=0){ if ($clearbefore){ updateQuery('truncate '.$this->tapersontype); } $wtpsi = $this->getAWTPSI(); $rs = $wtpsi->doGetPersonTypes(array()); foreach($rs as $i=>$o){ if ($o->NERRORNO != 0){ XLogs::critical(get_class($this)." erreur lectur...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function erp_get_people_types() {\n return apply_filters( 'erp_people_types', [] );\n}", "protected function getTypes() {}", "public function get_types()\n {\n }", "public function get_desired_types();", "public static function get_possible_types()\n {\n }", "public static ...
[ "0.71190315", "0.6791145", "0.6602424", "0.65821797", "0.6441488", "0.6441488", "0.6441488", "0.63681716", "0.63536155", "0.63536155", "0.63536155", "0.63536155", "0.622103", "0.6186636", "0.61758435", "0.61592954", "0.60903585", "0.6069656", "0.60397035", "0.6015194", "0.601...
0.7029266
1
/ instace des WTPSI
/ экземпляр WTPSI
function getAWTPSI(){ if ($this->wtps == NULL){ if ($this->wtpsiusecpny == 1){ $this->wtps = TAWTPSI::objectFactory(array('wsdl'=>$this->wtpsiwsdl, 'cpnylogin'=>1, 'username'=>$this->wtpsiusername, 'userpassword'=>$this->wtpsixmlpassw...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getAWTPSIAddsOn(){\n if ($this->wtpsaddson == NULL){\n $this->wtpsaddson = TAWTPSIAddsOn::objectFactory(array('user'=>$this->wtpsiwtplogin,\n 'pwd'=>$this->wtpsicontactpasswd,\n 'wsdl'=>$this->wtpsiaddonswsdl));\n }\n return $this->wtpsadds...
[ "0.61785626", "0.55700535", "0.55467254", "0.55089617", "0.5493206", "0.54186076", "0.53854", "0.53367203", "0.532515", "0.53076303", "0.5287357", "0.52626115", "0.52144355", "0.51818913", "0.5180667", "0.5177764", "0.51580375", "0.5153518", "0.51520914", "0.51497084", "0.512...
0.7157683
0
/ instace des WTPSI AddOns
/ экземпляр дополнений WTPSI
function getAWTPSIAddsOn(){ if ($this->wtpsaddson == NULL){ $this->wtpsaddson = TAWTPSIAddsOn::objectFactory(array('user'=>$this->wtpsiwtplogin, 'pwd'=>$this->wtpsicontactpasswd, 'wsdl'=>$this->wtpsiaddonswsdl)); } return $this->wtpsaddson; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function __construct() {\n $this->plugin_dir = plugin_dir_path(__FILE__);\n $this->icon_dir = $this->plugin_dir . 'images/icons/';\n\n $this->plugin_url = plugins_url('',__FILE__);\n $this->icon_url = $this->plugin_url . 'images/icons/';\n $this->admin_page = admin_url() . 'admin...
[ "0.6000555", "0.57204646", "0.57073635", "0.56994313", "0.56773365", "0.5673357", "0.5672344", "0.5651897", "0.5647044", "0.5629927", "0.56260824", "0.5613327", "0.559047", "0.5581401", "0.55772233", "0.5565469", "0.55610055", "0.5556372", "0.55525196", "0.5547311", "0.554461...
0.72144175
0
Show the Job Builder mini SPA
Показать мини-SPA Построителя задач
public function show() { return view( 'manager/job-builder-root' )->with([ 'title' => Lang::get('manager/job_builder.title'), ]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show(Job $job)\n {\n //\n }", "public function getShow($jobtitle)\n\t{\n\t\t// redirect to the frontend\n\t}", "public function index()\n\t{\n\t\treturn view('sanatorium/job::index');\n\t}", "public function showInstallerApp() {\n\t\t$doc = JFactory::getDocument();\n\t\t$this->lo...
[ "0.6665023", "0.6536361", "0.63888204", "0.6380171", "0.62925464", "0.61752284", "0.6144173", "0.610938", "0.60875916", "0.60807264", "0.6065288", "0.6047928", "0.6037091", "0.6018285", "0.6015556", "0.6015556", "0.6015556", "0.6015556", "0.6010017", "0.60046476", "0.6001178"...
0.7357492
0
$n | $n+1 sets rightmost zero bit to 1 ($n | $n+1) + 1 sets all bits after second zero to 0 and second zero to 1 combining these terms with XOR (^) gives leading zeros until second rightmost zero of original term and then only 1s adding 1 again turns all 1s to zeros and adds only one 1 in front of them moving to the ri...
$n | $n+1 устанавливает правый нулевой бит в 1 ($n | $n+1) + 1 устанавливает все биты после второго нуля в 0 и второй ноль в 1. Комбинируя эти термы с помощью XOR (^), получаем ведущие нули до второго правого нуля исходного терма, а затем только 1. Добавление 1 снова превращает все 1 в нули и добавляет только один 1 пе...
function secondRightmostZeroBit($n) { return ((($n | $n+1) ^ (($n | $n + 1) + 1)) + 1) >> 1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static function getMaskOnes(int $n): int {\n // so (1 << 63) - 1 gets converted to float and loses precision (leading to incorrect result)\n // 2. (1 << 64) - 1 works fine, because (1 << 64) === 0 (it overflows) and -1 is exactly what we want\n // (`php -r 'var_dump(decbin(-1));'...
[ "0.62852633", "0.6116158", "0.6056246", "0.6055227", "0.60162616", "0.57413346", "0.55304277", "0.5477094", "0.5446826", "0.5413623", "0.53752816", "0.53333426", "0.53181046", "0.52793753", "0.5232766", "0.51740205", "0.5160071", "0.5099801", "0.5079656", "0.50759155", "0.504...
0.7070557
0
appends values to template variables by reference
дополняет значения в переменных шаблона по ссылке
function AppendByRef($tpl_var, &$value, $merge=false) { $this->_smarty->append_by_ref($tpl_var, $value, $merge); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addVariables($tvs = array());", "public function updateVaribles(){\n foreach( $this->globalVars as $key=>$val ){\n $this->template = str_replace( '%'. $key .'%', $val, $this->template );\n }\n }", "function AssignByRef($tpl_var, &$value)\n {\n $this->_smart...
[ "0.6383608", "0.582568", "0.5783358", "0.57092637", "0.5691141", "0.5566079", "0.5545298", "0.5543698", "0.55160135", "0.546763", "0.5465623", "0.54495597", "0.5397482", "0.5372851", "0.5364306", "0.536316", "0.5343946", "0.53392595", "0.5325619", "0.53142554", "0.53100157", ...
0.7091639
0
clear the given assigned template variable.
Очистите заданный переменную шаблона.
function ClearAssign($tpl_var) { $this->_smarty->clear_assign( $tpl_var ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function clear_assign($tpl_var)\n {\n $this->clearAssign($tpl_var);\n }", "function unset_var($name){ // unset the template variable\n\tif (isset($this->vars[$name])) unset($this->vars[$name]);\n}", "public function clearVars()\r\n {\r\n $this->_smarty->clearAllAssign();\r\n ...
[ "0.7566433", "0.7191758", "0.6726413", "0.67050195", "0.6686058", "0.66438085", "0.6436306", "0.6413052", "0.634062", "0.633813", "0.6132039", "0.6110073", "0.5961733", "0.59504163", "0.59501046", "0.5922669", "0.5908307", "0.585374", "0.5843332", "0.5801497", "0.5779502", ...
0.7491993
1
Registers a prefilter function to apply to a template before compiling
Регистрирует функцию предварительного фильтра, которая применяется к шаблону перед компиляцией
function RegisterPrefilter($function) { $this->_smarty->register_prefilter($function); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function register_prefilter($smarty, $function)\n{\n $_name = (is_array($function)) ? $function[0] : $function;\n $smarty->registered_filters['pre'][$_name] = $function;\n}", "function _add_template_loader_filters()\n {\n }", "function RegisterPostfilter($function)\n {\n $this->_smarty->r...
[ "0.7772184", "0.6464766", "0.6291857", "0.62652165", "0.6119213", "0.61075324", "0.610526", "0.59339553", "0.59259903", "0.5877378", "0.58709174", "0.58709174", "0.58709174", "0.58544", "0.57992023", "0.5778107", "0.57774925", "0.57272476", "0.568918", "0.56596994", "0.560914...
0.77226025
1
Unregisters a prefilter function
Отписывает предфильтр функцию
function UnregisterPrefilter($function) { $this->_smarty->unregister_prefilter($function); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function UnregisterPostfilter($function)\n {\n $this->_smarty->unregister_postfilter( $function );\n }", "function UnregisterOutputfilter($function)\n {\n $this->_smarty->unregister_outputfilter($function);\n }", "function remove_filter($hook_name, $callback, $priority = 10)\n {\n ...
[ "0.71847147", "0.6910196", "0.68760026", "0.6465871", "0.62737244", "0.61718947", "0.6135773", "0.6060782", "0.6057684", "0.60540015", "0.60170066", "0.5993051", "0.5976774", "0.59508926", "0.5862169", "0.58367765", "0.5784914", "0.5777473", "0.5769011", "0.5754283", "0.57109...
0.8121243
0
Registers a postfilter function to apply to a compiled template after compilation
Регистрирует функцию постфильтрации для применения к откомпилированному шаблону после компиляции
function RegisterPostfilter($function) { $this->_smarty->register_postfilter($function); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function UnregisterPostfilter($function)\n {\n $this->_smarty->unregister_postfilter( $function );\n }", "public function _post_filter()\n {\n }", "function RegisterOutputfilter($function)\n {\n $this->_smarty->register_outputfilter($function);\n }", "function dacig_register_f...
[ "0.6769889", "0.67541254", "0.64160013", "0.61654174", "0.6124806", "0.6036429", "0.5968456", "0.5938088", "0.58840364", "0.5806517", "0.5777778", "0.5724347", "0.567673", "0.5592164", "0.55697477", "0.5513224", "0.5494791", "0.54361206", "0.54172826", "0.5411904", "0.5398342...
0.7855613
0