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
Returns the Updater instance
Возвращает экземпляр Updater
public function getUpdater() { return $this->updater; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getUpdater() {\n $model = $this->loadModel(AuditModel::ACTION_UPDATE);\n return $model !== null ? $this->loadChangerModel($model) : null;\n }", "public function get_updated_instance()\n {\n static::$instance = $this;\n return static::$instance;\n }", "public...
[ "0.72510844", "0.71928024", "0.71561015", "0.7089612", "0.6769705", "0.66292065", "0.6529297", "0.6390397", "0.6333272", "0.6311066", "0.629325", "0.6285468", "0.6225928", "0.60931724", "0.6067062", "0.60510695", "0.59386355", "0.5914204", "0.5906101", "0.5906101", "0.5906101...
0.77092856
0
Check a bulk response array for errors, throw an exception if errors are found.
Проверьте массив bulk-ответа на наличие ошибок, выбросьте исключение, если ошибки найдены.
public function checkBulkResponsesForErrors($response): void;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function logBulkRequestErrors($responseItems)\n {\n $errorsCount = 0;\n foreach ($responseItems as $responseItem) {\n // Get the first element of the response item (its key could be one of index/create/delete/update)\n $action = key($responseItem);\n $actio...
[ "0.68089443", "0.6446692", "0.6263689", "0.62095505", "0.6099306", "0.6099306", "0.6098918", "0.6088649", "0.60093683", "0.58870745", "0.5838853", "0.5811015", "0.57410794", "0.57345545", "0.5720242", "0.57139385", "0.56512225", "0.56362516", "0.563452", "0.5628736", "0.56228...
0.7600944
0
Add the command to the parent instance.
Добавьте команду в родительский экземпляр.
protected function addToParent(SymfonyCommand $command) { return parent::add($command); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function addCommand($command)\r {\r\r $this->commandList[] = $command;\r return $this;\r\r }", "public function addCommand($command) {\n $this->commands[] = $command;\n return $this;\n }", "public function setParentCommand(Command $command)\r\n\t{\r\n\t\t$this->parentComman...
[ "0.66038984", "0.6602652", "0.65825003", "0.6492243", "0.64468265", "0.64075565", "0.63364446", "0.6265555", "0.61009806", "0.604284", "0.6014168", "0.5962982", "0.5913832", "0.5887244", "0.58837426", "0.58289325", "0.58093053", "0.57809806", "0.5744597", "0.57336545", "0.570...
0.7877369
0
Set the exception handler instance.
Установите экземпляр обработчика исключений.
public function setExceptionHandler($handler) { $this->exceptionHandler = $handler; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function _setupExceptionHandler() {\r\n // Get the exception handler class name\r\n $exceptionHandlerClassName = $this->_appConfiguration->getExceptionHandler();\r\n\r\n // If there is no exception handler, stops\r\n if (empty($exceptionHandlerClassName)) {\r\n return...
[ "0.7182002", "0.69891286", "0.69404685", "0.6936979", "0.6906093", "0.68586814", "0.67818373", "0.6751463", "0.67218876", "0.6706339", "0.66911197", "0.6614141", "0.66099185", "0.6576086", "0.65405506", "0.65070546", "0.6493583", "0.64931506", "0.64447993", "0.64029", "0.6354...
0.77619594
0
Returns an array with special chars and correspondent replacements
Возвращает массив с особыми символами и соответствующими заменами
function getSpecialCharsReplacements() { $chars = array( 'À' => 'A', 'Â' => 'A', 'Ä' => 'A', 'Æ' => 'AE', 'È' => 'E', 'Ê' => 'E', 'Ì' => 'I', 'Î' => 'I', 'Ð' => 'D', 'Ò' => 'O', 'Ô' => 'O', 'Ö' => 'O', 'Ø' => 'O', 'Ú' => 'U', 'Ü' => 'U', 'à' => 'a', 'â' => 'a', 'ä' => 'a', '...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function getSpecialCharsArray()\n\t{\n\t\treturn ['!','=','>','<','%'];\n\t}", "public static function getSpecialChars(): array {\n\t\treturn self::$specialChars;\n\t}", "private function update_diacritics_replacement_arrays() {\n\t\t$patterns = array();\n\t\t$replacements = array();\n\n\t\tif ( ! empt...
[ "0.7597616", "0.69150037", "0.684867", "0.68369234", "0.6816231", "0.68043864", "0.67320144", "0.66340697", "0.6510928", "0.6509546", "0.6509546", "0.6435795", "0.63280725", "0.63034153", "0.6279453", "0.6220093", "0.61713", "0.6163669", "0.6142134", "0.61268085", "0.6123871"...
0.80509555
0
Replaces repeated chars inside a string: string becomes string
Заменяет повторяющиеся символы внутри строки: строка становится строкой
function replaceRepeatedChars($string, $char, $replacement) { $pos = strpos($string, $char); if ($pos !== false) { $string = str_replace($char, $replacement, $string); $string = UrlControllerStrings::replaceRepeatedChars($string, $char, $replacement); } return $string; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function RemoveRepeatingLetters($str, $repetitions = 4)\n{\n\t$i = 0;\n\twhile ($i < mb_strlen($str,'UTF-8')){\n\t\t$j = $i;\n\t\t// Traverses the string comparing the first character with the others.\n\t\twhile(mb_substr($str,$j,1,'UTF-8') == mb_substr($str,$j+1,1,'UTF-8'))\n\t\t\t$j++;\n\t\t// Removes the repeti...
[ "0.66827595", "0.6260511", "0.6243087", "0.62092716", "0.61062366", "0.6050178", "0.60013646", "0.5985789", "0.5971086", "0.59555393", "0.5951609", "0.5868155", "0.58418584", "0.58236057", "0.574677", "0.5744321", "0.56799066", "0.56716526", "0.5663951", "0.5626469", "0.56199...
0.7499971
0
Sets up email cron and filters/actions
Настройка email-cron и фильтров/действий
function init() { //enable custom emails if( get_option('dbem_custom_emails') ){ include('custom-emails.php'); } //email reminders add_action('update_option_dbem_emp_emails_reminder_time', array('EM_Emails','clear_crons')); if( get_option('dbem_cron_emails', 1) ) { //set up cron for addint to em...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function runGiftCardMail() {\n $this->runGiftCardCron();\n }", "function send_cron_mail()\n\t{\t\n\t\t# Get the passed details into the form data array if any\n\t\t$urldata = $this->uri->uri_to_assoc(4, array('type'));\n\t\t# Pick all assigned data\n\t\t$data = assign_to_data($urldata);\n\t\t\n\t\tif(i...
[ "0.6997324", "0.68229425", "0.6643887", "0.65318006", "0.6512413", "0.6509667", "0.6489351", "0.64087516", "0.640835", "0.6387251", "0.63865095", "0.6383367", "0.6383235", "0.6383235", "0.6383235", "0.63815814", "0.6366575", "0.6345322", "0.63445425", "0.6335521", "0.6330224"...
0.70373994
0
Cleans unused ical files
Удаляет неиспользуемые файлы ical
function clean_icals(){ global $wpdb; //get theme CSS files $upload_dir = wp_upload_dir(); $icalsearch = trailingslashit($upload_dir['basedir'])."em-cache/invite_*.ics"; foreach( glob( $icalsearch ) as $css_file ){ if( preg_match('/invite_([0-9]+)\.ics$/', $css_file, $matches) ){ ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function clean()\n\t{\n\t\t$this->check();\n\t\t$this->_list[$this->_file] = [];\n\t}", "function _cleanStdCache() {\n $paths = $this->settings['std_cache_paths'];\n\n foreach ($paths as $path) {\n $folder = new Folder($path);\n $contents = $folder->read();\n $files = $contents[1];\n ...
[ "0.64702463", "0.6424929", "0.62928045", "0.61782223", "0.6151994", "0.61289483", "0.6031047", "0.5989238", "0.59858257", "0.5961893", "0.5939854", "0.58613694", "0.5836159", "0.5812768", "0.58113873", "0.58072037", "0.5776691", "0.57587004", "0.5755959", "0.57480264", "0.573...
0.7156992
0
Modifies the PHPMailer class to keep SMTP connections alive.
Модифицирует класс PHPMailer для поддержания SMTP-соединений в активном состоянии.
function em_mailer_mod($mail){ $mail->SMTPKeepAlive = true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function smtpClose()\n {\n }", "public function smtpKeepAlive(bool $keepAlive = true) : Sender\n {\n $this->smtpKeepAlive = $keepAlive;\n\n return $this;\n }", "public function __construct() {\n $this->mail = new PHPMailer( true );\n //Server settings\n $th...
[ "0.6104579", "0.6073037", "0.5874382", "0.5772651", "0.57590854", "0.57385933", "0.5738286", "0.57255566", "0.57142806", "0.56924456", "0.5678143", "0.55619836", "0.5543959", "0.5528955", "0.5521846", "0.5482005", "0.54630435", "0.54165566", "0.5407713", "0.5379655", "0.53647...
0.7150496
0
Cleans up actions taken in em_mailer_mod, currently closing the SMTP connection kept alive.
Очищает действия, выполненные в em_mailer_mod, в настоящее время закрывает SMTP-соединение, оставленное открытым.
function em_mailer_mod_cleanup($mail){ $mail->SmtpClose(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function _close_smtp_conn(){\n\t\t$this->_send_smtp_command(\"QUIT\");\n\t\t@fclose($this->smtp_conn);\n\t}", "public static function SMTP_CLOSE()\n {\n if ((null !== self::$smtp) && self::$smtp::CONNECTED()) {\n self::$smtp::QUIT();\n self::$smtp::CLOSE();\n }\n }", ...
[ "0.7667719", "0.7107166", "0.7085937", "0.692905", "0.6863725", "0.67825836", "0.6743505", "0.6743505", "0.6743505", "0.6743265", "0.67083555", "0.6703345", "0.6678696", "0.6657416", "0.66225994", "0.6585133", "0.6571184", "0.6527737", "0.64803165", "0.64492244", "0.6445266",...
0.80512553
0
verifyEmail > verify if token in url correspond to the token user and if he hasn't validate his account
verifyEmail > проверить, соответствует ли токен в URL токену пользователя и не проверял ли он уже свой аккаунт
public function verifyEmail() { $token = $this->request->query->get("token"); $email = $this->request->query->get("user"); $user = $this->userRepo->findOneBy(["email" => $email]); if($user && $user->getTokenUser()->getStatus() === "verified") { return $status = "already_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function authVerifyEmail()\n\t{\n\t\t$token = $_GET['token'];\n\t\t$email = $_GET['email'];\n\t\ttry\n\t\t{\n\t\t\t//Check if user exists\n\t\t\t$user = Sentry::findUserByLogin($email);\n\t\t\t\n\t\t\t//Verify the code\n\t\t\tif($user->email_verify_code == $token)\n\t\t\t{\n\t\t\t\t//Acticate User\n\t\t\t\...
[ "0.8133727", "0.78242755", "0.7670941", "0.762911", "0.75079495", "0.7388748", "0.7373811", "0.7342052", "0.73368615", "0.7244857", "0.71846294", "0.71774423", "0.716569", "0.71643656", "0.71583414", "0.71444845", "0.7134463", "0.70897114", "0.7069371", "0.6993488", "0.699173...
0.81810755
0
extractUsersNewsLetter > get all the users who submitted to the newsletter
extractUsersNewsLetter > получить всех пользователей, которые подписались на рассылку
public function extractUsersNewsLetter() { $newsUsers = []; $users = $this->userRepo->findBy(['receiveNewsLetter' => true]); foreach($users as $user) { $newsUsers[] = $user->getEmail(); } return $newsUsers; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getNewsletterUsers(): array\n {\n $response = $this->callApi('User_GetAllNewsletter', array('isNotSyncedOnly' => true));\n foreach ($response as $user) {\n $this->allNewsletterUsers[$user->Id] = new User($user);\n }\n return $this->allNewsletterUsers;\n ...
[ "0.6986331", "0.6670985", "0.63903993", "0.6365173", "0.6238625", "0.59818006", "0.59384155", "0.59126633", "0.5887422", "0.58000064", "0.578604", "0.5679339", "0.5636922", "0.563635", "0.56189805", "0.5588838", "0.5564173", "0.5546392", "0.55391693", "0.550713", "0.5497638",...
0.834882
0
Generating a 7 character random string
Генерация 7-символьной случайной строки
function generateRandomString(){ $length = 7; $characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; $charactersLength = strlen($characters); $randomString = ''; for($i = 0; $i < $length; $i++){ $randomString .= $characters[rand(0, $characters...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function generate_random_string($length = 7) {\r\n $characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';\r\n $randomString = '';\r\n for ($i = 0; $i < $length; $i++) {\r\n $randomString .= $characters[rand(0, strlen($characters) - 1)];\r\n }\r\n ...
[ "0.8153448", "0.8145775", "0.80531996", "0.7884092", "0.7881769", "0.78361166", "0.7834839", "0.78268933", "0.78072834", "0.77900505", "0.77808744", "0.77742606", "0.77721614", "0.7771519", "0.77651423", "0.77568173", "0.7756553", "0.7755143", "0.77208364", "0.77190614", "0.7...
0.84269506
0
Returns the latitude as a float it is the first part of the coordinates, before the ',' throws an exception if the coordinates are absent or if they are in a wrong format
Возвращает широту в виде числа с плавающей точкой, которая является первой частью координат, находящейся перед запятой, выбрасывает исключение, если координаты отсутствуют или имеют неправильный формат
public function retrieveLatitude() { $coordinates = explode(',', $this->coordinates); if (sizeof($coordinates) != 2 ) { throw new \Exception( 'impossible to extract the latitude from the coordinates ' . $this->coordinates ); } r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getLatitude() {\n return floatval($this->data[\"latitude\"]);\n }", "public function getLatitude()\n {\n $value = $this->get(self::LATITUDE);\n return $value === null ? (double)$value : $value;\n }", "public function get_latitude(): ?float {\n\t\treturn ! empty( $t...
[ "0.6668012", "0.6600684", "0.65748304", "0.65519464", "0.6326899", "0.6187293", "0.60934585", "0.60827017", "0.60827017", "0.6032817", "0.6022491", "0.6006937", "0.5993468", "0.5992634", "0.5969707", "0.5924705", "0.58460736", "0.58385146", "0.5814204", "0.57986265", "0.57369...
0.8357355
0
Returns the longitude as a float it is the second part of the coordinates, after the ', ' throws an exception if the coordinates are absent or if they are in a wrong format
Возвращает долготу в виде числа с плавающей точкой, которая является второй частью координат, после ', '. Выбрасывает исключение, если координаты отсутствуют или имеют неправильный формат
public function retrieveLongitude() { $coordinates = explode(',', $this->coordinates); if (sizeof($coordinates) != 2 ) { throw new \Exception( 'impossible to extract the longitude from the coordinates ' . $this->coordinates ); } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getLongitude() {\n return floatval($this->data[\"longitude\"]);\n }", "public function get_longitude(): ?float {\n\t\treturn ! empty( $this->get_prop( 'longitude' ) ) ? (float) $this->get_prop( 'longitude' ) : null;\n\t}", "function getLongitude();", "public function get_longitude(s...
[ "0.66724795", "0.6630713", "0.6558453", "0.648322", "0.6436048", "0.6389656", "0.6385262", "0.63436854", "0.6303931", "0.62819016", "0.62819016", "0.6249018", "0.62484086", "0.61871034", "0.6185092", "0.6180848", "0.6122887", "0.61152065", "0.59650505", "0.59529215", "0.59385...
0.80483294
0
Use for edit doctor details
Используйте для редактирования деталей врача
public function editDoctor() { $data = array( 'degree' => $this->_degree, 'payment' => $this->_payment, 'description' => $this->_description, 'change_on' => $this->_changeOn, 'change_by' => $this->_changeBy ); $where = $this->getA...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function edit(Doctor $doctor)\n {\n //\n }", "public function edit(Doctorsledger $doctorsledger)\n {\n //\n }", "public function edit(Doctor $doctor)\n {\n return view('doctors.edit',compact('doctor'));\n }", "public function edit(User $doctor)\n {\n $user = ...
[ "0.75103974", "0.6901713", "0.6598856", "0.654569", "0.6508185", "0.6482787", "0.6459286", "0.6441763", "0.64369714", "0.64369714", "0.64369714", "0.64369714", "0.6403908", "0.6403027", "0.6391026", "0.6355177", "0.6263793", "0.62354684", "0.6234852", "0.6234852", "0.62177134...
0.71148205
1
CHECK_PAYMENT_FORM set $GLOBAL[error] if needed return 1/0 (valid/notvalid)
CHECK_PAYMENT_FORM установить $GLOBAL[error], если это необходимо, вернуть 1/0 (валидно/невалидно)
function check_payment_form(){ global $error; global $vars; global $db; // if (!intval($vars['product_id'])) { $error[] = 'Please select Membership Type'; } if (!strlen($vars['paysys_id'])){ $error[] = 'Please select Payment System'; } if (!strlen($vars['name_f'])...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function gw_validate_payment()\n\t{\n\t\t//--------------------------------------\n\t\t// INIT\n\t\t//--------------------------------------\n\t\t\n\t\t//--------------------------------------\n\t\t// Debug...\n\t\t//--------------------------------------\n\t\t\n\t\tif ( GW_TEST_MODE_ON )\n\t\t{\n\t\t\tif ( ! is_a...
[ "0.7135321", "0.7077587", "0.69732094", "0.69732094", "0.67465234", "0.668065", "0.6639327", "0.66324586", "0.6601466", "0.6566468", "0.65495104", "0.6514571", "0.6489948", "0.64231086", "0.64090234", "0.6403762", "0.6372754", "0.6350806", "0.63182133", "0.62947947", "0.62852...
0.7687265
0
test creating valid profile skill then deleting it
тестирование создания профиля навыка, затем его удаления
public function testInsertValidProfileSkillAndDelete(): void { // count the number of rows and save it for later $numRows = $this->getConnection()->getRowCount("profileSkill"); // create a new Profile Skill and insert into mySQL $profileSkill = new ProfileSkill($this->profile->getProfileId(), $this->skill->getS...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testDeleteSkillSuccess() {\n $objSave = $this->createSkill(\"Some Skill\", $this->skillCatId, $this->adminUser);\n $skillId = $objSave->objectId;\n $result = \\Classes\\Skill::DeleteSkill($skillId);\n $this->assertFalse($result->hasError);\n }", "public function tes...
[ "0.76763725", "0.725444", "0.7241488", "0.7227041", "0.71997786", "0.7166645", "0.7099668", "0.7078043", "0.7020313", "0.6817411", "0.6520006", "0.64511245", "0.6432681", "0.6360034", "0.63597035", "0.6224005", "0.6151708", "0.6065415", "0.6055758", "0.60426503", "0.6020042",...
0.76961035
0
test creating valid profile skill then verifying that it matches the SQL data
тестирование создания профиля навыка, затем проверка того, что он соответствует данным SQL
public function testInsertValidProfileSkill(): void { // count the number of rows and save it for later $numRows = $this->getConnection()->getRowCount("profileSkill"); // create a new Profile Skill and insert into mySQL $profileSkill = new ProfileSkill($this->profile->getProfileId(), $this->skill->getSkillId())...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testInsertValidProfileSkillAndDelete(): void {\n\t\t// count the number of rows and save it for later\n\t\t$numRows = $this->getConnection()->getRowCount(\"profileSkill\");\n\t\t// create a new Profile Skill and insert into mySQL\n\t\t$profileSkill = new ProfileSkill($this->profile->getProfileId(),...
[ "0.7456745", "0.73048997", "0.70532966", "0.7045946", "0.7012457", "0.69887257", "0.6967284", "0.6937407", "0.6927421", "0.6804578", "0.67916745", "0.67443043", "0.67253625", "0.6708941", "0.66611505", "0.66533476", "0.6644097", "0.6605104", "0.65725404", "0.6571107", "0.6568...
0.7932068
0
test getting profile skills by skill id
тест получения навыков профиля по идентификатору навыка
public function testGetProfileSkillByProfileSkillSkillId(): void { // count the number of rows and save it for later $numRows = $this->getConnection()->getRowCount("profileSkill"); // create a new Profile Skill and insert into mySQL $profileSkill = new ProfileSkill($this->profile->getProfileId(), $this->skill->...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testGetProfileSkillByProfileSkillProfileId(): void {\n\t\t// count the number of rows and save it for later\n\t\t$numRows = $this->getConnection()->getRowCount(\"profileSkill\");\n\t\t// create a new Profile Skill and insert into mySQL\n\t\t$profileSkill = new ProfileSkill($this->profile->getProfil...
[ "0.72044605", "0.69594735", "0.68326527", "0.67788464", "0.6560966", "0.6528789", "0.6478738", "0.6455508", "0.636329", "0.63625973", "0.6274286", "0.6235115", "0.62343234", "0.62163043", "0.6206004", "0.6197206", "0.61886007", "0.61276066", "0.60565317", "0.605623", "0.60387...
0.753547
0
test getting profile skill by profile id
тест получения навыка профиля по идентификатору профиля
public function testGetProfileSkillByProfileSkillProfileId(): void { // count the number of rows and save it for later $numRows = $this->getConnection()->getRowCount("profileSkill"); // create a new Profile Skill and insert into mySQL $profileSkill = new ProfileSkill($this->profile->getProfileId(), $this->skill...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testGetProfileSkillByProfileSkillSkillId(): void {\n\t\t// count the number of rows and save it for later\n\t\t$numRows = $this->getConnection()->getRowCount(\"profileSkill\");\n\t\t// create a new Profile Skill and insert into mySQL\n\t\t$profileSkill = new ProfileSkill($this->profile->getProfileI...
[ "0.7353927", "0.69646883", "0.6806752", "0.6590975", "0.65798724", "0.6493216", "0.64012975", "0.6342214", "0.6233393", "0.6206576", "0.6202322", "0.6190927", "0.6167009", "0.61631185", "0.6153589", "0.6118957", "0.608196", "0.60771424", "0.6071627", "0.60708195", "0.60403794...
0.7469746
0
test getting a profile skill by negative skill id
тест получения профиля навыка по отрицательному идентификатору навыка
public function testGetProfileSkillByNegativeProfileSkillProfileId(): void { // grab a profile skill id that exceeds the maximum allowable profile skill id $profileSkill = ProfileSkill::getProfileSkillsByProfileSkillProfileId($this->getPDO(), -1); $this->assertCount(0, $profileSkill); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testGetProfileSkillByNegativeProfileSkillSkillId(): void {\n\t\t// grab a profile skill id that exceeds the maximum allowable profile skill id\n\t\t$profileSkill = ProfileSkill::getProfileSkillsByProfileSkillSkillId($this->getPDO(), -1);\n\t\t$this->assertCount(0, $profileSkill);\n\t}", "public f...
[ "0.78770524", "0.68780404", "0.6861643", "0.6802174", "0.66518164", "0.6365408", "0.6103862", "0.6030204", "0.59911466", "0.59758", "0.5907782", "0.59061915", "0.5870646", "0.58575207", "0.5855208", "0.5848175", "0.5846973", "0.5810049", "0.5803177", "0.57755744", "0.5712083"...
0.7785009
1
test getting a profile skill by negative profile id
тестирование получения навыка профиля по отрицательному идентификатору профиля
public function testGetProfileSkillByNegativeProfileSkillSkillId(): void { // grab a profile skill id that exceeds the maximum allowable profile skill id $profileSkill = ProfileSkill::getProfileSkillsByProfileSkillSkillId($this->getPDO(), -1); $this->assertCount(0, $profileSkill); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testGetProfileSkillByNegativeProfileSkillProfileId(): void {\n\t\t// grab a profile skill id that exceeds the maximum allowable profile skill id\n\t\t$profileSkill = ProfileSkill::getProfileSkillsByProfileSkillProfileId($this->getPDO(), -1);\n\t\t$this->assertCount(0, $profileSkill);\n\t}", "publ...
[ "0.7903236", "0.6974331", "0.6903114", "0.68686736", "0.68007094", "0.6172354", "0.61648387", "0.6133606", "0.61037636", "0.60975933", "0.5960031", "0.59379846", "0.58840364", "0.58632463", "0.5852931", "0.5808985", "0.57705677", "0.5766897", "0.5740411", "0.5736382", "0.5712...
0.78412586
1
Settings form for editing a branch/entity
Форма настроек для редактирования ветки/сущности
function ualib_contorls_admin_branch_form(&$form_state, $branch = NULL){ if ($branch){ $edit = (array)$branch; } else{ $edit = NULL; } $form['branch_settings']['lib_name'] = array( '#type' => 'textfield', '#title' => t('Name'), '#default_value' => $edit['lib_name'], '#size' => 40, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function editBranch(){\n\t\t\t$id = $_POST['Id'];\n\t\t\t$name = $_POST['name'];\n\t\t\t$description = $_POST['description'];\n\t\t\t$address = $_POST['address'];\n\t\t\trequire 'models/Transport_model.php';\n\t\t\t$model = new Transport_model();\n\n\t\t\t$model->editBranch($id,$name,$description,$address);...
[ "0.7026619", "0.69842666", "0.68572944", "0.6820511", "0.67592245", "0.6749267", "0.6398185", "0.6395162", "0.62365067", "0.6143904", "0.6087687", "0.6077314", "0.60758984", "0.6055947", "0.6038013", "0.60333246", "0.60279435", "0.60133564", "0.6006785", "0.59800553", "0.5971...
0.7051166
0
/ Helper Functions _ualib_load_branches() Returns all branches/entities registered in the ualib_controls SQL table
/ Вспомогательные функции _ualib_load_branches() Возвращает все ветви/сущности, зарегистрированные в таблице ualib_controls SQL
function _ualib_load_branches(){ $branches = array(); $result = db_query("SELECT * FROM {ualib_data} ORDER BY lib_name"); while ($row = db_fetch_object($result)){ $branches[] = $row; } return $branches; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function branches() {\n $achievements = new Achievement();\n $list = array();\n\t\t$player = User::getUser();\n \n\t\tif($player->canAccess('Edit achievement information') === FALSE) {\n\t\t\tDooUriRouter::redirect(MainHelper::site_url('admin'));\n\t\t}\n...
[ "0.6295676", "0.6214442", "0.61751205", "0.59211665", "0.57301545", "0.5674803", "0.567195", "0.56618947", "0.5533714", "0.540848", "0.54020756", "0.53946376", "0.53410804", "0.532638", "0.52836764", "0.52763647", "0.52755654", "0.5270088", "0.5250208", "0.52394557", "0.52327...
0.7764256
0
Check if file is on the edit list.
Проверить, находится ли файл в списке редактирования.
function ft_check_edit($file) { global $ft; // Check against file blacklist. if ($ft['plugins']['edit']['settings']['editlist'] != "") { $list = explode(" ", $ft['plugins']['edit']['settings']['editlist']); if (in_array(ft_get_ext(strtolower($file)), $list)) { return TRUE; } else { return FALSE;...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function isEditable($file) {\n\t\t$p = pathinfo($this->basedir.$file);\n\n\t\t$type = $p['extension'];\n\n\t\t// TODO: Fetch from $TYPO3_CONF_VARS['EXT']['extConf']['mjj_filemanager']\n\t\t// TODO: match using regular expressions\n\t\tif (in_array($type, array('txt', 'php', 'css', 'js', 'html', 'htm', 'xml'))) {\n...
[ "0.72648627", "0.70530325", "0.6816834", "0.6754122", "0.6658339", "0.6658339", "0.6658339", "0.6537611", "0.65371567", "0.65308285", "0.65269774", "0.6526047", "0.65153956", "0.6469458", "0.645798", "0.64506567", "0.63926303", "0.63683057", "0.63543916", "0.63502246", "0.634...
0.81666696
0
/ Following functions are make API request for realtime loan offers,creating loan application etc. Which accepts $url i.e API endpoint , $data is the customers loan application details & $authorizationField is a authorization key (This is to be set during extension configuration in admin panel)
// Следующие функции используются для отправки запросов API в режиме реального времени о предложениях по кредитам, создания заявки на кредит и т.д. Они принимают $url, то есть конечную точку API, $data — детали заявки клиента на кредит, а $authorizationField — ключ авторизации (этот параметр должен быть задан во время ...
function masterCurlRequestToClxAPIs($api,$data=FALSE,$loanOfferId=FALSE,$applicationId=FALSE){ $authorizationField = Mage::getStoreConfig('payment/clxfunding/authorization_field'); $accountId = Mage::getStoreConfig('payment/clxfunding/account_id'); if(isset($api) && !empty($api)){ if...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function apiRequest($params = array()) {\n\n $authRole = $params['auth_role'];\n $authId = $params['auth_id'];\n\n $method = $params['method'];\n $data = $params['data']; // Object / App Data\n\n $postData = $data;\n\n $url = $params['url'];\n $url .= \"?auth_role=\" . $authRole . \"&auth_id=\" . $authId;\n...
[ "0.63293403", "0.6268784", "0.6177018", "0.5951098", "0.591098", "0.58989316", "0.58988166", "0.58797073", "0.58469933", "0.58400077", "0.5805498", "0.58038175", "0.5788547", "0.5767021", "0.57451916", "0.5742038", "0.56950057", "0.56949604", "0.5686027", "0.56847185", "0.568...
0.7122433
0
Model of the camera with which the photo was taken. Generated from protobuf field string camera_model = 2;
Модель камеры, с которой была сделана фотография. Генерируется из поля protobuf string camera_model = 2;
public function getCameraModel() { return $this->camera_model; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setCameraModel($var)\n {\n GPBUtil::checkString($var, True);\n $this->camera_model = $var;\n\n return $this;\n }", "public function getCameraMake()\n {\n return $this->camera_make;\n }", "public function model()\n {\n return SecurityCam::class;\...
[ "0.7309927", "0.6499324", "0.6148788", "0.5962317", "0.5785736", "0.54268235", "0.5392865", "0.53084207", "0.5172067", "0.4927861", "0.49059245", "0.48573503", "0.4835102", "0.47812513", "0.47621897", "0.47586456", "0.47337538", "0.47251886", "0.47210553", "0.47142994", "0.46...
0.7678337
0
Model of the camera with which the photo was taken. Generated from protobuf field string camera_model = 2;
Модель камеры, с которой был сделан снимок. Сгенерировано из поля protobuf string camera_model = 2;
public function setCameraModel($var) { GPBUtil::checkString($var, True); $this->camera_model = $var; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCameraModel()\n {\n return $this->camera_model;\n }", "public function getCameraMake()\n {\n return $this->camera_make;\n }", "public function model()\n {\n return SecurityCam::class;\n }", "public function faceDetectionModel() { return $this->faceDet...
[ "0.7678844", "0.6498983", "0.6149089", "0.59630495", "0.57864445", "0.54276097", "0.5392666", "0.5308082", "0.5171511", "0.492789", "0.49066734", "0.48573422", "0.48336074", "0.47819978", "0.47624648", "0.47573483", "0.47357112", "0.4725198", "0.47212356", "0.47157454", "0.46...
0.7310826
1
Focal length of the camera lens with which the photo was taken. Generated from protobuf field float focal_length = 3;
Фокусное расстояние объектива камеры, с которым был сделан снимок. Генерируется из поля protobuf float focal_length = 3;
public function getFocalLength() { return $this->focal_length; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFocalLength()\n {\n return $this->_focalLength;\n }", "public function setFocalLength($var)\n {\n GPBUtil::checkFloat($var);\n $this->focal_length = $var;\n\n return $this;\n }", "public function setFocalLength($value)\n {\n $this->_focalLeng...
[ "0.79752827", "0.76793337", "0.73124576", "0.510159", "0.5010903", "0.49014044", "0.48809183", "0.47813824", "0.47589406", "0.46990445", "0.46849373", "0.46036625", "0.45843568", "0.456718", "0.45654926", "0.4521613", "0.45212305", "0.4516147", "0.4507492", "0.4497736", "0.44...
0.8028688
0
Aperture f number of the camera lens with which the photo was taken. Generated from protobuf field float aperture_f_number = 4;
Значение числа f диафрагмы объектива камеры, с которой была сделана фотография. Сгенерировано из поля protobuf float aperture_f_number = 4;
public function getApertureFNumber() { return $this->aperture_f_number; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setApertureFNumber($var)\n {\n GPBUtil::checkFloat($var);\n $this->aperture_f_number = $var;\n\n return $this;\n }", "public function getFocalLength()\n {\n return $this->_focalLength;\n }", "public function getFocalLength()\n {\n return $this->...
[ "0.6828121", "0.53441685", "0.5287042", "0.51517403", "0.47704494", "0.476302", "0.46961612", "0.46498147", "0.46492493", "0.463647", "0.46056643", "0.45701095", "0.45645282", "0.45040238", "0.44555694", "0.44099945", "0.43637142", "0.43284252", "0.43175027", "0.43174192", "0...
0.761368
0
Exposure time of the camera aperture when the photo was taken. Generated from protobuf field .google.protobuf.Duration exposure_time = 6;
Время открытой диафрагмы камеры при съемке фотографии. Сгенерировано из поля protobuf .google.protobuf.Duration exposure_time = 6;
public function getExposureTime() { return isset($this->exposure_time) ? $this->exposure_time : null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setExposureTime($var)\n {\n GPBUtil::checkMessage($var, \\Google\\Protobuf\\Duration::class);\n $this->exposure_time = $var;\n\n return $this;\n }", "function exif_get_exposure($exif_data)\n\t{\n\t\tif (!isset($exif_data['ShutterSpeedValue']) && !isset($exif_data['Expos...
[ "0.74915904", "0.64269114", "0.5954966", "0.5197452", "0.51597244", "0.5114594", "0.5086181", "0.5082152", "0.50633025", "0.49734467", "0.495267", "0.49307126", "0.49294615", "0.49267432", "0.4925967", "0.49111167", "0.4892602", "0.48727793", "0.48575762", "0.4818498", "0.475...
0.72933465
1
Exposure time of the camera aperture when the photo was taken. Generated from protobuf field .google.protobuf.Duration exposure_time = 6;
Время открытой диафрагмы камеры при съемке фотографии. Сгенерировано из поля protobuf .google.protobuf.Duration exposure_time = 6;
public function setExposureTime($var) { GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); $this->exposure_time = $var; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getExposureTime()\n {\n return isset($this->exposure_time) ? $this->exposure_time : null;\n }", "function exif_get_exposure($exif_data)\n\t{\n\t\tif (!isset($exif_data['ShutterSpeedValue']) && !isset($exif_data['ExposureTime'])) return 0;\n\t\tif (isset($exif_data['ExposureTime']))\n...
[ "0.729435", "0.6425646", "0.59552383", "0.5197567", "0.5157874", "0.51140493", "0.5086326", "0.5083547", "0.50628966", "0.49727616", "0.49516383", "0.4929496", "0.4929299", "0.49253294", "0.49242803", "0.49095482", "0.48920995", "0.48732916", "0.48591754", "0.48189694", "0.47...
0.74925673
0
Create channel entries for a member
Создать записи канала для члена
public function create_member_entries($member_id, $member_data, $settings, $from_cp = FALSE) { $channel_ids = $settings['sr_member_channels_populate_on_member_register']; $success = TRUE; if(count($channel_ids) > 0) { ee()->load->library('api'); ee()->api->ins...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function run()\n {\n $channel = Channel::create([\n 'name' => 'general',\n 'description' => 'Description for the general channel for Chatty'\n ]);\n\n User::all()->each(function (User $user) use ($channel) {\n $channel\n ->members()\n ...
[ "0.61194193", "0.58021265", "0.55739295", "0.5537926", "0.5529428", "0.54722065", "0.54359525", "0.5409942", "0.5364859", "0.534489", "0.53195304", "0.5317965", "0.5310089", "0.52731395", "0.52669805", "0.52661985", "0.5247093", "0.522334", "0.5171824", "0.5164844", "0.516027...
0.7168901
0
Get details about a specific video by GUID:
Получить сведения о конкретном видео по GUID:
function videopress_get_video_details( $guid ) { if ( ! videopress_is_valid_guid( $guid ) ) { return new WP_Error( 'bad-guid-format', __( 'Invalid Video GUID!', 'jetpack' ) ); } $version = '1.1'; $endpoint = sprintf( '/videos/%1$s', $guid ); $response = wp_remote_get( sprintf( 'https://public-api.wordpress.com...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getVideoDetails($video_id){\n\n }", "public function queryMediaInfoByVideoId(array $param);", "function getVideoByVideoId($params)\r\n\t\t{\r\n\t\t\t$sql = \"select * from video where id=?\";\r\n\t\t\t$types= array('integer');\r\n\t\t\t$res = $this->execute_query($sql,$params,$types);\r\n\t\...
[ "0.7425713", "0.71918976", "0.6956405", "0.65402174", "0.6513815", "0.64768773", "0.64581984", "0.6456966", "0.64477956", "0.6433516", "0.6393605", "0.63912666", "0.63752234", "0.6347108", "0.6343865", "0.6309572", "0.63015616", "0.62967354", "0.62739617", "0.6271994", "0.626...
0.76817644
0
Get the number of Mark
Получить число Марка
public function getTotalMark() { return $this->totalMark; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getMark()\n {\n $questions = 0;\n foreach ($this->getQuestions() as $question) {\n if ($question->question_type_id === \\app\\models\\QuestionType::TYPE_THREE_QUESTION) {\n $questions += 3;\n } else {\n $questions++;\n ...
[ "0.67637336", "0.6639189", "0.6639189", "0.663125", "0.6448824", "0.6380095", "0.6379217", "0.63059616", "0.6286024", "0.6264442", "0.6189251", "0.6158526", "0.61168617", "0.6115287", "0.61148274", "0.6072055", "0.6005929", "0.6001363", "0.5994852", "0.5987475", "0.59843403",...
0.73764986
0
Get certificates for which we have a picture.
Получить сертификаты, для которых у нас есть изображение.
public function getCertificatesWithMedia() { $certificates = array(); /** @var Certificate $certificate */ foreach ($this->certificates as $certificate) { if ($certificate->getMedia()) { $certificates[] = $certificate; } } return $cer...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCertificates() {\n\t\t\tif (is_array($this->arCertificates)) return $this->arCertificates; \n\t\t\t$arCertificates = array(); \n\t\t\t$oCertificates = new database(\"select c.* from tblUserCertificates u inner join tblCertificates c on u.certificate = c.id where u.user = \" . $this->iID . \";\",...
[ "0.7256222", "0.6746282", "0.668892", "0.6590361", "0.65496564", "0.6548855", "0.6403", "0.6348316", "0.6243369", "0.61204505", "0.60799706", "0.604586", "0.60372347", "0.6035164", "0.60056704", "0.5982663", "0.59712166", "0.5966097", "0.59513664", "0.5900496", "0.5879488", ...
0.70963913
1
Try to find registered member commands of this master through all application commands
Попробуйте найти зарегистрированные команды члена этого мастера среди всех команд приложения
protected function findMembers() { foreach($this->getApplication()->all() as $command) { if ($command instanceof MemberCommand) { if ($command->getMaster() == $this->getName()) { $command->setMasterAccess(); $this->members[] = $command; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function _discoverCommands() {\n // make sure all php files below us are loaded\n $iterator = new RecursiveIteratorIterator(\n new RecursiveDirectoryIterator($this->_dir)\n );\n foreach ($iterator as $file => $info) {\n if ($info->getExtension() === 'php') {\n include_once $f...
[ "0.6706726", "0.6541587", "0.6509457", "0.63607603", "0.6269954", "0.6269954", "0.6269954", "0.6269325", "0.6251952", "0.62472266", "0.61570793", "0.6151631", "0.61401993", "0.6101504", "0.6045612", "0.6038207", "0.6019621", "0.6019621", "0.6011073", "0.6010126", "0.6010126",...
0.8049173
0
Abstract function that provides main logic of command itself Must be realized in every created master command
Абстрактная функция, которая предоставляет основную логику команды. Должна быть реализована в каждой созданной мастер-команде
abstract protected function masterExecute(InputInterface $input, OutputInterface $output);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function runCommand();", "protected function executeMain()\n {\n\n }", "abstract protected function getCommand();", "public function main() {\n\t\t$this->prepareLi3Exec();\n\t\tparent::main();\n }", "protected function commands()\n {\n\n }", "abstract protected function...
[ "0.7674814", "0.701725", "0.6887938", "0.6792625", "0.671211", "0.6665345", "0.6660323", "0.6609092", "0.6560781", "0.6550881", "0.653316", "0.6527813", "0.6512571", "0.6484413", "0.6484413", "0.645531", "0.6416313", "0.6367483", "0.6347314", "0.6347184", "0.6347184", "0.63...
0.70863277
1
Get style assigned to total object
Получить стиль, назначенный объекту total
public function getStyle() { return $this->getTotal()->getStyle(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getStyle() { return $this->_style; }", "function getStyle() { return $this->_style; }", "function getStyle() { return $this->_style; }", "function getStyle() { return $this->_style; }", "function getStyle() { return $this->_style; }", "public function getStyleTotals(){\n \treturn array(\n\t\t...
[ "0.7436438", "0.7436438", "0.7436438", "0.7436438", "0.7436438", "0.73488677", "0.7300926", "0.71736914", "0.6985775", "0.6971695", "0.6971695", "0.6961877", "0.69122696", "0.6912022", "0.6899826", "0.6861723", "0.6861723", "0.684367", "0.6825729", "0.67675173", "0.66947865",...
0.83490855
0
To get lead source daily report
Чтобы получить ежедневный отчет о источниках лидов
public function lead_source_daily_report() { $year_month = date('Y-m', strtotime($this->input->post('value'))); $ex_val = explode('-', $year_month); $no_of_days_in_month = cal_days_in_month(CAL_GREGORIAN, $ex_val[1], $ex_val[0]); $data['lead_source_lists'] = $this->Report_model->lead_source_daily_report($year_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function dailyReport(){\n\t\t$this->checkYesterdayReport();\n\t\t$this->todayReport();\n\t}", "function daily_report($date_for_daily){\n\n $datepick_temp = $date_for_daily;\n $datepick = date(\"Y-m-d\", strtotime($datepick_temp));\n $date_part = explode(\"-\", $datepick_temp);\n ...
[ "0.66652304", "0.62690145", "0.6239182", "0.61575806", "0.6065839", "0.6036409", "0.60276824", "0.60194945", "0.5984997", "0.5945714", "0.5945714", "0.59127384", "0.58464485", "0.5825766", "0.5820364", "0.58126473", "0.5805928", "0.5800822", "0.5775079", "0.57684594", "0.5762...
0.7244247
0
To show lead source month report
Для отображения отчета по месяцу источника лидов
public function lead_source_month_report() { $year = $this->input->post('value'); // $no_of_month_in_year = 12; $ex_val = explode('-', $year); // echo $ex_val[0]; // echo $ex_val[1]; // die(); $no_of_month_in_year = array('04-'.$ex_val[0],'05-'.$ex_val[0],'06-'.$ex_val[0],'07-'.$ex_val[0],'08-'.$ex_v...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function oppo_source_month_report()\n\t{\n\t $year = $this->input->post('value');\n\t\t$no_of_month_in_year = 12;\n\t\t$data['lead_source_lists'] = $this->Report_model->oppo_source_month_report($year, $no_of_month_in_year);\n\t\t$data['no_of_month_in_year'] = $no_of_month_in_year;\n\t\t$data['f_year'] = ...
[ "0.76046455", "0.67675734", "0.66850215", "0.64770234", "0.6398679", "0.6353117", "0.62373585", "0.60259074", "0.59980047", "0.5997163", "0.5988311", "0.59805757", "0.5979503", "0.597232", "0.59546393", "0.59490657", "0.5938517", "0.5933951", "0.5920045", "0.5890968", "0.5876...
0.76578057
0
To show lead source month report
Для отображения отчета о месячном источнике лидов
public function oppo_source_month_report() { $year = $this->input->post('value'); $no_of_month_in_year = 12; $data['lead_source_lists'] = $this->Report_model->oppo_source_month_report($year, $no_of_month_in_year); $data['no_of_month_in_year'] = $no_of_month_in_year; $data['f_year'] = $year; $data['lead_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function lead_source_month_report()\n\t{\n\t $year = $this->input->post('value');\n\t\t// $no_of_month_in_year = 12;\n\n\t\t$ex_val = explode('-', $year);\n\t\t// echo $ex_val[0];\n\t\t// echo $ex_val[1];\n\t\t// die();\n\t\t$no_of_month_in_year = array('04-'.$ex_val[0],'05-'.$ex_val[0],'06-'.$ex_val[0],...
[ "0.76578057", "0.67675734", "0.66850215", "0.64770234", "0.6398679", "0.6353117", "0.62373585", "0.60259074", "0.59980047", "0.5997163", "0.5988311", "0.59805757", "0.5979503", "0.597232", "0.59546393", "0.59490657", "0.5938517", "0.5933951", "0.5920045", "0.5890968", "0.5876...
0.76046455
1
A URL that will provide the latest version of this module.
URL, который предоставит последнюю версию этого модуля.
public function customModuleLatestVersionUrl(): string { return 'https://github.com/webtrees/example-module/raw/main/latest-version.txt'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getVersionUrl()\n {\n return $this->version_url;\n }", "public function getVersionUrl()\n {\n return $this->versionUrl;\n }", "public function getModuleReleaseUrl(): string\n {\n return self::MODULE_RELEASE_URL;\n }", "function version($version)\n {\n...
[ "0.7470288", "0.7460119", "0.68862385", "0.66650873", "0.6587142", "0.65261173", "0.6485107", "0.6452554", "0.64335436", "0.6409105", "0.6405155", "0.63767624", "0.63753074", "0.63620216", "0.63271916", "0.62884706", "0.6237011", "0.61949456", "0.6191314", "0.61864096", "0.61...
0.79602396
0
function to test when POST /api/payment with no payment_name request and the response will return 422 (unprocessable entity)
функция для тестирования при POST /api/payment без имени платежа в запросе и ответ вернёт 422 (неприемлемый сущность)
public function test_request_should_fail_when_no_payment_name() { $this->json('POST', '/api/payments',[]) ->assertStatus(422) ->assertJsonValidationErrors('payment_name'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function test_request_should_pass_when_has_payment_name()\n {\n $this->json('POST', '/api/payments', ['payment_name' => $this->faker->name])\n ->assertStatus(200)\n ->assertJsonMissingValidationErrors(['payment_name']);\n }", "public function test_request_should_fail_w...
[ "0.8816162", "0.77370447", "0.7420929", "0.73383707", "0.7320216", "0.7234155", "0.6832727", "0.6832727", "0.67771775", "0.666539", "0.6625554", "0.6619893", "0.661099", "0.65255684", "0.6409059", "0.6387042", "0.63839173", "0.6380919", "0.63792956", "0.63637704", "0.6353395"...
0.88486403
0
funtion to test when POST /api/payments with payment_name request and the response will return 200 (ok)
Функция для тестирования при отправке POST /api/payments с запросом payment_name и ответ будет возвращать 200 (ок)
public function test_request_should_pass_when_has_payment_name() { $this->json('POST', '/api/payments', ['payment_name' => $this->faker->name]) ->assertStatus(200) ->assertJsonMissingValidationErrors(['payment_name']); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testSuccessfulPostPayment()\n {\n $data = [\n \"payment_name\" => \"payment name 1\",\n\n ];\n\n $this->json('POST', 'api/v1/payment', $data, ['Accept' => 'application/json'])\n ->assertStatus(201)\n ->assertJson([\n \"msg\" =>...
[ "0.80079454", "0.75377405", "0.7530501", "0.74254984", "0.7137934", "0.7085116", "0.7008687", "0.69760555", "0.6936804", "0.6904954", "0.67197645", "0.6688299", "0.6678472", "0.65911216", "0.6567563", "0.6541253", "0.6506637", "0.6481921", "0.6470934", "0.64684224", "0.643744...
0.8337116
0
function to test when DELETE /api/payments with no payment_id param the response will return 422 (unprocessable entity)
функция для тестирования, когда отправляется DELETE /api/payments без параметра payment_id, ответ вернёт 422 (неприемлемое содержимое)
public function test_request_should_fail_when_no_payment_id() { $this->json('DELETE', '/api/payments', []) ->assertStatus(422) ->assertJsonValidationErrors('payment_id'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function test_request_shoud_pass_when_has_payment_id()\n {\n $this->json('DELETE', '/api/payments', ['payment_id' => '46'])\n ->assertStatus(200)\n ->assertJsonMissingValidationErros(['payment_id']);\n }", "public function test_can_delete_payment()\n { \n ...
[ "0.8910291", "0.7900704", "0.7736686", "0.7129354", "0.70855707", "0.70642847", "0.69900703", "0.6934354", "0.68768597", "0.6784606", "0.67822343", "0.6761529", "0.67406386", "0.67359036", "0.6680309", "0.6660347", "0.66319394", "0.6531653", "0.65312135", "0.65134263", "0.650...
0.8800795
1
funtion to test when DELETE /api/payments with payment_id param the response will return 200 (ok)
функция для тестирования, когда DELETE /api/payments с параметром payment_id, ответ вернёт 200 (ок)
public function test_request_shoud_pass_when_has_payment_id() { $this->json('DELETE', '/api/payments', ['payment_id' => '46']) ->assertStatus(200) ->assertJsonMissingValidationErros(['payment_id']); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function test_can_delete_payment()\n { \n $data =$this->paymentDataHelper(); \n $response = $this->postJson('v1/payment', $data);\n $payment = Payment::first();\n \n $response = $this->json('DELETE', 'v1/payment/'.$payment->id); \n $response->assertS...
[ "0.8275134", "0.81800425", "0.7806574", "0.7511494", "0.725114", "0.7172898", "0.7167708", "0.71465856", "0.70812184", "0.70658463", "0.70166713", "0.6925273", "0.69195485", "0.6859983", "0.68383396", "0.68189555", "0.680861", "0.67448044", "0.6734913", "0.6711662", "0.670635...
0.8752686
0
Test failed add method
Метод add не прошёл тест
public function testAddFailed() { $this->post('/forum/cpus-andoverclocking/anandtech-intels-skylake-sp-xeon-vs-amds-epyc-7000/4/report', ['message' => '']); $this->assertResponseOk(); $this->assertSession('The report could not be saved. Please, try again.', 'Flash.flash.0.message'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testRemoveFail()\n {\n }", "public function testAddingTaskFail()\n {\n \t$this->json('POST', '/api/tasks',\n \t\t[]\n\t\t)->seeJsonEquals([\n\t\t\t\"The name field is required.\",\n\t\t\t\"The user id field is required.\"\n\t\t]);\n }", "public function testAddInvalid()\n {...
[ "0.71740246", "0.67844015", "0.67399424", "0.6738632", "0.6714811", "0.6712876", "0.66470665", "0.66056484", "0.6581675", "0.65795976", "0.65772414", "0.6546107", "0.65448314", "0.65330046", "0.6529983", "0.6480601", "0.642557", "0.64056903", "0.63768786", "0.637008", "0.6357...
0.7552753
0
Sets the sql compiler
Устанавливает компилятор SQL
public function setCompiler(ISqlCompiler $sqlCompiler);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setCompiler(Compiler $compiler);", "protected function compileSQL() { }", "public function testSetCompiler()\n {\n // Remove the following lines when you implement this test.\n $this->markTestIncomplete(\n 'This test has not been implemented yet.'\n );\n }"...
[ "0.6752797", "0.6651641", "0.6498892", "0.6420479", "0.61016387", "0.59101564", "0.57722396", "0.5744432", "0.56952226", "0.5670085", "0.5670085", "0.5623876", "0.55956244", "0.55131245", "0.5482224", "0.5469906", "0.54691064", "0.5467653", "0.5467653", "0.5458666", "0.543644...
0.76694226
0
/ PUBLIC METHODS Generates sql according to the given sql statement.
/ ПУБЛИЧНЫЕ МЕТОДЫ Генерирует sql в соответствии с заданным sql-запросом.
public function GenerateSql($sqlStatement);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected function genSQL();", "private function getSql()\n\t{\n\t\t$sql = 'SELECT';\n\t\tif ($this->distinct){\n\t\t\t$sql .= ' DISTINCT';\n\t\t}\n\t\tif (empty($this->select_sql)){\n\t\t\t$this->select(['*']);\n\t\t}\n\t\t$sql .= ' '.implode(',',$this->select_sql);\n\t\tif ($this->entity->getDbTable()...
[ "0.774318", "0.7495528", "0.74605995", "0.74545664", "0.7433765", "0.74261147", "0.73821574", "0.72981215", "0.72724783", "0.7267379", "0.7175841", "0.715761", "0.7109119", "0.70784134", "0.6880652", "0.6859342", "0.6856453", "0.68562335", "0.6822821", "0.6775123", "0.6770848...
0.80640733
0
Gets the value of paciente.
Получает значение paciente.
public function getPaciente() { return $this->paciente; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPaciente_id()\n {\n return $this->paciente_id;\n }", "function getNCodigoPaciente() {\n return $this->nCodigoPaciente;\n }", "public function get_paciente()\n {\n \n // loads the associated object\n if (empty($this->paciente))\n $this...
[ "0.749608", "0.70999265", "0.7077031", "0.68772656", "0.6834301", "0.68148255", "0.63648605", "0.63407713", "0.6266394", "0.6220147", "0.62054914", "0.6205181", "0.6202694", "0.6192805", "0.6168496", "0.6166739", "0.6164771", "0.61588556", "0.6157092", "0.6152236", "0.6141954...
0.81250846
0
Sets the value of paciente.
Устанавливает значение paciente.
public function setPaciente(Paciente $paciente) { $this->paciente = $paciente; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function set_paciente(Pacientes $object)\n {\n $this->paciente = $object;\n $this->paciente_id = $object->id;\n }", "public function getPaciente()\n {\n return $this->paciente;\n }", "function set(){\n \t$this->estado=\"logueado\";\n \t$this->usuario=$this-...
[ "0.668963", "0.61546904", "0.61445314", "0.61166525", "0.60492116", "0.5978595", "0.5973863", "0.5929026", "0.56879675", "0.5663884", "0.5643835", "0.5611081", "0.56024015", "0.5595102", "0.5576613", "0.5573097", "0.5564407", "0.55556524", "0.5522536", "0.5514897", "0.5496182...
0.7116955
0
Delete album content: Deletes all images, comments, rates, imagefiles, etc.
Удалить содержимое альбома: Удаляет все изображения, комментарии, оценки, файлы изображений и т.д.
public function delete_album_content($album_id) { global $cache, $db, $phpbb_dispatcher, $table_prefix, $config, $phpbb_container; $phpbb_ext_gallery_core_image = $phpbb_container->get('phpbbgallery.core.image'); $phpbb_gallery_notification = new \phpbbgallery\core\notification(); $phpbb_gallery_config = $phpb...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function deleted(Album $album)\n {\n if ($album->images()->exists()) {\n $this->deleteFiles($album);\n $imageIds = $album->images()->pluck('id')->toArray();\n DB::table('images')->whereIn('id', $imageIds)->delete();\n }\n }", "public function actionDele...
[ "0.71121556", "0.703422", "0.6988577", "0.697601", "0.6961157", "0.6936996", "0.6923516", "0.683458", "0.6831274", "0.6815738", "0.68136746", "0.6684433", "0.6675501", "0.66538274", "0.66258615", "0.6615524", "0.6593908", "0.6588644", "0.6577356", "0.6539589", "0.6539277", ...
0.7201833
0
Move album position by $steps up/down borrowed from phpBB3
Переместить позицию альбома на $steps вверх/вниз, заимствованную из phpBB3
public function move_album_by($album_row, $action = 'move_up', $steps = 1) { global $db, $table_prefix; /** * Fetch all the siblings between the module's current spot * and where we want to move it to. If there are less than $steps * siblings between the current spot and the target then the * module will ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function step5()\n\t{\n\t\t//-----------------------------------------\n\t\t// Move any lingering albums to member album cat\n\t\t//-----------------------------------------\n\n\t\t\\IPS\\Db::i()->update( 'gallery_albums_main', array( 'album_category_id' => (int) \\IPS\\Settings::i()->gallery_members_album ...
[ "0.6011655", "0.57141024", "0.56464976", "0.5599452", "0.5536411", "0.55305195", "0.55244064", "0.5424933", "0.53869486", "0.53824925", "0.53616345", "0.5355113", "0.53542745", "0.5326761", "0.5320722", "0.5317404", "0.5306358", "0.52987856", "0.52549714", "0.525068", "0.5241...
0.71477026
0
Get count of dnc
Получить количество dnc
public static function getCount() { return VicidialDnc::count(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_count() {\n\t\t$count=0;\n\t\t$sql = \"select count(datacenter_id) as num from \".$this->_db_table;\n\t\t$db=htvcenter_get_db_connection();\n\t\t$rs = $db->Execute($sql);\n\t\tif (!$rs) {\n\t\t\t$this->log(\"get_count\", $_SERVER['REQUEST_TIME'], 2, \"datacenter.class.php\", $db->ErrorMsg(), \"\", \"\...
[ "0.7330424", "0.7188269", "0.69574803", "0.6829807", "0.6757185", "0.64832807", "0.64618677", "0.64618677", "0.64618677", "0.64618677", "0.64616066", "0.6365285", "0.63649607", "0.6338084", "0.6338084", "0.6338084", "0.6338084", "0.6338084", "0.6338084", "0.6338084", "0.63380...
0.79636043
0
Displays a form to edit an existing Ponto\ConfiguracaoParametrosGerais entity.
Показывает форму для редактирования существующей сущности Ponto\ConfiguracaoParametrosGerais.
public function editAction(Request $request, ConfiguracaoParametrosGerais $ponto) { $deleteForm = $this->createDeleteForm($ponto); $editForm = $this->createForm( 'Urbem\RecursosHumanosBundle\Form\Ponto\ConfiguracaoParametrosGeraisType', $ponto ); $edit...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function editAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('lOroEntityBundle:Parametros')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Parametros entity.');\n }\n\n $edit...
[ "0.7136439", "0.6889757", "0.6797133", "0.667797", "0.667071", "0.6651618", "0.65464675", "0.6539733", "0.65269685", "0.6490342", "0.6464119", "0.64388734", "0.6437395", "0.6426156", "0.6383597", "0.63736844", "0.63620675", "0.63184106", "0.62938285", "0.62860966", "0.6278440...
0.77736413
0
Deletes a Ponto\ConfiguracaoParametrosGerais entity.
Удаляет сущность Ponto\ConfiguracaoParametrosGerais.
public function deleteAction(Request $request, ConfiguracaoParametrosGerais $ponto) { $form = $this->createDeleteForm($ponto); $form->handleRequest($request); if ($form->isSubmitted() && $form->isValid()) { $em = $this->getDoctrine()->getManager(); $em->remove($ponto...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function delete()\n {\n $id_pagseguro = Tools::getValue('id_pagseguro');\n $ps_Box = Tools::getValue('pagseguroproBox');\n if (!$id_pagseguro && !$ps_Box) {\n return;\n\t\t}\n if (isset($ps_Box) && !is_array($ps_Box)) {\n $ps_Box = array($ps_Box);\n\t\t}\...
[ "0.63283193", "0.6114895", "0.6097653", "0.60691744", "0.5836369", "0.5770737", "0.5756725", "0.57118785", "0.5707629", "0.57064646", "0.5633861", "0.5624365", "0.5607845", "0.5574656", "0.5574633", "0.554744", "0.5523031", "0.5511805", "0.54230106", "0.5416939", "0.53676504"...
0.7351468
0
Creates a form to delete a Ponto\ConfiguracaoParametrosGerais entity.
Создает форму для удаления сущности Ponto\ConfiguracaoParametrosGerais.
private function createDeleteForm(ConfiguracaoParametrosGerais $ponto) { return $this->createFormBuilder() ->setAction( $this->generateUrl( 'ponto_configuracao_parametros_gerais_delete', array('id' => $ponto->getId()) ) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function deleteAction(Request $request, ConfiguracaoParametrosGerais $ponto)\n {\n $form = $this->createDeleteForm($ponto);\n $form->handleRequest($request);\n\n if ($form->isSubmitted() && $form->isValid()) {\n $em = $this->getDoctrine()->getManager();\n $em->r...
[ "0.6977619", "0.6933198", "0.6869047", "0.681578", "0.68054086", "0.67671084", "0.6718224", "0.66788435", "0.66476655", "0.6619884", "0.6577251", "0.65373784", "0.65277267", "0.6525946", "0.6458026", "0.64442337", "0.64337045", "0.64208996", "0.64136547", "0.6386297", "0.6376...
0.78880274
0
Finds the Students model based on its primary key value. If the model is not found, a 404 HTTP exception will be thrown.
Находит модель Students по значению первичного ключа. Если модель не найдена, будет выброшено исключение HTTP 404.
protected function findModel($id) { if (($model = Students::findOne($id)) !== null) { return $model; } else { throw new NotFoundHttpException('Запрошенная страница не существует'); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function findModel($id)\n {\n if (($model = Students::findOne($id)) !== null) {\n return $model;\n } else {\n throw new NotFoundHttpException('The requested page does not exist.');\n }\n }", "protected function findModel($id) {\n\t\tif (($model = Student...
[ "0.68623835", "0.6857996", "0.67653596", "0.6741906", "0.67312557", "0.6704802", "0.6704802", "0.66899115", "0.6675487", "0.6581282", "0.65751797", "0.6528948", "0.6515467", "0.6512815", "0.6510354", "0.6436879", "0.6426887", "0.6403145", "0.6393812", "0.63849384", "0.6300011...
0.70551753
0
Check to see if a component exists.
Проверьте, существует ли компонент.
public function componentExists($component, $loader = true) { $componentKey = $this->componentKey($component); if (array_key_exists($componentKey, $this->components)) { return $this->components[$componentKey] !== null; } elseif ($loader) { return !empty($this->templateLoa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hasComponent();", "function is_component_installed($name)\n{\n global $components;\n\n if (array_key_exists($name, $components))\n return true;\n\n return false;\n}", "public function hasComponent($component)\r\n {\r\n return array_key_exists($component, $this->compone...
[ "0.82533807", "0.71241564", "0.6777498", "0.66990125", "0.6692364", "0.65934265", "0.637395", "0.617208", "0.6145896", "0.6124091", "0.61048454", "0.6077445", "0.60492724", "0.6033111", "0.6033111", "0.6017892", "0.5996591", "0.59965014", "0.59963113", "0.5976697", "0.5958601...
0.7130157
1
Strip the namespace off a component name to get the component key.
Удалите пространство имен из имени компонента, чтобы получить ключ компонента.
protected function componentKey($component) { if (false !== $pos = strpos($component, ':')) { $component = substr($component, $pos + 1); } return strtolower($component); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function buildKeyForNamespace()\n\t{\n\t\treturn static::PREFIX . ';n:' . $this->sNamespace;\n\t}", "static public function getModuleName($component)\n {\n $names = explode(\".\", $component);\n return $names[0];\n }", "public function getServiceKey($serviceName) {\n return...
[ "0.6193615", "0.60449153", "0.60016334", "0.5987048", "0.59850955", "0.5972437", "0.59695953", "0.596747", "0.5877249", "0.5833017", "0.5791411", "0.5763791", "0.57237875", "0.57177806", "0.5682164", "0.5678283", "0.5637116", "0.5624964", "0.5624964", "0.56124955", "0.5593704...
0.75478953
0
Compile a component from source, cache it and include it.
Скомпилируйте компонент из исходного кода, закэшируйте его и включите его.
public function compile($component, $src, $cacheKey) { $cachePath = "{$this->cachePath}/$cacheKey.php"; $component = strtolower($component); $php = $this->compiler->compile($src, ['basename' => $component, 'path' => $cacheKey]); $comment = "/*\n".str_replace('*/', '❄/', trim($src))."\n*...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function compile($path);", "public function compile();", "public function compile();", "abstract public function compile(array $components);", "public function compile()\n\t{\n\t\tif ($this->by_route == true) {\n\t\t\theader(\"Location: \" . $this->getFullPath() . $this->path);\n\t\t}\n\t\t\n\t\t//G...
[ "0.62601644", "0.62481105", "0.62481105", "0.62362885", "0.6230881", "0.61500144", "0.61197937", "0.6117903", "0.6107472", "0.60913044", "0.60872126", "0.59922653", "0.59729487", "0.59292674", "0.5904547", "0.5898188", "0.5891426", "0.5890192", "0.5855457", "0.5854239", "0.58...
0.71759963
0
Get the template loader. The template loader translates component names into template contents.
Получите загрузчик шаблонов. Загрузчик шаблонов преобразует имена компонентов в содержимое шаблонов.
public function getTemplateLoader() { return $this->templateLoader; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getTemplating_LoaderService()\n {\n @trigger_error('The \"templating.loader\" service is deprecated since Symfony 4.3 and will be removed in 5.0.', E_USER_DEPRECATED);\n\n return $this->services['templating.loader'] = new \\Symfony\\Bundle\\FrameworkBundle\\Templating\\Loader\\F...
[ "0.68242365", "0.6763547", "0.6562103", "0.65144867", "0.64170563", "0.6367861", "0.6367861", "0.6367861", "0.6367861", "0.6367861", "0.6367861", "0.6358546", "0.6336454", "0.6335074", "0.6255122", "0.6212484", "0.6203419", "0.6195008", "0.6186511", "0.616654", "0.61285335", ...
0.7632908
0
Get the entire meta array.
Получите весь мета массив.
public function getMetaArray() { return $this->meta; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getMeta(): array;", "abstract public function getMeta(): array;", "public function meta()\n {\n return array_merge($this->resolveInfo(), $this->meta);\n }", "public function meta()\n {\n return array_merge($this->resolveInfo(), $this->meta);\n }", "public function ...
[ "0.8186379", "0.7914746", "0.74867576", "0.74867576", "0.7450793", "0.7326393", "0.7315165", "0.73147297", "0.7226848", "0.7195089", "0.7149983", "0.71321267", "0.710386", "0.7070263", "0.7049373", "0.70408016", "0.70408016", "0.70310676", "0.7009488", "0.7007475", "0.6987457...
0.8442471
0
Return a dynamic attribute. The attribute renders differently depending on the value. If the value is true then it will render as an HTML5 boolean attribute. If the value is false or null then the attribute will not render. Other values render as attribute values. Attributes that start with aria render true and false a...
Возвращает динамический атрибут. Атрибут отображается по-разному в зависимости от значения. Если значение истинно, то атрибут отображается как HTML5-булевский атрибут. Если значение ложно или равно null, атрибут не отображается. Другие значения отображаются как значения атрибутов. Атрибуты, начинающиеся с aria, отображ...
public function attribute($name, $value) { if (substr($name, 0, 5) === 'aria-' && is_bool($value)) { $value = $value ? 'true' : 'false'; } if ($value === true) { return ' '.$name; } elseif (!in_array($value, [null, false], true)) { return " $name=\""....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAttributeString()\n {\n $str = '';\n\n $booleans = array_only($this->getAttributes(), $this->booleanAttributes);\n $standard = array_except($this->getAttributes(), $this->booleanAttributes);\n\n foreach ($standard as $attribute => $value) {\n $str .= spr...
[ "0.65169144", "0.6483139", "0.6448893", "0.6244776", "0.62141675", "0.6071116", "0.6046792", "0.6022547", "0.60136676", "0.6001849", "0.59111017", "0.590379", "0.5777629", "0.57766205", "0.5747737", "0.5744247", "0.573662", "0.5723737", "0.57047987", "0.5643618", "0.5615509",...
0.7380646
0
add_filter( 'wc_autoship_discount', 'wc_autoship_custom_discounts_order_discount', 10, 3 ); Caculate autoship line discount
add_filter( 'wc_autoship_discount', 'wc_autoship_custom_discounts_order_discount', 10, 3 ); Вычислить скидку по линии автоперемены
function wc_autoship_custom_discounts_line_discount( $discount, $item_id, $autoship_price ) { $item = new WC_Autoship_Schedule_item( $item_id ); require_once( 'classes/wc-autoship-custom-discounts.php' ); $discount = WC_Autoship_Custom_Discounts::calculate_line_discount( $item, $autoship_price ); return $discou...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function add_coupon_discount()\n {\n }", "function zen_get_discount_calc($product_id, $attributes_id = false, $attributes_amount = false, $check_qty= false) {\n global $discount_type_id, $sale_maker_discount;\n global $cart;\n\n // no charge\n if ($attributes_id > 0 and $a...
[ "0.69567853", "0.6871957", "0.68007845", "0.6779091", "0.6658653", "0.6648948", "0.6646422", "0.6588467", "0.6564147", "0.65602654", "0.64853126", "0.64176166", "0.640503", "0.63760364", "0.63604313", "0.63404864", "0.6313549", "0.6301113", "0.6291117", "0.6287451", "0.624196...
0.7569663
0
Custom taxonomies definition contributortype theme region
Определение пользовательских таксономий contributortype theme region
function custom_taxonomy() { // Contibutor type register_taxonomy( 'contributor-type', 'contributor', array( 'label' => __( 'Contributor types', 'opp' ), 'rewrite' => array( 'slug' => 'contributor-type' ), 'hierarchical' => true ) ); /...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function register_taxonomies() {\n\n}", "function register_taxonomies(){\r\n }", "function register_taxonomies() {\r\n }", "function register_taxonomies(){\n\t\t}", "function register_taxonomies(){\n\t\t}", "function register_taxonomies() {\n }", "function register_taxonomies() {\n }", "fun...
[ "0.73456454", "0.7241852", "0.72247654", "0.71843624", "0.71843624", "0.71673036", "0.7164274", "0.7156921", "0.7135316", "0.71325374", "0.7122444", "0.7122444", "0.7122444", "0.7122444", "0.7122444", "0.71144557", "0.7096123", "0.7077363", "0.7053786", "0.6961243", "0.696014...
0.7431273
0
Get Case Link with case id
Получить ссылку на случай по идентификатору случая
public function GetCaseLink($id) { $refundLink = DB::table('caselinks')->select('CaseLink')->where('RefundCase_Id', '=', $id)->get(); return config('app.url') . '/Customer/Refund/' . $refundLink[0]->CaseLink; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getLink($id)\n {\n # code...\n }", "function getLink( $id )\n\t{\n\t}", "function link_by_id($id = 0){\n\t\t$query = $this->db->get_where('short_urls', array('id' => $id), 1);\n\t\t\n\t\treturn $query->row();\n }", "function _nkprogramm_get_case_id($value) {\r\n // Hack to ge...
[ "0.6497151", "0.62649715", "0.6090009", "0.5773203", "0.57133114", "0.56590676", "0.56590676", "0.56590676", "0.56590676", "0.5638355", "0.56113786", "0.5605339", "0.56005824", "0.5599267", "0.55545527", "0.55174327", "0.5507924", "0.5505595", "0.54330474", "0.5420842", "0.53...
0.7592602
0
Checks if value is a valid regex
Проверяет, является ли значение допустимым регулярным выражением
public function validRegex($attribute, $value) { set_error_handler(function () { }, E_WARNING); $isRegEx = preg_match($value, '') !== false; restore_error_handler(); return $isRegEx; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function is_regex($var)\n{\n return CValidate::regex($var);\n}", "public function chk_regex($val)\n {\n $pass = true;\n $rows = $this->fetch_txt('regex');\n foreach ($rows as $k => $v) {\n $m = preg_match($v, $val);\n if ($m) {\n return false;\n ...
[ "0.7600093", "0.73246914", "0.7183933", "0.7180819", "0.7145803", "0.7105199", "0.70347476", "0.6973446", "0.6912843", "0.6887223", "0.68862396", "0.68626934", "0.6860757", "0.68315125", "0.6760003", "0.6753149", "0.67244786", "0.67012024", "0.6695299", "0.66868895", "0.66321...
0.7723515
0
SendPreview This sends a 'preview email' (test email in this case) to the email address supplied.
SendPreview Этот метод отправляет 'предварительный email' (тестовый email в данном случае) на указанный адрес электронной почты.
function SendPreview() { $user = &GetUser(); $preview_email = (isset($_POST['PreviewEmail'])) ? $_POST['PreviewEmail'] : false; $subject = GetLang('TestSendingSubject'); $text = GetLang('TestSendingEmail'); if (!$preview_email) { $GLOBALS['Error'] = GetLang('NoEmailAddressSupplied'); $GLOBALS['Message...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function process_email_preview() {\n\n\t\tif ( ! $this->is_preview() ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$email = new Email( (int) $_GET['email_id'] ); // phpcs:ignore WordPress.Security.NonceVerification.Recommended,WordPress.Security.ValidatedSanitizedInput.InputNotValidated\n\n\t\t// It's a raw HTML (with h...
[ "0.67809856", "0.67647976", "0.6030878", "0.5885489", "0.58792573", "0.5855884", "0.5822775", "0.58190185", "0.576723", "0.5729802", "0.5716286", "0.56967634", "0.56772935", "0.5667229", "0.56661326", "0.5661211", "0.56146085", "0.55794746", "0.55560166", "0.55501795", "0.554...
0.8390141
0
Get system default's datetime format
Получить системный формат даты и времени по умолчанию
public static function get_system_format_full() { global $default_datetime_format, $datetime_formats, $default_datetime_format_system; // Return system format. Use value from config table, if valid. return (!in_array($default_datetime_format, $datetime_formats)) ? $default_datetime_format_system : $default_d...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDefaultDateTimeFormat()\n {\n // Gets the default formats\n $extensionDefaultDateTimeFormat = ExtensionConfigurationManager::getDefaultDateTimeFormat();\n $libraryDefaultDateTimeFormat = LibraryConfigurationManager::getDefaultDateTimeFormat();\n\n // Defines which ...
[ "0.8126174", "0.7941769", "0.7685589", "0.7667772", "0.765172", "0.7439364", "0.73654133", "0.73448235", "0.73384964", "0.7320648", "0.72699964", "0.72468644", "0.71671414", "0.7161575", "0.71565014", "0.71389496", "0.7129037", "0.70840156", "0.70717597", "0.7068586", "0.7064...
0.811228
1
Get user's BASE date format (e.g., MDY)
Получить базовый формат даты пользователя (например, MDY)
public static function get_user_format_base() { // Get user's datetime format $full_format = self::get_user_format_full(); // Get delimiter (will be 2nd character) $delimiter = substr($full_format, 1, 1); // Return the base format return str_replace($delimiter, '', substr($full_format, 0, 5)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getUserDate()\n\t{\n\t\treturn $this->userdateformat;\n\t}", "protected function getDateFormat() {\n return 'U';\n }", "function getDateFormatString()\n\t{\n\t\treturn \"mm/dd/yyyy\";\n\t}", "public function getDateFormat()\n {\n return 'U';\n }", "protected function ...
[ "0.72759914", "0.7198277", "0.719306", "0.71248776", "0.7046899", "0.6965509", "0.6962491", "0.6912677", "0.682394", "0.6795378", "0.6763298", "0.6759178", "0.67425954", "0.673684", "0.67178893", "0.6707586", "0.67027295", "0.6685166", "0.6684613", "0.66791415", "0.6672086", ...
0.77858603
0
Get user's date format's delimiter character (dot, slash, or dash)
Получить символ-разделитель формата даты пользователя (точка, слеш или дефис)
public static function get_user_format_delimiter() { // Get date format $date_format = self::get_user_format_label(); // Get delimiter (will be 2nd character) return substr($date_format, 1, 1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDateSeparator() {\r\n $user = $this->loadUser(Yii::app()->user->id); \r\n return substr($user->date_format, 1, 1);\r\n }", "public function getDateSeperator()\n\t{\n\t\treturn '-';\n\t}", "public function getDelimiter();", "public function getAlphanumericDelimiter()\n {...
[ "0.7247971", "0.6492928", "0.6134758", "0.61230135", "0.6062902", "0.60539204", "0.6046449", "0.60400116", "0.5960897", "0.594936", "0.5923733", "0.5922083", "0.5899305", "0.58858794", "0.5857577", "0.5845996", "0.584107", "0.5839695", "0.5817782", "0.5812467", "0.58090603", ...
0.8322347
0
FORMAT A DATE[TIME] FROM ONE FORMAT TO USER'S PREFERRED FORMAT If $return_format is provided, use it instead of user's preferred format. If $force24hour is TRUE, then force 24hr military time for time component returned.
Форматирование даты[времени] из одного формата в предпочитаемый пользователем. Если предоставлено $return_format, используйте его вместо предпочитаемого пользователем формата. Если $force24hour равно TRUE, то для компонента времени, возвращаемого, будет использоваться 24-часовой формат военного времени.
public static function format_user_datetime($val, $original_format, $return_format=null, $force24hour=false) { global $datetime_formats; // Set destination format if ($return_format == null) $return_format = self::get_user_format_full(); // Trim value $val = ($val === null) ? '' : trim($val); // If...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function format($format) {\n\t\t$translate = false;\n\t\t// we don't use a \"translate\" flag - always translate if possible\n\t\tif (preg_match('/[DlMF]/', $format)) {\n\t\t\t$original = \"$format\";\n\t\t\t// Do string replacements for date format options that can be translated.\n\t\t\t$format = preg_repl...
[ "0.5917767", "0.58619523", "0.58091533", "0.5745757", "0.57454044", "0.5627378", "0.5598038", "0.55710036", "0.55184525", "0.5508291", "0.5507357", "0.5498557", "0.54928166", "0.54909873", "0.5483514", "0.547302", "0.5470326", "0.5451513", "0.5450977", "0.5444107", "0.543825"...
0.77799475
0
Return the used partial
Верните использованную часть
public function getPartial() { return $this->partial; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPartial()\n {\n return $this->_partial;\n }", "public function partial (): string\n {\n return $this->partial;\n }", "function template_partial($name = '')\r\n\t{\r\n\t\t$CI =& get_instance();\r\n\t\t$data =& $CI->load->_ci_cached_vars;\r\n\r\n\t\techo isset($data['...
[ "0.7810378", "0.76489526", "0.73024887", "0.72310853", "0.70057523", "0.7001006", "0.6900669", "0.6868858", "0.68382055", "0.66919047", "0.6671789", "0.6636854", "0.6597105", "0.65306383", "0.6513376", "0.64891934", "0.6482711", "0.63681144", "0.63459575", "0.63163024", "0.62...
0.7789389
1
Return true iff view has been set for this widget
Вернуть истину, если только вид будет установлен для этого виджета
public function hasView() { return null !== $this->view; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hasView()\n {\n return $this->hasObject($this->views);\n }", "public function hasView(): bool;", "private function _hasContainerView()\n {\n return isset($_REQUEST['_thisView']) && !empty($_REQUEST['_thisView']);\n }", "public function isShowAtWidget()\r\n {\r\n ...
[ "0.745546", "0.72552174", "0.7008876", "0.6938509", "0.6792165", "0.6698889", "0.6466742", "0.64141124", "0.6319635", "0.62873906", "0.6219425", "0.61858004", "0.6162983", "0.61588293", "0.6136031", "0.6124364", "0.60896444", "0.6081534", "0.60724527", "0.60656315", "0.603951...
0.7627928
0
Model setter: If the $model is an array, it is passed to the view object's assign() method. If the $model is an object, it first checks to see if the object implements a 'toArray' method; if so, it passes the result of that method to to the view object's assign() method. Otherwise, the result of get_object_vars() is pa...
Метод установки модели: если $model является массивом, он передается в метод assign() объекта представления. Если $model является объектом, сначала проверяется, реализует ли объект метод 'toArray'; если да, результат этого метода передается в метод assign() объекта представления. В противном случае используется результ...
public function setModel($model) { if (is_array($model)) { $this->model = $model; } elseif (is_object($model)) { if (method_exists($model, 'toArray')) { $this->model = $model->toArray(); } else { $this->model = get_object_vars($mode...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setModel($model);", "public function setModel($model);", "public function setModel(Model $model);", "public function setModel(Model $model);", "public function setModelObject($model) {\n\t\t$this->modelObject = $model;\n\t}", "public function setModel($model)\r\n{\r\n$this -> model = $mod...
[ "0.70014", "0.70014", "0.68485856", "0.68485856", "0.6782941", "0.6557379", "0.6484349", "0.64114827", "0.63075763", "0.62929875", "0.6289421", "0.61634576", "0.61501384", "0.6142555", "0.6114094", "0.611405", "0.61110115", "0.6052901", "0.6021625", "0.59960383", "0.59740674"...
0.7375936
0
switch case for photo delete or album delete.
switch case для удаления фото или удаления альбома.
public function delete_check() { $app = JFactory::getApplication(); $flag = $app->input->get('flag',NULL,'STRING'); switch($flag) { case 'deletephoto': $result1 = $this->delete_photo(); return $result1; break; case 'deletealbum': $result = $this->delete_album(); re...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function deletePhoto(){\n\n if(Auth::check()){\n $currentUserID = Auth::user()->id;\n $photoId = strip_tags(Input::get('photoId'));\n $photo = new Photo();\n $albums = new Albums();\n if($photo->isUserPhotoCreator($currentUserID, $photoId)\n ...
[ "0.7215313", "0.703357", "0.6735917", "0.67181885", "0.6659413", "0.663211", "0.66222197", "0.66168255", "0.6599173", "0.6566631", "0.65424794", "0.6532169", "0.6531094", "0.6511212", "0.6484337", "0.6478458", "0.6464557", "0.6458025", "0.64507186", "0.64449376", "0.6440913",...
0.70661414
1
this function is used to get the photos from particular album
этот функция используется для получения фотографий из определенного альбома
public function get_album_images() { $mapp = new EasySocialApiMappingHelper(); $app = JFactory::getApplication(); $album_id = $app->input->get('album_id',0,'INT'); $uid = $app->input->get('uid',0,'INT'); $state = $app->input->get('state',0,'INT'); $mapp = new EasySocialApiMappingHelper(); $log_user=...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function get_images_album($album) {\r\n $token = self::get_token(); //GET access token\r\n $url = str_replace('{album}', $album, self::get_album_images);\r\n\r\n $opts = array(\r\n CURLOPT_HTTPHEADER => array( 'Authorization: Bearer ' . $token['access_token'] ),\r\n ...
[ "0.78650147", "0.7751824", "0.76591706", "0.75569844", "0.7518384", "0.7418516", "0.7307501", "0.72250515", "0.7213113", "0.7209048", "0.7201723", "0.7196931", "0.7195489", "0.71721864", "0.71652496", "0.7121266", "0.70889324", "0.7069012", "0.7006881", "0.6976477", "0.696747...
0.80691737
0
this function is used to create album
этот функция используется для создания альбома
public function create_album() { // Get the uid and type $app = JFactory::getApplication(); $uid = $app->input->get('uid',0,'INT'); $type = $app->input->get('type',0,'USER'); $title = $app->input->get('title',0,'USER'); // Load the album $album = FD::table( 'Album' ); $album->load(); $res = ne...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function newalbum()\n\t{\n\t\t$my =& JFactory::getUser();\n\t\tif( $this->blockUnregister() ) return ;\n\t\t\n\t\t$groupId=JRequest::getVar('groupid', '0');\n\t\tif(!empty($groupId))\n\t\t{\n\t\t\tCFactory::load( 'helpers' , 'group' );\t\t\t\n\t\t\t$allowManagePhotos = cAllowManagePhoto($groupId);\n\t\t\tCError::a...
[ "0.7505266", "0.7318876", "0.7207545", "0.7200143", "0.71975523", "0.7128129", "0.7127209", "0.7062014", "0.7033017", "0.7000929", "0.6980779", "0.6910225", "0.68934184", "0.68653345", "0.68406063", "0.68344873", "0.67711836", "0.6765891", "0.6762659", "0.6721519", "0.6677778...
0.77283853
0
Creates a new host with the specified name and IP address
Создает новый хост с указанным именем и IP-адресом
public function createHost($host, $ip);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create($host, $port);", "public function host($name)\n {\n return $this->set('HOSTNAME', $name);\n }", "public function addToHost($name) {\n\n\t\t\tif( $this->hostExists($name) === true ) return true;\n\n\t\t\t$data = file_get_contents($this->config->host_path);\n\n\t\t\t$data .= \...
[ "0.6791204", "0.6619852", "0.6273001", "0.61296535", "0.6074796", "0.6042634", "0.6041817", "0.59272975", "0.5849474", "0.5846908", "0.5671533", "0.5558348", "0.5538025", "0.55220914", "0.5513065", "0.5511441", "0.54807055", "0.54710484", "0.54646707", "0.541957", "0.541957",...
0.8418978
0
Read the specified host's information
Чтение информации о заданном хосте
public function readHost($host);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getHost();", "function getHost();", "function getHost();", "abstract protected function getHost();", "public function host_info() : string;", "public function getHost() {}", "public function getHost() {}", "public function getHost();", "public function getHost();", "public function getHo...
[ "0.61680925", "0.61680925", "0.61680925", "0.6156579", "0.6087274", "0.5922529", "0.59224164", "0.5838989", "0.5838989", "0.5838989", "0.5838989", "0.5838989", "0.5838989", "0.5838989", "0.5838989", "0.5838989", "0.5838989", "0.5838989", "0.5838989", "0.5838989", "0.5838989",...
0.8220113
0
Updates the specified host
Обновляет указанный хост
public function updateHost($host, $ip);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function update(Request $request, Host $host)\n {\n //\n }", "public function setHost($host);", "public function setHost($host);", "public function setHost($host);", "function setHost($host);", "function setHost($host);", "function updateHost($action) {\n\n\t\t// Get posted values t...
[ "0.74091476", "0.7190537", "0.7190537", "0.7190537", "0.70829016", "0.70829016", "0.6991457", "0.6952634", "0.6862142", "0.6832849", "0.67055553", "0.67055553", "0.66524327", "0.66481555", "0.66362095", "0.6625115", "0.6595725", "0.65854615", "0.6562719", "0.6547991", "0.6540...
0.86346775
0
Deletes the specified host
Удаляет указанный хост
public function deleteHost($host);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function destroy($host)\n {\n try {\n $host = preg_replace('/_/', '/', $host);\n $this->load->library('incoming_firewall/Incoming');\n\n $this->incoming->delete_block_host($host);\n\n $this->page->set_status_deleted();\n redirect('/incoming_firewall/...
[ "0.73004425", "0.7061766", "0.68546027", "0.68536204", "0.67818356", "0.6546368", "0.64371014", "0.63940966", "0.6382881", "0.634691", "0.6310772", "0.6286172", "0.62856156", "0.6196689", "0.6148435", "0.61224276", "0.61020535", "0.61020535", "0.61020535", "0.61020535", "0.61...
0.92178845
0
$q = "select from _collect, _pokemon where _collect.pokemon_id = _pokemon.pokemon_id AND _collect.collector_login='" .$name . "'";
$q = "select from _collect, _pokemon where _collect.pokemon_id = _pokemon.pokemon_id AND _collect.collector_login='" .$name . "'";
function get_collection_by_collector($name){ // $query=$this->db->query($q); $this->db->select("*"); $this->db->from('_collect'); $this->db->from('_pokemon'); $this->db->where('_collect.pokemon_id = _pokemon.pokemon_id' ); $this->db->where('_collect.collector_login...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getPetName($uname)\n {\n global $conn;\n $query = sprintf(\"select PETS.NAME from PETS INNER JOIN CUSTOMER_PET ON CUSTOMER_PET.PET_ID = PETS.PET_ID WHERE CUSTOMER_PET.USERNAME='%s'\", $uname);\n $result = mysqli_query($conn, $query);\n if ($result->num_rows == 0) {\n ...
[ "0.5813753", "0.56410414", "0.5576659", "0.5508474", "0.5490696", "0.54665947", "0.5456462", "0.5434585", "0.54263115", "0.5397549", "0.5370059", "0.5357958", "0.5326606", "0.53149986", "0.53139985", "0.5279101", "0.527826", "0.5246793", "0.5240822", "0.5240776", "0.52391225"...
0.712906
0
Corrects all errors by cID
Исправляет все ошибки по cID
public static function correctError($cID){ $pdo = new PDO_MYSQL(); $pdo -> query("UPDATE entrance_error SET active = 0 WHERE cID = :cID", [":cID" => $cID]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected function setErrors();", "public function fix()\n {\n $affectedRecords = array();\n \n foreach($this->errors as $error)\n {\n if($error['id'] == 'URI-EXISTENCE-100')\n {\n // #1: Get the list of all the affected records for each unexisting, used, UR...
[ "0.62110513", "0.6145171", "0.60015345", "0.60014", "0.5999794", "0.5818825", "0.57863784", "0.57430446", "0.5729092", "0.5700706", "0.5695253", "0.55627686", "0.55627686", "0.5532672", "0.55242443", "0.5521383", "0.55163854", "0.5508155", "0.54956055", "0.54606426", "0.54438...
0.73669565
0
Setup view meta data.
Настройка метаданных представления.
protected function _setupMetaData() { $this ->_assignMeta('page_title') ->_assignMeta('meta_keywords') ->_assignMeta('meta_description'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected function doSetupViewWithArguments();", "abstract protected function doSetupCreateView();", "protected function set_up()\n {\n Zend_Registry::_unsetInstance();\n Zend_Dojo_View_Helper_Dojo::setUseDeclarative();\n\n $this->view = $this->getView();\n }", "public fun...
[ "0.68817014", "0.6865537", "0.68554866", "0.6820227", "0.6480621", "0.64224833", "0.63925785", "0.6390221", "0.6353681", "0.62974113", "0.62797993", "0.62676144", "0.62668896", "0.62129337", "0.61914766", "0.6177075", "0.6078357", "0.606971", "0.606971", "0.60599625", "0.6021...
0.7239524
0
returns the game_ids of active games
возвращает идентификаторы активных игр
public function get_active_games(){ $query = $this->NFL_db->where('week',$this->current_week) ->where('season',$this->current_year) ->where("status_flag",1) ->get('NFL_Schedule_'.$this->current_year); $return_array=array(); foreach($query->result_array() as $game_data){ $retu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getActiveRoomIds()\n {\n $db = $this->dbm->getDb();\n $stmt = $db->query( self::SQL_SELECT_ACTIVE_ROOMS );\n\n $activeRoomIds = array();\n while( $roomId = $stmt->fetchColumn() )\n {\n array_push($activeRoomIds, $roomId);\n }\n return $...
[ "0.7025354", "0.6913018", "0.68413496", "0.6827944", "0.645908", "0.6454712", "0.640537", "0.64001375", "0.6368276", "0.62520427", "0.61590075", "0.6142936", "0.61202246", "0.61161673", "0.61011946", "0.60909855", "0.60768855", "0.6065061", "0.60248864", "0.599809", "0.599636...
0.8078163
0
Writes the provided cache value and returns the filename of the cache file.
Записывает предоставленное значение кэша и возвращает имя файла кэша.
public function write_cache($cache_key, $cache_value) { // Is caching disabled? if (!$this->automin_model->is_caching_enabled()) { return FALSE; } $cache_file_path = $this->get_cache_file_path($cache_key); if (FALSE === file_put_contents($cache_file_path, $cache_value)) { return FALSE; } retur...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function writeCache();", "function _write_cache($output)\n\t{\n\t\t$obj =& get_instance();\t\n\t\t$path = $obj->config->item('cache_path');\n\t\n\t\t$cache_path = ($path == '') ? BASEPATH.'cache/' : $path;\n\t\t\n\t\tif ( ! is_dir($cache_path) OR ! is_writable($cache_path))\n\t\t{\n\t\t\treturn;\n\t\t}\n\...
[ "0.6773849", "0.66558516", "0.6529025", "0.643385", "0.6345425", "0.62460715", "0.61585414", "0.61105144", "0.61056966", "0.60986614", "0.6094994", "0.609161", "0.60890514", "0.6033704", "0.60250735", "0.5933181", "0.58987796", "0.58712256", "0.58661544", "0.5848186", "0.5838...
0.75920105
0
Retruns the cache key for the given cache value
Возвращает ключ кэша для заданного значения кэша
public function get_cache_key($cache_value, $extension) { return md5($cache_value).".$extension"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getKey($value);", "public function getCacheKey();", "public function getCacheKey();", "function get_key($value)\n\t{\n\t\treturn $value;\n\t}", "function get_key($value)\n\t{\n\t\treturn $value;\n\t}", "static public function getKey($value)\n\t{\n\t\treturn array_search($value, sel...
[ "0.7389083", "0.6965046", "0.6965046", "0.6937592", "0.6937592", "0.6818499", "0.67645323", "0.67238265", "0.6667602", "0.66629064", "0.66629064", "0.66254807", "0.6581295", "0.65323365", "0.65259", "0.65085083", "0.64960253", "0.64494497", "0.6446441", "0.6440833", "0.642293...
0.74897504
0
show albums of logged in Artist
показать альбомы авторизованного Artist
public function artist_albums() { $albums = AlbumModel::getArtistAlbums(Application::$app->session->get('user')); $artist = ArtistModel::getArtistProfile(Application::$app->session->get('user')); $this->setLayout('artistlayout'); return $this->artistRender('artist_albums', ['albums' ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function albumsAction() {\n $albums = $this->albumRepository->getAlbumsForCurrentUser();\n\n $this->view->albums = $albums;\n }", "public function index()\n {\n// $albums = null;\n// if (Auth::check())\n $albums = auth()->user()->albums;\n// $albums = auth()...
[ "0.77328074", "0.70916635", "0.69955957", "0.688861", "0.6811989", "0.6798181", "0.67297775", "0.6662616", "0.6662616", "0.6662616", "0.6662616", "0.6662616", "0.6662616", "0.66390353", "0.66317195", "0.6623541", "0.6567554", "0.6516023", "0.6509764", "0.6500311", "0.648383",...
0.7754804
0
Returns an array of bundles to register.
Возвращает массив пакетов для регистрации.
public function registerBundles() { $bundles = []; // Add framework bundles foreach ($this->standardBundles as $standardBundleClassRef) { $bundles[] = new $standardBundleClassRef; } // Add plugin specific bundles foreach ($this->pluginBundles as $pluginB...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function registerBundles()\n\t{\n\t\t$instances = [];\n\t\tforeach ($this->bundlesToRegister as $className) {\n\t\t\t$instances[] = new $className();\n\t\t}\n\n\t\treturn $instances;\n\n\t}", "public function getBundles() : array {}", "public function getBundles()\n {\n return $this->bundles;\...
[ "0.8547524", "0.75939465", "0.74483013", "0.74483013", "0.7359657", "0.7339524", "0.72422755", "0.722147", "0.71771437", "0.71649927", "0.7115672", "0.71096396", "0.700333", "0.6937234", "0.69316876", "0.68974906", "0.6854392", "0.68543464", "0.68413764", "0.67849946", "0.677...
0.768533
1
generazione dell'url dove reperire i file delle foto
генерация URL, где можно найти файлы с фотографиями
function generateUrl($nomefile){ return 'http://'.$_SERVER['HTTP_HOST'].'/foto/'.$nomefile; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function fileUrl($parametros)\r\n\t{\r\n\t\t$largura = $this->u->t($this->hg->size($parametros['largura'], false), 'image');\r\n\t\t\r\n\t\t$url = $this->dir . $this->base_name\r\n\t\t\t\t\t. '_bg-' . $parametros['cor_fundo']->write('pure_hexa') \r\n\t\t\t\t\t. '_fg-' . $parametros['cor_frente']->write('pure_hexa'...
[ "0.7231817", "0.71616334", "0.7039148", "0.691652", "0.691652", "0.6874034", "0.68304867", "0.67978424", "0.67978424", "0.66892624", "0.651564", "0.6435186", "0.64148027", "0.6413039", "0.6403668", "0.638208", "0.63698953", "0.63529134", "0.634589", "0.63358325", "0.6335002",...
0.79109406
0
Seeders to run in a 'local' environment for development
Сеедеры для запуска в среде 'local' для разработки
private function developmentSeeders() { if (\App::environment() !== 'local') return $this; $this->call('UsersSeeder'); return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function devSeeds()\n {\n $this->call(SponsorSeeder::class);\n $this->call(CentreSeeder::class);\n $this->call(UserSeeder::class);\n $this->call(RegistrationSeeder::class);\n }", "public function run()\n {\n $this->cleanDirectories();\n\n if (App::environ...
[ "0.74943686", "0.7382751", "0.7280498", "0.72698087", "0.7235147", "0.7174019", "0.715478", "0.7149774", "0.7131574", "0.7059953", "0.70579034", "0.6995896", "0.693108", "0.68889177", "0.68692595", "0.6869103", "0.68628585", "0.685518", "0.68136865", "0.68080837", "0.6785846"...
0.7547628
0
Handle send attachment command.
Обработка команды отправки вложения.
public function handleSendAttachment(SendAttachment $command): void { $this->driver->getHttp()->post( FacebookDriver::API_URL.'me/messages', [ 'query' => [ 'access_token' => $this->driver->getParameter('page_token'), ], ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected function sendAttachment($bTest = FALSE);", "private function send()\n {\n $path = ABSPATH . $this->request;\n $name = basename($this->attachment->guid);\n $type = $this->attachment->post_mime_type;\n $size = filesize($path);\n\n header('Content-Disposition...
[ "0.7020768", "0.69834554", "0.65026057", "0.6112287", "0.60703427", "0.5991274", "0.5927597", "0.5869234", "0.577567", "0.57264316", "0.56830645", "0.56565076", "0.5638659", "0.56072044", "0.5576868", "0.555775", "0.5533351", "0.551722", "0.55080134", "0.5502505", "0.5489799"...
0.754031
0
Handle send request command.
Обработка команды отправки запроса.
public function handleSendRequest(SendRequest $command): void { // TODO: Implement handleSendRequest() method. }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function sendRequest($request);", "public function sendRequest(): void;", "public function send($request): void\n {\n }", "public function send() {}", "public function send() {}", "public function send() {}", "function send() {}", "public function send();", "public function se...
[ "0.7194842", "0.7171216", "0.7005693", "0.69935155", "0.69935155", "0.69935155", "0.69515425", "0.68899405", "0.68899405", "0.68899405", "0.68899405", "0.68899405", "0.68899405", "0.68899405", "0.68899405", "0.68899405", "0.68899405", "0.68899405", "0.6810706", "0.6748987", "...
0.7352059
0
Place content to an element with a given key. Note: when passing an iterable value to $content parameter, this method will be called recursively. Doing such way, the first parameter will be used to prefix the array keys.
Разместите содержимое в элемент с заданным ключом. Примечание: при передаче итерируемого значения в параметр $content этот метод будет вызываться рекурсивно. Таким образом, первый параметр будет использоваться для префикса ключей массива.
public function placeContent($key, $content): self;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function set($key, $content);", "public function append(string $key, string $content): void\n {\n }", "public function addContentData($key, $value)\n\t{\n if(empty($this->_pageData['data']['content'])) {\n \t$this->_pageData['data']['content'] = array();\n }\n // If we ...
[ "0.6462264", "0.60971767", "0.58309543", "0.58245605", "0.5816168", "0.5697851", "0.5595714", "0.5559208", "0.5444994", "0.54232126", "0.53792673", "0.5326498", "0.52981216", "0.52975357", "0.526934", "0.52546245", "0.5225888", "0.51918364", "0.5168305", "0.5163175", "0.51223...
0.7642832
0
Adds shortcut icon to the right document header button bar
Добавляет иконку ярлыка в правую панель кнопок заголовка документа
public function addShortcutButton() { $shortcutButton = $this->buttonBar->makeShortcutButton() ->setModuleName($this->moduleName) ->setGetVariables( [ 'id', ] ) ->setSetVariables(array_keys($this->MOD_MENU));...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addShortcutButton()\n {\n $shortcutButton = $this->buttonBar->makeShortcutButton()\n ->setModuleName($this->moduleName)\n ->setGetVariables(\n [\n 'id',\n 'edit_record',\n 'pointer',\n ...
[ "0.74930465", "0.68214417", "0.668648", "0.66368705", "0.66368705", "0.6587893", "0.6587893", "0.6546888", "0.6423183", "0.61375093", "0.60914", "0.605886", "0.6050535", "0.599476", "0.59850657", "0.5951107", "0.59306526", "0.59306526", "0.5921939", "0.5876821", "0.5876458", ...
0.7473244
1
Wizard for new site Wizard overview page before the wizard is started.
Мастер для нового сайта Страница обзора мастера перед его запуском.
public function renderNewSiteWizard_overview() { if (TemplaVoilaUtility::getBackendUser()->isAdmin()) { // Introduction: $outputString = nl2br(sprintf(TemplaVoilaUtility::getLanguageService()->getLL('newsitewizard_intro', true), implode('", "', $this->getTemplatePaths(true, false))))...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function actionWizard() \t{\n\t\t$this->layout = 'front_wizard';\n\t\t$this->render('front_wizard');\n\t}", "function indexAction()\r\n {\r\n $this->view->title = \"Wizard Start Page\"; \r\n }", "public function setup_wizard_content()\n {\n }", "public function setup_wizard()\n...
[ "0.7314347", "0.72862905", "0.72344726", "0.69445264", "0.6865919", "0.6794731", "0.6664472", "0.6643142", "0.66397387", "0.6603179", "0.6588271", "0.6562464", "0.65164095", "0.64325315", "0.6409112", "0.6292415", "0.627841", "0.6231783", "0.6222636", "0.6206077", "0.6179667"...
0.77560794
0