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
computed attribute for dropdowns
вычисляемое свойство для выпадающих списков
public function getDropdownNameAttribute() { return $this->county . ' ' . $this->state; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSelectBoxAttribute()\n {\n }", "public function getDropDown() {}", "public function getDropDown() {}", "public function getDropDown() {}", "function wc_dropdown_variation_attribute_options($args = array())\n {\n }", "public function dropdownOption(): array\n {\n r...
[ "0.7424997", "0.685373", "0.685373", "0.68533814", "0.67050034", "0.65116394", "0.6408368", "0.6356618", "0.63489306", "0.6324228", "0.63216895", "0.6313527", "0.61001986", "0.6086867", "0.60612756", "0.6033157", "0.60211927", "0.6015314", "0.60038054", "0.59831285", "0.59817...
0.70684034
1
get all merchants that have a title and match the category type
получить всех продавцов, у которых есть заголовок и соответствует тип категории
public function get_merchants($type) { // car dealers - $type = 120 $merchants = DB::table('merchants') ->where('subcategory_id', '=', $type) ->where('page_title', '!=', "") ->get(); return $merchants; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCategoryTitles( $type ){\n// ->select( $this->table.'.category_title')\n// ->where('category_type','=', $type )\n// ->where('status','=', 'active' )\n// ->get();\n// return $category_object;\n\n $category_array = Category::select('category_titl...
[ "0.5658972", "0.5646791", "0.5568887", "0.5494876", "0.5442416", "0.5387838", "0.5384523", "0.53531134", "0.5283504", "0.52512294", "0.5238061", "0.52282983", "0.5204535", "0.5204177", "0.5180627", "0.51639444", "0.51445067", "0.5096769", "0.5071488", "0.50676554", "0.5063861...
0.71942073
0
Read course from ecs
Читать курс из ecs
private function readCourse(ilECSSetting $server, $a_content_id, $a_details = false) { try { include_once './Services/WebServices/ECS/classes/Course/class.ilECSCourseConnector.php'; $crs_reader = new ilECSCourseConnector($server); return $crs_reader->getCourse($a_content_id,$a_details); } catch(ilECS...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function loadCourse(){\n\t\t$ps = new Persistence();\n\t\t$rm = $ps->loadDataFromStore();\n\t\n\t\t\n\t\tif($rm->numberOfCourses() == 0){\n\t\t\t$ECSE321 = new Course(\"ECSE321\", 2, 0, 200,1000);\n\t\t\t$ECSE421 = new Course(\"ECSE421\", 1, 2, 100,2000);\n\t\t\t$ECSE521 = NEW Course(\"ECSE521\", 1, 4, 60,3...
[ "0.66614187", "0.62743247", "0.61289865", "0.61255205", "0.6089565", "0.6081825", "0.6067326", "0.6057469", "0.6024103", "0.60220295", "0.60220295", "0.6007866", "0.59896785", "0.5965046", "0.5953835", "0.59416103", "0.5937526", "0.5908603", "0.590127", "0.58984274", "0.58899...
0.7115336
0
TODO: Implement readAllRearDeep() method.
TODO: Реализовать метод readAllRearDeep().
static function readAllRearDeep($lim, $deep) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function readAll();", "public function readAll();", "static function readRearDeep($id, $deep) {\n }", "public function readAll () {\r\n\r\n\t}", "public function readAll()\r\n {\r\n return $this->_readAll();\r\n }", "public function readAll()\n {\n return iterator_to_arra...
[ "0.7061793", "0.7061793", "0.67806125", "0.67493635", "0.6389438", "0.6371936", "0.6290654", "0.58627117", "0.5795666", "0.5789064", "0.57506865", "0.56957275", "0.56525433", "0.56184804", "0.5527496", "0.5510129", "0.5498587", "0.5489413", "0.54889613", "0.54889613", "0.5488...
0.76260495
0
TODO: Implement readRearDeep() method.
TODO: Реализовать метод readRearDeep().
static function readRearDeep($id, $deep) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static function readAllRearDeep($lim, $deep) {\n }", "abstract protected function read();", "abstract protected function read();", "abstract protected function read();", "public function read();", "public function read();", "public function read();", "public function read();", "public function r...
[ "0.67532915", "0.6128025", "0.6128025", "0.6128025", "0.60296977", "0.60296977", "0.60296977", "0.60296977", "0.60296977", "0.60296977", "0.60296977", "0.60296977", "0.60296977", "0.60296977", "0.60296977", "0.5819911", "0.58192027", "0.57690835", "0.5710916", "0.5633542", "0...
0.71649027
0
TODO: Implement createDeep() method.
TODO: Реализовать метод createDeep().
static function createDeep($data) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isDeep();", "abstract protected function create();", "public function duplicate($deep = false);", "abstract public function create();", "abstract public function create();", "abstract public function create();", "abstract public function create();", "abstract public function create();...
[ "0.630599", "0.62067527", "0.60558075", "0.6025857", "0.6025857", "0.6025857", "0.6025857", "0.6025857", "0.60017043", "0.59802485", "0.5873918", "0.5810348", "0.57427377", "0.5742578", "0.57167894", "0.57063156", "0.56803817", "0.5627159", "0.5625211", "0.56157124", "0.56157...
0.80338144
0
Save a flag if the a post/page/cpt have [ninja_tables] shortcode
Сохраните флаг, если пост/страница/cpt имеет короткий код [ninja_tables]
public function saveNinjaTableFlagOnShortCode($post_id) { if (isset($_POST['post_content'])) { $post_content = $_POST['post_content']; } else { $post = get_post($post_id); $post_content = $post->post_content; } if (has_shortcode($post_content, 'nin...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function maiguides_is_table_of_contents() {\n\n\t// It's a main guide page!\n\tif ( is_singular( 'mai_guide' ) ) {\n\t\treturn true;\n\t}\n\n\t// It's not a guide entry post type.\n\tif ( ! is_singular( maiguides_get_guide_entry_post_types() ) ) {\n\t\treturn false;\n\t}\n\n\t// Get the value.\n\t$value = get_post...
[ "0.5817622", "0.57405066", "0.5686808", "0.56115526", "0.556434", "0.5536908", "0.55086416", "0.5425067", "0.53892434", "0.53822803", "0.5375614", "0.533546", "0.531627", "0.53074014", "0.5238537", "0.52349395", "0.5231945", "0.520489", "0.5198685", "0.5194488", "0.51573396",...
0.717452
0
Update feed in the database.
Обновить поток в базе данных.
public static function updateFeed($query) { try { $feed = FeedsModel::find($query['id']); $feed->feed_name = $query['txtName']; $feed->feed_url = $query['txtUrl']; $feed->feed_active = $query['txtActive']; $feed->feed_force = $query['txtForce']; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function update()\n\t{\n\t\tforeach($this->feeds as $feed) {\n\t\t\t$this->storage->save($feed);\n\t\t}\n\n\t\treturn $this->refresh();\n\t}", "public function update(){\n $newsfeedId = $this->request->post(\"newsfeed_id\");\n $content = $this->request->post(\"content\");\n\n if(!$...
[ "0.7512923", "0.6723339", "0.6658774", "0.66534", "0.6630603", "0.6613253", "0.6551979", "0.65075", "0.648693", "0.6484208", "0.64686954", "0.6424446", "0.63708925", "0.6367213", "0.6356491", "0.63282144", "0.62875235", "0.6262279", "0.6233083", "0.6203431", "0.6191526", "0...
0.7194066
1
Extract path from request
Извлечь путь из запроса
private function extractPath($request) { $components = explode(' ', $request); $result = ''; if (isset($components[1])) { $result = parse_url($components[1], PHP_URL_PATH); } return $result ?: ''; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getRequestPath();", "private function getRequestUrlPath()\n {\n return rtrim($this->request->getPathInfo(), '/');\n }", "public static function extractResourceFromPath()\n {\n $routeInfo = app('request')->route();\n\n preg_match('/\\/(.*)\\/?/', $routeInfo[1]['uri'...
[ "0.80298567", "0.7526422", "0.74315137", "0.74125326", "0.74079275", "0.7379741", "0.73466414", "0.7263998", "0.72487247", "0.7186224", "0.7126844", "0.70828754", "0.7080014", "0.7057529", "0.7051073", "0.7030175", "0.7023773", "0.6969275", "0.69363934", "0.6903755", "0.68749...
0.7882534
1
return array of fields then must be translatable
вернуть массив полей, которые затем должны быть переводимыми
abstract protected function translatableFields(): array;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTranslatableFields();", "public function translateFields(): array\n {\n return [];\n }", "public function fieldsToTranslate()\n {\n return ['description', 'nombre', 'alt_image', 'alt_icon', 'description_large'];\n }", "abstract public function fieldsToTranslate();...
[ "0.85457027", "0.80194163", "0.7624812", "0.74154997", "0.73706526", "0.7231129", "0.71856636", "0.71065223", "0.71065223", "0.6896448", "0.68907374", "0.6824187", "0.67584467", "0.67400444", "0.67267203", "0.6713579", "0.66245013", "0.6614762", "0.661033", "0.65959674", "0.6...
0.88436097
0
Return a quoted reference to the handle column
Вернуть заэкранированную ссылку на столбец handle
protected function _getHandleCol() { $handle_col = $this->_config['handle_col']; if (strpos($handle_col, '.') === false) { $handle_col = "{$this->_config['table']}.{$handle_col}"; } return $handle_col; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getRef()\n\t{\n\t\t$column = self::COL_REF;\n\t\t$v = $this->$column;\n\n\t\tif( $v !== null){\n\t\t\t$v = (string)$v;\n\t\t}\n\n\t\treturn $v;\n\t}", "public function colReferenceName()\n\t{\n\t\treturn $this->columnName($this->reference);\n\t}", "public function getAsManualSqlColumn()\n {\...
[ "0.6916184", "0.6645928", "0.65570515", "0.6214416", "0.6156111", "0.6134419", "0.6101188", "0.6004783", "0.6001358", "0.5932875", "0.5908377", "0.5876321", "0.5830785", "0.5803476", "0.5763775", "0.57608676", "0.57517844", "0.57517844", "0.5708214", "0.5697745", "0.5683344",...
0.7034559
0
Return a quoted reference to the passwd column
Вернуть за кавычками ссылку на столбец passwd
protected function _getPasswdCol() { $passwd_col = $this->_config['passwd_col']; if (strpos($passwd_col, '.') === false) { $passwd_col = "{$this->_config['table']}.{$passwd_col}"; } return $passwd_col; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPass(): string\n {\n $query = Database::getDb()->query(\"SELECT password_admin FROM admins\");\n $req = $query->fetch();\n $pass = $req[0];\n return $pass;\n }", "protected function getCredentialString(): string\n {\n if (!$this->hasAuth()) {\n ...
[ "0.66165954", "0.64895517", "0.64659446", "0.63855743", "0.62871", "0.6203444", "0.61105907", "0.60505086", "0.59904635", "0.5982714", "0.5979686", "0.5961779", "0.5902976", "0.5889968", "0.58783466", "0.5864505", "0.5847406", "0.5841279", "0.5819433", "0.5799895", "0.5787833...
0.748265
0
Tests allowed methods to create survey.
Тесты проверяли разрешенные методы создания опроса.
public function testAllowedMethodsToCreateSurvey() { $I = $this->tester; // Bad methods foreach(['PATCH', 'PUT', 'DELETE', 'GET'] as $method) { $I->{'send' . $method}('/orders/1/survey', []); $I->seeResponseIsJson(); $I->seeResponseContainsJson([ ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testAuthorizedAccessToCreateSurvey()\n {\n $I = $this->tester;\n $this->authByUsername('driverPortland');\n \n $I->sendPOST('/orders/1/survey');\n $I->seeResponseIsJson();\n $I->dontSeeResponseCodeIs(HttpCode::UNAUTHORIZED);\n $I->dontSeeResponseC...
[ "0.7042695", "0.6834221", "0.6609371", "0.6432928", "0.638033", "0.6361318", "0.6330438", "0.6297157", "0.62813", "0.62542516", "0.62392175", "0.61826944", "0.6167013", "0.6158004", "0.6142147", "0.6132882", "0.6123035", "0.6096141", "0.6089936", "0.60623413", "0.6057822", ...
0.79688853
0
Tests allowed methods to attaching signature to survey.
Тесты проверяли методы прикрепления подписи к опросу.
public function testAllowedMethodsToAttachSignatureToSurvey() { $I = $this->tester; // Bad methods foreach(['PATCH', 'PUT', 'DELETE', 'GET'] as $method) { $I->{'send' . $method}('/orders/1/survey/signature', []); $I->seeResponseIsJson(); $I->seeResponseCo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testBadValidationToAttachSignatureToSurvey()\n {\n $I = $this->tester;\n $I->deleteHeader('Content-Type');\n $this->authByUsername('driverPortland');\n \n $tests = [\n\n // Send ttf font\n function() use ($I) {\n $filename =...
[ "0.69852245", "0.6974669", "0.64795864", "0.62857157", "0.627716", "0.6225742", "0.6146922", "0.61406916", "0.60701513", "0.6037045", "0.6025566", "0.5921838", "0.5788488", "0.5712626", "0.5698742", "0.56728905", "0.56586576", "0.5613755", "0.5600038", "0.55693007", "0.554303...
0.8251343
0
Dev token test to create survey.
Тест токена разработчика для создания опроса.
public function testDeveloperTokenToCreateSurvey() { // Failed $this->checkFailedDevToken('/orders/1/survey', 'POST'); // Successful $this->checkDevToken('/orders/1/survey', 'POST'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testDeveloperTokenToAttachSignatureToSurvey()\n {\n // Failed\n $this->checkFailedDevToken('/orders/1/survey/signature', 'POST');\n\n // Successful\n $this->checkDevToken('/orders/1/survey/signature', 'POST');\n }", "public function testUnauthorizedAccessToCreate...
[ "0.7243229", "0.6687015", "0.6472327", "0.6415343", "0.59621286", "0.5900585", "0.57810974", "0.5735825", "0.5713389", "0.57114726", "0.5702379", "0.5699656", "0.56796855", "0.5679627", "0.5679108", "0.56399536", "0.56335187", "0.56121975", "0.55999154", "0.5583806", "0.55428...
0.8753946
0
Dev token test to attaching signature to survey.
Тест токена разработчика для прикрепления подписи к опросу.
public function testDeveloperTokenToAttachSignatureToSurvey() { // Failed $this->checkFailedDevToken('/orders/1/survey/signature', 'POST'); // Successful $this->checkDevToken('/orders/1/survey/signature', 'POST'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testDeveloperTokenToCreateSurvey()\n {\n // Failed\n $this->checkFailedDevToken('/orders/1/survey', 'POST');\n\n // Successful\n $this->checkDevToken('/orders/1/survey', 'POST');\n }", "public function testUnauthorizedAccessToAttachSignatureToSurvey()\n {\n ...
[ "0.776717", "0.7198372", "0.69163513", "0.6779048", "0.66943234", "0.6682414", "0.63036263", "0.5704534", "0.56973195", "0.5679521", "0.5566713", "0.5512965", "0.55006164", "0.54749525", "0.54518795", "0.54306", "0.5426199", "0.5425309", "0.53502923", "0.5336772", "0.5326909"...
0.8874917
0
Test for unauthorized access to attaching signature to survey.
Тест на незаконный доступ к прикреплению подписи к опросу.
public function testUnauthorizedAccessToAttachSignatureToSurvey() { $I = $this->tester; $I->haveHttpHeader('Dev-Token', $this->_developerToken); $I->sendPOST('/orders/1/survey/signature'); $I->seeResponseIsJson(); $I->seeResponseCodeIs(HttpCode::UNAUTHORIZED); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testAuthorizedAccessToAttachSignatureToNote()\n {\n $I = $this->tester;\n $this->authByUsername('driverPortland');\n \n $I->sendPOST('/orders/1/survey/signature');\n $I->seeResponseIsJson();\n $I->dontSeeResponseCodeIs(HttpCode::UNAUTHORIZED);\n $...
[ "0.690127", "0.67811376", "0.65971273", "0.6443813", "0.63882464", "0.6298461", "0.62748855", "0.60742205", "0.59780335", "0.5949583", "0.5830848", "0.58246475", "0.5710154", "0.5692928", "0.56329", "0.5606849", "0.5582962", "0.5562725", "0.5556007", "0.5528472", "0.5522685",...
0.80992955
0
Test for authorized access to create survey.
Тест на авторизованный доступ к созданию опроса.
public function testAuthorizedAccessToCreateSurvey() { $I = $this->tester; $this->authByUsername('driverPortland'); $I->sendPOST('/orders/1/survey'); $I->seeResponseIsJson(); $I->dontSeeResponseCodeIs(HttpCode::UNAUTHORIZED); $I->dontSeeResponseContainsJson([...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testUnauthorizedAccessToCreateSurvey()\n {\n $I = $this->tester;\n $I->haveHttpHeader('Dev-Token', $this->_developerToken);\n \n $I->sendPOST('/orders/1/survey');\n $I->seeResponseIsJson();\n $I->seeResponseCodeIs(HttpCode::UNAUTHORIZED);\n $I->se...
[ "0.76471555", "0.6765713", "0.6481998", "0.6468824", "0.6414413", "0.63594276", "0.6299402", "0.6242673", "0.6234994", "0.6203129", "0.61268264", "0.61190724", "0.6110312", "0.61081105", "0.607558", "0.6069873", "0.6062333", "0.6041586", "0.60376006", "0.6035875", "0.60181296...
0.85884416
0
Test for authorized access to attaching signature to survey.
Тест на авторизованный доступ к прикреплению подписи к опросу.
public function testAuthorizedAccessToAttachSignatureToNote() { $I = $this->tester; $this->authByUsername('driverPortland'); $I->sendPOST('/orders/1/survey/signature'); $I->seeResponseIsJson(); $I->dontSeeResponseCodeIs(HttpCode::UNAUTHORIZED); $I->dontSeeRes...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testUnauthorizedAccessToAttachSignatureToSurvey()\n {\n $I = $this->tester;\n $I->haveHttpHeader('Dev-Token', $this->_developerToken);\n \n $I->sendPOST('/orders/1/survey/signature');\n $I->seeResponseIsJson();\n $I->seeResponseCodeIs(HttpCode::UNAUTHORI...
[ "0.7801624", "0.7192394", "0.7046326", "0.6715815", "0.66490227", "0.63954526", "0.60536706", "0.5997845", "0.5957672", "0.5770798", "0.57329077", "0.5707336", "0.5690753", "0.5680488", "0.5637557", "0.55891526", "0.5568832", "0.55605084", "0.5558114", "0.554285", "0.55374366...
0.7638586
1
Test to get access to another order.
Тест для получения доступа к другому заказу.
public function testAccessToAnotherOrder() { $I = $this->tester; $this->authByUsername('driverPortland'); // Bad identifiers foreach([11, 12, 13] as $id) { $I->sendPOST('/orders/' . $id . '/survey'); $I->seeResponseIsJson(); $I->seeResponseCodeIs(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testWithOrder()\n\t{\n\t\t$user = new User(array('id' => 1, 'username' => 'user'));\n\t\t$order = new OrderImpl(new Order(array('id' => 1)));\n\n\t\t$this->orderServiceMock\n\t\t->expects($this->once())\n\t\t->method('loadOpenOrdersFor')\n\t\t->with($this->equalTo($user))\n\t\t->will($this->returnV...
[ "0.66022885", "0.6533898", "0.6524322", "0.64920914", "0.6466179", "0.64539284", "0.6408585", "0.6406865", "0.6392471", "0.6380582", "0.6322012", "0.63031363", "0.630144", "0.6290444", "0.6282233", "0.62800705", "0.62755555", "0.62378937", "0.6228213", "0.621529", "0.62020415...
0.7554776
0
Check required fields to create survey.
Проверьте обязательные поля для создания опроса.
public function testRequiredFieldsToCreateSurvey() { $I = $this->tester; $this->authByUsername('driverPortland'); $attributes = [ 'name' => 'name name', 'satisfied_delivery_team' => 'completely_unsatisfied', 'items' => $this->_successAttributes['items'] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function check_required_fields()\n {\n\n\n }", "function checkFields()\n\t{\n\t\t$mandatoryFields = array(\"name\", \"title\", \"version\", \"summary\", \"author\", \"contributor\");\n\n\t\t$notExist = array();\n\n\t\t$vars = get_object_vars($this);\n\n\t\tforeach($mandatoryFields as $field)\n\t\t{...
[ "0.7832978", "0.6680784", "0.66201663", "0.6611442", "0.65840644", "0.6340889", "0.63080853", "0.6264026", "0.62203777", "0.6208735", "0.62025243", "0.6186368", "0.61760485", "0.6169178", "0.6159364", "0.614134", "0.61397076", "0.61290514", "0.611943", "0.61187595", "0.610858...
0.73488265
1
Bad validation to attaching signature image to survey.
Плохая проверка при прикреплении изображения подписи к опросу.
public function testBadValidationToAttachSignatureToSurvey() { $I = $this->tester; $I->deleteHeader('Content-Type'); $this->authByUsername('driverPortland'); $tests = [ // Send ttf font function() use ($I) { $filename = '@app/tests/co...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testSuccessfulValidateToAttachSignatureToSurvey()\n {\n $I = $this->tester;\n $this->authByUsername('driverPortland');\n $this->tester->deleteHeader('Content-Type');\n\n // Send file\n $filename = '@app/tests/codeception/functional/files/signature.jpg';\n ...
[ "0.70891654", "0.62616473", "0.6194297", "0.6120912", "0.60145503", "0.6009239", "0.59789616", "0.5878747", "0.58769387", "0.5826585", "0.5823432", "0.5819838", "0.58147776", "0.5792058", "0.57508093", "0.5612941", "0.5606688", "0.56028706", "0.5594817", "0.5505153", "0.54943...
0.7179688
0
Successful validation to attaching signature to survey.
Успешная проверка для прикрепления подписи к опросу.
public function testSuccessfulValidateToAttachSignatureToSurvey() { $I = $this->tester; $this->authByUsername('driverPortland'); $this->tester->deleteHeader('Content-Type'); // Send file $filename = '@app/tests/codeception/functional/files/signature.jpg'; $I->sendPOS...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testBadValidationToAttachSignatureToSurvey()\n {\n $I = $this->tester;\n $I->deleteHeader('Content-Type');\n $this->authByUsername('driverPortland');\n \n $tests = [\n\n // Send ttf font\n function() use ($I) {\n $filename =...
[ "0.7142337", "0.70406556", "0.67690694", "0.66618", "0.64316887", "0.6333149", "0.61772263", "0.60118604", "0.5947993", "0.5854169", "0.5845994", "0.58278203", "0.5821207", "0.5773464", "0.573805", "0.55474955", "0.55443877", "0.5540176", "0.55377513", "0.5537187", "0.5530059...
0.7659498
0
Lists all ActivityOfyear models.
Список всех моделей ActivityOfyear.
public function actionIndex() { $query=ActivityOfYear::find()->orderBy(['acoy_id'=>SORT_DESC]); $searchModel = new ActivityOfyearSearch(); $dataProvider = $searchModel->search(Yii::$app->request->queryParams,$query); return $this->render('index', [ 'searchModel' => $searchModel, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function index()\n {\n //\n $year = YearConfig::find(1);\n $activities = Activity::where('year', $year->year)->orderBy('activity_date')->get();\n\n //dd(date('Y-m-d'));\n //$sql = Activity::where('activity_date', '>=', date('yyyy-mm-dd'))->orderBy('activity_date')->toSq...
[ "0.664102", "0.59881556", "0.59534365", "0.5921651", "0.58577615", "0.58257896", "0.57884", "0.577981", "0.5757077", "0.5719699", "0.5691533", "0.56495464", "0.5606355", "0.5564531", "0.55538857", "0.5548772", "0.5523708", "0.5507337", "0.5472", "0.546994", "0.5464936", "0....
0.7197811
0
Get the Type of the Forum
Получить тип форума
public function type() { return $this->belongsTo('Fourum\Model\Forum\Type'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getType()\n {\n return 'claroline_forum';\n }", "protected function getFeedType() {\n\t\treturn $this->owner->{$this->feedTypeFieldName()};\n\t}", "public function get_type();", "public static function get_type();", "protected function getType() {\n return dosomething_helper...
[ "0.83559763", "0.7075942", "0.6871653", "0.6848633", "0.6758266", "0.6642022", "0.664159", "0.66017723", "0.6554248", "0.6549493", "0.65392435", "0.6537441", "0.65350544", "0.65281534", "0.6525477", "0.65249664", "0.6493536", "0.64900565", "0.6486127", "0.6484933", "0.6465649...
0.7217978
1
Determines if the customer currently has a card on file.
Определяет, имеет ли клиент карту на файле.
public function hasCardOnFile(): bool { return (bool) $this->card_brand; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hasAvailableCard()\n {\n return ($this->count() !== 0);\n }", "public function is_credit_card() {\n\n\t\treturn 'credit_card' == $this->data['type'];\n\t}", "public function storeCardData(){\n \treturn $this->getConfigValue( self::CONFIG_SAVE_CC ) && $this->customer->isLogged();...
[ "0.6907067", "0.68423337", "0.6736935", "0.6718158", "0.6599417", "0.6364927", "0.62156296", "0.61553997", "0.6114286", "0.60661405", "0.60646486", "0.6058319", "0.60464895", "0.60101104", "0.59418803", "0.593012", "0.5920031", "0.5903308", "0.58875346", "0.5887291", "0.58801...
0.81138796
0
Get the entity's upcoming invoice.
Получить следующий счет сущности.
public function upcomingInvoice(): ?Invoice { try { $stripeInvoice = StripeInvoice::upcoming( ['customer' => $this->stripe_id], ['api_key' => $this->getStripeKey()] ); return new Invoice($this, $stripeInvoice); } catch (InvalidRequest $e) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getInvoice()\n {\n return $this->invoice;\n }", "public function getInvoice()\n {\n return $this->invoice;\n }", "public function getInvoice()\n\t{\n\t\treturn $this->tran->invoice;\n\t}", "public function getInvoice()\n\t{\n\t\treturn $this->tran->invoice;\n\t}", ...
[ "0.66576135", "0.66576135", "0.64809066", "0.64809066", "0.64307123", "0.6416671", "0.6293945", "0.628229", "0.6091745", "0.60151386", "0.5993458", "0.5961137", "0.5916257", "0.5866936", "0.5862432", "0.5841977", "0.58393073", "0.5831381", "0.5784676", "0.57408935", "0.572271...
0.7590405
0
Find an invoice by ID.
Найдите счет по ID.
public function findInvoice(string $id): Invoice { try { return new Invoice($this, StripeInvoice::retrieve($id, $this->getStripeKey())); } catch (Exception $e) { } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_invoice_by_id($id)\n {\n $where = '(id=\"'.$id.'\")';\n $this->db->select(\"*\");\n $this->db->from(\"invoices\");\n $this->db->where($where);\n $query1 = $this->db->get();\n $num_rows1 = $query1->num_rows();\n\n if($num_rows1 === 1) {\n $...
[ "0.7583288", "0.7410996", "0.7244376", "0.7211921", "0.7044336", "0.6976089", "0.69318634", "0.6901691", "0.6845045", "0.6810061", "0.67985016", "0.6783744", "0.67816335", "0.67590195", "0.6728437", "0.6728437", "0.67171556", "0.6707539", "0.6685839", "0.6685839", "0.6685839"...
0.75613993
1
Apply a coupon to the billable entity.
Применить купон к биллинг-сущности.
public function applyCoupon($coupon) { $customer = $this->asStripeCustomer(); $customer->coupon = $coupon; $customer->save(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function apply_coupon()\n {\n }", "public function apply_coupon($coupon_code)\n {\n }", "public function update(&$coupon)\n {\n }", "public function applyCoupon(Request $request){\n $coupon = $request->input('coupon');\n if(!$coupon){\n ...
[ "0.73501945", "0.7002278", "0.65702397", "0.65101063", "0.65004593", "0.6461247", "0.64176893", "0.63994473", "0.6364022", "0.6323028", "0.6321655", "0.6270281", "0.6180269", "0.6148424", "0.6146457", "0.61056584", "0.6100692", "0.6058991", "0.6031229", "0.59658885", "0.59486...
0.76106626
0
Get the Stripe API key.
Получите ключ API Stripe.
public static function getStripeKey(): string { return static::$stripeKey ?: Yii::$app->params['stripe']['apiKey']; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAPIKey()\n {\n if ($this->getTestMode()) {\n return $this->encryptor->decrypt((string)$this->scopeConfig->getValue('payment/stripecore/test_api_key', \\Magento\\Store\\Model\\ScopeInterface::SCOPE_STORE));\n } else {\n return $this->encryptor->decrypt((stri...
[ "0.78196543", "0.76825494", "0.7470778", "0.73293835", "0.7325752", "0.7301715", "0.72316", "0.72243464", "0.7212564", "0.7211443", "0.71930724", "0.71412724", "0.7139091", "0.71381795", "0.71381795", "0.71199626", "0.7112277", "0.7112277", "0.7112277", "0.7112277", "0.711227...
0.8144619
0
Set the Stripe API key.
Установите ключ API Stripe.
public static function setStripeKey($key): void { static::$stripeKey = $key; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function setStripeKey($key)\n {\n static::$stripeKey = $key;\n }", "public function set_api_key($key)\n {\n $this->api_key = $key;\n }", "function setAPIKey($key) {\n $this->api_key = $key; \n }", "public function setKey($api_key)\n {\n $this->api_key = $...
[ "0.7577788", "0.7404584", "0.7384199", "0.73585564", "0.7225684", "0.7173817", "0.7172536", "0.7172536", "0.7086197", "0.7002619", "0.6977018", "0.6948727", "0.6824348", "0.6821981", "0.68189055", "0.68180704", "0.6816641", "0.6709065", "0.6685841", "0.66147673", "0.66016066"...
0.75377506
1
Registers the auto inject middleware
Регистрирует middleware автоматического введения
private function registerMiddleware() { if ($this->app['config']['customerchat']['enabled'] && $this->app['config']['customerchat']['autoinject']) { $router = $this->app['router']; $router->pushMiddlewareToGroup('web', \Ltsochev\CustomerChat\Middleware\AutoInjectM...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function registerMiddleware()\n {\n $this->app->routeMiddleware([\n 'hooks' => RequestMiddleware::class\n ]);\n }", "protected function registerMiddleware()\n {\n $router = $this->app['router'];\n\n $router->aliasMiddleware('admin.api.auth', AdminApiAuth:...
[ "0.6315286", "0.62111217", "0.6070277", "0.6064357", "0.60199076", "0.5986458", "0.5979549", "0.5961435", "0.58988976", "0.5875709", "0.58405995", "0.58224285", "0.5818121", "0.57941866", "0.5757611", "0.574875", "0.57436293", "0.5738306", "0.5726039", "0.5706574", "0.5704067...
0.7679042
0
Searches the composer class map. Results are added to the `$foundClasses` array.
Ищет карту классов композитора. Результаты добавляются в массив `$foundClasses`.
protected function searchClassMap() { foreach ($this->composer->getClassMap() as $fqcn => $file) { if (Str::s($fqcn)->is($this->namespace.'*')) { $this->foundClasses[realpath($file)] = $fqcn; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function searchPsrMaps()\n {\n $prefixes = array_merge\n (\n $this->composer->getPrefixes(),\n $this->composer->getPrefixesPsr4()\n );\n\n $trimmedNs = Str::s($this->namespace)->trimRight('\\\\');\n\n $nsSegments = $trimmedNs->split('\\\\');\n\n...
[ "0.6999054", "0.67909664", "0.65223664", "0.63951343", "0.6346717", "0.6215954", "0.6212051", "0.62100357", "0.61867344", "0.61601347", "0.61149037", "0.60170895", "0.6016843", "0.5996113", "0.5978219", "0.597102", "0.59636414", "0.5961017", "0.59449023", "0.5938655", "0.5912...
0.85586315
0
Searches the composer PSRx class maps. Results are added to the `$foundClasses` array.
Ищет карты классов композитора PSRx. Результаты добавляются в массив `$foundClasses`.
protected function searchPsrMaps() { $prefixes = array_merge ( $this->composer->getPrefixes(), $this->composer->getPrefixesPsr4() ); $trimmedNs = Str::s($this->namespace)->trimRight('\\'); $nsSegments = $trimmedNs->split('\\'); foreach ($pre...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function searchClassMap()\n {\n foreach ($this->composer->getClassMap() as $fqcn => $file)\n {\n if (Str::s($fqcn)->is($this->namespace.'*'))\n {\n $this->foundClasses[realpath($file)] = $fqcn;\n }\n }\n }", "private function sc...
[ "0.8476852", "0.70374256", "0.6667345", "0.63762313", "0.62830764", "0.6239393", "0.621623", "0.6210218", "0.6199038", "0.6154666", "0.6139325", "0.6069042", "0.6050336", "0.5995944", "0.59930813", "0.59917825", "0.59706956", "0.5955687", "0.595117", "0.59334403", "0.5917839"...
0.75255036
1
Runs a filter over the array of `$foundCLasses`. Also ensures the classes are real by creating a ReflectionClass instance. By default we use the `defaultFilter` method.
Применяет фильтр к массиву `$foundCLasses`. Также гарантирует, что классы являются реальными, создавая экземпляр ReflectionClass. По умолчанию используется метод `defaultFilter`.
protected function runFilter() { foreach ($this->foundClasses as $file => $fqcn) { try { $rClass = new ReflectionClass($fqcn); if ($this->filter === null) { $result = $this->defaultFilter($rC...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function filterBy(Closure $filter): IClassFinder;", "public function applyFilters()\n\t{\n\t\tforeach(self::$filters as $f)\n\t\t{\n\t\t\tif($this->core !== null)\n\t\t\t{\n\t\t\t\t$this->core = $f($this->core);\n\t\t\t}\n\n\t\t\tif($this->is_namespace)\n\t\t\t{\n\t\t\t\t$this->namespace = $f($this->names...
[ "0.60540175", "0.57276493", "0.56343895", "0.5597215", "0.5511071", "0.54032296", "0.5397476", "0.5303241", "0.5288763", "0.5273747", "0.52682054", "0.52538425", "0.5237888", "0.523142", "0.51817024", "0.5162808", "0.5162808", "0.5148861", "0.51453894", "0.51265126", "0.51147...
0.7452177
0
use for run artisan command for sub project
используйте для запуска artisan-команды для подпроекта
public function sub_artisan(String $project_name,String $command){ $temp = $this->processCommand("php ".$this->subproject_basedir($project_name).'artisan '.$command); return $temp; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function commands()\r\n {\r\n require base_path('routes/console.php');\r\n\r\n// sample for artisan command->describe('Build the project');\r\n Artisan::command('build {project}', function ($project) {\r\n\r\n $name = $this->ask('What is your name?');\r\n ...
[ "0.64522535", "0.61019105", "0.59965134", "0.5903547", "0.5902992", "0.58997935", "0.5850044", "0.58449644", "0.58405095", "0.58065367", "0.5781136", "0.572226", "0.57147324", "0.5705338", "0.56907547", "0.56561404", "0.5642275", "0.5641961", "0.5636066", "0.5627168", "0.5609...
0.76816416
0
TODO: Implement getLogo() method.
TODO: Реализовать метод getLogo().
public function getLogo() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getLogo();", "public function getLogo(): string;", "public function getLogo()\n {\n return $this->logo;\n }", "public function getLogo()\n {\n return $this->logo;\n }", "public function getLogo()\n {\n return $this->logo;\n }", "public function getLo...
[ "0.88565373", "0.82977176", "0.81581295", "0.81581295", "0.81581295", "0.81581295", "0.81581295", "0.81581295", "0.81581295", "0.81581295", "0.81581295", "0.81581295", "0.81581295", "0.80646116", "0.80139995", "0.79498667", "0.7931495", "0.79020345", "0.78450644", "0.78001994",...
0.8992067
0
TODO: Implement getPriceTypeName() method.
TODO: Реализовать метод getPriceTypeName().
public function getPriceTypeName($price_log_id = 0) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPriceType()\n {\n return $this->priceType;\n }", "public function getPriceSystemName() {}", "public function getPriceSystemName() {}", "function getPriceSystemName() ;", "function getPriceSystemName() ;", "public function getPriceModel()\n {\n return Mage::getSin...
[ "0.7335362", "0.6974913", "0.6974913", "0.6769468", "0.6769468", "0.67159253", "0.6710395", "0.6635187", "0.64537126", "0.6433663", "0.6433097", "0.6365836", "0.62678725", "0.62427783", "0.62069994", "0.619376", "0.618254", "0.6157771", "0.613707", "0.613707", "0.612807", "...
0.7574944
0
Extract the log path from the given configuration.
Извлеките путь к журналу из заданной конфигурации.
protected function getLogPath($config) { return $config['path'] ?? $this->app->storagePath('logs'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_full_log_path();", "abstract protected function getLogsPath();", "protected function getLoggingFilePath()\n {\n return $this->getSettingsArray()['log_file_path'];\n }", "public function getLogPath()\n {\n /**\n * Path will take from common configuration if a...
[ "0.7491949", "0.70885897", "0.6915806", "0.68164915", "0.6802682", "0.6785612", "0.6780332", "0.67774487", "0.6680233", "0.66533434", "0.65483594", "0.65204847", "0.65158165", "0.6432599", "0.6430094", "0.63820183", "0.6363236", "0.6361903", "0.63445354", "0.63262546", "0.632...
0.7537106
0
Show progress bar in crm and shop section
Показывать прогресс-бар в разделе crm и shop
public static function showProgressBar(): void { if (defined("ADMIN_SECTION") || (defined("SITE_TEMPLATE_ID") && SITE_TEMPLATE_ID !== "bitrix24") ) { return; } if (self::getCrmSiteId() !== SITE_ID) { return; } global $APPLICATION; $currentPage = $APPLICATION->getCurPage(); if ((mb_strpo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function actionProgress()\n\t{\n\t\t$this->render('progress');\n\t}", "public function progressBar()\r\n {\r\n $this->jQueryUI();\r\n $this->tools();\r\n $this->js('jbassets:js/widget/progressbar.js');\r\n }", "public function user_progress() {\n\t\tif ( ! is_user_logged_in() ...
[ "0.7090295", "0.6938395", "0.65323913", "0.6456807", "0.63975286", "0.6169874", "0.6142053", "0.6138919", "0.6116776", "0.6060298", "0.6044917", "0.6009932", "0.5983526", "0.5983229", "0.5963073", "0.5948751", "0.59439206", "0.590506", "0.58860683", "0.58365524", "0.57983446"...
0.7953804
0
getter for iDEAL consumer Name
getter для имени потребителя iDEAL
public function getConsumerName() { return $this->_getField(self::$CONSUMER_NAME); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getConsumerName()\n {\n return (string)$this->consumerName;\n }", "public function getConsumerName()\n {\n return $this->consumer_name;\n }", "public function getConsumerName()\n {\n return $this->consumer_name;\n }", "public function GetMsgConsumerName(...
[ "0.7206004", "0.7036785", "0.7036785", "0.68903506", "0.65388036", "0.6282096", "0.624022", "0.6183811", "0.6139654", "0.61136276", "0.60697705", "0.6053228", "0.60445255", "0.60336965", "0.60233504", "0.60152215", "0.5978075", "0.59773356", "0.5973245", "0.5956926", "0.59502...
0.72977674
0
getter for iDEAL consumer accountnumber
getter для номера счета потребителя iDEAL
public function getConsumerAccountNumber() { return $this->_getField(self::$CONSUMER_ACCOUNT_NUMBER); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAccountNumber(): string\n {\n return $this->accountNumber;\n }", "public function getAccountNumber()\n {\n return $this -> accountNumber;\n }", "public function getAccountNumber()\n {\n return $this->accountNumber;\n }", "public function getAccountNum...
[ "0.70943636", "0.6978073", "0.68286383", "0.6762457", "0.63775873", "0.6202321", "0.6196721", "0.61656284", "0.61012745", "0.60748297", "0.6062528", "0.6043508", "0.6012509", "0.59896725", "0.5946897", "0.59452313", "0.59438264", "0.5941036", "0.5904279", "0.5867134", "0.5851...
0.7251643
0
The card types that SagePay supports.
Типы карт, которые поддерживает SagePay.
static public function cardTypes() { return array_keys(self::$cardNames); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_card_types() {\n\n\t\treturn $this->is_multi_currency_required() ? $this->get_multi_currency_card_types() : parent::get_card_types();\n\t}", "public function get_multi_currency_card_types() {\n\n\t\treturn array(\n\t\t\tFramework\\SV_WC_Payment_Gateway_Helper::CARD_TYPE_VISA,\n\t\t\tFramework...
[ "0.8661538", "0.8051189", "0.7472388", "0.7340614", "0.7117349", "0.70638645", "0.70198125", "0.6893325", "0.6828769", "0.6824011", "0.68156254", "0.67647386", "0.67549837", "0.6739134", "0.6739134", "0.6678443", "0.6670273", "0.6641388", "0.660134", "0.6583202", "0.6583121",...
0.8167379
1
Remove PKCS5 Padding from a string.
Удалить PKCS5-padding из строки.
static protected function removePKCS5Padding($input) { $blockSize = 16; $padChar = ord($input[strlen($input) - 1]); /* Check for PadChar is less then Block size */ if ($padChar > $blockSize) { throw new SagepayApiException('Invalid encryption string'); } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function pkcs5Unpad($str)\n {\n $pad = ord($str[($len = strlen($str)) - 1]);\n\n $beforePad = strlen($str) - $pad;\n\n if (substr($str, $beforePad) == str_repeat(substr($str, -1), $pad)) {\n return substr($str, 0, $len - $pad);\n }\n return $str;\n }", ...
[ "0.7531675", "0.72854334", "0.721079", "0.70977575", "0.6792089", "0.67222065", "0.657521", "0.6418552", "0.6247885", "0.6247119", "0.59379625", "0.5793115", "0.57663804", "0.5596895", "0.5550426", "0.53662825", "0.533814", "0.5290434", "0.52239376", "0.5141395", "0.5131856",...
0.8002232
0
Extract last 4 digits from card number;
Извлечь последние 4 цифры из номера карты;
static public function getLast4Digits($cardNr) { // Apply RegExp to extract last 4 digits $matches = array(); if (preg_match('/\d{4}$/', $cardNr, $matches)) { return $matches[0]; } return ''; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function last4Num($num) {\r\n\t\t$arr = str_split($num,12);\r\n\t\treturn $arr[1];\r\n\t}", "public function getNumberLast4Digits()\n {\n return $this->getTokenDetails()['maskedCC'];\n }", "public function cardLastFour()\n {\n return (string) ($this->razorpayInfo()['payment_information']...
[ "0.8014465", "0.75799793", "0.7482311", "0.72145236", "0.6903795", "0.6888676", "0.6829382", "0.6190874", "0.61370116", "0.6123898", "0.60863477", "0.605807", "0.5981165", "0.5975997", "0.58821654", "0.5863455", "0.5817048", "0.5811206", "0.57809556", "0.57809174", "0.5780917...
0.862091
0
Returns a boolean indicating whether the instance has a ParametersInterface.
Возвращает логический тип, указывающий, имеет ли экземпляр интерфейс ParametersInterface.
public function hasParameters(): bool;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hasParameters()\n {\n return count($this->parameters) > 0;\n }", "public function hasParameters(): bool\n\t{\n\t\treturn !empty($this->parameters);\n\t}", "public function hasParameters(){\n return $this->_has(2);\n }", "public function hasParameters(){\n return $thi...
[ "0.74622875", "0.74138325", "0.68493927", "0.68493927", "0.6839978", "0.6811129", "0.6670557", "0.66253847", "0.65975904", "0.65883774", "0.6549262", "0.65012133", "0.6462066", "0.6420198", "0.63881534", "0.63156265", "0.6304971", "0.629486", "0.62603325", "0.62352777", "0.62...
0.7444182
1
Provides access to the ParametersInterface instance.
Предоставляет доступ к экземпляру ParametersInterface.
public function parameters(): ParametersInterface;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getParameters(): ParametersInterface;", "public function getParameters(): Parameters\n\t{\n\t\treturn $this->parameters;\n\t}", "public function getParameters() {}", "public function getParameters() {}", "public function getParameters()\n {\n return $this->parameters;\n }", "public f...
[ "0.8293619", "0.7215795", "0.6935222", "0.6935222", "0.6848636", "0.681587", "0.6815541", "0.68149686", "0.6807202", "0.6807202", "0.6807202", "0.6807202", "0.6807202", "0.6807202", "0.6807202", "0.6807202", "0.6797718", "0.6797718", "0.6797718", "0.6797718", "0.6797718", "...
0.8158658
1
Returns true if the build has been just maked.
Возвращает true, если сборка была только что выполнена.
public function isMaked(): bool;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isHasBuild()\n {\n return $this->_hasBuild;\n }", "public function hasLastBuildDate(): bool\n {\n return (null !== $this->lastBuildDate);\n }", "public function isBuilt()\n\t{\n\t\treturn ($this->dbMap !== null);\n\t}", "public function isBuilt()\n\t{\n\t\treturn ($t...
[ "0.69793504", "0.67917234", "0.6675872", "0.6675872", "0.6675872", "0.6675872", "0.6675872", "0.6675872", "0.6675872", "0.6675872", "0.6675872", "0.66700894", "0.66042286", "0.65401715", "0.6338651", "0.6327134", "0.6187649", "0.6182365", "0.6123571", "0.61135715", "0.6049619...
0.7702438
0
Provides access to the FileInterface contained in the FilePhpInterface instance.
Предоставляет доступ к FileInterface, содержащемуся в экземпляре FilePhpInterface.
public function file(): FileInterface;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function withFile(string $file): FileInterface;", "public function file()\n {\n return $this->morphOne(File::class, 'fileable');\n }", "protected function getVichUploader_Form_Type_FileService()\n {\n include_once \\dirname(__DIR__, 4).'/vendor/symfony/form/FormTypeInterface.php';...
[ "0.6886873", "0.6782107", "0.67016715", "0.6647892", "0.6614711", "0.6613818", "0.6575447", "0.6550227", "0.64993197", "0.6479527", "0.64367265", "0.641925", "0.63790214", "0.637111", "0.6275281", "0.62645537", "0.6262608", "0.6252879", "0.6247587", "0.624414", "0.6243143", ...
0.76175696
0
Provides access to the DirInterface instance.
Предоставляет доступ к экземпляру DirInterface.
public function dir(): DirInterface;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDirectory()\n {\n $object = $this->getObjectForTrait('\\Chadicus\\IO\\DirectoryAwareTrait');\n $this->assertNull($object->getDirectory());\n $directory = $this->getMock('\\\\Chadicus\\\\IO\\\\DirectoryInterface');\n $object->setDirectory($directory);\n $this...
[ "0.6117851", "0.6079942", "0.60647905", "0.6025298", "0.59296507", "0.5924302", "0.59190226", "0.5873412", "0.5848387", "0.5848387", "0.58385134", "0.58352757", "0.5827235", "0.5827235", "0.5827235", "0.58142155", "0.58137846", "0.57189375", "0.57017326", "0.5697027", "0.5678...
0.8120698
0
Provides access to the CheckoutInterface instance. Note: This method is available if the application build has been built.
Предоставляет доступ к экземпляру CheckoutInterface. Примечание: этот метод доступен, если сборка приложения была выполнена.
public function checkout(): CheckoutInterface;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function guest()\n {\n return new CheckoutBuilder();\n }", "public function getState(): CheckoutState;", "public static function checkout()\n {\n }", "protected function _getCheckout()\n {\n return $this->_checkoutSession;\n }", "protected function _get...
[ "0.6237441", "0.60502934", "0.60454696", "0.597884", "0.597884", "0.5907239", "0.59033585", "0.59033585", "0.59033585", "0.59033585", "0.59033585", "0.59033585", "0.59033585", "0.59033585", "0.59033585", "0.59033585", "0.5881347", "0.5878902", "0.5878902", "0.5874901", "0.584...
0.78274524
0
Register the navigation items in the WooCommerce navigation.
Зарегистрируйте элементы навигации в навигации WooCommerce.
function register_navigation_items() { if ( ! method_exists( Screen::class, 'register_post_type' ) || ! method_exists( Menu::class, 'add_plugin_item' ) || ! method_exists( Menu::class, 'add_plugin_category' ) || ! Features::is_enabled( 'navigation' ) ) { return; } function page_content(){ echo '<div class="wr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function register(){\r\n\t\tif ( ! is_admin() && ! $this->has_registered ){\r\n\t\t\t$this->has_registered = true;\r\n\r\n\t\t\tadd_filter( 'wp_get_nav_menu_items', \tarray( $this, 'wp_get_nav_menu_items' ), 20, 2 );\r\n\t\t\tadd_filter( 'wp_get_nav_menu_object', \tarray( $this, 'wp_get_nav_menu_object' )...
[ "0.7204507", "0.68355167", "0.67218095", "0.6630508", "0.6620684", "0.6620368", "0.6596752", "0.64833206", "0.64511156", "0.6439919", "0.64315397", "0.63571393", "0.63399726", "0.63292", "0.63245857", "0.6324159", "0.6317018", "0.6300498", "0.62785256", "0.6270569", "0.625669...
0.72332335
0
A soggy attempt at detecting whether the code provided could be SQL code.
Попытка определить, может ли предоставленный код быть кодом SQL.
private static function could_be_sql( $code = '' ) { $regex = '/(SELECT|UPDATE|DELETE|DESCRIBE|EXPLAIN|CREATE|ALTER|DROP|INSERT|SHOW) (FROM|INTO|.*) (FROM|SET|.*) (.*)/'; return ( preg_match( $regex, $code ) ) ? true : false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function isCode($code)\n {\n \treturn preg_match('/\\A[A-Za-z\\s]+\\Z/', $code);\n }", "function evalSyntax($code) {\n\t\tob_start(); // Catch potential parse error messages\n\t\t$code = eval('if(0){' . \"\\n\" . $code . \"\\n\" . '}'); // Put $code in a dead code sandbox to prevent its execution\n\t\tob_end_...
[ "0.671188", "0.6485341", "0.64316076", "0.6377583", "0.6298266", "0.6248295", "0.62005335", "0.6197374", "0.61869794", "0.6175522", "0.6089993", "0.60770136", "0.60367996", "0.60221153", "0.5999537", "0.5993772", "0.59798753", "0.59798753", "0.5974202", "0.5962666", "0.595414...
0.82940215
0
Check whether Query.php can run on the current version of PHP.
Проверьте, может ли Query.php работать с текущей версией PHP.
private static function can_query_run() { return version_compare( PHP_VERSION, '5.1.0', '>=' ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function check_php_mysql_versions() {\n\tglobal $required_php_version, $version_system;\n\t\n\t$php_version = phpversion();\n\tif ( version_compare( $required_php_version, $php_version, '>' ) )\n\t\tdie( sprintf( 'PHP server Anda adalah versi %1$s tetapi sistem %2$s ini, membutuhkan lebih dari versi %3$s.', $php_v...
[ "0.6887047", "0.6830311", "0.676756", "0.67339694", "0.6712678", "0.671069", "0.6580834", "0.655037", "0.6548496", "0.65294737", "0.65250885", "0.64878434", "0.64833313", "0.6475719", "0.64649403", "0.64617616", "0.6452621", "0.64436036", "0.64344287", "0.6403174", "0.6394397...
0.843282
0
Return the value of the specified index from the provided $results array
Верните значение указанного индекса из предоставленного массива $results
static function get_var( array $results, $index ) { if ( array_key_exists( $index, $results ) ) { return $results[$index]; } else if ( array_key_exists( $index, $results[0] ) ) { return $results[0][$index]; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function offsetGet($index)\n\t{\n\t\t$index = explode('.', $index);\n\n\t\t// Set up result\n\t\t$result = $this->array;\n\n\t\tforeach ($index as $key)\n\t\t{\n\t\t\tif (isset($result[$key]))\n\t\t\t{\n\t\t\t\t$result = $result[$key];\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn new Total_Result($this->co...
[ "0.665419", "0.6502751", "0.62469083", "0.612255", "0.6117478", "0.6087045", "0.6034897", "0.5961496", "0.58779013", "0.586465", "0.58233035", "0.5785095", "0.5748733", "0.5724391", "0.5723114", "0.57170165", "0.5709195", "0.5700346", "0.5698638", "0.56902647", "0.56711686", ...
0.7642861
0
TODO: Implement checkForNewMessages() method.
TODO: Реализовать метод checkForNewMessages().
public function checkForNewMessages() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function _get_new_messages() {\n\t\treturn $this->_wait_for_messages();\n\t}", "public static function checkForNewMessages()\n\t{\n\t\t//get number of unread messages for second user\n\t\t$no_of_unread_msg=Messages::numberOfUnreadMessages(Yii::$app->user->getId())->count();\n\t\t//trigger notification\...
[ "0.77245754", "0.73178834", "0.7187485", "0.71699464", "0.71566427", "0.71530867", "0.7015027", "0.70141745", "0.70116407", "0.6995367", "0.69617724", "0.6927124", "0.6858629", "0.6849332", "0.6796363", "0.6796363", "0.6796363", "0.6796363", "0.6749331", "0.6738279", "0.67169...
0.91205686
0
Retrieve referer hidden field for forms.
Получить скрытое поле referer для форм.
public function get_referer_field() { return wp_referer_field( false ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function referer_field() {\n\t\techo $this->get_referer_field();\n\t}", "public function refererField($echo = true) {\n\t\t\treturn wp_referer_field($echo);\n\t\t}", "public function getReferer()\n {\n return $this->referer;\n }", "public function getReferer()\n {\n return isset...
[ "0.7827863", "0.73575675", "0.7176558", "0.7134754", "0.7100694", "0.70991963", "0.70849234", "0.7032703", "0.6953853", "0.6887711", "0.6849152", "0.6798623", "0.6786667", "0.6763513", "0.67434996", "0.6740874", "0.6738963", "0.6732558", "0.6648783", "0.66323686", "0.6628649"...
0.74916595
1
Display referer hidden field for forms.
Показывать скрытое поле referer для форм.
public function referer_field() { echo $this->get_referer_field(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function renderHiddenReferrerFields() {}", "protected function renderHiddenReferrerFields() {}", "public function refererField($echo = true) {\n\t\t\treturn wp_referer_field($echo);\n\t\t}", "function wp_referer_field($echo = \\true)\n{\n}", "function wp_original_referer_field($echo = \\true, $ju...
[ "0.7725652", "0.7724515", "0.68955505", "0.6805578", "0.66641665", "0.665168", "0.6649364", "0.6446093", "0.64328265", "0.64037174", "0.6358164", "0.6270496", "0.6268727", "0.6222815", "0.61257905", "0.61128676", "0.61031675", "0.6088454", "0.6062877", "0.6059768", "0.6049848...
0.78031254
0
Set type for mail content.
Установите тип содержимого электронной почты.
public function setMailType($mail_type = 'text') { $mail_type = strtolower($mail_type); $this->mail_type = 'text' === $mail_type ? 'text' : 'html'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setContentType($type) {\n $this->contentType = $type;\n }", "function setContentType($type)\n\t{\n\t\t//IT'S LATER CONVERTED TO A SIMPLE-TYPE\n\t\t//if type is non-empty, set it\n\t\t//if(preg_match(\"/[^\\s]+/\",$type))\n\t\t{\n\t\t\t//$type = trim($type); //Really??\n\t\t\tassert(!empty($typ...
[ "0.7385328", "0.71807855", "0.7137523", "0.7086094", "0.70842123", "0.707402", "0.6973225", "0.6874051", "0.6778969", "0.6723522", "0.6691761", "0.6680702", "0.6680674", "0.6677715", "0.6672649", "0.66669214", "0.66494876", "0.663165", "0.66190356", "0.66165763", "0.6601259",...
0.7516126
0
Set the TO email addresses, and reset CC and BCC email addresses.
Установите адреса электронной почты получателя (TO), и сбросьте адреса копий (CC) и копий копий (BCC).
public function setTo($address) { // Set TO email addresses. $this->_to_array = $this->_getEmailArray($address); unset($this->_headers['To']); // Reset CC and BCC email addresses. $this->_cc_array = []; $this->_bcc_array = []; unset($this->_headers['...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function clearTo ()\n {\n $this->toAddresses = array();\n }", "protected function setTo($to) {\r\n // I believe this can be addressed to non users as well (page?).\r\n $this->to = $this->createList($to);\r\n }", "public function resetAllTo()\n {\n return $this->resetTo()->r...
[ "0.6688826", "0.6620367", "0.6561314", "0.6503833", "0.64692956", "0.6408788", "0.6338808", "0.6313041", "0.6291314", "0.6272629", "0.6245027", "0.62356013", "0.6180889", "0.6173198", "0.61423236", "0.6124887", "0.61124575", "0.6111331", "0.6097772", "0.6097462", "0.6089137",...
0.72297984
0
Set the BCC email addresses.
Установите адреса электронной почты BCC.
public function setBcc($address) { $this->_bcc_array = $this->_getEmailArray($address); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function _setMailBcc($mailBcc) {\n\t\t$this->_mailBcc = $mailBcc;\n\t}", "public function bcc($bcc)\n {\n if(is_array($bcc))\n {\n $rec = '';\n foreach($bcc as $recipient)\n {\n $rec = $recipient . ',';\n }\n $rec = sub...
[ "0.72052044", "0.71518344", "0.6912146", "0.6864727", "0.6843247", "0.684153", "0.6701952", "0.6683741", "0.6671836", "0.6670035", "0.66426855", "0.6602783", "0.65393025", "0.6518915", "0.6452911", "0.6360378", "0.63598424", "0.6324089", "0.63212657", "0.6299024", "0.6295311"...
0.7363691
0
Format the email addresses to an array.
Форматируйте адреса электронной почты в массив.
private function _getEmailArray($address) { if (!is_array($address)) { $address = explode(',', $address); } $address = array_map('trim', $address); $rs = []; foreach ($address as $mail) { if (preg_match('#^(.*)<((.*)@(.*))>$#', $mail, $matches)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getEmails(){\n if(is_array($this->emails)){\n return $this->emails;\n }\n else if($this->emails){\n return $this->emails = explode(',', $this->emails);\n }\n return array();\n }", "private function _getAddresses() {\n\t\tglobal $auth;\n\...
[ "0.7290232", "0.69985163", "0.69771415", "0.6857473", "0.68232673", "0.67506146", "0.67308915", "0.67280793", "0.6710786", "0.6686869", "0.66631293", "0.6590368", "0.6507088", "0.65029126", "0.65029126", "0.65029126", "0.65028536", "0.64315903", "0.6427074", "0.642535", "0.64...
0.710774
1
Build the header string for mail.
Создайте строку заголовка для почты.
private function _buildHeader() { $header = ''; foreach ($this->_headers as $h => $v) { $header .= "{$h}: {$v}\r\n"; } return $header; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getHeaderString() {\n static $priorities = array(\n MAIL_PRIORITY_LOW => 'Low',\n MAIL_PRIORITY_NORMAL => 'Normal',\n MAIL_PRIORITY_HIGH => 'High'\n );\n \n // Default headers\n $h= (\n $this->_astr(HEADER_FROM, $a= array($this->from)).\n ...
[ "0.770361", "0.7702113", "0.7588365", "0.73666406", "0.7268716", "0.7242964", "0.70594496", "0.7018584", "0.7018335", "0.7008564", "0.6916708", "0.6896441", "0.68778265", "0.6865992", "0.6803931", "0.67989236", "0.6770601", "0.6767158", "0.6738066", "0.67192966", "0.6718556",...
0.8374678
0
Set the common header information.
Установите общую информацию заголовка.
private function _setCommonHeader() { if (empty($this->_header)) { // Set version header. $this->_setHeader('MIME-Version', '1.0'); // Set User Agent for mail sock header. $this->_setHeader('User-Agent', $this->_user_agent); // Set X-Sen...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setHeader()\n {\n ;\n }", "protected function setHeader()\n {\n $headers = array();\n foreach ($this->headers as $key => $value) {\n $headers[] = $key . ': ' . $value;\n }\n curl_setopt($this->request, CURLOPT_HTTPHEADER, $headers);\n\n }"...
[ "0.7361771", "0.72189265", "0.71706074", "0.71462405", "0.71428454", "0.70437443", "0.703917", "0.703917", "0.7003742", "0.6959269", "0.6950449", "0.6937275", "0.693564", "0.68843794", "0.6861108", "0.6786682", "0.6775394", "0.6715281", "0.6715281", "0.6715281", "0.66776246",...
0.8239573
0
/ AJAX call that request to delete a comment to a strategy guide
AJAX-запрос, который запрашивает удаление комментария к стратегическому руководству
public function deleteComment(Request $request) { // Get the Strategy Guide and delete it $comment = Comment::find($request->get("reply_id")); // Authorize the user can delete it $this->authorize("delete", $comment); // Delete the strategy guide $comment->delete(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function _wp_ajax_delete_comment_response($comment_id, $delta = -1)\n{\n}", "function wp_ajax_delete_comment()\n{\n}", "public function actionAjaxDelete()\n {\n $model=$this->loadComment();\n $model->delete();\n }", "function deleteComment()\n\t{\n\t\t$this->isAdmin();\n\t\t$commentsRepos...
[ "0.72588426", "0.70656925", "0.6971744", "0.6911408", "0.68646157", "0.6858932", "0.66999614", "0.66613", "0.6658644", "0.65690297", "0.65465045", "0.6509931", "0.6508523", "0.64769506", "0.6457667", "0.64489794", "0.644088", "0.6418666", "0.6397422", "0.6390964", "0.63866013...
0.750131
0
Run functions on vc_after_mapping hook.
Запуск функций на хук vc_after_mapping.
public function vc_after_mapping() { vc_lean_map( 'vcex_contact_form', array( $this, 'map' ) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function init_hooks() {\n\t\tadd_action( 'vc_after_mapping', array( $this, 'vc_after_mapping' ) );\n\t}", "public function init_hooks() {\n\t\tadd_action( 'vc_after_mapping', array( $this, 'vc_after_mapping' ) );\n\t}", "public function vc_after_mapping() {\n\t\tvc_lean_map( 'vcex_testimonials_carousel'...
[ "0.7485686", "0.7485686", "0.70003617", "0.6675233", "0.60697234", "0.60697234", "0.590377", "0.57769203", "0.57740605", "0.57303566", "0.5692563", "0.5675047", "0.5625037", "0.5625037", "0.5625037", "0.5621837", "0.56128186", "0.55781376", "0.5574117", "0.5569488", "0.556948...
0.7669391
0
Lists all the terms of a given taxonomy Adds the taxonomy title and a list of the terms associated with that taxonomy used in custom post type templates.
Списывает все термины заданной таксономии. Добавляет заголовок таксономии и список терминов, связанных с этой таксономией, используемых в шаблонах пользовательских типов записей.
function wp_listings_list_terms($taxonomy) { $the_tax_object = get_taxonomy($taxonomy); $terms = get_terms($taxonomy); $term_list = ''; $count = count($terms); $i=0; if ($count > 0) { foreach ($terms as $term) { $i++; $term_list .= '<li><a href="' . site_url($taxonomy . '/' . $term->slug) . '"...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function acf_get_taxonomy_terms($taxonomies = array()) {}", "public function index(Taxonomy $taxonomy)\n {\n $this->authorize('terms.viewAny');\n\n $terms = Builders\\Taxonomy::resolve($taxonomy->handle);\n\n return TermResource::collection($terms->paginate(25));\n }", "function cust...
[ "0.73910123", "0.6723454", "0.65947366", "0.64791036", "0.6461583", "0.64508116", "0.6443262", "0.6420456", "0.64033496", "0.63501585", "0.6332437", "0.631263", "0.6303913", "0.6302083", "0.62483627", "0.61842054", "0.618405", "0.61560655", "0.6146188", "0.6137972", "0.613096...
0.73972034
0
Returns true if the queried taxonomy is a taxonomy of the given post type
Возвращает true, если запрашиваемая таксономия является таксономией заданного типа поста
function wp_listings_is_taxonomy_of($post_type) { $taxonomies = get_object_taxonomies($post_type); $queried_tax = get_query_var('taxonomy'); if ( in_array($queried_tax, $taxonomies) ) { return true; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function is_taxonomy() {\n\n\t\treturn taxonomy_exists( $this->get_type() );\n\t}", "public function is_taxonomy()\n {\n }", "function is_taxonomy($taxonomy)\n{\n}", "function theme_is_post_type_taxonomy($post_types = '') {\n\tif ('edit-tags.php' != basename($_SERVER['PHP_SELF'])) {\n\t\...
[ "0.8323034", "0.76637214", "0.7416405", "0.74031305", "0.7353372", "0.7250582", "0.715441", "0.71397847", "0.707226", "0.7051979", "0.6999053", "0.6921012", "0.6753002", "0.6627009", "0.66076934", "0.6594526", "0.659255", "0.6572006", "0.6556368", "0.6552699", "0.65418035", ...
0.81140655
1
the constructor method to create an instance of the crud model and count total row record in the table
конструктор метод для создания экземпляра crud модели и подсчета общего количества записей в таблице
public function __construct() { $this->db = new CRUD; $this->setTotalRecord(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function __construct() {\r\n\t\t$this->crud = CRUD::getInstance ();\r\n\t\t\r\n\t\t$this->expenses = new NameList ( \"Expenses\" );\r\n\t\t$this->income = new NameList ( \"Income\" );\r\n\t\t$this->dataExpenses = new Data ( \"ExpensesData\", $this->expenses->getNameTable () );\r\n\t\t$this->dataIncome = ne...
[ "0.69322914", "0.6538264", "0.648909", "0.6457771", "0.6419097", "0.6411421", "0.63553846", "0.6345961", "0.63423765", "0.63266164", "0.6323812", "0.6286896", "0.6215315", "0.6209173", "0.6197242", "0.61939126", "0.6193484", "0.61867946", "0.6184884", "0.61804926", "0.6177936...
0.75340056
0
method to count and set all the total record in table
метод для подсчета и установки всех общих записей в таблице
public function setTotalRecord() { $this->totalRecord = $this->db->countAll("pelanggan"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setTotalCount()\n {\n if ($this->totalCount>0){\n return;\n }\n $sql = $this->sql();\n \n $this->totalCount = $this->getOriginDb()->createCommand(\"SELECT count(*) FROM ({$sql}) as query\")->queryScalar();\n }", "public function getTotalCount(){...
[ "0.7658716", "0.7534046", "0.7349409", "0.728454", "0.72806996", "0.72806996", "0.72803473", "0.72803473", "0.72803473", "0.72803473", "0.72057897", "0.71777827", "0.7166931", "0.7166931", "0.7166931", "0.7036347", "0.7006513", "0.69746244", "0.69746244", "0.69738513", "0.696...
0.81856704
0
Check if the 'Search saving' is enabled basing on the project settings and the current page's type
Проверьте, включено ли «сохранение поиска» в зависимости от настроек проекта и типа текущей страницы
public function isSearchSavingEnabled() { $searchSavingEnabled = $this->pSet->isSearchSavingEnabled(); if( !$searchSavingEnabled ) return false; return $this->pageType == PAGE_LIST && ($this->mode == LIST_AJAX || $this->mode == LIST_SIMPLE) || $this->pageType == PAGE_REPORT || $this->page...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static function is_saving_settings(): bool {\n return !empty($_POST) && strpos($_SERVER['REQUEST_URI'], 'options-permalink') !== FALSE;\n }", "public function isSiteSearchEnabled()\n {\n return $this->get('sitesearch') == 1;\n }", "public function isEnabled()\n {\n $currentSt...
[ "0.67794967", "0.67303634", "0.6568266", "0.65674055", "0.65136397", "0.6397084", "0.63645923", "0.6352906", "0.6270299", "0.62698805", "0.6226059", "0.6105935", "0.6084306", "0.6040508", "0.60072845", "0.59923303", "0.59713286", "0.5966332", "0.59568346", "0.59512955", "0.59...
0.8245572
0
Assign the page's 'searchLogger' object if the 'Search saving' is enabled
Присвойте объект 'searchLogger' страницы, если включено 'Search saving'
protected function assignSearchLogger() { if( !$this->searchSavingEnabled || !$this->searchClauseObj ) return; include_once getabspath("classes/searchParamsLogger.php"); $this->searchLogger = new searchParamsLogger( $this->tName ); $this->jsSettings['tableSettings'][$this->tName]['searchSaving'] = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function searchLog()\n {\n return $this->searchLog;\n }", "private function setSearch($search)\n {\n $this->search = $search;\n }", "function add_search_pages(): void {\n $set = Config::current()->set(\"search_pages\", false, true);\n\n if ($set === false)\n ...
[ "0.56086636", "0.5555192", "0.5501197", "0.5439597", "0.5434062", "0.5400898", "0.53711236", "0.527849", "0.5245059", "0.52429247", "0.52177846", "0.5156854", "0.5140859", "0.5063001", "0.503546", "0.502785", "0.5026522", "0.50169986", "0.49987438", "0.4990344", "0.49900624",...
0.80518144
0
Assign search saving buttons block
Блок кнопок сохранения поиска
protected function assignSearchSavingButtons() { $this->xt->assign('searchsaving_block', true); if( $this->searchClauseObj->isSearchFunctionalityActivated() && !$this->searchClauseObj->savedSearchIsRun ) $this->xt->assign("saveSeachButton", true); $this->xt->assign("savedSeachesButton", true); if( !...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function savesearchAction()\n {\n \t$this->_helper->viewRenderer->setNoRender();\n \t\n \t$searchform = $this->getSearchForm();\n \t$formData = $this->getRequest()->getParams();\n\t \t\t\n \tif ($searchform->isValidPartial($formData))\n \t{\n \t\t$values = $searchform->getValues()...
[ "0.63774925", "0.6343345", "0.62654114", "0.59995526", "0.59995526", "0.58936274", "0.5886128", "0.5875364", "0.5847987", "0.5835729", "0.5826074", "0.58068347", "0.5802795", "0.5776356", "0.57607317", "0.57475543", "0.57409894", "0.57343847", "0.5732214", "0.5732214", "0.568...
0.8369774
0
Get the page layout's name
Получить имя макета страницы
function getLayoutName() { if($this->pageLayout) return $this->pageLayout->style; else return ""; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getLayoutName()\n {\n if ($this->layout instanceof View) {\n return class_name($this->layout);\n } else if (is_string($this->layout)) {\n return $this->layout;\n }\n }", "public function getNameInLayout()\n {\n return $this->_nameInLayout...
[ "0.7837403", "0.7762596", "0.7238786", "0.7211996", "0.7117237", "0.7059182", "0.6934244", "0.6869911", "0.68000793", "0.6792222", "0.6755452", "0.67116374", "0.66762125", "0.6658135", "0.6655884", "0.6640585", "0.66389006", "0.66280574", "0.66181", "0.6616605", "0.66088843",...
0.8442349
0
addMultiUploadSettings Adding jssettings for FileField
addMultiUploadSettings Добавление jssettings для FileField
function addMultiUploadSettings() { $this->settingsMap["fieldSettings"]["autoUpload"] = array("default"=>false, "jsName"=>"autoUpload"); $this->settingsMap["fieldSettings"]["acceptFileTypes"] = array("default"=>".+$", "jsName"=>"acceptFileTypes"); $this->settingsMap["fieldSettings"]["CompatibilityMode"] = array(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function editor_file_upload_settings_form(Editor $editor) {\n // Defaults.\n $file_upload = $editor->getThirdPartySettings('editor_file');\n $file_upload += [\n 'status' => TRUE,\n 'scheme' => file_default_scheme(),\n 'directory' => 'inline-files',\n 'extensions' => 'txt',\n 'max_size' => '',\n ...
[ "0.65252453", "0.6479295", "0.63393027", "0.63083297", "0.6199329", "0.6148636", "0.6087834", "0.6045466", "0.6025983", "0.60162026", "0.60154927", "0.6015102", "0.59793353", "0.59676445", "0.5947837", "0.5934326", "0.5877984", "0.5842661", "0.58385724", "0.57890177", "0.5787...
0.8594168
0
Display the 'Back to Master' link and master table info
Показать ссылку 'Вернуться к мастеру' и информацию о мастер-таблице
public function displayMasterTableInfo() { $masterTablesInfoArr = $this->pSet->getMasterTablesArr($this->tName); if( !count($masterTablesInfoArr) ) return; $this->jsSettings["tableSettings"][$this->tName]["hasMasterList"] = true; foreach( $masterTablesInfoArr as $masterTableData ) { if( $this-...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function goBack() {\r\n\t\t\techo $this->__getRow('goBack');\r\n\t\t}", "protected function BackLink()\n {\n $params = array('site'=>$this->page->GetSite()->GetID());\n $params['selected'] = $this->page->GetID();\n return BackendRouter::ModuleUrl(new PageTree(), $params);\n }", "publ...
[ "0.6845594", "0.62094563", "0.61893314", "0.6165693", "0.60634077", "0.59544003", "0.5933502", "0.5875277", "0.58560777", "0.58016294", "0.57925767", "0.5790411", "0.5764355", "0.5722711", "0.57214147", "0.5706533", "0.5699863", "0.56974417", "0.5691869", "0.5645364", "0.5634...
0.71074474
0
Check is use menu on page
Проверить использование меню на странице
function isUseMenu() { $menuBricks = array('vmenu', 'vmenu_mobile', 'hmenu', 'quickjump'); if($this->xt->isExistBricks($menuBricks)) { return true; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function isShowMenu()\n\t{\n\t\tif(!$this->isUseMenu() && $this->pageType!=PAGE_MENU && $this->pageType!=PAGE_ADD)\n\t\t\treturn false;\n\t\t\t\n\t\t$menuNodes = $this->getMenuNodes();\n\t\t$allowedMenuItems = 0;\n\t\tfor($i=0;$i<count($menuNodes);$i++)\n\t\t{\n\t\t\tif($menuNodes[$i][\"linkType\"] == \"Internal\"...
[ "0.774517", "0.7677463", "0.76144135", "0.7555697", "0.74805725", "0.744717", "0.74207807", "0.7335663", "0.72158974", "0.7055416", "0.70341045", "0.70192623", "0.698159", "0.6959891", "0.6952085", "0.69508606", "0.6807511", "0.67599386", "0.66968757", "0.66919774", "0.669184...
0.7785004
0
Check is need to show menu
Проверить, нужно ли отображать меню
function isShowMenu() { if(!$this->isUseMenu() && $this->pageType!=PAGE_MENU && $this->pageType!=PAGE_ADD) return false; $menuNodes = $this->getMenuNodes(); $allowedMenuItems = 0; for($i=0;$i<count($menuNodes);$i++) { if($menuNodes[$i]["linkType"] == "Internal") { if($this->isUserHaveTablePe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function showInMenu()\n {\n if (!$this->useInMenu())\n return false;\n if ($this->useForCtr && !PageCom::ctr()/*(Base::mode() != 'ctr')*/)\n return false;\n if ($this->useForCtr && !$this->testPrivs())\n return false;\n return true;\n }", "public function isMenu()\n {\n return true;\n ...
[ "0.7996655", "0.7819055", "0.7475663", "0.74594253", "0.7359724", "0.72917736", "0.7049607", "0.70486367", "0.6999974", "0.69634646", "0.6925672", "0.6916676", "0.68822175", "0.68753487", "0.6844209", "0.6830934", "0.68025", "0.6768287", "0.66864616", "0.6644178", "0.6618241"...
0.7865207
1
Add lookup settings to settings map Use on list and add pages
Добавить настройки поиска в карту настроек Используйте на списки и страницы добавления
function addLookupSettings() { $this->settingsMap["fieldSettings"]["CategoryControl"] = array("default" => "", "jsName" => "categoryField"); $this->settingsMap["fieldSettings"]["DependentLookups"] = array("default" => array(), "jsName" => "depLookups"); $this->settingsMap["fieldSettings"]["LCType"] = array("defa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function addLookupSettings()\n\t{\n\t\t$this->settingsMap[\"fieldSettings\"][\"CategoryControl\"] = array(\"default\"=>\"\",\"jsName\"=>\"categoryField\");\n\t\t$this->settingsMap[\"fieldSettings\"][\"DependentLookups\"] = array(\"default\"=>array(),\"jsName\"=>\"depLookups\");\n\t\t$this->settingsMap[\"fieldSetti...
[ "0.71886766", "0.6550171", "0.6440986", "0.63319296", "0.6330764", "0.6330764", "0.6222485", "0.62126553", "0.6108986", "0.6047064", "0.60425264", "0.60425264", "0.60325384", "0.6007156", "0.6007031", "0.5969222", "0.5942601", "0.59106386", "0.5868689", "0.58604556", "0.58418...
0.7270899
0
Get for the dependent lookup field its main lookup control's field name
Получить для зависимого поля поиска имя основного поля управления поиска
function getMainLookupFieldNameForDependant($fName) { if( ($this->pSet->getEditFormat($fName) != EDIT_FORMAT_LOOKUP_WIZARD || $this->pSet->getEditFormat($fName) != EDIT_FORMAT_RADIO) && !$this->pSet->useCategory($fName) ) return ""; return $this->pSet->getCategoryControl($fName); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getLookupField() {}", "public function getRelatedFieldname();", "function usoftGetFieldName($field) {\n\treturn 'UF_'.strtoupper(USOFT_MAP_HL_NAME).'_'.$field;\n}", "public function getFieldName();", "public function getFieldName();", "public function get_field_name($field_name)\n {\n ...
[ "0.7766961", "0.68191147", "0.6716813", "0.6706499", "0.6706499", "0.6691793", "0.66408014", "0.6619812", "0.6565305", "0.65320516", "0.6531864", "0.6499406", "0.6488202", "0.64781827", "0.6461032", "0.64490014", "0.644372", "0.6419067", "0.64177513", "0.6377448", "0.6340004"...
0.750265
1
Add confirm field to field settings Use for register page only
Добавить поле confirm в настройки полей. Используется только для страницы регистрации
function addConfirmToFieldSettings() { $arrSetVals = array(); $arrSetVals['strName'] = 'confirm'; $arrSetVals['EditFormat'] = 'Password'; $arrSetVals['validation']['validationArr'][] = 'IsRequired'; $this->jsSettings['tableSettings'][$this->tName]['fieldSettings']['confirm'][$this->pageType] = $arrSetVals; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function addConfirmToFieldSettings()\n\t{\n\t\t$arrSetVals = array();\n\t\t$arrSetVals['strName'] = 'confirm';\n\t\t$arrSetVals['EditFormat'] = 'Password';\n\t\t$arrSetVals['validation']['validationArr'][] = 'IsRequired';\n\t\t$this->jsSettings['tableSettings'][$this->tName]['fieldSettings']['confirm'] = $arrSetVa...
[ "0.8238568", "0.7357971", "0.6908391", "0.68827534", "0.6587781", "0.6554281", "0.64283586", "0.63496834", "0.62539685", "0.6206375", "0.6206205", "0.6126454", "0.6122907", "0.61154777", "0.60963607", "0.60746455", "0.6061047", "0.6048743", "0.6034722", "0.6012494", "0.599626...
0.8380759
0
Add fields to field settings Use for admin members page with Active Directory
Добавить поля в настройки полей Используется для страницы администратора с Active Directory
function addFieldsToFieldSettingsforAD() { $arrSetVals = array(); $arrSetVals['strName'] = 'displayname'; $arrSetVals['EditFormat'] = 'Text Field'; $arrSetVals['validation']['validationArr'][] = 'IsRequired'; $this->jsSettings['tableSettings'][$this->tName]['fieldSettings']['displayname'][$this->pageType] = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setup_fields()\n {\n add_settings_field(\n $this->name . '_account_id',\n 'Instagram Account ID',\n array($this, 'account_id_field_callback'),\n $this->name . '_fields',\n $this->name . '_account_settings'\...
[ "0.7181064", "0.71014607", "0.70882547", "0.68708557", "0.6785192", "0.67232215", "0.6700321", "0.6676936", "0.666504", "0.6621821", "0.6561579", "0.65417993", "0.6539011", "0.65344274", "0.6530468", "0.65235835", "0.65065694", "0.6504668", "0.6500922", "0.6500922", "0.650092...
0.76845235
0
Add captcha field to field settings Use for register page only
Добавить поле каптчи в настройки полей Используется только для страницы регистрации
function addCaptchaToFieldSettings() { $arrSetVals = array(); $arrSetVals['strName'] = 'captcha'; $arrSetVals['EditFormat'] = 'Text Field'; $arrSetVals['validation']['validationArr'][] = 'IsRequired'; $this->jsSettings['tableSettings'][$this->tName]['fieldSettings']['captcha'][$this->pageType] = $arrSetVals;...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function addCaptchaToFieldSettings()\n\t{\n\t\t$arrSetVals = array();\n\t\t$arrSetVals['strName'] = 'captcha';\n\t\t$arrSetVals['EditFormat'] = 'Text Field';\n\t\t$arrSetVals['validation']['validationArr'][] = 'IsRequired';\n\t\t$this->jsSettings['tableSettings'][$this->tName]['fieldSettings']['captcha'] = $arrSet...
[ "0.83228296", "0.7328266", "0.73251945", "0.7198547", "0.6740562", "0.6736284", "0.67080605", "0.67047656", "0.65912104", "0.65896344", "0.6546648", "0.64939386", "0.6480314", "0.64575315", "0.64083004", "0.64028573", "0.6401145", "0.6395042", "0.6386813", "0.6382543", "0.637...
0.83486795
0
Get the local time format regexp
Получить локальный формат времени регулярного выражения
function getTimeRegexp() { global $locale_info; $timeDelimiter = $locale_info["LOCALE_STIME"]; $timeFormat = $locale_info["LOCALE_STIMEFORMAT"]; $is24hoursFormat = $locale_info["LOCALE_ITIME"] == "1"; $leadingZero = $locale_info["LOCALE_ITLZERO"] == "1"; if($locale_info["LOCALE_ITIME"] == "0") ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function localTime(): PatternParser\n {\n /** @var PatternParser|null $parser */\n static $parser;\n\n if ($parser) {\n return $parser;\n }\n\n return $parser = (new PatternParserBuilder())\n ->appendCapturePattern(HourOfDay::PATTERN, HourOf...
[ "0.62682414", "0.6027774", "0.589886", "0.5857543", "0.58549666", "0.5806159", "0.57417816", "0.5641622", "0.5641407", "0.5630948", "0.55865484", "0.552827", "0.55261153", "0.5478471", "0.5468317", "0.5459318", "0.5410955", "0.53908384", "0.5385419", "0.5370911", "0.53617597"...
0.73627436
0
Get array of fields by current page type return array of fields
Получить массив полей по текущему типу страницы, вернуть массив полей
function getFieldsByPageType() { $useInline = false; if($this->pageType == PAGE_EDIT) { if($this->pageEditLikeInline) { $useInline = true; $allfields = $this->pSet->getInlineEditFields(); }else $allfields = $this->pSet->getEditFields(); } else if($this->pageType == PAGE_ADD) { if($...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getFieldsByPageType()\n\t{\n\t\t$arrFields = array();\n\t\t$allfields = GetFieldsList($this->tName);\n\t\tforeach($allfields as $fName)\n\t\t{\n\t\t\tif($this->pageType == PAGE_EDIT && $this->pageEditLikeInline)\n\t\t\t\t$app = AppearOnCurrentPage($fName,$this->pageType,true);\n\t\t\telse if($this->pageTy...
[ "0.8558096", "0.742705", "0.70705676", "0.69013524", "0.67909724", "0.676175", "0.67283684", "0.6708861", "0.6666595", "0.6634881", "0.6605177", "0.6605177", "0.6604665", "0.6604665", "0.66016936", "0.6579918", "0.6579918", "0.6579918", "0.6579918", "0.6579918", "0.6579918", ...
0.85645926
0
Fill all settings for current table
Заполните все настройки для текущей таблицы
function fillSettings() { $this->fillGlobalSettings(); $this->fillTableSettings(); $this->fillFieldSettings(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function fillInTableData()\n {\n $this->createColumns();\n $this->createPrimaryKey();\n $this->createRelationships();\n $this->content .= \" \\$table->engine = '\" . $this->table->getEngine() . \"';\\n\";\n\n }", "function setTableProperties()\r\n\t{\r\n\t\tsta...
[ "0.72363067", "0.6880119", "0.64365655", "0.64310336", "0.638036", "0.63768655", "0.6355619", "0.63457835", "0.63384354", "0.631713", "0.63167316", "0.6292037", "0.62664783", "0.6258757", "0.6258757", "0.6249401", "0.61943805", "0.6173242", "0.6149802", "0.6147061", "0.612123...
0.74107313
1
Fill arrays of names tab group and section to controlsHTMLMap for current table
Заполните массивы имен вкладки группы и раздела для элементов управления HTMLMap для текущей таблицы
function fillCntrlTabGroups() { $arrTabs = $this->getArrTabs(); $this->controlsMap['tabs'] = array(); $this->controlsMap['sections'] = array(); if(!$arrTabs) return false; $beginGroup = false; $tabGroupName = ""; for($i=0;$i<count($arrTabs);$i++) { $tabC = $arrTabs[$i];//current tab $...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function fillCntrlTabGroups()\n\t{\n\t\t$arrTabs = $this->getArrTabs();\n\t\t$this->controlsMap['tabs'] = array();\n\t\t$this->controlsMap['sections'] = array();\n\t\t\n\t\tif(!$arrTabs)\n\t\t\treturn false;\n\t\t\n\t\t$beginGroup = false;\n\t\t$tabGroupName = \"\";\n\t\t\n\t\tfor($i=0;$i<count($arrTabs);$i++)\n\t...
[ "0.75552076", "0.72364205", "0.7143443", "0.6515739", "0.61743784", "0.5916536", "0.5877339", "0.5836592", "0.57962215", "0.57734907", "0.5724716", "0.5708107", "0.56295705", "0.55247533", "0.54668117", "0.5456036", "0.54438", "0.5428163", "0.5409837", "0.53907835", "0.537779...
0.7545847
1
Get array of tabs in accordance with page type return boolean
Получить массив вкладок в соответствии с типом страницы, возвращать булевое значение
function getArrTabs() { if($this->pageType == PAGE_EDIT) return $this->arrEditTabs; elseif($this->pageType == PAGE_ADD) return $this->arrAddTabs; elseif($this->pageType == PAGE_VIEW) return $this->arrViewTabs; else return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getArrTabs()\n\t{\n\t\tif($this->pageType == PAGE_EDIT)\t\n\t\t\treturn $this->arrEditTabs;\n\t\telseif($this->pageType == PAGE_ADD)\t\n\t\t\treturn $this->arrAddTabs;\n\t\telseif($this->pageType == PAGE_VIEW)\t\n\t\t\treturn $this->arrViewTabs;\n\t\telse\n\t\t\treturn false;\n\t}", "function get_tabs()...
[ "0.7503667", "0.6579627", "0.65157276", "0.6354204", "0.63506293", "0.6319417", "0.63051283", "0.6250641", "0.61302286", "0.6123218", "0.61226296", "0.6116024", "0.6111116", "0.6097922", "0.6089614", "0.6057157", "0.6026374", "0.5999933", "0.5993729", "0.5976977", "0.59468764...
0.7499023
1
Fill timepicker settings for current field
Заполните настройки timepicker для текущего поля
function fillTimePickSettings($field, $value = "", $pSet = null, $pageType = "") { if(is_null($pSet)) $pSet = $this->pSet; if($pageType == "") $pageType = $this->pageType; $timeAttrs = $pSet->getFormatTimeAttrs($field); if(count($timeAttrs) && $timeAttrs["useTimePicker"]) { $convention = $timeAt...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function fillTimePickSettings($field,$value=\"\")\n\t{\n\t\t$timeAttrs = GetFieldData($this->tName,$field,\"FormatTimeAttrs\",array());\t\n\t\tif(count($timeAttrs) && $timeAttrs[\"useTimePicker\"])\n\t\t{\n\t\t\t$convention = $timeAttrs[\"hours\"];\n\t\t\t$locAmPm = getLacaleAmPmForTimePicker($convention, true);\n...
[ "0.77895975", "0.7129955", "0.68560624", "0.6609173", "0.6567328", "0.63606316", "0.63022256", "0.6297986", "0.6099527", "0.59728307", "0.5958187", "0.59367156", "0.59206825", "0.59063524", "0.5828307", "0.5805103", "0.57689106", "0.576559", "0.5728798", "0.5723145", "0.57181...
0.71759063
1
Generates new id, same as flyId on frontend
Генерирует новый идентификатор, такой же, как flyId на фронтенде
function genId() { $this->flyId++; $this->recId = $this->flyId; return $this->flyId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function _generateId()\n {\n static $idx = 1;\n\n if (!$this->getAttribute('id')) {\n $this->updateAttributes(array('id' => 'id_'.substr(md5(microtime() . $idx++), 0, 6)));\n }\n }", "protected function _generateId() {\n\t\t$this->_data['id'] = $this->_adapter->acquireId();\...
[ "0.7971646", "0.7737648", "0.76428276", "0.7594411", "0.7594411", "0.7577991", "0.75124323", "0.7461984", "0.742842", "0.7405806", "0.73848325", "0.73623013", "0.73445696", "0.72932476", "0.7241682", "0.72341967", "0.7176251", "0.7147513", "0.7142629", "0.71309716", "0.708008...
0.781693
1
Grab all js files
Захватить все файлы js
function grabAllJsFiles() { $jsFiles = array(); foreach($this->includes_js as $file) { $jsFiles[$file] = array(); if(array_key_exists($file, $this->includes_jsreq)) $jsFiles[$file] = $this->includes_jsreq[$file]; } $this->includes_js = array(); $this->includes_jsreq = array(); return $jsFiles; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function grabAllJsFiles()\n\t{\n\t\t$jsFiles = array();\n\t\tforeach($this->includes_js as $file)\n\t\t{\n\t\t\t$jsFiles[$file] = array();\n\t\t\tif(array_key_exists($file,$this->includes_jsreq))\n\t\t\t\t$jsFiles[$file] = $this->includes_jsreq[$file];\n\t\t}\n\t\t$this->includes_js = array();\n\t\t$this->includes...
[ "0.79485095", "0.77864003", "0.7655419", "0.76369154", "0.72818273", "0.72128356", "0.71835095", "0.7096991", "0.7089288", "0.7079239", "0.7059195", "0.69792974", "0.6962242", "0.6917363", "0.6872541", "0.68287534", "0.6804953", "0.6800408", "0.67919755", "0.6767428", "0.6767...
0.7945343
1
Replace the pageLayout object with a new obtained by t the table name and page's layout suffix. Update the page's css files
Замените объект pageLayout на новый, полученный по имени таблицы и суффиксу размещения страницы. Обновите файлы css страницы
function updatePageLayoutAndCSS( $tName, $suffix ) { $this->pageLayout = GetPageLayout( $tName, $this->pageType, $suffix ); $this->includes_css = array(); $this->AddCSSFile( $this->pageLayout->getCSSFiles(isRTL(), isMobile()) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function setLayout(){\n\t\t$this->layout= Yii::$app->getModule('helpsystem')->pageLayout;\n\t}", "protected static function updateLayoutViews()\n {\n // copy new one from your stubs folder\n static::copyDirectory('resources/views/layouts', resource_path('views/layouts'));\n static...
[ "0.5867672", "0.57854825", "0.5719154", "0.56948245", "0.5550276", "0.5536714", "0.5523418", "0.5504917", "0.54885125", "0.54409647", "0.53837925", "0.537747", "0.5366241", "0.5360682", "0.5359865", "0.5353253", "0.5234258", "0.52098393", "0.5198779", "0.51720786", "0.5162899...
0.72764033
0
Grab all css files
Захватите все файлы css
function grabAllCSSFiles() { $cssFiles = $this->includes_css; $this->includes_css = array(); return $cssFiles; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function grabAllCssFiles()\n\t{\n\t\t$cssFiles = $this->includes_css;\n\t\t$this->includes_css = array();\n\t\treturn $cssFiles;\n\t}", "public function load_all_css_files() {\n $path = APP_ROOT.'/css';\n $dir = opendir($path);\n\n while (($file = readdir($dir)) !== false) {\n if ...
[ "0.8312084", "0.83041596", "0.7479235", "0.7460625", "0.7408556", "0.7248137", "0.72086453", "0.7188375", "0.7176495", "0.7056713", "0.7050643", "0.7050159", "0.70412195", "0.70280796", "0.70125437", "0.7009806", "0.7009535", "0.7006332", "0.6963563", "0.6921423", "0.68534124...
0.83416474
0
Copy all css files
Скопируйте все файлы css
function copyAllCssFiles($cssFiles) { foreach($cssFiles as $file) $this->AddCSSFile($file); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function copyAssets()\n {\n $this->filesystem->copyDirectory(__DIR__ . '/../../resources/css', resource_path('css/vendor/crisvegadev/jet-dark'));\n }", "public function copyAssets() {\n $this->core->component('file')->copyFolder('themes/' . $this->core->setting('theme') . '/assets/', '...
[ "0.7889836", "0.72192085", "0.7072787", "0.670342", "0.65615255", "0.65600216", "0.65513587", "0.6346031", "0.63119483", "0.6311002", "0.62764394", "0.6253076", "0.62073505", "0.61041546", "0.6102917", "0.609112", "0.60867065", "0.6049784", "0.604907", "0.6032387", "0.6028737...
0.7265724
1
Set languge params for page
Установить параметры языка для страницы
function setLangParams() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function setLangCode()\n {\n $this->page->setVar('langCode', $this->text->getLanguage());\n }", "function setlanguageAction()\n {\n \t$this->view->loginStatus = $this->isLoggedIn();\n \t\n \t$langcode = $this->_request->getParam('lang');\n\t\t$params = str_replac...
[ "0.6688165", "0.6551455", "0.6442183", "0.63381356", "0.6260161", "0.6205454", "0.619286", "0.61637425", "0.6120716", "0.6048608", "0.6021842", "0.59992766", "0.5990373", "0.5962104", "0.5959275", "0.59317714", "0.59232354", "0.5885293", "0.58834994", "0.5878491", "0.5872947"...
0.8160873
0
Check is captcha exists on current page
Проверить, существует ли капча на текущей странице
function captchaExists() { if(!$this->eventsObject) return false; return $this->eventsObject->existsCAPTCHA($this->pageType); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static function is_captcha_page() {\n\t\treturn ( $_GET && isset( $_GET['page'] ) && sanitize_text_field( $_GET['page'] ) == 'captcha.php' );\n\t}", "function check_captcha()\n\t\t{\n\t\t\t$keystring = trim(FSInput::get(\"keystring\"));\n\t\t\tif(!isset($keystring))\n\t\t\t{\t\n\t\t\t\treturn 0;\n\t\t\t}...
[ "0.7566221", "0.7291511", "0.71309906", "0.7116752", "0.71031713", "0.7098955", "0.7033225", "0.6970149", "0.6937402", "0.68436676", "0.6813927", "0.6812088", "0.68103504", "0.68076384", "0.67991865", "0.6781617", "0.6745946", "0.673195", "0.66770405", "0.66705513", "0.666101...
0.7819758
0
Check is current table is admin table
Проверить, является ли текущая таблица административной таблицей
function isAdminTable() { if($this->tName) return $this->tName === 'admin_rights' || $this->tName === 'admin_members' || $this->tName === 'admin_users'; else return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isAdmin();", "public function isAdmin();", "public function isAdmin();", "public function isAdmin() {}", "abstract function isAdmin();", "abstract public function isAdmin();", "function isAdmin()\r\n {\r\n }", "public function isAdmin(): bool;", "public static function inAdmin...
[ "0.74075216", "0.74075216", "0.74075216", "0.7369837", "0.72554654", "0.72542983", "0.7144299", "0.70512736", "0.7034936", "0.69493294", "0.69386995", "0.69348276", "0.690753", "0.68948656", "0.68463576", "0.6846314", "0.68411493", "0.6838651", "0.68340445", "0.68304867", "0....
0.8308787
0
Get the field's class name to align the field's value basing on its edti and view formats
Получите имя класса поля для выравнивания значения поля на основе его форматов редактирования и просмотра
function fieldClass($f) { if( $this->pSet->getEditFormat($f) == FORMAT_LOOKUP_WIZARD ) return ''; $format = $this->pSet->getViewFormat($f); if( $format == FORMAT_FILE ) return ' rnr-field-file'; if( $format == FORMAT_AUDIO ) return ' rnr-field-audio'; if( $format == FORMAT_CHECKBOX ) retu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getClassField() {}", "function field_class( $field_name, $field_class = '' ) {\n\n\t\tglobal $data; // Make global pass from controller\n\n\t\t$field_class = $field_class;\n\n\t\tif( isset( $data['form'] ) ) {\n\t\t\tif( isset( $data['form']['errors'][ $field_name ] ) ) {\n\t\t\t\t$field_class...
[ "0.7093264", "0.6810923", "0.6655336", "0.66066617", "0.65852576", "0.6571021", "0.64890033", "0.64611554", "0.63196176", "0.61831725", "0.6174211", "0.6137117", "0.61298764", "0.61298764", "0.61298764", "0.61298764", "0.61209196", "0.61142975", "0.61069995", "0.60819983", "0...
0.75446075
0
The settings object 'getDetailKeysByMasterTable' method's wrapper
Обертка метода 'getDetailKeysByMasterTable' объекта настроек
function getDetailKeysByMasterTable() { if( $this->baseTableName && $this->baseTableName != $this->masterTable && $this->baseTableName != $this->tName ) return array(); return $this->pSet->getDetailKeysByMasterTable($this->masterTable); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function SetUpMasterDetail() {\n\t\tglobal $secuencias_escenas;\n\t\t$bValidMaster = FALSE;\n\n\t\t// Get the keys for master table\n\t\tif (@$_GET[EW_TABLE_SHOW_MASTER] <> \"\") {\n\t\t\t$sMasterTblVar = $_GET[EW_TABLE_SHOW_MASTER];\n\t\t\tif ($sMasterTblVar == \"\") {\n\t\t\t\t$bValidMaster = TRUE;\n\t\t\t\t$thi...
[ "0.6314791", "0.60287625", "0.598497", "0.5910425", "0.58261144", "0.57230276", "0.56661016", "0.5644728", "0.5629792", "0.5585835", "0.55724186", "0.55536824", "0.55191064", "0.5487224", "0.5455173", "0.5418579", "0.5415018", "0.5398268", "0.5366308", "0.53289366", "0.524524...
0.8307118
0
Sets all necessary params for the Search panel added to the non table page
Устанавливает все необходимые параметры для панели поиска, добавленной на страницу, не являющуюся таблицей
function setParamsForSearchPanel() { if(!$this->searchPanelActivated) { return; } include_once(getabspath("classes/searchclause.php")); $this->needSearchClauseObj = true; $seachTableName = $this->getBrickTableName("searchpanel"); if($seachTableName) { //if the brick's table name is set it...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function determine_search_settings()\r\n {\r\n if (Request :: get(self :: PARAM_CATEGORY_ID))\r\n {\r\n $this->set_parameter(self :: PARAM_CATEGORY_ID, intval(Request :: get(self :: PARAM_CATEGORY_ID)));\r\n }\r\n $form = $this->get_search_form();\r\n $this-...
[ "0.7032296", "0.65655565", "0.65040666", "0.63370204", "0.6317725", "0.62792987", "0.6264615", "0.62491685", "0.6220292", "0.6217289", "0.6217289", "0.6196171", "0.6191464", "0.61771595", "0.61763656", "0.61763656", "0.61759484", "0.6169824", "0.6142949", "0.6142932", "0.6128...
0.85862553
0