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
Test resolving query using ?unique modifier.
Тестирование разрешения запроса с использованием модификатора ?unique.
public function testResolverQueryUniqueModifier() { $testObject = SourceDataHelper::getDataNamedL2(); $resolverItems = new ItemCollection($testObject); $expected = ['ID#0', 'ID#6', 'ID#12']; $resolverItems->resolve([ 'getAllObjects/%any/getAllObjects/%any/../../myId', ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testResolverQueryUniqueModifier2()\n {\n\n $testObject = SourceDataHelper::getDataNamedL2();\n $resolverItems = new ItemCollection($testObject);\n\n $expected = ['ID#0', 'ID#6', 'ID#12'];\n\n\n $resolverItems->resolve([\n 'getAllObjects/%any/getAllObjects/%...
[ "0.72844315", "0.71039826", "0.6907804", "0.620161", "0.6030944", "0.6022491", "0.60004485", "0.5998274", "0.59733295", "0.5963897", "0.5954348", "0.5940956", "0.5892421", "0.5872735", "0.587011", "0.5850603", "0.5838624", "0.57841295", "0.57634246", "0.57521033", "0.5729647"...
0.75585914
0
Test resolving query using ?unique modifier. This test produce a different internal case than testResolverQueryUniqueModifier but must produce a equivalent result.
Тест разрешения запроса с использованием модификатора ?unique. Этот тест производит другой внутренний случай, чем testResolverQueryUniqueModifier, но должен давать эквивалентный результат.
public function testResolverQueryUniqueModifier2() { $testObject = SourceDataHelper::getDataNamedL2(); $resolverItems = new ItemCollection($testObject); $expected = ['ID#0', 'ID#6', 'ID#12']; $resolverItems->resolve([ 'getAllObjects/%any/getAllObjects/%any/../../myId'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testResolverQueryUniqueModifier()\n {\n\n $testObject = SourceDataHelper::getDataNamedL2();\n $resolverItems = new ItemCollection($testObject);\n\n $expected = ['ID#0', 'ID#6', 'ID#12'];\n\n $resolverItems->resolve([\n 'getAllObjects/%any/getAllObjects/%any...
[ "0.8380361", "0.79035294", "0.7753576", "0.6013669", "0.5759253", "0.5739651", "0.54744035", "0.54136115", "0.53826493", "0.53431785", "0.5342749", "0.5313684", "0.53086007", "0.5293611", "0.5284316", "0.5228031", "0.5213775", "0.51942605", "0.51853365", "0.51811314", "0.5154...
0.8125733
1
Test resolving query using ?debug modifier.
Тестирование разрешения запроса с использованием модификатора ?debug.
public function testResolverQueryWithDebugModifier() { $testObject = SourceDataHelper::getDataNamedL2(); $expectedResult = [ 'class-name' => 'Grabbag\tests\sourceData\List1', 'method' => [ '__construct', 'appendObject', 'getAllO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function show_query($query) {\n global $debug;\n\n if($debug){\n echo \"<p>Query = $query</p>\" ;\n }\n}", "protected function debug($query) {\n echo $query->getSqlString($this->adapter->getPlatform());\n die();\n }", "public function debug() \n {\n bug($this->select()->__toStr...
[ "0.6703054", "0.65505105", "0.6499223", "0.6255451", "0.6184152", "0.6136218", "0.6136218", "0.6110046", "0.6089485", "0.60819393", "0.6066436", "0.60638654", "0.6049825", "0.5957373", "0.5939573", "0.5873026", "0.5838821", "0.5765541", "0.57131135", "0.5692634", "0.5667567",...
0.7396146
0
ListarPadresActivos: Lista las categorias padres ordenadas y activas
ListarPadresActivos: Перечисляет категории-родители, отсортированные и активные
public function ListarPadresActivos() { $consulta = $this->createQueryBuilder('c') ->where('c.categoriaPadre is null AND c.estado = 1') ->orderBy('c.nombre', 'ASC'); $lista = $consulta->getQuery()->getResult(); return $lista; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static public function categorias_padre_desplegable()\n {\n\n // prepara el ARRAY de secciones que va a servir para armar el combo de secciones PADRES\n $sql = \"SELECT categoria.id, CONCAT( categoria_tipo.descripcion, ' - ', categoria.descripcion ) AS descripcion\n FROM categoria\n...
[ "0.6993651", "0.6598597", "0.60177976", "0.58991575", "0.5883269", "0.5859343", "0.582175", "0.5600198", "0.5587233", "0.55827695", "0.5555391", "0.55276793", "0.5491652", "0.5487564", "0.547681", "0.5447952", "0.54417676", "0.54292625", "0.5413084", "0.53790116", "0.5362339"...
0.78036976
0
ListarHijosActivos: Lista las categorias hijos ordenadas y activas
ListarHijosActivos: Перечисляет активные дочерние категории в порядке
public function ListarHijosActivos() { $consulta = $this->createQueryBuilder('c') ->where('c.categoriaPadre is not null AND c.estado = 1') ->orderBy('c.nombre', 'ASC'); $lista = $consulta->getQuery()->getResult(); return $lista; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function listaractivos(){\n\t\t\t$sql=\"SELECT a.idarticulo,a.idcategoria,c.nombre as categoria,a.codigo,a.nombre,a.stock,a.descripcion,a.imagen,a.condicion FROM articulo a INNER JOIN categoria c ON a.idcategoria=c.idcategoria WHERE a.condicion='1'\";\n\t\t\treturn ejecutarConsulta($sql);\n\n\t\t}", "publ...
[ "0.68424016", "0.63575536", "0.63107765", "0.62417966", "0.623087", "0.6212298", "0.61722547", "0.61622703", "0.6149931", "0.61374134", "0.613436", "0.60871696", "0.6048142", "0.60352486", "0.60230845", "0.60228425", "0.6020383", "0.6009906", "0.5951646", "0.5945419", "0.5881...
0.7916039
0
ListarCategoriasDelPadreOrdenadas: Carga las categorias del padre de la BD
ListarCategoriasDelPadreOrdenadas: Загружает категории родителя из БД
public function ListarCategoriasDelPadreOrdenadas($categoria_padre_id) { $consulta = $this->createQueryBuilder('c') ->leftJoin('c.categoriaPadre', 'c_p') ->where('c_p.categoriaId = :categoria_padre_id AND c_p.estado = 1') ->setParameter('categoria_padre_id', $categoria_padre...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static public function categorias_padre_desplegable()\n {\n\n // prepara el ARRAY de secciones que va a servir para armar el combo de secciones PADRES\n $sql = \"SELECT categoria.id, CONCAT( categoria_tipo.descripcion, ' - ', categoria.descripcion ) AS descripcion\n FROM categoria\n...
[ "0.75425404", "0.73093104", "0.71979487", "0.68212014", "0.6622968", "0.6528038", "0.64977187", "0.6497547", "0.6485124", "0.6464643", "0.6452038", "0.6437075", "0.64269686", "0.64209086", "0.6366455", "0.63631517", "0.63056135", "0.62626636", "0.625204", "0.62439334", "0.622...
0.7332756
1
ListarCategoriasDelPadre: Carga los categoria del padre de la BD
ListarCategoriasDelPadre: Загружает категории родителя из БД
public function ListarCategoriasDelPadre($categoria_padre_id, $estado = "") { $consulta = $this->createQueryBuilder('c') ->leftJoin('c.categoriaPadre', 'c_p') ->where('c_p.categoriaId = :categoria_padre_id') ->setParameter('categoria_padre_id', $categoria_padre_id); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static public function categorias_padre_desplegable()\n {\n\n // prepara el ARRAY de secciones que va a servir para armar el combo de secciones PADRES\n $sql = \"SELECT categoria.id, CONCAT( categoria_tipo.descripcion, ' - ', categoria.descripcion ) AS descripcion\n FROM categoria\n...
[ "0.7636349", "0.73077554", "0.7244185", "0.6951409", "0.67215335", "0.66741544", "0.6635097", "0.65883356", "0.6532129", "0.6492905", "0.6486644", "0.64275676", "0.63866323", "0.6372528", "0.63518655", "0.6336517", "0.6318398", "0.630948", "0.62904274", "0.6273931", "0.625294...
0.74438834
1
get employee by id
получить сотрудника по идентификатору
public function getEmployee($id) { return $this->db->get_where('ems_employee',['id' => $id])->row(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get($id)\n {\n \treturn Employees::find($id);\n }", "public function getEmployees($id);", "public function getEmployeeById($id)\n {\n\n if (Employee::find($id) === null) {\n $employee = \"Not entry yet! Please check another user-id\";\n } else {\n ...
[ "0.8629632", "0.83814055", "0.8344596", "0.8201143", "0.8088146", "0.8070349", "0.8032949", "0.8014724", "0.79826415", "0.7977082", "0.7924922", "0.79179466", "0.7868147", "0.78521043", "0.7851145", "0.7844439", "0.7837413", "0.779494", "0.7652324", "0.7650468", "0.7543053", ...
0.83891934
1
get last inserted employee
получить последнего вставленного сотрудника
public function getLast() { $this->db->order_by('id', 'DESC'); $this->db->limit(1); return $this->db->get('ems_employee')->row(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getLastIdEmployee(){\n\t\t$query = $this->db->query(\"SELECT TOP 1 tblEmployee.pkEmployeeId FROM tblEmployee ORDER BY tblEmployee.pkEmployeeId DESC\");\n\t\treturn $query->result();\n\t}", "public function getLastInsertID();", "function GetLastInsertO($werf,$id){\n\t\t\tglobal $db;\n\t\t\t\n\t...
[ "0.74911344", "0.679363", "0.67889166", "0.67596436", "0.67596436", "0.67596436", "0.6665949", "0.6650265", "0.6627014", "0.6593197", "0.65856934", "0.65845114", "0.65845114", "0.65828246", "0.6577152", "0.65395296", "0.6523646", "0.6512896", "0.6495294", "0.6485673", "0.6478...
0.73742735
1
Go to my account page
Перейти на страницу моего аккаунта
public function goToAccountPage() { $footerSearch = WebDriverBy::className('footer'); $linkText = $title = 'My Account'; $accountLinkSearch = $footerSearch->partialLinkText($linkText); $accountLinkElement = $this->webDriver->findElement($accountLinkSearch); $accountLinkElemen...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function account() {\n\t\tif (! $this->Session->read ( \"id\" ) || ! $this->Session->read ( \"name\" )) {\n\t\t\t$this->redirect ( '/' );\n\t\t}\n\t}", "public function actionMyAccount()\n {\n // redirect to home if user not logged in\n if (Yii::$app->user->isGuest) {\n return $this->...
[ "0.7060554", "0.6941577", "0.6922799", "0.68073344", "0.68073344", "0.67310363", "0.666734", "0.66249835", "0.6604843", "0.6578722", "0.6571507", "0.64861834", "0.64582384", "0.6426406", "0.6397943", "0.63133895", "0.62243897", "0.617641", "0.61348104", "0.61148083", "0.61138...
0.71365076
0
Go To account create
Перейти к созданию аккаунта
public function goToAccountCreate() { $createAccountButton = WebDriverBy::cssSelector('.new-users .button'); $createAccountElement = $this->webDriver->findElement($createAccountButton); $createAccountElement->click(); $firstNameSearch = WebDriverBy::id('firstname'); $conditio...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function create_account()\n {\n \t$data['pls'] = array('login');\n\t\t$data['plugins'] = array();\n\t \t$data['javascript'] = array();\n \t$this->layout->view( 'login/create_account', $data, 'default');\n }", "public function showCreateAccount()\n {\n if (App::loggedIn()) {\n Ap...
[ "0.7303248", "0.7254531", "0.7136032", "0.6945687", "0.6945495", "0.6884699", "0.68537796", "0.672269", "0.67117006", "0.6684987", "0.6668356", "0.66165745", "0.65661216", "0.6559518", "0.6559518", "0.6558494", "0.65390044", "0.6486485", "0.64864045", "0.6473052", "0.6441606"...
0.7758941
0
Topup balance transaction have a chance to fail If paid within 9AM to 5PM, success rate is 90% (otherwise 40%)
Транзакция пополнения баланса может завершиться неудачно. Если оплата произведена с 9:00 до 17:00, вероятность успеха составляет 90% (в противном случае 40%)
function transaction_failed($order_paid_time) { $chance = mt_rand(0, 99) / 100; $open_time = new DateTime("09:00:00"); $close_time = new DateTime("17:00:00"); if ($open_time < $order_paid_time && $order_paid_time > $close_time) { if ($chance < 1/10) { return false; } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testV1userexchangebankfiatbalancepending()\n {\n\n }", "public function iShouldSeeWithdrawalBalanceAs($amountoverify) {\n // throw new PendingException();\n $session=$this->getSession();\n\t$page=$session->getPage();\n $amount =$page->find('xpath','//table[contains(@class,\"sticky-...
[ "0.62186086", "0.61815995", "0.6176414", "0.60476196", "0.60304815", "0.5989906", "0.59546727", "0.59478056", "0.5945755", "0.5927383", "0.59104264", "0.5900855", "0.5895837", "0.5865959", "0.58585876", "0.58341724", "0.5824132", "0.5808665", "0.5798355", "0.5795977", "0.5779...
0.72257066
0
Check search keyword contain other than numbers
Проверить, содержит ли поисковое ключевое слово что-либо, кроме чисел
function invalid_search_order($keyword) { if (!ctype_digit($keyword)) { return false; } else { return $keyword; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function verificar_caracter_numeros_se($string){\r\n\t$var = $_REQUEST[$string];\r\n\treturn !ereg('[^a-zA-Z0-9]', trim($var));\r\n}", "function _s_has_numbers( $string ) {\n\treturn preg_match( '/\\d/', $string );\n}", "function verificar_caracter_numeros($string){\r\n\t$var = $_REQUEST[$string];\r\n\treturn ...
[ "0.6279777", "0.6150222", "0.61336803", "0.60851204", "0.59238386", "0.59028393", "0.581107", "0.57873744", "0.57785803", "0.5751436", "0.5746261", "0.57302165", "0.57077646", "0.57014674", "0.5651737", "0.56193155", "0.56110597", "0.5600786", "0.55271083", "0.55250347", "0.5...
0.72972226
0
This function can be used to aid with content negotiation. It takes 2 arguments, the $acceptHeaderValue, which usually comes from an Accept header, and $availableOptions, which contains an array of items that the server can support. The result of this function will be the 'best possible option'. If no best possible opt...
Этот метод можно использовать для помощи в согласовании содержимого. Он принимает 2 аргумента: $acceptHeaderValue, который обычно приходит из заголовка Accept, и $availableOptions, который содержит массив элементов, которые может поддерживать сервер. Результатом этого метода будет «наилучший возможный вариант». Если на...
function negotiateContentType($acceptHeaderValue, array $availableOptions) { if (!$acceptHeaderValue) { // Grabbing the first in the list. return reset($availableOptions); } $proposals = array_map( 'Sabre\HTTP\parseMimeType', explode(',', $acceptHeaderValue) ); // ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function negotiate(ServerRequestInterface $request, Configuration $conf, $supplyDefault)\n {\n $headerLine = $request->getHeaderLine($conf->getHeaderName());\n\n if (empty($headerLine)) {\n // accept header is empty\n $result = $this->handleNoInput($conf, $supplyDefaul...
[ "0.6266441", "0.6239689", "0.61125463", "0.6079125", "0.60042673", "0.59501404", "0.58848256", "0.58848256", "0.58848256", "0.5862794", "0.5781848", "0.5781848", "0.5779495", "0.55889744", "0.55794865", "0.55626196", "0.55626196", "0.55231833", "0.55205035", "0.5490958", "0.5...
0.72293246
0
Parses the Prefer header, as defined in RFC7240. Input can be given as a single header value (string) or multiple headers (array of string). This method will return a key>value array with the various Prefer parameters. Prefer: return=minimal will result in: [ 'return' => 'minimal' ] Prefer: foo, wait=10 will result in:...
Парсит заголовок Prefer, как определено в RFC7240. Входные данные могут быть предоставлены в виде одного значения заголовка (строка) или нескольких заголовков (массив строк). Этот метод возвращает массив ключ>значение с различными параметрами Prefer. Prefer: return=minimal приведет к: [ 'return' => 'minimal' ] Prefer: ...
function parsePrefer($input) { $token = '[!#$%&\'*+\-.^_`~A-Za-z0-9]+'; // Work in progress $word = '(?: [a-zA-Z0-9]+ | "[a-zA-Z0-9]*" )'; $regex = <<<REGEX / ^ (?<name> $token) # Prefer property name \s* # Optional space (?: = \s* # Prefer property value (?<valu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getHTTPPrefer() {\n\n $result = [\n // can be true or false\n 'respond-async' => false,\n // Could be set to 'representation' or 'minimal'.\n 'return' => null,\n // Used as a timeout, is usually a number.\n 'wait' => null,\n ...
[ "0.69131505", "0.5288431", "0.5276191", "0.526236", "0.5185031", "0.50782824", "0.5067355", "0.50312483", "0.50271523", "0.5021091", "0.49925044", "0.49251425", "0.48889297", "0.4868005", "0.48060957", "0.46903268", "0.4680403", "0.46369264", "0.46343887", "0.4593331", "0.457...
0.7202994
0
Parses a mimetype and splits it into: 1. type 2. subtype 3. quality 4. parameters
Анализирует mimetype и разделяет его на: 1. тип 2. подтип 3. качество 4. параметры
function parseMimeType($str) { $parameters = []; // If no q= parameter appears, then quality = 1. $quality = 1; $parts = explode(';', $str); // The first part is the mime-type. $mimeType = array_shift($parts); $mimeType = explode('/', trim($mimeType)); if (count($mimeType) !== 2) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function parseType($type)\n\t{\n\t\t$accept = array();\n\n\t\t$result = new \\stdClass;\n\n\t\tif (preg_match('#^(\\S+)\\s*;\\s*(?:q|level)=([0-9\\.]+)#i', $type, $parts))\n\t\t{\n\t\t\t$result->media = $parts[1];\n\t\t\t$result->q = (double) $parts[2];\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$result->media = $type...
[ "0.6414015", "0.62633526", "0.6065913", "0.60506916", "0.5971877", "0.5963819", "0.5929963", "0.59119374", "0.5896737", "0.5891912", "0.5891912", "0.5884049", "0.58818924", "0.5847754", "0.58303714", "0.5827602", "0.5777163", "0.57743764", "0.57711416", "0.57593113", "0.57529...
0.7364334
0
Encodes a 1 segment of a path Slashes are considered part of the name, and are encoded as %2f
Кодирует один сегмент пути. Сlashes считаются частью имени и кодируются как %2f
function encodePathSegment($pathSegment) { return preg_replace_callback('/([^A-Za-z0-9_\-\.~\(\):@])/', function($match) { return '%' . sprintf('%02x', ord($match[0])); }, $pathSegment); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function encodePath($path) {\n\n return preg_replace_callback('/([^A-Za-z0-9_\\-\\.~\\(\\)\\/:@])/', function($match) {\n\n return '%' . sprintf('%02x', ord($match[0]));\n\n }, $path);\n\n}", "function encode($value) {\n return str_replace($this->path_lookup, $this->path_replace, $value);\n }...
[ "0.7330862", "0.6655636", "0.6560674", "0.6525688", "0.64095515", "0.6374178", "0.62011105", "0.6199001", "0.6199001", "0.6199001", "0.6196857", "0.6010189", "0.59428823", "0.58766294", "0.58766294", "0.5829021", "0.5822721", "0.5812015", "0.5801653", "0.5801318", "0.5801318"...
0.70810485
1
Decodes a urlencoded path segment
Декодирует urlencoded сегмент пути
function decodePathSegment($path) { $path = rawurldecode($path); $encoding = mb_detect_encoding($path, ['UTF-8', 'ISO-8859-1']); switch ($encoding) { case 'ISO-8859-1' : $path = utf8_encode($path); } return $path; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function decodePath($path) {\n\n return decodePathSegment($path);\n\n}", "public function decodedPath()\n {\n return rawurldecode($this->path());\n }", "public function decodedPath()\n {\n return rawurldecode($this->path());\n }", "public function decodedPath()\n {\n re...
[ "0.7369775", "0.6959126", "0.6959126", "0.6959126", "0.694039", "0.6453064", "0.6383391", "0.6341755", "0.6326216", "0.6315262", "0.62351066", "0.62086576", "0.6127907", "0.60805976", "0.60663503", "0.6063759", "0.59835505", "0.59550977", "0.5893619", "0.58496034", "0.5760587...
0.7398797
0
Sets the project list result 1. new view 2. new model 3. call model function / get project list based on page slug 4. set view param with view function call
Устанавливает результат списка проектов 1. новый вид 2. новый модель 3. вызов функции модели / получение списка проектов на основе слага страницы 4. установка параметра представления с вызовом функции представления
protected function _project_list() { // $this->view = new View_Portfolio_List; // 1. // $projects = new Model_Project(); // 2. $projects = $this->projects; $this->project_list = $projects->get_all_projects($this->page_slug); // 3. $this->view...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function action_index()\n\t{\n\t\t// set up a model, we do this only once, since we hawe only one model\n\t\t// if we would like to have different models, then do this once for every _project_list() function\n\t\t$this->projects = new Model_Project();\n\n\t\t// if page_slug and project_slug both are set, th...
[ "0.7331253", "0.7105503", "0.70194274", "0.7012598", "0.69418645", "0.69007355", "0.68639016", "0.67684424", "0.67394674", "0.6727763", "0.6713386", "0.67026937", "0.6671359", "0.666339", "0.66101074", "0.66068614", "0.6598651", "0.65966535", "0.65560806", "0.655338", "0.6542...
0.7887385
0
Retrieve the stable_tag for a given plugin from Cache or the Database.
Получить stable_tag для заданного плагина из Cache или базы данных.
protected function get_stable_tag( $plugin_slug ) { global $wpdb; $post_id = $this->get_post_id( $plugin_slug ); // Determine the stable_tag $meta = wp_cache_get( $post_id, 'post_meta' ); $version = false; if ( isset( $meta['stable_tag'][0] ) ) { $version = $meta['stable_tag'][0]; } if ( ! $versio...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCacheTag() {}", "function mybbpublisher_get_cache_version() \r\n{\r\n\tglobal $cache, $mybb, $db;\r\n\r\n\t//get currently installed version, if there is one\r\n\t$cpcom_plugins = $cache->read('cpcom_plugins');\r\n\tif(is_array($cpcom_plugins))\r\n\t{\r\n return $cpcom_plugins['versions...
[ "0.57390356", "0.5620558", "0.56101227", "0.5583372", "0.55765086", "0.5571979", "0.54960364", "0.54806876", "0.5446061", "0.5426885", "0.5399002", "0.5381895", "0.53363246", "0.53122145", "0.5301078", "0.52356625", "0.5234636", "0.5226355", "0.52241266", "0.5206962", "0.5200...
0.7536443
0
Retrieve the post_id for a Plugin slug. This function uses the Object Cache and $wpdb directly to avoid a dependency upon WordPress.
Получите post_id для плагина по его slug. Эта функция использует Object Cache и $wpdb напрямую, чтобы избежать зависимости от WordPress.
protected function get_post_id( $plugin_slug ) { global $wpdb; $post_id = wp_cache_get( $plugin_slug, 'plugin-slugs' ); if ( false === $post_id ) { $post_id = $wpdb->get_var( $wpdb->prepare( "SELECT ID from $wpdb->posts WHERE post_type = 'plugin' AND post_name = %s", $plugin_slug ) ); wp_cache_add( $plugin...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_post_id_from_slug() {\r\n \r\n global $wpdb;\r\n \r\n $slug = str_replace( array( \"/product/\", \"/\" ), \"\", $_SERVER['REQUEST_URI'] );\r\n \r\n $sql = \"\r\n SELECT\r\n ID\r\n FROM\r\n $wpdb->posts...
[ "0.78119624", "0.76743674", "0.7370115", "0.70177346", "0.7015474", "0.6772305", "0.67460215", "0.6703852", "0.6667191", "0.6642221", "0.66385925", "0.66301537", "0.6602913", "0.64946604", "0.64798725", "0.64620626", "0.64597267", "0.6458836", "0.64548486", "0.6418714", "0.64...
0.80529755
0
Middleware used to validate the nonce passed with the request body. The nonce has to be passed as a `_ajax_nonce` query parameter, and it will be checked against the `hubspotajax` nonce.
Сервис-среда, используемая для проверки значения nonce, переданного в теле запроса. Значение nonce должно быть передано как параметр запроса `_ajax_nonce`, и оно будет проверено по отношению к nonce `hubspotajax`.
public static function validate_nonce() { $valid = check_ajax_referer( 'hubspot-ajax', false, false ); if ( ! $valid ) { wp_die( '{ "error": "CSRF token missing or invalid" }', 403 ); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function index_ajax () {\n $nonce = $_POST['hashNonce'];\n if ( ! wp_verify_nonce( $nonce, 'hash-nonce' ) ) {\n die ( 'not authorized');\n }\n}", "protected function checkAjaxNonce() {\n\n\t\t\t$sNonce = $this->loadDP()->FetchRequest( '_ajax_nonce', '' );\n\t\t\tif ( empty( $sNonce ) ) {\n\t\t\t\...
[ "0.6712382", "0.6183129", "0.6176062", "0.60547334", "0.60296655", "0.5927312", "0.5899336", "0.57552254", "0.5554678", "0.55495954", "0.55284023", "0.5416338", "0.5384823", "0.53723633", "0.53624", "0.5354862", "0.5352814", "0.53045255", "0.5294722", "0.5203644", "0.51823974...
0.7325463
0
Middleware that only allows admin.
Серверная программа, которая разрешает только администраторам.
public static function admin_only() { if ( ! User::is_admin() ) { wp_die( '{ "error": "Insufficient permissions" }', '', 403 ); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function adminOnly()\n {\n $this->authenticatedOnly();\n\n if (!$this->isAdmin()) {\n $this->di->get(\"response\")->redirect(\"user/profile\");\n }\n }", "public function forAdminOnly()\n {\n return self::ADMINS_ONLY;\n }", "public function __construct(...
[ "0.7792444", "0.7270458", "0.72521245", "0.72310555", "0.7216443", "0.7206113", "0.7186096", "0.7180165", "0.7177394", "0.7105368", "0.7093533", "0.70684516", "0.70684516", "0.70684516", "0.70677686", "0.7052877", "0.7052324", "0.70431596", "0.70312846", "0.70245963", "0.7018...
0.77889264
1
Read Payment record with payment gateway reference
Считать запись платежа с ссылкой на платежную систему
function read_payment_record($app_reference) { $cond['app_reference'] = $app_reference; $data = $this->custom_db->single_table_records('payment_gateway_details', '*', $cond); if ($data['status'] == SUCCESS_STATUS) { return $data['data'][0]; } else { return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function read_ref_payment_record($app_reference,$ref_id)\r\n\t{\r\n\t\t$cond['app_reference'] = $app_reference;\r\n\t\t$cond['payment_history_ref'] = $ref_id;\r\n\t\t$data = $this->custom_db->single_table_records('payment_gateway_details', '*', $cond);\r\n\t\tif ($data['status'] == SUCCESS_STATUS) {\r\n\t\t\tretur...
[ "0.7575052", "0.7449112", "0.6472095", "0.6442257", "0.6432015", "0.63858813", "0.6370082", "0.6325483", "0.6303767", "0.630363", "0.6265036", "0.62410593", "0.6210884", "0.6189936", "0.618939", "0.6173792", "0.6101453", "0.60900354", "0.60738075", "0.6065395", "0.6039269", ...
0.78197217
0
Clear input element when standard clear() does not help
Очистка элемента ввода, когда стандартный clear() не помогает
protected function clearInput($element) { $element->value(''); $tx = $element->value(); while ($tx!="") { $this->keysSpecial('backspace'); $tx = $element->value(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function clearInput()\n {\n $this->input->clear();\n }", "public static function resetInput(){ }", "function Clear() {\n\t\t$this->output = $this->input;\n\t}", "public function clear()\n {\n $this->element=[];\n }", "public function clear_value() {\n\t\t$this->get_value_se...
[ "0.80039227", "0.6952448", "0.6902962", "0.67652595", "0.6763192", "0.67478365", "0.6690256", "0.65860516", "0.6568081", "0.6565487", "0.6546262", "0.6546262", "0.6546262", "0.6546262", "0.6546262", "0.6546262", "0.6546262", "0.6546262", "0.6546262", "0.6546262", "0.6537121",...
0.77814513
1
Creates the uploaded file of a newly created entity.
Создает загруженный файл нового сущности.
public function createFile(Request $request, Entity $entity, $entityName, $field);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function executeCreateFile(sfWebRequest $request) {\n $object_class = $request->getParameter('object_class');\n $object_id = $request->getParameter('object_id');\n $object = Doctrine::getTable($object_class)->find($object_id);\n if(!$object){\n $this->getUser()->setFlash('error', 'object er...
[ "0.69338363", "0.6918245", "0.6730567", "0.669056", "0.6661802", "0.65777445", "0.6478973", "0.646238", "0.64343125", "0.6400958", "0.6400958", "0.6400958", "0.6400958", "0.6352021", "0.6349065", "0.63202846", "0.6305591", "0.62853205", "0.62505215", "0.62398136", "0.623325",...
0.75037783
0
Updates the uploaded file of an updated entity.
Обновляет загруженный файл обновленного сущности.
public function updateFile(Request $request, Entity $entity, $entityName, $field);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function update() {\r\n\t\t$now = time();\r\n\t\tCore::getDatabaseConnection()->query('UPDATE `file` SET `touched` = $updated, `updated` = $updated WHERE `id` = $file AND `moduleInstance` = $instanceId', array(\r\n\t\t\t\t'updated' => $now,\r\n\t\t\t\t'file' => $this->fileId,\r\n\t\t\t\t'instanceId' => $thi...
[ "0.728382", "0.71508", "0.6863554", "0.67983", "0.67320234", "0.66271544", "0.6578505", "0.6578505", "0.6578505", "0.6578505", "0.65599656", "0.65589905", "0.65371543", "0.6501705", "0.6492413", "0.6492321", "0.6439223", "0.64098614", "0.6395291", "0.6385146", "0.63833916", ...
0.7606795
0
Deletes a specific file from an existing entity.
Удаляет конкретный файл из существующего сущности.
public function deleteFile(Entity $entity, $entityName, $field);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function entity_metadata_delete_file($fid) {\n file_delete(file_load($fid), TRUE);\n}", "public function delete(BaseEntityWithFile $entity)\n {\n $this->entityManager->remove($entity);\n $this->entityManager->flush();\n\n return $entity;\n }", "function delete_entity_file($entity, $...
[ "0.74856085", "0.74402505", "0.72080004", "0.7166603", "0.69171894", "0.6792527", "0.6792336", "0.67735857", "0.6724985", "0.66826755", "0.6593836", "0.6593836", "0.6570986", "0.65588117", "0.65294224", "0.6509665", "0.6508626", "0.64920205", "0.648961", "0.6477973", "0.64759...
0.78603095
0
Renders (outputs) a file of an entity. This includes setting headers like the file size, mimetype and name, too.
Отображает (выводит) файл сущности. Это включает в себя установку заголовков, таких как размер файла, тип MIME и имя, тоже.
public function renderFile(Entity $entity, $entityName, $field);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function download()\n {\n if (!($this->entity instanceof AbstractEntity)) {\n throw new \\Exception(self::EXC_ENTITY_UNKNOWN);\n }\n\n $res = $this->entity->render();\n\n header('Content-Description: File Transfer');\n /* `Content-Type` can also be `applicati...
[ "0.7017171", "0.6849846", "0.6264433", "0.6217384", "0.618727", "0.61788684", "0.61450845", "0.6117366", "0.60778725", "0.6040788", "0.5971652", "0.5927935", "0.59212023", "0.580378", "0.57935375", "0.5722768", "0.5682435", "0.56779283", "0.56764215", "0.56485224", "0.5623169...
0.7223969
0
Function for the CMS site map page
Функция для страницы карты сайта CMS
function site_map() { $this->layout="frontend"; /* $reviews=$this->Review->find('all',array('order'=>array('Review.created DESC'),'limit'=>'5')); $this->set('reviews',$reviews); if($this->Session->read('Member.group_id') == '3'){ $savedSearches=$this->saveSearch->find('all',array('conditions'=>array('p...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function siteMapAction(){\r\n $this->_helper->layout()->disableLayout();\r\n $this->_helper->viewRenderer->setNoRender(true);\r\n\r\n $newsRob = new NewsRobots();\r\n $dataXml = $newsRob->getXMLFile($this->_registry->absolute_web_root,$this->_request->getParam('la...
[ "0.7526503", "0.72056377", "0.7092049", "0.70768464", "0.7049272", "0.69876045", "0.6985941", "0.695772", "0.69328976", "0.68524903", "0.68249786", "0.6747613", "0.67200893", "0.6681149", "0.65841067", "0.65672064", "0.6529585", "0.65284556", "0.65275717", "0.6509919", "0.649...
0.7437877
1
Function for the unactive user
Функция для неактивного пользователя
function unactive_user() { /* if(!$this->Session->read('Member.memberid')) { $this->facebook_login(); }*/ // all frontend $this->layout="frontend"; $statdatas= $this->Page->find('first',array('conditions'=> array('Page.id' => '42'))); $this->set("statdatas",$statdatas); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function deactivateUser(){\n\n\t\tglobal $db;\n\t\t\n\t\t$db->SQL = \"UPDATE ebb_users SET active='0' WHERE Username='\".$this->user.\"' LIMIT 1\";\n\t\t$db->query();\n\t}", "public function unblockUser();", "public function inactiveAction()\r\n\t{\r\n\t\tif (empty($this->userInfo['admin'])) {\r\n\t\t\t...
[ "0.7183311", "0.6905236", "0.6893628", "0.6850262", "0.6810688", "0.68020517", "0.6728855", "0.6711634", "0.66522706", "0.66355217", "0.6591735", "0.6583908", "0.6571074", "0.65540123", "0.6516039", "0.6482426", "0.64797765", "0.64751565", "0.64741665", "0.6469539", "0.646467...
0.78575367
0
Helper for creating path uri using slug
Помощник для создания путевого URI с использованием слэша
function uriForSlug(string $slug): string { return MultiRoute::uriForSlug($slug); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function slug();", "public function get_slug();", "public function get_slug();", "function createUri(){\n\t\t$tmp = '/' .$this->getPath();\n\t\tforeach ($this->parameters as $key => $value){\n\t\t\t$tmp .= '/' .$key .'/' .$value;\n\t\t}\n\t\t$this->uri = $tmp;\n\t\treturn $this->uri;\n\t}", "functio...
[ "0.68640965", "0.6724458", "0.6724458", "0.6704828", "0.667878", "0.66603446", "0.6582649", "0.6578644", "0.65685546", "0.6496992", "0.6496992", "0.6496992", "0.6496992", "0.6496992", "0.6496992", "0.6496992", "0.64848906", "0.64013684", "0.6389307", "0.63627577", "0.6344871"...
0.763949
0
Subscribe the user to a given plan.
Подписаться пользователя на заданный план.
public function subscribeToPlan($billable, Plan $plan, Request $request);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function subscribeTo(User $user, string $plan = 'bronze')\n {\n if (! $this->canSubscribeTo($user)) {\n return abort(403, 'Cannot subscribe to model');\n }\n\n $plan = Plan::retrieve($plan);\n $amountFormatted = '£'.($plan->amount / 100);\n\n // Create the St...
[ "0.7336119", "0.7309339", "0.6885307", "0.6786686", "0.67593044", "0.6757355", "0.66997683", "0.65322936", "0.65223956", "0.6387505", "0.6369572", "0.63196075", "0.628725", "0.6269233", "0.6142903", "0.6111872", "0.61088306", "0.6084599", "0.60184735", "0.6005444", "0.5977598...
0.75907004
0
Trigger for validate register before insert it. You can verify if the email already exists in database.
Триггер для проверки регистра перед вставкой. Вы можете проверить, существует ли электронная почта уже в базе данных.
protected function triggerBeforeInsert() { $user = new self(['email' => $this->email, $this->deletedColumn => ['gte' => 0]]); if (!$user->isLoaded()) { return true; } unset($user); $validation = Springy\Validation\Validator::make( ['dk' => null], ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function insert_to_admin_reg_table()\n\t\t{\n\t\t\t$sql2 = $this->dbase->query(\"SELECT * FROM \".$this->regAdminTable.\" WHERE Email='$this->user_email' \");\n\n\n\t\t\t\t\t\tif($sql2->rowCount() > 0) { // if it does not exist in database\n\n\t\t\t\t\t\t\t\t$this->message(\"Use an unregistered e-mail.\",\"...
[ "0.69093496", "0.6704039", "0.6652357", "0.6620557", "0.6596344", "0.65049505", "0.6497537", "0.64969647", "0.6469924", "0.64120793", "0.640735", "0.6324596", "0.6305786", "0.63054305", "0.6302914", "0.6291571", "0.62905896", "0.628516", "0.62775314", "0.62636095", "0.6253982...
0.7055987
0
Check if post type supports a certain feature
Проверить, поддерживает ли тип поста определенную функцию
public function post_type_supports($feature) { return post_type_supports($this->name, $feature); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function post_type_supports($post_type, $feature)\n{\n}", "function get_all_post_type_supports($post_type)\n{\n}", "function site_supports_custom_post_type() {\n // If the current theme requests it.\n if ( current_theme_supports( self::CUSTOM_POST_TYPE ) || get_option( self::OPTION_NAME, '0' ) ) ...
[ "0.87401634", "0.76020837", "0.75851387", "0.7499578", "0.7275807", "0.72077036", "0.71850824", "0.7106171", "0.70976955", "0.7071594", "0.7061279", "0.7054943", "0.70006317", "0.699849", "0.6874629", "0.6872909", "0.68609947", "0.68522996", "0.6810642", "0.6803561", "0.67830...
0.77476937
1
Filter the query on the minum_siswa column Example usage: $query>filterByMinumSiswa(1234); // WHERE minum_siswa = 1234 $query>filterByMinumSiswa(array(12, 34)); // WHERE minum_siswa IN (12, 34) $query>filterByMinumSiswa(array('min' => 12)); // WHERE minum_siswa >= 12 $query>filterByMinumSiswa(array('max' => 12)); // WH...
Фильтрация запроса по столбцу minum_siswa Пример использования: $query>filterByMinumSiswa(1234); // WHERE minum_siswa = 1234 $query>filterByMinumSiswa(array(12, 34)); // WHERE minum_siswa IN (12, 34) $query>filterByMinumSiswa(array('min' => 12)); // WHERE minum_siswa >= 12 $query>filterByMinumSiswa(array('max' => 12));...
public function filterByMinumSiswa($minumSiswa = null, $comparison = null) { if (is_array($minumSiswa)) { $useMinMax = false; if (isset($minumSiswa['min'])) { $this->addUsingAlias(SanitasiPeer::MINUM_SISWA, $minumSiswa['min'], Criteria::GREATER_EQUAL); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function filterBySpmQtyMinPerSiswa($spmQtyMinPerSiswa = null, $comparison = null)\n {\n if (is_array($spmQtyMinPerSiswa)) {\n $useMinMax = false;\n if (isset($spmQtyMinPerSiswa['min'])) {\n $this->addUsingAlias(JenisSaranaPeer::SPM_QTY_MIN_PER_SISWA, $spmQtyMin...
[ "0.6631408", "0.6488411", "0.6285112", "0.62213326", "0.61020845", "0.5804552", "0.55945426", "0.55930763", "0.55192703", "0.5516222", "0.54732025", "0.5454849", "0.5438348", "0.5422351", "0.5412221", "0.53880876", "0.53768325", "0.5361387", "0.5351312", "0.53487283", "0.5345...
0.74096215
0
Filter the query on the siswa_bawa_air column Example usage: $query>filterBySiswaBawaAir(1234); // WHERE siswa_bawa_air = 1234 $query>filterBySiswaBawaAir(array(12, 34)); // WHERE siswa_bawa_air IN (12, 34) $query>filterBySiswaBawaAir(array('min' => 12)); // WHERE siswa_bawa_air >= 12 $query>filterBySiswaBawaAir(array(...
Фильтрация запроса по столбцу siswa_bawa_air Пример использования: $query>filterBySiswaBawaAir(1234); // WHERE siswa_bawa_air = 1234 $query>filterBySiswaBawaAir(array(12, 34)); // WHERE siswa_bawa_air IN (12, 34) $query>filterBySiswaBawaAir(array('min' => 12)); // WHERE siswa_bawa_air >= 12 $query>filterBySiswaBawaAir(...
public function filterBySiswaBawaAir($siswaBawaAir = null, $comparison = null) { if (is_array($siswaBawaAir)) { $useMinMax = false; if (isset($siswaBawaAir['min'])) { $this->addUsingAlias(SanitasiPeer::SISWA_BAWA_AIR, $siswaBawaAir['min'], Criteria::GREATER_EQUAL); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function filterByASabunAirMengalir($aSabunAirMengalir = null, $comparison = null)\n {\n if (is_array($aSabunAirMengalir)) {\n $useMinMax = false;\n if (isset($aSabunAirMengalir['min'])) {\n $this->addUsingAlias(SanitasiPeer::A_SABUN_AIR_MENGALIR, $aSabunAirMeng...
[ "0.5873256", "0.5853142", "0.57840633", "0.5767741", "0.5721047", "0.5692408", "0.5587096", "0.5553085", "0.5535713", "0.5515763", "0.5487195", "0.54730004", "0.54361975", "0.54169893", "0.54020935", "0.5379098", "0.5376414", "0.53175414", "0.5304013", "0.5296595", "0.5262043...
0.7147049
0
Filter the query on the toilet_siswa_laki column Example usage: $query>filterByToiletSiswaLaki(1234); // WHERE toilet_siswa_laki = 1234 $query>filterByToiletSiswaLaki(array(12, 34)); // WHERE toilet_siswa_laki IN (12, 34) $query>filterByToiletSiswaLaki(array('min' => 12)); // WHERE toilet_siswa_laki >= 12 $query>filter...
Фильтрация запроса по столбцу toilet_siswa_laki Пример использования: $query>filterByToiletSiswaLaki(1234); // WHERE toilet_siswa_laki = 1234 $query>filterByToiletSiswaLaki(array(12, 34)); // WHERE toilet_siswa_laki IN (12, 34) $query>filterByToiletSiswaLaki(array('min' => 12)); // WHERE toilet_siswa_laki >= 12 $query>...
public function filterByToiletSiswaLaki($toiletSiswaLaki = null, $comparison = null) { if (is_array($toiletSiswaLaki)) { $useMinMax = false; if (isset($toiletSiswaLaki['min'])) { $this->addUsingAlias(SanitasiPeer::TOILET_SISWA_LAKI, $toiletSiswaLaki['min'], Criteria::...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function filterByToiletSiswaKk($toiletSiswaKk = null, $comparison = null)\n {\n if (is_array($toiletSiswaKk)) {\n $useMinMax = false;\n if (isset($toiletSiswaKk['min'])) {\n $this->addUsingAlias(SanitasiPeer::TOILET_SISWA_KK, $toiletSiswaKk['min'], Criteria::GR...
[ "0.6143288", "0.6087997", "0.56673443", "0.5661022", "0.5650854", "0.56141585", "0.5596298", "0.55600893", "0.5520949", "0.5477349", "0.5436049", "0.538542", "0.53563404", "0.53286016", "0.5324781", "0.53135973", "0.52706933", "0.52705526", "0.5260811", "0.523901", "0.5230599...
0.7208438
0
Filter the query on the toilet_siswa_perempuan column Example usage: $query>filterByToiletSiswaPerempuan(1234); // WHERE toilet_siswa_perempuan = 1234 $query>filterByToiletSiswaPerempuan(array(12, 34)); // WHERE toilet_siswa_perempuan IN (12, 34) $query>filterByToiletSiswaPerempuan(array('min' => 12)); // WHERE toilet_...
Фильтрация запроса по столбцу toilet_siswa_perempuan Пример использования: $query>filterByToiletSiswaPerempuan(1234); // WHERE toilet_siswa_perempuan = 1234 $query>filterByToiletSiswaPerempuan(array(12, 34)); // WHERE toilet_siswa_perempuan IN (12, 34) $query>filterByToiletSiswaPerempuan(array('min' => 12)); // WHERE t...
public function filterByToiletSiswaPerempuan($toiletSiswaPerempuan = null, $comparison = null) { if (is_array($toiletSiswaPerempuan)) { $useMinMax = false; if (isset($toiletSiswaPerempuan['min'])) { $this->addUsingAlias(SanitasiPeer::TOILET_SISWA_PEREMPUAN, $toiletSis...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function filterByToiletSiswaLaki($toiletSiswaLaki = null, $comparison = null)\n {\n if (is_array($toiletSiswaLaki)) {\n $useMinMax = false;\n if (isset($toiletSiswaLaki['min'])) {\n $this->addUsingAlias(SanitasiPeer::TOILET_SISWA_LAKI, $toiletSiswaLaki['min'], ...
[ "0.6013876", "0.6008162", "0.59830076", "0.5979612", "0.5903639", "0.58757776", "0.58755976", "0.58233446", "0.5801341", "0.57842684", "0.56525415", "0.55849046", "0.55650395", "0.55374974", "0.55174345", "0.5493608", "0.5491245", "0.54667616", "0.54368573", "0.54304963", "0....
0.7255954
0
Filter the query on the jml_jamban_l_g column Example usage: $query>filterByJmlJambanLG(1234); // WHERE jml_jamban_l_g = 1234 $query>filterByJmlJambanLG(array(12, 34)); // WHERE jml_jamban_l_g IN (12, 34) $query>filterByJmlJambanLG(array('min' => 12)); // WHERE jml_jamban_l_g >= 12 $query>filterByJmlJambanLG(array('max...
Фильтрация запроса по столбцу jml_jamban_l_g Пример использования: $query>filterByJmlJambanLG(1234); // WHERE jml_jamban_l_g = 1234 $query>filterByJmlJambanLG(array(12, 34)); // WHERE jml_jamban_l_g IN (12, 34) $query>filterByJmlJambanLG(array('min' => 12)); // WHERE jml_jamban_l_g >= 12 $query>filterByJmlJambanLG(arra...
public function filterByJmlJambanLG($jmlJambanLG = null, $comparison = null) { if (is_array($jmlJambanLG)) { $useMinMax = false; if (isset($jmlJambanLG['min'])) { $this->addUsingAlias(SanitasiPeer::JML_JAMBAN_L_G, $jmlJambanLG['min'], Criteria::GREATER_EQUAL); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function filterByJmlJambanLpG($jmlJambanLpG = null, $comparison = null)\n {\n if (is_array($jmlJambanLpG)) {\n $useMinMax = false;\n if (isset($jmlJambanLpG['min'])) {\n $this->addUsingAlias(SanitasiPeer::JML_JAMBAN_LP_G, $jmlJambanLpG['min'], Criteria::GREATER...
[ "0.70165014", "0.64215654", "0.6387789", "0.6152759", "0.61144745", "0.5963266", "0.5927953", "0.5659875", "0.56524664", "0.55595386", "0.55570555", "0.5550356", "0.5296761", "0.5293702", "0.523437", "0.52326745", "0.52237135", "0.5206851", "0.520287", "0.51886624", "0.516298...
0.70954365
0
Filter the query on the jml_jamban_lp_g column Example usage: $query>filterByJmlJambanLpG(1234); // WHERE jml_jamban_lp_g = 1234 $query>filterByJmlJambanLpG(array(12, 34)); // WHERE jml_jamban_lp_g IN (12, 34) $query>filterByJmlJambanLpG(array('min' => 12)); // WHERE jml_jamban_lp_g >= 12 $query>filterByJmlJambanLpG(ar...
Фильтрация запроса по столбцу jml_jamban_lp_g Пример использования: $query>filterByJmlJambanLpG(1234); // WHERE jml_jamban_lp_g = 1234 $query>filterByJmlJambanLpG(array(12, 34)); // WHERE jml_jamban_lp_g IN (12, 34) $query>filterByJmlJambanLpG(array('min' => 12)); // WHERE jml_jamban_lp_g >= 12 $query>filterByJmlJamban...
public function filterByJmlJambanLpG($jmlJambanLpG = null, $comparison = null) { if (is_array($jmlJambanLpG)) { $useMinMax = false; if (isset($jmlJambanLpG['min'])) { $this->addUsingAlias(SanitasiPeer::JML_JAMBAN_LP_G, $jmlJambanLpG['min'], Criteria::GREATER_EQUAL); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function filterByJmlJambanPTg($jmlJambanPTg = null, $comparison = null)\n {\n if (is_array($jmlJambanPTg)) {\n $useMinMax = false;\n if (isset($jmlJambanPTg['min'])) {\n $this->addUsingAlias(SanitasiPeer::JML_JAMBAN_P_TG, $jmlJambanPTg['min'], Criteria::GREATER...
[ "0.6432697", "0.6415229", "0.64016896", "0.63124496", "0.6157458", "0.6121181", "0.6078681", "0.570479", "0.56343573", "0.5595927", "0.559026", "0.5522316", "0.5439425", "0.54068744", "0.5391372", "0.5390736", "0.53857374", "0.5380621", "0.5264144", "0.52129406", "0.52089655"...
0.71454895
0
Filter the query on the jamban_difabel column Example usage: $query>filterByJambanDifabel(1234); // WHERE jamban_difabel = 1234 $query>filterByJambanDifabel(array(12, 34)); // WHERE jamban_difabel IN (12, 34) $query>filterByJambanDifabel(array('min' => 12)); // WHERE jamban_difabel >= 12 $query>filterByJambanDifabel(ar...
Фильтрация запроса по столбцу jamban_difabel Пример использования: $query>filterByJambanDifabel(1234); // WHERE jamban_difabel = 1234 $query>filterByJambanDifabel(array(12, 34)); // WHERE jamban_difabel IN (12, 34) $query>filterByJambanDifabel(array('min' => 12)); // WHERE jamban_difabel >= 12 $query>filterByJambanDifa...
public function filterByJambanDifabel($jambanDifabel = null, $comparison = null) { if (is_array($jambanDifabel)) { $useMinMax = false; if (isset($jambanDifabel['min'])) { $this->addUsingAlias(SanitasiPeer::JAMBAN_DIFABEL, $jambanDifabel['min'], Criteria::GREATER_EQUAL...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAllPencarianFilterBaju($merek, $jenis, $kategori, $ukuran, $hargaMin, $hargaMax)\n {\n $sql = \"SELECT ba.id_baju AS idBaju, ba.gambar_baju AS gambarBaju, \n CONCAT_WS(' ', mb.nama_merek_baju, jb.nama_jenis_baju) AS namaProduk, ba.deskripsi_baju AS detailProduk, \n ...
[ "0.552417", "0.5507661", "0.5335594", "0.52918345", "0.5286752", "0.5261446", "0.5239074", "0.52339363", "0.52076006", "0.52005655", "0.5138441", "0.5105844", "0.5098056", "0.50865775", "0.5080527", "0.50715137", "0.5052348", "0.5037524", "0.50120187", "0.5005167", "0.5004183...
0.72267497
0
Filter the query on the pembuangan_air_limbah column Example usage: $query>filterByPembuanganAirLimbah(1234); // WHERE pembuangan_air_limbah = 1234 $query>filterByPembuanganAirLimbah(array(12, 34)); // WHERE pembuangan_air_limbah IN (12, 34) $query>filterByPembuanganAirLimbah(array('min' => 12)); // WHERE pembuangan_ai...
Фильтрация запроса по столбцу pembuangan_air_limbah Пример использования: $query>filterByPembuanganAirLimbah(1234); // WHERE pembuangan_air_limbah = 1234 $query>filterByPembuanganAirLimbah(array(12, 34)); // WHERE pembuangan_air_limbah IN (12, 34) $query>filterByPembuanganAirLimbah(array('min' => 12)); // WHERE pembuan...
public function filterByPembuanganAirLimbah($pembuanganAirLimbah = null, $comparison = null) { if (is_array($pembuanganAirLimbah)) { $useMinMax = false; if (isset($pembuanganAirLimbah['min'])) { $this->addUsingAlias(SanitasiPeer::PEMBUANGAN_AIR_LIMBAH, $pembuanganAirL...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAllPencarianFilterBaju($merek, $jenis, $kategori, $ukuran, $hargaMin, $hargaMax)\n {\n $sql = \"SELECT ba.id_baju AS idBaju, ba.gambar_baju AS gambarBaju, \n CONCAT_WS(' ', mb.nama_merek_baju, jb.nama_jenis_baju) AS namaProduk, ba.deskripsi_baju AS detailProduk, \n ...
[ "0.6543735", "0.63321424", "0.5919068", "0.57655525", "0.57529646", "0.57143664", "0.5666354", "0.56623447", "0.56329155", "0.55346453", "0.5528262", "0.55127746", "0.5503208", "0.5491682", "0.54555726", "0.54143965", "0.54100186", "0.54026157", "0.5372058", "0.53626186", "0....
0.7058767
0
Filter the query on the a_cermin_jamban_p column Example usage: $query>filterByACerminJambanP(1234); // WHERE a_cermin_jamban_p = 1234 $query>filterByACerminJambanP(array(12, 34)); // WHERE a_cermin_jamban_p IN (12, 34) $query>filterByACerminJambanP(array('min' => 12)); // WHERE a_cermin_jamban_p >= 12 $query>filterByA...
Фильтрация запроса по столбцу a_cermin_jamban_p Пример использования: $query>filterByACerminJambanP(1234); // WHERE a_cermin_jamban_p = 1234 $query>filterByACerminJambanP(array(12, 34)); // WHERE a_cermin_jamban_p IN (12, 34) $query>filterByACerminJambanP(array('min' => 12)); // WHERE a_cermin_jamban_p >= 12 $query>fil...
public function filterByACerminJambanP($aCerminJambanP = null, $comparison = null) { if (is_array($aCerminJambanP)) { $useMinMax = false; if (isset($aCerminJambanP['min'])) { $this->addUsingAlias(SanitasiPeer::A_CERMIN_JAMBAN_P, $aCerminJambanP['min'], Criteria::GREAT...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function filterByPanjang($panjang = null, $comparison = null)\n {\n if (is_array($panjang)) {\n $useMinMax = false;\n if (isset($panjang['min'])) {\n $this->addUsingAlias(BangunanPeer::PANJANG, $panjang['min'], Criteria::GREATER_EQUAL);\n $useMin...
[ "0.6060898", "0.5973298", "0.58305025", "0.5819757", "0.57632124", "0.5715399", "0.5665598", "0.5655748", "0.5655334", "0.56461316", "0.5569617", "0.55380625", "0.54595363", "0.545331", "0.53229874", "0.5270842", "0.5260717", "0.52574027", "0.5247924", "0.5226026", "0.5212706...
0.7439629
0
Filter the query on the a_memiliki_tps column Example usage: $query>filterByAMemilikiTps(1234); // WHERE a_memiliki_tps = 1234 $query>filterByAMemilikiTps(array(12, 34)); // WHERE a_memiliki_tps IN (12, 34) $query>filterByAMemilikiTps(array('min' => 12)); // WHERE a_memiliki_tps >= 12 $query>filterByAMemilikiTps(array(...
Фильтрация запроса по столбцу a_memiliki_tps Пример использования: $query>filterByAMemilikiTps(1234); // WHERE a_memiliki_tps = 1234 $query>filterByAMemilikiTps(array(12, 34)); // WHERE a_memiliki_tps IN (12, 34) $query>filterByAMemilikiTps(array('min' => 12)); // WHERE a_memiliki_tps >= 12 $query>filterByAMemilikiTps(...
public function filterByAMemilikiTps($aMemilikiTps = null, $comparison = null) { if (is_array($aMemilikiTps)) { $useMinMax = false; if (isset($aMemilikiTps['min'])) { $this->addUsingAlias(SanitasiPeer::A_MEMILIKI_TPS, $aMemilikiTps['min'], Criteria::GREATER_EQUAL); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function filterByAMemilikiSolokan($aMemilikiSolokan = null, $comparison = null)\n {\n if (is_array($aMemilikiSolokan)) {\n $useMinMax = false;\n if (isset($aMemilikiSolokan['min'])) {\n $this->addUsingAlias(SanitasiPeer::A_MEMILIKI_SOLOKAN, $aMemilikiSolokan['m...
[ "0.56272906", "0.5392514", "0.51842886", "0.517063", "0.51461965", "0.5131822", "0.5121456", "0.5076145", "0.5052326", "0.5037913", "0.49885014", "0.49773955", "0.4967032", "0.49518824", "0.49374384", "0.49357617", "0.4903271", "0.4902293", "0.48880786", "0.48819152", "0.4866...
0.7028899
0
Filter the query on the a_kemitraan_san_daerah column Example usage: $query>filterByAKemitraanSanDaerah(1234); // WHERE a_kemitraan_san_daerah = 1234 $query>filterByAKemitraanSanDaerah(array(12, 34)); // WHERE a_kemitraan_san_daerah IN (12, 34) $query>filterByAKemitraanSanDaerah(array('min' => 12)); // WHERE a_kemitraa...
Фильтрация запроса по столбцу a_kemitraan_san_daerah Пример использования: $query>filterByAKemitraanSanDaerah(1234); // WHERE a_kemitraan_san_daerah = 1234 $query>filterByAKemitraanSanDaerah(array(12, 34)); // WHERE a_kemitraan_san_daerah IN (12, 34) $query>filterByAKemitraanSanDaerah(array('min' => 12)); // WHERE a_ke...
public function filterByAKemitraanSanDaerah($aKemitraanSanDaerah = null, $comparison = null) { if (is_array($aKemitraanSanDaerah)) { $useMinMax = false; if (isset($aKemitraanSanDaerah['min'])) { $this->addUsingAlias(SanitasiPeer::A_KEMITRAAN_SAN_DAERAH, $aKemitraanSan...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function filterByAKemitraanSanSwasta($aKemitraanSanSwasta = null, $comparison = null)\n {\n if (is_array($aKemitraanSanSwasta)) {\n $useMinMax = false;\n if (isset($aKemitraanSanSwasta['min'])) {\n $this->addUsingAlias(SanitasiPeer::A_KEMITRAAN_SAN_SWASTA, $aKe...
[ "0.60905707", "0.608079", "0.58514386", "0.583409", "0.57751006", "0.5697428", "0.5670039", "0.56307757", "0.55539316", "0.5546717", "0.5519405", "0.5516111", "0.5515308", "0.55134004", "0.5504948", "0.5488451", "0.5480891", "0.5469633", "0.5416865", "0.53813213", "0.537105",...
0.703915
0
Filter the query on the a_kemitraan_san_puskesmas column Example usage: $query>filterByAKemitraanSanPuskesmas(1234); // WHERE a_kemitraan_san_puskesmas = 1234 $query>filterByAKemitraanSanPuskesmas(array(12, 34)); // WHERE a_kemitraan_san_puskesmas IN (12, 34) $query>filterByAKemitraanSanPuskesmas(array('min' => 12)); /...
Фильтрация запроса по столбцу a_kemitraan_san_puskesmas Пример использования: $query>filterByAKemitraanSanPuskesmas(1234); // WHERE a_kemitraan_san_puskesmas = 1234 $query>filterByAKemitraanSanPuskesmas(array(12, 34)); // WHERE a_kemitraan_san_puskesmas IN (12, 34) $query>filterByAKemitraanSanPuskesmas(array('min' => 1...
public function filterByAKemitraanSanPuskesmas($aKemitraanSanPuskesmas = null, $comparison = null) { if (is_array($aKemitraanSanPuskesmas)) { $useMinMax = false; if (isset($aKemitraanSanPuskesmas['min'])) { $this->addUsingAlias(SanitasiPeer::A_KEMITRAAN_SAN_PUSKESMAS,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function filterByTahunMasuk($tahunMasuk = null, $comparison = null)\n {\n if (is_array($tahunMasuk)) {\n $useMinMax = false;\n if (isset($tahunMasuk['min'])) {\n $this->addUsingAlias(RwyPendFormalPeer::TAHUN_MASUK, $tahunMasuk['min'], Criteria::GREATER_EQUAL);\...
[ "0.6178962", "0.6073027", "0.6026406", "0.59217054", "0.58382624", "0.5798632", "0.57681644", "0.5740716", "0.5736339", "0.5723057", "0.56936276", "0.56927735", "0.5676678", "0.56707644", "0.56554586", "0.56214046", "0.5584578", "0.5571049", "0.55600965", "0.5548883", "0.5528...
0.71769106
0
Filter the query on the kie_guru_perawatan_toilet column Example usage: $query>filterByKieGuruPerawatanToilet(1234); // WHERE kie_guru_perawatan_toilet = 1234 $query>filterByKieGuruPerawatanToilet(array(12, 34)); // WHERE kie_guru_perawatan_toilet IN (12, 34) $query>filterByKieGuruPerawatanToilet(array('min' => 12)); /...
Фильтрация запроса по столбцу kie_guru_perawatan_toilet Пример использования: $query>filterByKieGuruPerawatanToilet(1234); // WHERE kie_guru_perawatan_toilet = 1234 $query>filterByKieGuruPerawatanToilet(array(12, 34)); // WHERE kie_guru_perawatan_toilet IN (12, 34) $query>filterByKieGuruPerawatanToilet(array('min' => 1...
public function filterByKieGuruPerawatanToilet($kieGuruPerawatanToilet = null, $comparison = null) { if (is_array($kieGuruPerawatanToilet)) { $useMinMax = false; if (isset($kieGuruPerawatanToilet['min'])) { $this->addUsingAlias(SanitasiPeer::KIE_GURU_PERAWATAN_TOILET,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function filterByKieKelasPerawatanToilet($kieKelasPerawatanToilet = null, $comparison = null)\n {\n if (is_array($kieKelasPerawatanToilet)) {\n $useMinMax = false;\n if (isset($kieKelasPerawatanToilet['min'])) {\n $this->addUsingAlias(SanitasiPeer::KIE_KELAS_PE...
[ "0.68699825", "0.6863551", "0.6831798", "0.6764585", "0.6738266", "0.6056886", "0.59100425", "0.586685", "0.58212453", "0.5801872", "0.56733483", "0.56149393", "0.5604606", "0.5599901", "0.5588993", "0.5577966", "0.55577755", "0.546791", "0.5453938", "0.53329766", "0.53066087...
0.715536
0
Filter the query on the kie_kelas_perawatan_toilet column Example usage: $query>filterByKieKelasPerawatanToilet(1234); // WHERE kie_kelas_perawatan_toilet = 1234 $query>filterByKieKelasPerawatanToilet(array(12, 34)); // WHERE kie_kelas_perawatan_toilet IN (12, 34) $query>filterByKieKelasPerawatanToilet(array('min' => 1...
Фильтрация запроса по столбцу kie_kelas_perawatan_toilet Пример использования: $query>filterByKieKelasPerawatanToilet(1234); // WHERE kie_kelas_perawatan_toilet = 1234 $query>filterByKieKelasPerawatanToilet(array(12, 34)); // WHERE kie_kelas_perawatan_toilet IN (12, 34) $query>filterByKieKelasPerawatanToilet(array('min...
public function filterByKieKelasPerawatanToilet($kieKelasPerawatanToilet = null, $comparison = null) { if (is_array($kieKelasPerawatanToilet)) { $useMinMax = false; if (isset($kieKelasPerawatanToilet['min'])) { $this->addUsingAlias(SanitasiPeer::KIE_KELAS_PERAWATAN_TO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function filterByKieSelasarPerawatanToilet($kieSelasarPerawatanToilet = null, $comparison = null)\n {\n if (is_array($kieSelasarPerawatanToilet)) {\n $useMinMax = false;\n if (isset($kieSelasarPerawatanToilet['min'])) {\n $this->addUsingAlias(SanitasiPeer::KIE_...
[ "0.6863135", "0.6834931", "0.6777224", "0.67594945", "0.6672489", "0.6245657", "0.61532533", "0.59669006", "0.5911961", "0.58694315", "0.586823", "0.5772532", "0.5756075", "0.5625073", "0.5518786", "0.5518147", "0.5443927", "0.540979", "0.5403395", "0.53823733", "0.5368636", ...
0.71519923
0
Filter the query on the kie_toilet_keamanan_pangan column Example usage: $query>filterByKieToiletKeamananPangan(1234); // WHERE kie_toilet_keamanan_pangan = 1234 $query>filterByKieToiletKeamananPangan(array(12, 34)); // WHERE kie_toilet_keamanan_pangan IN (12, 34) $query>filterByKieToiletKeamananPangan(array('min' => 1...
Фильтрация запроса по столбцу kie_toilet_keamanan_pangan Пример использования: $query>filterByKieToiletKeamananPangan(1234); // WHERE kie_toilet_keamanan_pangan = 1234 $query>filterByKieToiletKeamananPangan(array(12, 34)); // WHERE kie_toilet_keamanan_pangan IN (12, 34) $query>filterByKieToiletKeamananPangan(array('min...
public function filterByKieToiletKeamananPangan($kieToiletKeamananPangan = null, $comparison = null) { if (is_array($kieToiletKeamananPangan)) { $useMinMax = false; if (isset($kieToiletKeamananPangan['min'])) { $this->addUsingAlias(SanitasiPeer::KIE_TOILET_KEAMANAN_PA...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function filterByKieUksKeamananPangan($kieUksKeamananPangan = null, $comparison = null)\n {\n if (is_array($kieUksKeamananPangan)) {\n $useMinMax = false;\n if (isset($kieUksKeamananPangan['min'])) {\n $this->addUsingAlias(SanitasiPeer::KIE_UKS_KEAMANAN_PANGAN,...
[ "0.66701156", "0.66021127", "0.6579005", "0.65461797", "0.6382322", "0.63776803", "0.63302773", "0.6325708", "0.62056524", "0.6040664", "0.6015837", "0.6014157", "0.60091835", "0.58749175", "0.58033013", "0.5803245", "0.5756444", "0.5749542", "0.572144", "0.5619608", "0.56034...
0.70905006
0
Filter the query on the kie_selasar_perawatan_toilet column Example usage: $query>filterByKieSelasarPerawatanToilet(1234); // WHERE kie_selasar_perawatan_toilet = 1234 $query>filterByKieSelasarPerawatanToilet(array(12, 34)); // WHERE kie_selasar_perawatan_toilet IN (12, 34) $query>filterByKieSelasarPerawatanToilet(arra...
Фильтрация запроса по столбцу kie_selasar_perawatan_toilet Пример использования: $query>filterByKieSelasarPerawatanToilet(1234); // WHERE kie_selasar_perawatan_toilet = 1234 $query>filterByKieSelasarPerawatanToilet(array(12, 34)); // WHERE kie_selasar_perawatan_toilet IN (12, 34) $query>filterByKieSelasarPerawatanToile...
public function filterByKieSelasarPerawatanToilet($kieSelasarPerawatanToilet = null, $comparison = null) { if (is_array($kieSelasarPerawatanToilet)) { $useMinMax = false; if (isset($kieSelasarPerawatanToilet['min'])) { $this->addUsingAlias(SanitasiPeer::KIE_SELASAR_PE...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function filterByKieKelasPerawatanToilet($kieKelasPerawatanToilet = null, $comparison = null)\n {\n if (is_array($kieKelasPerawatanToilet)) {\n $useMinMax = false;\n if (isset($kieKelasPerawatanToilet['min'])) {\n $this->addUsingAlias(SanitasiPeer::KIE_KELAS_PE...
[ "0.6964398", "0.6758239", "0.6724267", "0.6686946", "0.6623874", "0.61903447", "0.61432105", "0.60897565", "0.6024703", "0.59628356", "0.59427273", "0.564942", "0.5505724", "0.5482617", "0.5478465", "0.5444248", "0.53550017", "0.5354966", "0.52463114", "0.5213746", "0.5160056...
0.70048714
0
Filter the query on the kie_uks_perawatan_toilet column Example usage: $query>filterByKieUksPerawatanToilet(1234); // WHERE kie_uks_perawatan_toilet = 1234 $query>filterByKieUksPerawatanToilet(array(12, 34)); // WHERE kie_uks_perawatan_toilet IN (12, 34) $query>filterByKieUksPerawatanToilet(array('min' => 12)); // WHER...
Фильтрация запроса по столбцу kie_uks_perawatan_toilet Пример использования: $query>filterByKieUksPerawatanToilet(1234); // WHERE kie_uks_perawatan_toilet = 1234 $query>filterByKieUksPerawatanToilet(array(12, 34)); // WHERE kie_uks_perawatan_toilet IN (12, 34) $query>filterByKieUksPerawatanToilet(array('min' => 12)); /...
public function filterByKieUksPerawatanToilet($kieUksPerawatanToilet = null, $comparison = null) { if (is_array($kieUksPerawatanToilet)) { $useMinMax = false; if (isset($kieUksPerawatanToilet['min'])) { $this->addUsingAlias(SanitasiPeer::KIE_UKS_PERAWATAN_TOILET, $kie...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function filterByKieKelasPerawatanToilet($kieKelasPerawatanToilet = null, $comparison = null)\n {\n if (is_array($kieKelasPerawatanToilet)) {\n $useMinMax = false;\n if (isset($kieKelasPerawatanToilet['min'])) {\n $this->addUsingAlias(SanitasiPeer::KIE_KELAS_PE...
[ "0.69706", "0.69591314", "0.69063437", "0.6835521", "0.67088974", "0.6263055", "0.6045097", "0.6009917", "0.5935723", "0.5926558", "0.5886223", "0.5783719", "0.57406026", "0.57064706", "0.56727886", "0.5518777", "0.54135585", "0.5393219", "0.531572", "0.5301967", "0.5291974",...
0.70063686
0
Filter the query on the kie_uks_keamanan_pangan column Example usage: $query>filterByKieUksKeamananPangan(1234); // WHERE kie_uks_keamanan_pangan = 1234 $query>filterByKieUksKeamananPangan(array(12, 34)); // WHERE kie_uks_keamanan_pangan IN (12, 34) $query>filterByKieUksKeamananPangan(array('min' => 12)); // WHERE kie_...
Фильтрация запроса по столбцу kie_uks_keamanan_pangan Пример использования: $query>filterByKieUksKeamananPangan(1234); // WHERE kie_uks_keamanan_pangan = 1234 $query>filterByKieUksKeamananPangan(array(12, 34)); // WHERE kie_uks_keamanan_pangan IN (12, 34) $query>filterByKieUksKeamananPangan(array('min' => 12)); // WHER...
public function filterByKieUksKeamananPangan($kieUksKeamananPangan = null, $comparison = null) { if (is_array($kieUksKeamananPangan)) { $useMinMax = false; if (isset($kieUksKeamananPangan['min'])) { $this->addUsingAlias(SanitasiPeer::KIE_UKS_KEAMANAN_PANGAN, $kieUksKe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function filterByKieGuruKeamananPangan($kieGuruKeamananPangan = null, $comparison = null)\n {\n if (is_array($kieGuruKeamananPangan)) {\n $useMinMax = false;\n if (isset($kieGuruKeamananPangan['min'])) {\n $this->addUsingAlias(SanitasiPeer::KIE_GURU_KEAMANAN_PA...
[ "0.68535036", "0.6800768", "0.66612536", "0.6641275", "0.66362286", "0.63765734", "0.6261391", "0.6176077", "0.6171234", "0.61246985", "0.61159414", "0.6029469", "0.6000969", "0.59623337", "0.58716595", "0.5838238", "0.5815701", "0.5811865", "0.58093923", "0.5791465", "0.5760...
0.7060284
0
get the url to the projects list page
получить url страницы списка проектов
public function getProjectsUrl() { if ($listKey = Mage::getStoreConfig('xcentia_projects/project/url_rewrite_list')) { return Mage::getUrl('', array('_direct'=>$listKey)); } return Mage::getUrl('xcentia_projects/project/index'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function cpm_url_projects() {\n return sprintf( '%s?page=cpm_projects', admin_url( 'admin.php' ) );\n}", "public function getProjUrl():string{\n\t\treturn $this->projecturl;\n\t}", "function wiki_mediawiki_get_url_for_project( $p_project_id ) {\n\t\treturn wiki_mediawiki_get_url_for_page_id( wiki_mediawiki_...
[ "0.78359634", "0.7069674", "0.70514506", "0.68816763", "0.67899835", "0.67183006", "0.66937965", "0.66937965", "0.6677826", "0.6665981", "0.66484815", "0.66317743", "0.65526855", "0.6524786", "0.6513668", "0.6438931", "0.6362056", "0.6342668", "0.6334551", "0.6325174", "0.631...
0.85326326
0
halaman menu untuk data grafik top produk
страница меню для данных графика топ-продуктов
public function load_top_produk(){ $data['sidebar_active']='laporan'; $data['title']='Laporan - Top Produk'; $data['content'] = $this->load->view('/grafik_top_produk',$data,TRUE); $this->load->view('template',$data); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function tampilkanMenu() {\n $this->barang->ambilData();\n echo \"\\n\";\n echo \"=============== Kasir ===============\\n\";\n echo \"Pilih Menu: \\n\";\n echo \" 1. Daftar Barang\\n\";\n echo \" 2. Tambah Barang\\n\";\n echo \" 3. Penjualan\\n\";\n // echo \" 4. Hapus Barang\\n...
[ "0.720435", "0.7022146", "0.6964348", "0.68510175", "0.6827657", "0.6800758", "0.67810374", "0.6732858", "0.6712469", "0.66936105", "0.6691178", "0.6675486", "0.6648818", "0.6637881", "0.6635363", "0.6620826", "0.6610364", "0.6603971", "0.6597249", "0.6596924", "0.6595049", ...
0.71471727
1
Attempt to find a ticket ID in the subject of the message
Попытка найти идентификатор билета в теме сообщения
public function parseTicketIdFromSubject(string $subject) { preg_match("[Ticket (?<ticketid>[0-9]+)]", $subject, $matches); if (!empty($matches[1])) { return intval($matches[1]); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function parseTicketUid($subject)\n {\n if (preg_match(\"/\\[#([a-z]{3}-[0-9]{5})\\]/i\", $subject, $matches)) {\n return strtoupper(@$matches[1]);\n }\n return null;\n }", "public function getTicketId()\n\t{\n\t\treturn ($this->ticketId);\n\t}", "public function ge...
[ "0.62312484", "0.6209094", "0.61298656", "0.611801", "0.61177754", "0.6110524", "0.60336125", "0.60107076", "0.59718144", "0.58659315", "0.5774765", "0.57169294", "0.5631848", "0.56287825", "0.56122553", "0.5595026", "0.559204", "0.5586978", "0.5558213", "0.5553994", "0.55408...
0.7108501
0
Start log section. Override to generate output, but chain to enable time tracking.
Начать раздел лога. Переопределите, чтобы получить вывод, но цепляйте, чтобы включить отслеживание времени.
function log_start() { $this->current_section = "log"; $this->ts_start = microtime(true); $this->ts_last = $this->ts_start; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function start_log()\n\t{\n\t\t$this->log = \"Started on \".NOW().\" - \".date(\"Y M d\").\"\\r\\n\\n\";\n\t\t$this->log .= \"Checking File ....\\r\\n\";\n\n\t\t$this->log('File',$this->input_file);\n\t}", "public static function startLogging()\n\t{\n\t\tself::debug( TRUE, RDefault::C_LOGGER_ARRAY );\n\t}", "p...
[ "0.7447487", "0.63279605", "0.63259625", "0.61155796", "0.6045992", "0.59981513", "0.5962644", "0.5958098", "0.5900271", "0.58792233", "0.5839896", "0.58340186", "0.5790025", "0.5789201", "0.5772519", "0.57576525", "0.5749992", "0.5741424", "0.57172614", "0.569991", "0.569848...
0.8285251
0
Prints a log item.
Выводит элемент журнала.
abstract function output_log_item( $props );
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function printing($item_id){\n\n $obj=Items::get_field_from_id($item_id,'label');\n\n echo \"****************\\n\";\n echo $obj . \"\\n\";\n echo \"****************\\n\";\n }", "public function printItems(): void\n {\n foreach ($this->items as $item) {\n ...
[ "0.69109344", "0.65520495", "0.64916235", "0.63260746", "0.6196022", "0.6071286", "0.59593636", "0.59249693", "0.5787213", "0.5743592", "0.5638004", "0.5627258", "0.5614979", "0.5600763", "0.55850434", "0.5578641", "0.55485094", "0.55485094", "0.55485094", "0.55485094", "0.55...
0.71730334
0
End log section. Override to generate output, but chain to enable time tracking.
Конец лог-секции. Переопределите, чтобы сгенерировать вывод, но используйте цепочку, чтобы включить отслеживание времени.
function log_end() { $t = microtime(true) - $this->ts_start; $this->output_log_item( array("total_time" => $t) ); $this->current_section = null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function end() {\n\t\t$this->_endedMicrotime = microtime ( true );\n\t\t$this->_trace = $this->setTrace();\n\t}", "protected function end()\n {\n $this->comment(\"\\nDone.\");\n $this->comment(\"Run time: \" . (microtime(true) - $this->startTime) . \"\\n\");\n // print(PHP_EOL); //...
[ "0.6956254", "0.67275757", "0.6523442", "0.6420782", "0.63750225", "0.6294503", "0.62774295", "0.62622726", "0.6218415", "0.61506575", "0.61406064", "0.6101121", "0.6085249", "0.60407674", "0.6014474", "0.6009333", "0.5989162", "0.59748036", "0.5947735", "0.5936993", "0.59029...
0.8291172
0
Prints a page item in the data section.
Выводит элемент страницы в разделе данных.
abstract function output_page_item( $page );
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function printing($item_id){\n\n $obj=Items::get_field_from_id($item_id,'label');\n\n echo \"****************\\n\";\n echo $obj . \"\\n\";\n echo \"****************\\n\";\n }", "function printPage() {\n $this->printDebug($this->drupalGetContent());\n }", "function wri...
[ "0.6497364", "0.6358756", "0.62331164", "0.62284213", "0.6177345", "0.6138856", "0.60298526", "0.58747506", "0.5848645", "0.5845021", "0.5754679", "0.5733222", "0.57288253", "0.56648064", "0.5657364", "0.5644196", "0.5622164", "0.562098", "0.561253", "0.56027013", "0.5602402"...
0.71040577
0
Send HTTP headers describing the output generated by this object. Per default, this sends a ContentType header using the value returned by $this>get_content_type().
Отправляет HTTP-заголовки, описывающие выходные данные, генерируемые этим объектом. По умолчанию отправляется заголовок ContentType, использующий значение, возвращаемое $this>get_content_type().
function send_headers() { $ct = 'Content-Type: ' . $this->get_content_type(); header( $ct ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function sendHeaders()\n {\n switch ($this->_sOutputFormat) {\n case self::OUTPUT_FORMAT_JSON:\n oxRegistry::getUtils()->setHeader(\"Content-Type: application/json; charset=\" . $this->_sCharset);\n break;\n case self::OUTPUT_FORMAT_HTML:\n ...
[ "0.79778934", "0.7398181", "0.725067", "0.7082074", "0.6927282", "0.69162226", "0.68577194", "0.6779182", "0.6743616", "0.6732464", "0.6662586", "0.66344017", "0.66098225", "0.66067094", "0.6578152", "0.6551862", "0.65497243", "0.653536", "0.6497239", "0.647735", "0.6455244",...
0.7879354
1
outputs an error message and terminates. This function never returns normally, but it may be changed in the future to throw an exception under some circumstances. If $output is given, $output>abort_section() and $output>output_status() are used to terminate normal output and report the error in a way that conforms to t...
выводит сообщение об ошибке и завершает работу. Эта функция никогда не возвращает нормально, но в будущем она может быть изменена, чтобы выбрасывать исключение в определенных ситуациях. Если задано $output, то $output>abort_section() и $output>output_status() используются для завершения нормального вывода и отчета об о...
function die_with_error( $msg, $output = null ) { if ( $output ) { $status = array( 'status' => 'error', ); if ( is_object($msg) && $msg instanceof Exception ) { $status['type'] = get_class($msg); $status['message'] = $msg->getMessage(); } else { $status['message'] = $msg; } $output->abort_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function outputError($output)\r\n\t{\r\n\t\t$this->display($output, 'error');\r\n\t}", "public static function checkError (&$output)\n {\n $error = AceProject::getLastError();\n if (!empty($error)) {\n //some error occured:\n $output->writeln(\"<...
[ "0.78183764", "0.7470065", "0.7352643", "0.6997209", "0.6896065", "0.6764328", "0.6493939", "0.6455901", "0.60973644", "0.60776037", "0.6002275", "0.58900154", "0.58345544", "0.5822246", "0.5809976", "0.5758575", "0.57283646", "0.5725179", "0.5721364", "0.5704819", "0.5704291...
0.76729417
1
Returns a gp client (of type MediaWikiGlue) for querying the wiki's database and the associated category graph in a unified way. Relies on the global $config variable to provide information about the desired wiki.
Возвращает клиента gp (типа MediaWikiGlue) для запроса базы данных вики и связанного графа категорий в унифицированный способ. Использует глобальную переменную $config для предоставления информации о нужной вики.
function create_gp_client( $wiki ) { global $config; #TODO: if $config doesn't know $wiki, look it up in toolserver.wikis! if ( !isset( $config[ $wiki ] ) ) { die_with_error("unknown wiki: $wiki"); } $gp_graph = $config[ $wiki ][ 'gp-graph' ]; $gp_host = @$config[ $wiki ][ 'gp-host' ]; $gp_port = @$confi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function socialwiki_get_wiki($wid) {\n global $DB;\n return $DB->get_record('socialwiki', array('id' => $wid));\n}", "public function getDatabase() {\n\t\tglobal $wiki;\n\t\treturn $wiki;\n\t}", "function cl_mysql() {\n return CL_MySQL::getInstance();\n}", "function get_client() {\n $client = new...
[ "0.54848975", "0.54301614", "0.5400855", "0.51209044", "0.50759685", "0.50722545", "0.50418085", "0.49867302", "0.4982371", "0.49822956", "0.49027926", "0.4899409", "0.48966715", "0.48663506", "0.48663506", "0.48652515", "0.48626247", "0.4855264", "0.48002633", "0.4799776", "...
0.7012417
0
Creates and returns an ApiOutput instance for generating the format specified by teh $format parameter. Supported formats: json, jsonp: generate JSON output. if $options['callback'] is present, use that to determin the wrapper function for a JSONP response. inline, html: generate inline HTML. pjson, pjsonp: generate pr...
Создаёт и возвращает экземпляр ApiOutput для генерации формата, указанного параметром $format. Поддерживаемые форматы: json, jsonp: генерация вывода в формате JSON. Если параметр $options['callback'] существует, используется для определения обёртки для ответа JSONP. inline, html: генерация встроенной HTML-страницы. pjs...
function create_output_handler( $format, $options = null ) { $callback = @$options['callback']; if ( $callback && !preg_match( '/^[a-zA-Z_\$]\w*$/', $callback ) ) { $callback = null; } if ( $format == "json" || $format == "jsonp" ) return new JsonOutput( false, $callback ); if ( $format == "inline" || $form...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function generate_response($format, $wiki, $op, $options) {\n\t$output = create_output_handler( $format, $options );\n\n\tif ( $format == \"debug\" ) {\n\t\t# flush and end all output buffers\n\t\twhile (ob_get_level()) {\n\t\t\tob_end_clean();\n\t\t}\n\t}\n\n\tif ( !headers_sent() ) {\n\t\t$output->send_headers()...
[ "0.59368676", "0.58127666", "0.570675", "0.5434736", "0.538127", "0.53712195", "0.52940583", "0.5272374", "0.52690846", "0.5253317", "0.52196205", "0.52196205", "0.52196205", "0.521494", "0.5206859", "0.5206859", "0.5206859", "0.5206859", "0.5206859", "0.5206859", "0.5174975"...
0.74830776
0
Creates and returns a PageSet object (see gpMediaWiki.php) containing pages from the categories specified by $cats. Additional options taken from $options: depth: the maximum depth to search in the category structure. ns: the namespace(s) to search for pages. If this is "14", only categories will be included in the pag...
Создаёт и возвращает объект PageSet (см. gpMediaWiki.php), содержащий страницы из категорий, указанных в $cats. Дополнительные параметры берутся из $options: depth: максимальная глубина поиска в структуре категорий. ns: пространство(а) имен для поиска страниц. Если это "14", в набор страниц будут включены только катего...
function make_page_set( $gp, $cats, $options, $opt_suffix, $log) { $depth = @$options['depth'.$opt_suffix]; #FIXME: validate if (!$depth) $depth = @$options['depth']; #FIXME: validate if (!$depth) $depth = 100; #FIXME: configure $graph_type = $gp->get_meta_value('gpfeeder_graph_type'); #NOTE: no per-suffix names...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function list_pages($gp, $options, $output) {\n\tcheck_filter_options( $options ); # check filter options early\n\n\tcheck_page_sets( $gp, $options, 'cat', NS_CATEGORY ); # check cat page set early\n\tcheck_page_sets( $gp, $options, 'template', NS_TEMPLATE ); # check template page set early\n\n\t$output->log_start...
[ "0.6146672", "0.59951156", "0.54801625", "0.5306074", "0.5285495", "0.51594776", "0.5141278", "0.50410366", "0.4936405", "0.49330103", "0.48315707", "0.47920376", "0.47571763", "0.4735901", "0.47294357", "0.4714482", "0.4679664", "0.46711808", "0.45412046", "0.4533498", "0.45...
0.75488245
0
Applies the filters specified in $options to the page set $pages. Supported filters are: since: keep only pages modified since the given date. See normalize_date() for the format. newer: keep only pages created since the given date. See normalize_date() for the format. older: keep only pages modified before the given d...
Применяет фильтры, указанные в $options, к набору страниц $pages. Поддерживаемые фильтры: since: сохраняются только страницы, измененные с указанной даты. См. normalize_date() для формата. newer: сохраняются только страницы, созданные с указанной даты. См. normalize_date() для формата. older: сохраняются только страниц...
function filter_page_set( $pages, $options, $log ) { $tags = get_multi_option($options, 'template'); $since = normalize_date(@$options['since']); $newer = normalize_date(@$options['newer']); #FIXME: doesn't work! #BROKEN! $older = normalize_date(@$options['older']); #FIXME: doesn't work! #BROKEN! $l...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function list_pages($gp, $options, $output) {\n\tcheck_filter_options( $options ); # check filter options early\n\n\tcheck_page_sets( $gp, $options, 'cat', NS_CATEGORY ); # check cat page set early\n\tcheck_page_sets( $gp, $options, 'template', NS_TEMPLATE ); # check template page set early\n\n\t$output->log_start...
[ "0.5816971", "0.5747485", "0.5701238", "0.5484511", "0.50791013", "0.5067175", "0.50535256", "0.504145", "0.4992784", "0.48501354", "0.48429883", "0.48233885", "0.48209086", "0.47745246", "0.47567812", "0.47566566", "0.47409666", "0.46923235", "0.46510503", "0.46400446", "0.4...
0.76816416
0
Generates a list of pages based on $options and outputs it using $output. This implements the "list" operation of the CatGraph API. To provide a base set to work on, list_pages() requires $options['cat'] (or $options['cat1']) to be set. The "cat" option defines a list of categories, causing pages that are in any of tho...
Создаёт список страниц на основе $options и выводит его с помощью $output. Это реализует операцию "list" API CatGraph. Для предоставления базового набора для работы list_pages() требует, чтобы $options['cat'] (или $options['cat1']) был задан. Параметр "cat" определяет список категорий, вызывая включение страниц, находя...
function list_pages($gp, $options, $output) { check_filter_options( $options ); # check filter options early check_page_sets( $gp, $options, 'cat', NS_CATEGORY ); # check cat page set early check_page_sets( $gp, $options, 'template', NS_TEMPLATE ); # check template page set early $output->log_start(); # get in...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function make_page_set( $gp, $cats, $options, $opt_suffix, $log) {\n\t$depth = @$options['depth'.$opt_suffix]; #FIXME: validate\n\tif (!$depth) $depth = @$options['depth']; #FIXME: validate\n\tif (!$depth) $depth = 100; #FIXME: configure\n\n\t$graph_type = $gp->get_meta_value('gpfeeder_graph_type');\n\n\t#NOTE: no...
[ "0.6020823", "0.55438715", "0.52392524", "0.5169765", "0.50735575", "0.5046339", "0.5012568", "0.5008567", "0.49586898", "0.4957057", "0.48948538", "0.48914093", "0.48857623", "0.48748785", "0.48679444", "0.48489213", "0.48385552", "0.48252535", "0.47978145", "0.47968018", "0...
0.7636177
0
Returns a list of supported wikis as an associative array. They keys in the array are the wiki names (internal identifiers, typically enwiki, etc), the values are the display labels (typically domain names, e.g. en.wikipedia.org). The list is currently derived from the global $config array: each section in the configur...
Возвращает список поддерживаемых вики в виде ассоциативного массива. Ключи массива — имена вики (внутренние идентификаторы, обычно enwiki и т.д.), значения — отображаемые метки (обычно доменные имена, например, en.wikipedia.org). В настоящее время список получается из глобального массива $config: каждый раздел в конфиг...
function get_wiki_list() { global $config; $wikis = array(); foreach ($config as $k => $v) { if ( is_array($v) && $k != "DEFAULT" ) { if ( !empty($v['label']) ) $label = $v['label']; else $label = $k; $wikis[$k] = $label; } } return $wikis; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getWikis()\n {\n return $this->wikis->getWikis();\n }", "public function supports() {\n\t\t// Default support array\n\t\t$supports = array();\n\t\tif ( $this->options( 'use_title' ) ) {\n\t\t\t$supports[] = 'title';\n\t\t}\n\t\tif ( $this->options( 'use_order' ) ) {\n\t\t\t$supports[...
[ "0.63582796", "0.5944096", "0.5926912", "0.5904033", "0.5751471", "0.5712472", "0.56889766", "0.56476206", "0.5610863", "0.5608227", "0.5480588", "0.5407661", "0.5297508", "0.52899647", "0.5283833", "0.5283833", "0.5283833", "0.5250555", "0.52419543", "0.5185242", "0.51409686...
0.8092652
0
ChooseAttack Tests Should error if no result return choose attack with redteam,blueteam and possibleattacks
Тесты ChooseAttack должны вызывать ошибку, если не возвращается результат при выборе атаки с redteam, blueteam и possibleattacks
public function testChooseAttackValidTeam(){ $redteam = $this->assignTeam(); $blueteam = Team::factory()->create(); $controller = new RedTeamController(); $request = Request::create('/chooseattack','POST',[ 'result' => $blueteam->name ]); $response = $controll...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testPerformAttackNoTeam(){\n $controller = new RedTeamController();\n $target = Team::factory()->create();\n $request = Request::create('/performattack','POST', ['blueteam' => $target->name, 'result' => \"SynFlood\"]);\n $this->expectException(TeamNotFoundException::clas...
[ "0.6523829", "0.6258133", "0.6171446", "0.616085", "0.5897883", "0.5865455", "0.580162", "0.57083696", "0.5688557", "0.5636348", "0.5613762", "0.56034136", "0.5600122", "0.5566141", "0.5526883", "0.5511938", "0.5489182", "0.5479255", "0.5471146", "0.54695374", "0.54580325", ...
0.80478287
0
Creates a new RecipesCategory entity.
Создает новый объект RecipesCategory.
public function createAction(Request $request) { $entity = new RecipesCategory(); $form = $this->createCreateForm($entity); $form->handleRequest($request); if ($form->isValid()) { $em = $this->getDoctrine()->getManager(); $em->persist($entity); $e...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createCategory();", "public function createAction()\n {\n /**\n * @var \\Viva\\ShopBundle\\Entity\\Category\n */\n $category = new Category();\n $form = $this->createForm(new CategoryType(), $category);\n \n $form->handleRequest($this->getRequ...
[ "0.7058906", "0.6689321", "0.66841525", "0.661752", "0.6569379", "0.6536742", "0.6518838", "0.65171796", "0.64697844", "0.64058006", "0.6394778", "0.6390616", "0.637843", "0.63770753", "0.6356612", "0.6349248", "0.6341698", "0.6337324", "0.6332336", "0.6322561", "0.6316225", ...
0.7221943
0
Creates a form to create a RecipesCategory entity.
Создает форму для создания сущности RecipesCategory.
private function createCreateForm(RecipesCategory $entity) { $form = $this->createForm(new RecipesCategoryType(), $entity, array( 'action' => $this->generateUrl('recipescategory_create'), 'method' => 'POST', )); $form->add('submit', 'submit', array( 'labe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function newAction()\n {\n $entity = new RecipesCategory();\n $form = $this->createCreateForm($entity);\n\n return array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n );\n }", "public function new_category()\n {\n $this->ch...
[ "0.7395437", "0.73157305", "0.7300922", "0.7287096", "0.7157669", "0.7113332", "0.7111981", "0.7106187", "0.709759", "0.70952827", "0.7062457", "0.7061537", "0.70507914", "0.7037863", "0.70342493", "0.7014409", "0.70127815", "0.6986293", "0.69414365", "0.6937604", "0.69275975...
0.7752238
0
Displays a form to create a new RecipesCategory entity.
Показывает форму для создания нового сущности RecipesCategory.
public function newAction() { $entity = new RecipesCategory(); $form = $this->createCreateForm($entity); return array( 'entity' => $entity, 'form' => $form->createView(), ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function new_category()\n {\n $this->check_authorization();\n \n $category = new Category();\n $category->parent_id = $this->get_arg('parent_id', 0);\n $data['category'] = $category;\n\n return new View('category_form', $data); \n }", "public funct...
[ "0.78597116", "0.76824504", "0.76800567", "0.7654437", "0.75835", "0.75813353", "0.75804144", "0.75582767", "0.75524426", "0.75020456", "0.7494832", "0.7460008", "0.74509513", "0.743021", "0.7420419", "0.7412035", "0.74083745", "0.74022996", "0.7402192", "0.7397594", "0.73947...
0.7980082
0
Creates a form to edit a RecipesCategory entity.
Создает форму для редактирования сущности RecipesCategory.
private function createEditForm(RecipesCategory $entity) { $form = $this->createForm(new RecipesCategoryType(), $entity, array( 'action' => $this->generateUrl('recipescategory_update', array('id' => $entity->getId())), 'method' => 'PUT', )); $form->add('submit', 'sub...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function edit_category()\n {\n $this->check_authorization();\n \n $id = $this->get_arg('id', 0);\n $category = Category::find($id); \n $data['category'] = $category;\n $data['breadcrumbs'] = $this->generate_breadcrumbs($id); \n\n return new View('ca...
[ "0.75287807", "0.74327886", "0.68801194", "0.68603396", "0.6859238", "0.6818494", "0.67436385", "0.6670165", "0.66328305", "0.6629618", "0.6616141", "0.6579007", "0.6568746", "0.65643615", "0.65615696", "0.6550137", "0.65466106", "0.6543804", "0.65080255", "0.65025693", "0.64...
0.7721666
0
Creates a form to delete a RecipesCategory entity by id.
Создает форму для удаления сущности RecipesCategory по идентификатору.
private function createDeleteForm($id) { return $this->createFormBuilder() ->setAction($this->generateUrl('recipescategory_delete', array('id' => $id))) ->setMethod('DELETE') ->add('submit', 'submit', array('label' => 'Delete')) ->getForm() ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function createDeleteForm($id, $category = null)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('googleproductcategory_delete', array('id' => $id, 'category' => $category)))\n ->setMethod('DELETE')\n //->add('submit', 'submit', array('lab...
[ "0.7289578", "0.7169918", "0.6986127", "0.6912529", "0.6889645", "0.6657128", "0.65629596", "0.6528226", "0.65156275", "0.6509876", "0.6497086", "0.6480443", "0.6472378", "0.63989955", "0.6374183", "0.6362074", "0.6356381", "0.6348426", "0.63467383", "0.6328734", "0.6289698",...
0.71928996
1
Saves the supplied objects to the object set.
Сохраняет предоставляемые объекты в набор объектов.
public function saveAll(array $objects);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static function save()\n {\n foreach (self::$registry as $type => $objects)\n {\n foreach ($objects as $id => $object)\n {\n if(method_exists($type, \"save\"))\n $object->save();\n }\n }\n }", "public function save($ent...
[ "0.6538252", "0.6489929", "0.6413235", "0.6289852", "0.62576854", "0.62347674", "0.61707336", "0.61707336", "0.61707336", "0.61558306", "0.6141144", "0.6141144", "0.6141144", "0.6141144", "0.6141144", "0.60969514", "0.60680234", "0.60650027", "0.603441", "0.60061234", "0.5965...
0.8123276
0
Removes the supplied object from the object set.
Удаляет предоставленный объект из набора объектов.
public function remove($object);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function remove($object)\n {\n $this->om->remove($object);\n }", "function remove($object)\n {\n if (!$this->delete) {\n $this->delete = new ArrayCollection;\n }\n\n if ($object->getId()) {\n // Objects with no id have not been created\n ...
[ "0.7345844", "0.7292152", "0.7243138", "0.7065874", "0.696778", "0.6862996", "0.68547255", "0.6841445", "0.68264467", "0.6633775", "0.6600764", "0.6586977", "0.65583855", "0.65568185", "0.65520245", "0.65378594", "0.64494157", "0.639128", "0.6389456", "0.6376408", "0.6373244"...
0.7646655
0
Removes the object with the supplied id from the object set.
Удаляет объект с указанным идентификатором из набора объектов.
public function removeById($id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function remove ($id) {\n\t\tunset($this->_map[$id]);\n\t}", "public function remove($id);", "public function remove($id);", "public function remove($id);", "public function __unset($id) {\n\t\t$this->delete($id);\n\t}", "public function __unset($id) {\n\t\t$this->delete($id);\n\t}", "public fun...
[ "0.769923", "0.76916474", "0.76916474", "0.76916474", "0.7550139", "0.7550139", "0.75070006", "0.7469553", "0.74035436", "0.7332873", "0.717457", "0.71698934", "0.7163689", "0.7152705", "0.71447945", "0.71442294", "0.7140183", "0.71339095", "0.7092793", "0.707281", "0.7063079...
0.7841515
0
Removes the supplied objects from the object set.
Удаляет предоставляемые объекты из набора объектов.
public function removeAll(array $objects);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function removeAll()\n {\n foreach ($this->findAll() AS $object) {\n $this->remove($object);\n }\n }", "protected function filterOutRemovedObjects(array &$objects) {\n\t\tforeach ($objects as $index => $object) {\n\t\t\tif ($this->removedNodes->contains($object)) {\n\t\t\t\t...
[ "0.70571387", "0.69936424", "0.6961488", "0.64631987", "0.6360699", "0.6360699", "0.6360699", "0.6360699", "0.6360699", "0.63604635", "0.63604635", "0.63080424", "0.62792", "0.6220497", "0.6220497", "0.6220497", "0.61692286", "0.60964185", "0.60940254", "0.6047239", "0.60098"...
0.802118
0
Removes the objects with the supplied ids from the object set.
Удаляет объекты с указанными идентификаторами из набора объектов.
public function removeAllById(array $ids);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function removeByIds($ids)\n {\n }", "public function remove(array $ids);", "public function removeAll(array $objects);", "protected function doRemoveIds(array $ids) {}", "public function rmByIds($ids) {\n try {\n //foreach($ids as $id){\n $this->_solr->deleteByMultipleId...
[ "0.77147025", "0.7443449", "0.7217868", "0.7068352", "0.7061185", "0.65953803", "0.6587793", "0.65644056", "0.6439553", "0.63758975", "0.63536704", "0.6334724", "0.63303137", "0.6289936", "0.6275407", "0.6266618", "0.62052256", "0.6137576", "0.6104136", "0.60841715", "0.60574...
0.79544556
0
Retrieve list of Doespot Medications by patient and encounter
Получить список препаратов Doespot по пациенту и обращению
public function GetDosespotMedication($encounter_date, $patient_id,$encounter_id="") { $this->belongsTo = array(); $search_result = array(); /* no one will void an encounter that actually ordered medicine App::import('Model', 'EncounterMaster'); $em = new EncounterMaster(); $em->recursive = -1; $voi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function showMedicines ($patient_id){\n if(!ApiHelper::isPatient($patient_id)&& !ApiHelper::isLoggedInUserPatient()) {\n return response('Wrong Patient_id provided.', 403);\n }\n\n if(!ApiHelper::isLoggedInUserPatient()){\n $medicine = Medicine::with('schedule')->where('user_id', '=', $pa...
[ "0.6616951", "0.6347605", "0.630727", "0.61065054", "0.60148114", "0.6001298", "0.5796173", "0.57614756", "0.5752334", "0.5714222", "0.5689646", "0.5683835", "0.5674139", "0.55802405", "0.55750227", "0.5543123", "0.54949576", "0.5478344", "0.5460175", "0.5452073", "0.5411643"...
0.7069197
0
Tests creating a promotion using the "Save and add coupons" button.
Тестирование создания промоакции с использованием кнопки "Сохранить и добавить купоны".
public function testCreatePromotionWithSaveAndAddCoupons() { $this->drupalGet('admin/commerce/promotions'); $this->getSession()->getPage()->clickLink('Add promotion'); $name = $this->randomString(); $this->getSession()->getPage()->fillField('name[0][value]', $name); $this->getSession()->getPage()->...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testCreatePromotion() {\n $this->drupalGet('admin/commerce/promotions');\n $this->getSession()->getPage()->clickLink('Add promotion');\n\n // Check the integrity of the form.\n $this->assertSession()->fieldExists('name[0][value]');\n $this->assertSession()->fieldExists('display_name[...
[ "0.7616686", "0.66340643", "0.6499744", "0.6362391", "0.6304315", "0.62844485", "0.62839526", "0.6271763", "0.62249106", "0.6207759", "0.6178708", "0.61668026", "0.61627895", "0.6124011", "0.61196345", "0.61169034", "0.60730505", "0.60716265", "0.6069635", "0.6061711", "0.605...
0.7950146
0
Tests creating a promotion with an end date.
Тестирование создания акции с датой окончания.
public function testCreatePromotionWithEndDate() { $this->drupalGet('admin/commerce/promotions'); $this->getSession()->getPage()->clickLink('Add promotion'); $this->drupalGet('promotion/add'); $this->assertSession()->fieldExists('name[0][value]'); $this->getSession()->getPage()->fillField('offer[0]...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function isEligibleToDates(PromotionInterface $promotion)\n {\n $now = new \\DateTime();\n\n if (null !== $startsAt = $promotion->getStartsAt()) {\n if ($now < $startsAt) {\n return false;\n }\n }\n\n if (null !== $endsAt = $promotion->get...
[ "0.57548225", "0.57273036", "0.5711359", "0.56642926", "0.5632257", "0.56234413", "0.5543316", "0.5463683", "0.5439593", "0.54305905", "0.5424856", "0.540099", "0.53975075", "0.5397188", "0.53875303", "0.5387262", "0.53825873", "0.53734756", "0.5336034", "0.5335131", "0.53174...
0.7784097
0
Tests editing a promotion.
Тестирование редактирования акции.
public function testEditPromotion() { $promotion = $this->createEntity('commerce_promotion', [ 'name' => '10% off', 'status' => TRUE, 'offer' => [ 'target_plugin_id' => 'order_item_percentage_off', 'target_plugin_configuration' => [ 'percentage' => '0.10', ], ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function edit(Promotion $promotion)\n {\n //\n }", "public function edit(Promotion $promotion)\n {\n //\n }", "public function edit(Promotion $promotion)\n {\n //\n }", "public function testCreatePromotion() {\n $this->drupalGet('admin/commerce/promotions');\n...
[ "0.6988891", "0.6988891", "0.6988891", "0.6762338", "0.64244497", "0.6328444", "0.623034", "0.61864895", "0.6020363", "0.59097123", "0.59095174", "0.5874412", "0.58165765", "0.5810137", "0.57754904", "0.57451826", "0.56890255", "0.56686395", "0.5660451", "0.5599108", "0.55865...
0.73635787
0
Tests duplicating a promotion.
Тесты дублирования промо-акции.
public function testDuplicatePromotion() { $promotion = $this->createEntity('commerce_promotion', [ 'name' => '10% off', 'status' => TRUE, 'offer' => [ 'target_plugin_id' => 'order_item_percentage_off', 'target_plugin_configuration' => [ 'percentage' => '0.10', ],...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testDuplicate()\n {\n $this->duplicate(\n [\n 'seoModel' => [\n 'name' => 'name',\n 'alias' => 'alias',\n 'title' => 'title',\n 'keywords' => 'keywords',\n...
[ "0.68993354", "0.6859536", "0.66520464", "0.661832", "0.6555924", "0.654622", "0.63689715", "0.63321227", "0.61167127", "0.60452443", "0.60439587", "0.60045785", "0.600278", "0.5960195", "0.5955804", "0.58883655", "0.58777815", "0.5873311", "0.5836751", "0.576231", "0.5744861...
0.71327645
0
Tests deleting a promotion.
Тесты удаления промо-акции.
public function testDeletePromotion() { $promotion = $this->createEntity('commerce_promotion', [ 'name' => $this->randomMachineName(8), ]); $this->drupalGet($promotion->toUrl('delete-form')); $this->assertSession()->pageTextContains('This action cannot be undone.'); $this->submitForm([], t('De...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function promotion2_delete()\n {\n $promotion = new Promotion($this->get('id'));\n\n if (!$promotion->hasData()) {\n // Throw a 404 if this promotion does not exist.\n $this->response(FALSE);\n } else {\n if ($promotion->remove()) {\n $this->r...
[ "0.74060863", "0.6582855", "0.6520077", "0.6510253", "0.65013474", "0.6493565", "0.6489925", "0.64636916", "0.64332026", "0.6428039", "0.6407529", "0.63806134", "0.63665795", "0.6346819", "0.6328093", "0.63228226", "0.63064265", "0.63055116", "0.63050187", "0.629995", "0.6296...
0.84093255
0
Gets the current page index.
Получает текущий индекс страницы.
public function getCurrentPageIndex() { return $this->_currentPageIndex; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCurrentPage()\n {\n return (int) $this->currentPage;\n }", "function getPageIndex() {\n return $this->pageIndex;\n }", "public function getCurrentPage(): int\n {\n return $this->currentPage;\n }", "public function getCurrentPage(): int\n {\n return $...
[ "0.780043", "0.760719", "0.75659597", "0.75659597", "0.7557359", "0.7555584", "0.7555584", "0.7555584", "0.7535437", "0.751855", "0.7494314", "0.7476174", "0.73797125", "0.7368007", "0.7320228", "0.73150444", "0.73139954", "0.73067105", "0.7224906", "0.7133846", "0.7115209", ...
0.86684245
0
Factory method for creating a ContactResultSet object from an array.
Фабричный метод для создания объекта ContactResultSet из массива.
public static function fromArray($arr) { $resultSet = new ContactsResultSet(); $rsArr = $arr['resultSet']; $resultSet->_totalRecords = $rsArr['totalRecords']; $resultSet->_totalPages = $rsArr['totalPages']; $resultSet->_currentPageIndex = $rsArr['currentPageIndex']; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function fromArray(array $array)\n {\n $record = new static;\n $record->setData($array);\n return $record;\n }", "public static function fromArray(array $values): ResultInterface;", "function &_rs2rs(&$rs,$nrows=-1,$offset=-1)\n\t{\n\t\tif (! $rs) return false;\n\t\t$ar...
[ "0.6224378", "0.59407145", "0.5927848", "0.5819967", "0.58170444", "0.5751572", "0.57365084", "0.57098126", "0.5651751", "0.5622171", "0.5604112", "0.55927044", "0.55927044", "0.55850935", "0.5584494", "0.55682266", "0.554928", "0.5525214", "0.5521734", "0.55212635", "0.55198...
0.7889723
0
Check if given coded exists
Проверьте, существует ли заданный код
public function validateIfDataCodeExists($code);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hasCode(){\r\n return $this->_has(3);\r\n }", "function code_exists($code) {\n $code_exists = DB::table('url')->where('Code', $code)->count(\"Id\");\n return ($code_exists == 1) ? true : false;\n }", "public function hasCode(){\n return $this->_has(1);\n }", "...
[ "0.73757917", "0.73636514", "0.73475766", "0.7199373", "0.7196103", "0.7058533", "0.70295674", "0.69144416", "0.6909335", "0.6865009", "0.6807293", "0.6792647", "0.6756639", "0.6749682", "0.6728658", "0.6649843", "0.6647161", "0.66445225", "0.6605539", "0.6599319", "0.6583804...
0.7521464
0
Check if given coded are private
Проверить, являются ли заданные коды приватными
public function validateIfDataIsPrivate($code);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isPrivate();", "public function isPrivate();", "public function isPrivate();", "public function is_private(): bool\n {\n if (empty($this->Dec)) {\n return false;\n }\n \n return isset($this->Dec['info']['private']) && 1 == Int64::get($this->Dec['info'...
[ "0.7620612", "0.7620612", "0.7620612", "0.73704165", "0.7294619", "0.716835", "0.6997086", "0.6978063", "0.69293743", "0.687822", "0.68478024", "0.6842959", "0.6772447", "0.6688595", "0.6613016", "0.6543242", "0.65153486", "0.64943683", "0.64943683", "0.6488079", "0.64644444"...
0.81408894
0
Check if given username from specified IP is allowed Examples: Single: 192.168.0.1 List (comma separated): 192.168.0.1,192.168.0.2 Range (fromto): 192.168.0.1192.168.0.255 Any (with asterisk):
Проверьте, разрешен ли указанный username с заданного IP-адреса. Примеры: Одиночный: 192.168.0.1 Список (разделенный запятыми): 192.168.0.1,192.168.0.2 Диапазон (от до): 192.168.0.1192.168.0.255 Любой (с звездочкой):
public function validateIfIncomingIPAllowed($username, $ip);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function isAllowed($ip){\r\n $whitelist = array('127.0.0.1', '::1', '10.0.0.*', '192.168.1.*');\r\n\r\n // If the ip is matched, return true\r\n if(in_array($ip, $whitelist))\r\n return true;\r\n else{\r\n foreach($whitelist as $i){\r\n $wildcardPos = strpos($i, \"*\");\r\n ...
[ "0.7484806", "0.73383343", "0.6964985", "0.6935621", "0.69169533", "0.66263014", "0.66161776", "0.6610542", "0.66021776", "0.6593138", "0.65653545", "0.65652066", "0.65357286", "0.6533335", "0.65316606", "0.6526685", "0.64905804", "0.6486887", "0.64724463", "0.64724463", "0.6...
0.792473
0
Check if given username has permissions to access the given code
Проверьте, имеет ли предоставленное имя пользователя права на доступ к предоставленному коду
public function validateIfApiuserHasPermissions($username, $code);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function _checkAccess($username) {\n\t\n\t\t$coreuser = preg_replace(\"/^([^-]*)-.*$/\", \"\\\\1\", $username);\n\t\tif ($username === ONXSHOP_DB_USER || $coreuser === ONXSHOP_DB_USER) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\tmsg(\"You have no permissions to edit this project\", 'error');\n\t\t\treturn false;\n\...
[ "0.72038645", "0.6931527", "0.6799998", "0.6719649", "0.6695971", "0.66211617", "0.65718657", "0.6533179", "0.6463974", "0.6463974", "0.6463974", "0.6463974", "0.64638937", "0.64638937", "0.64638937", "0.64638937", "0.6463558", "0.64613533", "0.6452936", "0.64055115", "0.6358...
0.7856807
0
Check if given username and secret are valid
Проверьте, являются ли предоставленное имя пользователя и секретные данные действительными
public function validateIfApiuserValidCredentials($username, $secret);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function validate(string $secret): bool;", "public function verifyUserCredentials($username, $password);", "private function validateSecret()\n\t{\n\t\tif (strcmp($this->secret,NET_AUTO_REGISTER_SECRET)!==0)\n\t\t{\n\t\t\t$this->db->logMessage(\"[\".get_class($this).\"] could not register device from IP...
[ "0.72407204", "0.7079671", "0.70514613", "0.6979093", "0.6955013", "0.6903788", "0.6784043", "0.673498", "0.6640504", "0.6628957", "0.6561402", "0.650267", "0.64886034", "0.64795935", "0.64620847", "0.645676", "0.6454238", "0.64409", "0.64238346", "0.64087546", "0.6405521", ...
0.84679043
0
Sets an Access Method for this route.
Устанавливает метод доступа для этого маршрута.
protected function setAccessMethod($method) { $this->setDefault('_am', $method); return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAccessMethod()\n {\n return $this->getDefault('_am');\n }", "public function setAuthenticationMethod($val)\n {\n $this->_propDict[\"authenticationMethod\"] = $val;\n return $this;\n }", "public function setAuthenticationMethod($val)\n {\n $this->_pr...
[ "0.6279086", "0.6000908", "0.6000908", "0.5890051", "0.5887528", "0.5887528", "0.5887528", "0.58558774", "0.5853413", "0.57922566", "0.5761859", "0.5758361", "0.57172674", "0.5663431", "0.56632", "0.56480014", "0.56462216", "0.56438947", "0.5634316", "0.5634316", "0.56231433"...
0.71059316
0
Gets the access method for this route.
Получает метод доступа для этого маршрута.
public function getAccessMethod() { return $this->getDefault('_am'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getRouteMethod();", "protected function getActionMethod()\n {\n if (empty($this->route)) {\n return '';\n }\n\n return $this->route->getActionMethod();\n }", "protected function method()\n {\n return $this->event['httpMethod'] ?? 'GET';\n }", ...
[ "0.73717374", "0.72164965", "0.6912582", "0.6864465", "0.67934245", "0.6789065", "0.67859674", "0.67697465", "0.67281026", "0.67062175", "0.67062175", "0.6686888", "0.668644", "0.66802895", "0.6674945", "0.66702485", "0.66702485", "0.66480345", "0.66234326", "0.66150814", "0....
0.8056407
0
Sets the security type for this route.
Устанавливает тип безопасности для этого маршрута.
protected function setSecurityType($type) { $this->setDefault('_security_type', $type); return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSecurityType()\n {\n return $this->securityType;\n }", "public function setType($type)\n {\n if (in_array($type, [\"student\", \"admin\", \"lecturer\"])) {\n $this->type = $type;\n }\n }", "public function set_type ($type) {}", "function setType(...
[ "0.62999797", "0.6278324", "0.60656935", "0.60390645", "0.5977028", "0.5972707", "0.595752", "0.59331065", "0.59312207", "0.5928535", "0.59194565", "0.59172416", "0.59172416", "0.59172416", "0.59172416", "0.59172416", "0.59172416", "0.59108603", "0.5910792", "0.5893396", "0.5...
0.72866017
0
Thes the security type for this route.
Это тип безопасности для этого маршрута.
public function getSecurityType() { return $this->getDefault('_security_type', Security::SECURITY_TYPE_LOGIN); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSecurityType()\n {\n return $this->securityType;\n }", "public function getRouteType(): string {\n\t\treturn ($this->routeType);\n\t}", "public static function type()\n\t{\n\t\tself::_init();\n\t\treturn self::$_authType;\n\t}", "public function acl_type();", "public functio...
[ "0.8305513", "0.65900004", "0.6418193", "0.6374024", "0.6257095", "0.6226977", "0.6151721", "0.6151721", "0.6102842", "0.60299283", "0.5992828", "0.5980994", "0.59600824", "0.5928424", "0.59126145", "0.5900474", "0.58684915", "0.5816405", "0.5795767", "0.5794988", "0.579457",...
0.78536165
1
/ Function used to load all content that is associated with an array of groups. Takes a string
Функция, используемая для загрузки всего содержимого, связанного с массивом групп. Принимает строку
function loadByGroups($GroupNameStringList){ $Groups = explode(" ", $GroupNameStringList); for($i = 0;$i < count($Groups);$i++){ if($Groups !== ' ' || $Groups !== ''){ loadByGroup($Groups[$i]); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function loadByGroup($GroupNameString, $ShowData = false){\n global $Groups_Path;\n $CurrentGroupInfoPath = $Groups_Path . $GroupNameString . DIRECTORY_SEPARATOR . \"AdContent-info.csv\";\n if(!file_exists($CurrentGroupInfoPath)){\n return;\n }\n $GroupInfoFileData = f...
[ "0.7290829", "0.66739124", "0.66225266", "0.6310788", "0.62899005", "0.6153875", "0.5854031", "0.56964207", "0.5690725", "0.56887674", "0.56887674", "0.5677407", "0.56176895", "0.56175905", "0.55946213", "0.5593507", "0.5577832", "0.5569038", "0.5560832", "0.550016", "0.54658...
0.7240232
1
/ Function used to load all content that is associated with a group.
Функция, используемая для загрузки всех содержимого, связанного с группой.
function loadByGroup($GroupNameString, $ShowData = false){ global $Groups_Path; $CurrentGroupInfoPath = $Groups_Path . $GroupNameString . DIRECTORY_SEPARATOR . "AdContent-info.csv"; if(!file_exists($CurrentGroupInfoPath)){ return; } $GroupInfoFileData = file($CurrentG...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function loadGroups()\n\t\t{//_9_5_1_5e60209_1159651465468_633382_184\n\t\t\tQuestionaire::dump(\"+ Loading groups...\");\n\t\t\t$q = new DBQuery(\"SELECT ns_question_group_link.*, ns_question_group.* FROM ns_question_group_link LEFT JOIN ns_question_group ON (ns_question_group.id = ns_question_group_link.question...
[ "0.6772499", "0.65926176", "0.64666635", "0.64570206", "0.6415861", "0.64136684", "0.64136684", "0.63839704", "0.62285805", "0.6221066", "0.61288565", "0.61288565", "0.61288565", "0.6127201", "0.6071334", "0.606735", "0.6006925", "0.5999591", "0.59908074", "0.59170884", "0.58...
0.7194272
0
/ Function used to laod all content in a folder. This is a recursive method, which loads ALL content found from the root folder down, So be carefull!
Функция, используемая для загрузки всего содержимого в папке. Это рекурсивный метод, который загружает всё содержимое, найденное от корневой папки вниз, поэтому будьте внимательны!
function loadByFolder($FolderPath){ //This will hold all of the directorys and files! $SubFolders = array_values(array_filter(glob($FolderPath . DIRECTORY_SEPARATOR . "*"), 'is_dir')); $Files = array_values(array_filter(glob($FolderPath . DIRECTORY_SEPARATOR . "*"), 'is_file')); printf("...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function load($folders){\r\n foreach ($folders as $folder) {\r\n foreach (scandir($folder) as $file) {\r\n if ((substr( $file, 0, 2 ) !== '._') && preg_match( \"/.php$/i\" , $file )) {\r\n require_once($folder . '/' . $file);\r\n } else if ($file != '.' && $file != '....
[ "0.65554774", "0.654529", "0.6542023", "0.6508558", "0.6455996", "0.63977534", "0.6379444", "0.63507795", "0.63432884", "0.6310377", "0.6310377", "0.6292282", "0.62477535", "0.6244502", "0.6224987", "0.62241215", "0.6219561", "0.6217804", "0.6200964", "0.6192219", "0.6147321"...
0.73756516
0
/ Returns the actual name of the folder or file.
Возвращает фактическое имя папки или файла.
function getName($FileOrFolder){ $IndexOfLastSlash = strrpos($FileOrFolder, DIRECTORY_SEPARATOR); if($IndexOfLastSlash == strlen($FileOrFolder) - 1){ $IndexOfLastSlash = strrpos($FileOrFolder, DIRECTORY_SEPARATOR, -2); return substr($FileOrFolder, $IndexOfLastSlash); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getName()\n {\n return $this->folder;\n }", "public function getName()\n\t{\n\t\treturn $this->get('foldername');\n\t}", "public function getName ()\n {\n $name = $this->getPath();\n\n if (strstr($name, '/')) {\n $name = substr($name, strrpos($name, '/')...
[ "0.78945273", "0.78604704", "0.76335925", "0.76150626", "0.7509659", "0.7483546", "0.74642265", "0.7444912", "0.7406937", "0.7400869", "0.7396545", "0.73652875", "0.7273476", "0.7251888", "0.72304606", "0.7213461", "0.72105616", "0.72073543", "0.7201936", "0.7178546", "0.7148...
0.81155986
0