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
Creates a form to delete a incident entity.
Создает форму для удаления сущности инцидента.
private function createDeleteForm(Incident $incident) { return $this->createFormBuilder() ->setAction($this->generateUrl('incident_delete', array('id' => $incident->getId()))) ->setMethod('DELETE') ->getForm() ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function createDeleteForm(Ingress $ingress)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('ingress_delete', array('id' => $ingress->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "private function createDeleteForm...
[ "0.7166436", "0.7164529", "0.70928955", "0.69046843", "0.6855864", "0.6855864", "0.68265647", "0.68053514", "0.6792915", "0.67921793", "0.67908263", "0.6790647", "0.678401", "0.676336", "0.6723388", "0.6711619", "0.6705304", "0.66927147", "0.6689275", "0.6688486", "0.6688252"...
0.7886902
0
Checks and logs if plugin files have been updated.
Проверяет и логирует, были ли обновлены файлы плагина.
static function check_if_plugin_files_updated() { $file_version = Options::file_version(); if ( $file_version !== AW()->version ) { $old_version = $file_version; $new_version = AW()->version; if ( $old_version ) { Logger::info( 'updates', sprintf( "AutomateWoo - Plugin updated from %s to %s", $old_ve...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function check_for_updates()\n {\n // only load file if it has not been loaded\n if (is_admin()) {\n if( !class_exists( '\\PucFactory' ) ) {\n require PVLADIR . 'vendor/plugin-update-checker/plugin-update-checker.php';\n }\n $pu_visitor_log_Up...
[ "0.73518956", "0.7307955", "0.7302883", "0.71123755", "0.67677635", "0.67174625", "0.6614618", "0.6601732", "0.6599148", "0.65974617", "0.6481403", "0.64591116", "0.6414258", "0.6337349", "0.63141596", "0.63132", "0.62943256", "0.62874967", "0.62551165", "0.6237006", "0.62272...
0.8138099
0
Runs when AW is installed for the first time. On the other hand `Installer::install()` runs on every plugin update.
Запускается при первом установке AW. С другой стороны `Installer::install()` запускается при каждом обновлении плагина.
private static function first_install() { // Default all new installs to use WC.com license system, existing installs continue to use AW.com update_option( 'automatewoo_license_system', 'wc', true ); Admin_Notices::add_notice( 'welcome' ); do_action( 'automatewoo_first_installed' ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function onInstall();", "public function runInstall() {}", "public static function installPlugin() {\n\t\tself::runInstall();\n\t\t// set variable to check for on activation\n\t\tupdate_option('wpifw_activated', 1);\n\t}", "public function postInstall();", "public function onBeforeInstall()...
[ "0.7418003", "0.73732215", "0.7343401", "0.73262465", "0.7296568", "0.7232468", "0.7174173", "0.7087687", "0.70865905", "0.7044571", "0.7038873", "0.7017126", "0.69336987", "0.68615586", "0.67980516", "0.6757232", "0.6737342", "0.67169636", "0.6704522", "0.66888213", "0.66614...
0.74948627
0
Returns the item to process count for all currently required updates.
Возвращает количество элементов для обработки для всех текущих необходимых обновлений.
static function get_database_update_items_to_process_count() { $required_updates = self::get_required_database_updates(); $count = 0; foreach ( $required_updates as $version ) { if ( version_compare( $version, '2.7.0', '<=' ) ) { continue; // old updates don't extend Database_Update class } $update...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getUpdatedItemsCount()\n {\n return $this->countItemsUpdated;\n }", "public function itemCount() {\n return $this->importer->processor->itemCount($this);\n }", "protected function count_items_to_process() {\n\t\treturn $this->count_attachments_with_legacy_metadata( $this->blog_...
[ "0.7260598", "0.7008003", "0.69408756", "0.6709529", "0.66200787", "0.66082335", "0.65832704", "0.6575426", "0.650745", "0.6485236", "0.64828986", "0.64782727", "0.64615285", "0.64505506", "0.6426989", "0.64230186", "0.63930416", "0.63847244", "0.6384202", "0.637059", "0.6353...
0.77895206
0
Inserts new user activity in database.
Вставляет новую активность пользователя в базу данных.
public function add_user_activity($activity_info) { $activity_info["HTTP_USER_AGENT"] = $_SERVER["HTTP_USER_AGENT"]; $activity_info["REMOTE_ADDR"] = $_SERVER["REMOTE_ADDR"]; $this->query_insert($this->table_user_activity, $activity_info); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addActivity() {\n\t\tglobal $db;\n\t\t$success = false;\n\t\ttry {\n\t\t\t$lat_long_id = $this->getLongLatId();\n\t\t\t$created = date(\"Y-m-d H:i:s\");\n\t\t\t$result = $db->exec(\"INSERT INTO Activities (title, description,picture, lat_long_id,date_event, time_event, user_id, users_min, user_max,...
[ "0.7185489", "0.7020413", "0.6999316", "0.66028535", "0.6422556", "0.6397305", "0.6389601", "0.63527924", "0.6350031", "0.62733495", "0.62528807", "0.62495923", "0.623842", "0.6212039", "0.6143276", "0.61255664", "0.6123256", "0.6080998", "0.60625774", "0.6041078", "0.6017151...
0.7073016
1
Retrieve a random word from the given list
Получить случайное слово из заданного списка
private static function getRandomWord($wordList) { return $wordList[random_int(0, count($wordList) - 1)]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function randWord(){\r\n $words = $this->query(\"select count(*) from 'dictonary';\")->fetchArray()[0];\r\n return $this->query(\"select * from 'dictonary' limit 1 offset \".mt_rand(0,$words-1).\"\")->fetchArray()['wholeWord'];\r\n }", "public function getWord(){\n\t\t$key = array_rand($this->wo...
[ "0.7923845", "0.7691309", "0.7119238", "0.7092359", "0.7086476", "0.7039717", "0.7019709", "0.6839794", "0.6820604", "0.6819946", "0.6745198", "0.674076", "0.6652435", "0.6585258", "0.6514185", "0.6496065", "0.647293", "0.6455425", "0.6445319", "0.6428589", "0.6428398", "0....
0.79398054
0
Returns a name of option from related table by id
Возвращает имя опции из связанной таблицы по идентификатору
public function getLisOptionNameById($id, $related_table){ $sql = mysql_query("SELECT `id` FROM `".$related_table."`"); if($sql){ $query = " SELECT `name` FROM `".$related_table."` WHERE `id` = '".$id."' "; $sql = mysql_query($query); $result = mysql_fetch_assoc($sql); return $resul...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function option_name($id) {\n return $this->get_option($id,'name');\n }", "public function getOptionId();", "public function getId(){\n return $this->__get('option_id');\n }", "function getChops($id) {\n if ($id !=null || $id !=\"\") {\n return OptionValue::find($id)->name;\n ...
[ "0.7402969", "0.68422633", "0.67213625", "0.6657012", "0.6516385", "0.6339923", "0.63377565", "0.6335561", "0.6319808", "0.62329113", "0.62057114", "0.61525035", "0.61439866", "0.6124745", "0.61128634", "0.60843885", "0.60812926", "0.6068409", "0.60482526", "0.60468143", "0.6...
0.7247088
1
Parse options from table to array
Парсить опции из таблицы в массив
public function parseOptionsFromTable($table){ $query = " SELECT `id`, `name` FROM `".DB::quote($table)."` WHERE `publish` = 1 ORDER BY `id` ASC "; $sql = mysql_query($query); if($sql){ while($req = mysql_f...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function getTableOptions() {\n $rows = Queries::getTableRows($this->table, [$this->keyColumn, $this->descriptionColumn]);\n $options = collect();\n\n foreach ($rows as $row) {\n $options->push($this->createOption($row->{$this->keyColumn}, $row->{$this->descriptionColumn}));\...
[ "0.73417443", "0.68769014", "0.677916", "0.6740595", "0.65908325", "0.64945495", "0.62817824", "0.6251384", "0.6212362", "0.6190176", "0.6184011", "0.61585414", "0.6136759", "0.6125027", "0.6096543", "0.6083165", "0.60810596", "0.6076989", "0.6038612", "0.59898925", "0.597010...
0.7105383
1
Parse custom options from string to array
Парсить пользовательские опции из строки в массив
public function parseCustomOptions($string){ $first_step = explode(';', $string); $result = array(); foreach($first_step as $item){ $arr = explode('=', $item); if(!empty($arr[0]) && !empty($arr[1])){ $result[] = array( ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function parseOptions(array $raw): array\n {\n $options = [];\n foreach ($raw as $rawOption) {\n $matches = [];\n if (preg_match('#^([a-z_\\-]+):(.*)?$#i', $rawOption, $matches)) {\n $options[strtolower($matches[1])] = $matches[2];\n }\n ...
[ "0.7132255", "0.70537055", "0.6902906", "0.67052466", "0.668776", "0.6566696", "0.65565026", "0.64653254", "0.64145416", "0.63437957", "0.6328798", "0.62613326", "0.62498647", "0.624689", "0.6242625", "0.6242625", "0.6220005", "0.61755633", "0.6175342", "0.6143954", "0.613259...
0.7772311
0
Deletes a file from the archive. Returns TRUE on success or FALSE on failure.
Удаляет файл из архива. Возвращает TRUE при успешном выполнении или FALSE при неудаче.
public function deleteFile($file) { if (is_int($file)) { return $this->_zip->deleteIndex($file); } elseif (is_string($file)) { return $this->_zip->deleteName($file); } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function actionDeleteFile()\n {\n ['key' => $key, 'dir' => $dir, 'fileName' => $fileName] = Yii::$app->request->post();\n\n $path = Url::to('@storage/') . $dir . '/' . $key . '/' . $fileName;\n if (file_exists($path) && unlink($path)) {\n return true;\n }\n r...
[ "0.7100917", "0.70998746", "0.7081915", "0.7078861", "0.7014167", "0.70011324", "0.6992765", "0.6945307", "0.6942537", "0.694177", "0.6914843", "0.68880826", "0.68808675", "0.68791074", "0.68754655", "0.6823402", "0.6812409", "0.678841", "0.6787581", "0.67827094", "0.6770649"...
0.73520386
0
Gets (if $comment is omitted) or sets the comment of the archive
Получает (если $comment опущено) или устанавливает комментарий архива
public function comment($comment = null) { if (!is_null($comment)) { return $this->_zip->setArchiveComment($comment); } else { return $this->_zip->getArchiveComment(ZipArchive::FL_UNCHANGED); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setArchiveComment ($comment) {}", "public function setArchiveComment($comment)\n {\n if ($this->_readOnly) {\n return false;\n } else if (!($this->_centralDirectory instanceof ZipCentralDirectory)) {\n return false;\n } else {\n $this->_cen...
[ "0.8155605", "0.72624964", "0.64742833", "0.6316257", "0.6305823", "0.627105", "0.62460965", "0.62148845", "0.62108314", "0.62053025", "0.6161866", "0.6053939", "0.60353243", "0.60351765", "0.6020724", "0.60084563", "0.6006422", "0.5984613", "0.59234905", "0.58828026", "0.586...
0.8161027
0
Test the expected presence of restaurant data
Проверьте ожидаемое наличие данных о ресторане
public function testRestaurantData() { // Koala JSON Eatery $this->json('GET', route('get-restaurant-data', ['id' => 2]))->seeJson( json_decode( file_get_contents( storage_path('tests/location-koala-json-response.json') ), ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testIsRestaurantInstance()\n {\n $this->assertNotEmpty($this->restaurant);\n $this->assertInstanceOf(Restaurant::class, $this->restaurant);\n }", "function testGetInfoAboutRrestaurantWhichNotExists() {\n $max_restaurant_id = Yii::app()->db->createCommand()->select('max(...
[ "0.68469995", "0.65649205", "0.6336844", "0.63117796", "0.6163473", "0.61332065", "0.6051491", "0.60173374", "0.59637505", "0.5956392", "0.59193295", "0.59026706", "0.58442515", "0.5796016", "0.5792384", "0.5772025", "0.5765064", "0.57370484", "0.5733356", "0.5733141", "0.572...
0.73285705
0
Checks for a missing doc block and throws an error if the doc is missing.
Проверяет наличие блока документации и генерирует ошибку, если блок документации отсутствует.
private function checkAndRegisterMissingDocBlock(): void { if (!$this->getDocCommentPos()) { $tokenIdent = $this->getTokenName(); $exception = (new CodeError( static::CODE_MISSING_DOC_BLOCK_PREFIX . ucfirst($tokenIdent), self::MESSAGE_MISSING_DOC_BLOC...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function checkDocRoot() {}", "public function test_bp_docs_is_existing_doc_true() {\n\t\treturn;\n\n\t\t$doc_id = $this->factory->doc->create();\n\t\t$this->go_to( bp_docs_get_doc_link( $doc_id ) );\n\t\t$this->assertTrue( bp_docs_is_existing_doc() );\n\t}", "protected function validateFileStructure(...
[ "0.679628", "0.593994", "0.5879646", "0.5840556", "0.5780064", "0.5759063", "0.57372713", "0.5669523", "0.56603765", "0.55475503", "0.5542552", "0.55294406", "0.546367", "0.54374737", "0.54322946", "0.54253525", "0.5311954", "0.5295725", "0.52911144", "0.5276403", "0.52713543...
0.83935046
0
Returns the Graphs Service instance.
Возвращает экземпляр службы Graphs.
public function getGraphsService(): GraphsService { return $this->_graphsService; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static public function GROUP() { return new Service_OpenSocial_Service(self::GROUP); }", "public function setGraphsService(GraphsService $graphsService = null): self\n {\n $this->_graphsService = $graphsService ?\n $graphsService :\n new GraphsService();\n\n $this->_graphsS...
[ "0.6185124", "0.6154085", "0.61391103", "0.61319447", "0.6097924", "0.6015068", "0.60128623", "0.5987927", "0.5987927", "0.5960981", "0.5959888", "0.5951305", "0.5941814", "0.5932778", "0.5931365", "0.5930597", "0.5924195", "0.59086823", "0.5894379", "0.5894344", "0.5884261",...
0.8515242
0
derivated booklet function from MPDF author it splitts all pages in many booklet (20 to 20) for example, first booklet look like this : 20,1,2,19,18,3,4,17,16,5,6,15,14,7,8,13,12,9,10,11 and the second, like this : 40,21,22,39,38,23,24,37,36,25,26,35,34,27,28,33,32,29,30,31 in order to produce a book easy to bind, with...
Производная функция booklet от автора MPDF разбивает все страницы на множество книжных блоков (по 20 на 20). Например, первый блок выглядит так: 20,1,2,19,18,3,4,17,16,5,6,15,14,7,8,13,12,9,10,11, а второй: 40,21,22,39,38,23,24,37,36,25,26,35,34,27,28,33,32,29,30,31. Это позволяет создать книгу, легко привязываемую без...
function GetBookletPages($np, $backcover=false) { $lastpage = $np; //finds the closest number from $np which is divisible by 4 (because of the booklet) $np = 4*ceil($np/4); //finds the last complete booklet from 20 pages $np2 = 20*floor($np/20); $pp = array(); for ($i=1, $j=1, $k=1; $i<=$np/2; $i++, $j++, $k++)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Book($b){\n\t\t$m = $b / 3;\n\t\t$tg = $b - $m;\n\t\t$t_book = $tg / 2;\n\t\treturn $t_book;\n\t}", "function getBookList($currentpage)\n{\n\t$book_excpet_list = array(\"content.json\");\n\t$book_name_arr = array();\n\n $path = getBookPath();\n\t$handle = opendir($path);\n\t/*其中$filename = readdir($h...
[ "0.5781445", "0.5632621", "0.5619781", "0.5605617", "0.5560193", "0.550789", "0.54264385", "0.5417865", "0.54126304", "0.54006284", "0.5367557", "0.53637993", "0.5357378", "0.53447205", "0.53444874", "0.5343365", "0.5338114", "0.53346246", "0.53250796", "0.53241855", "0.52889...
0.7568315
0
get vacancies according to the given type
получить вакансии по заданному типу
function getVacanciesByType($typeid){ $query = $this->db->get_where('vacancy', array('typeid' => $typeid),0, 0); return $query->result_array(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAllWithType($type);", "public function getAllVacatures(){\n return($this->findAll());\n }", "public function vacancies()\n {\n return $this->belongsToMany(Vacancy::class);\n }", "public function getLifeCrontabByStatusType($statusType){\n\n return $thi...
[ "0.5956971", "0.583137", "0.5828437", "0.57947314", "0.5736803", "0.5719895", "0.5717714", "0.5680533", "0.56644136", "0.56243646", "0.56233555", "0.5612108", "0.5577429", "0.55559075", "0.5552867", "0.5552506", "0.5541568", "0.5509935", "0.54900265", "0.5475325", "0.54635704...
0.7280464
0
/ Redirect to the lobby page
/ Перенаправление на страницу лобби
public function redirectToLobbyWithToken(){ $this->accessControl->redirect($this->lobbyPath()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function sendRedirect() {}", "public function redirect();", "public function redirect();", "private function redirect() {\n if (!$this->is_on_url()) {\n header('Location: ' . $this->full_url(), TRUE, 301);\n drupal_exit($this->full_url());\n }\n }", "private function redirect()\n ...
[ "0.677447", "0.67067516", "0.67067516", "0.6685184", "0.66200936", "0.6583018", "0.6565461", "0.64411855", "0.64410543", "0.6355149", "0.63445497", "0.63193053", "0.63011324", "0.6296451", "0.62809813", "0.6278274", "0.62608516", "0.62486625", "0.62383115", "0.6224703", "0.61...
0.76224506
0
/ Return the URL for the lobby path that comes with the CSRF Token that protects the CSRF attack.
Верните URL для пути лобби, который сопровождается токеном CSRF, защищающим от атак CSRF.
public function lobbyPath() { return $this->accessControl->getCSRFToken()."/lobby"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function redirectToLobbyWithToken(){\n $this->accessControl->redirect($this->lobbyPath());\n }", "public function get_current_url()\n\t{\n\t\treturn generate_board_url(true) . $this->request->escape($this->symfony_request->getRequestUri(), true);\n\t}", "public function getRequestUrl();", "p...
[ "0.58653265", "0.5818114", "0.5776806", "0.5565875", "0.554558", "0.5536062", "0.55271447", "0.5519717", "0.5502624", "0.54944474", "0.5473709", "0.5470897", "0.5467898", "0.5467898", "0.5467898", "0.54661834", "0.5436205", "0.5433315", "0.5402496", "0.53920215", "0.53864264"...
0.7340976
0
/ Return an array that comes with all registered and online users based on the timestamp that is under 5 minutes; otherwise, return an empty array if there isn't any online users.
Вернуть массив, содержащий всех зарегистрированных и онлайн пользователей на основе временной метки, которая не превышает 5 минут; в противном случае вернуть пустой массив, если нет онлайн пользователей.
public function listOnlineUser(): array{ $user = []; //Retrieve an array from ProfileModel class and loop through all registered users. foreach($this->profileModel->listUser() as $item){ // Insert into an array as long as user's timestamp is under 5 minutes and different user, instea...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function checkOnlineUsers()\n\t{\n\t\t//Time between last hit and current moment\n\t\tif($this -> registry -> getSetting(\"DbEngine\") == \"sqlite\")\n\t\t{\n\t\t\t$all_ids = $this -> db -> getAll(\"SELECT `user_id`, `last_hit` FROM `\".$this -> table.\"`\");\n\t\t\t$users_ids = array();\n\t\t\t\n\t\t\tfore...
[ "0.73268074", "0.70638734", "0.6889711", "0.6829885", "0.6751655", "0.67311245", "0.66237336", "0.6587861", "0.6581551", "0.65141755", "0.64597905", "0.6372138", "0.6311419", "0.6294827", "0.6276854", "0.62500185", "0.6192513", "0.61795694", "0.61548036", "0.6134604", "0.6121...
0.7364079
0
/ Invoice needs DeliveryOrders that is done and has pendingDeliveryNotes
Счет требует выполненных DeliveryOrders с ожидающими DeliveryNotes
public function pendingDeliveryNotes() { return $this->deliveryNotes()->notDone(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hasCurrentPendingOrder() {\n\n $count = OrderQuery::create()\n ->filterBySubscriptionId($this->getId())\n ->filterByStatus('Pending')\n ->filterByDeliveryScheduledFor(array('min' => date('Y-m-d')))\n ->count();\n return ($count > 0);\n\n }", "public function getOutstand...
[ "0.6411197", "0.6397969", "0.6392756", "0.63095176", "0.625107", "0.61341614", "0.61290497", "0.61223537", "0.61150956", "0.607783", "0.6031192", "0.6031192", "0.6031192", "0.6001445", "0.60008186", "0.59814626", "0.5975448", "0.59631556", "0.5950988", "0.59374225", "0.593682...
0.7010233
0
Lists all atworkleavetype entities.
Список всех сущностей atworkleavetype.
public function indexAction() { $em = $this->getDoctrine()->getManager(); $atworkleavetypes = $em->getRepository('attBundle:Atworkleavetype')->findAll(); return $this->render('attBundle:WorkLeaveType:index.html.twig', array( 'atworkleavetypes' => $atworkleavetypes, )); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function List()\n {\n \n $data = ExameType::all();\n \n \n return $data;\n }", "public function index()\n {\n $anesthesiologyTypes = AnesthesiologyType::paginate(100);\n\n return AnesthesiologyTypeResources::collection($anesthesiologyTypes);\n }", "...
[ "0.63041514", "0.6280216", "0.62545323", "0.6189203", "0.6154556", "0.6030102", "0.6012761", "0.6009549", "0.59405416", "0.59009403", "0.5894332", "0.58448076", "0.58430374", "0.5821713", "0.58049464", "0.57618576", "0.5736412", "0.57208186", "0.5715486", "0.5704622", "0.5692...
0.71077496
0
Creates a form to delete a atworkleavetype entity.
Создает форму для удаления сущности atworkleavetype.
private function createDeleteForm(Atworkleavetype $atworkleavetype) { return $this->createFormBuilder() ->setAction($this->generateUrl('att_workleavetype_delete', array('id' => $atworkleavetype->getId()))) ->setMethod('DELETE') ->getForm() ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function createDeleteForm(typeOperation $typeOperation)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('typeoperationEncours_delete', array('id' => $typeOperation->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "pr...
[ "0.6717216", "0.66949826", "0.6638337", "0.650861", "0.6453619", "0.63866204", "0.6291969", "0.628387", "0.62760764", "0.6274119", "0.62672544", "0.62546253", "0.62540615", "0.6238819", "0.62052757", "0.6168973", "0.61444086", "0.6144153", "0.6111395", "0.6096382", "0.6079036...
0.83762825
0
Constructor method for Committee_ClassificationType
Конструктор метода для Committee_ClassificationType
public function __construct(\WorkdayWsdl\\StructType\Committee_ClassificationObjectType $committee_Classification_Reference = null, array $committee_Classification_Data = array()) { $this ->setCommittee_Classification_Reference($committee_Classification_Reference) ->setCommittee_Clas...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __construct(array $committee_Classification_Group = array())\n {\n $this\n ->setCommittee_Classification_Group($committee_Classification_Group);\n }", "public function __construct(array $committee_Membership_Type_Reference = array())\n {\n $this\n ->se...
[ "0.7173577", "0.6682502", "0.60233295", "0.6018818", "0.6018818", "0.5815446", "0.5800003", "0.57992303", "0.57992303", "0.5779141", "0.5757366", "0.57257444", "0.5708688", "0.57066107", "0.5670981", "0.5649736", "0.5636515", "0.5590735", "0.5579735", "0.55771023", "0.5546352...
0.7298079
0
Add item to Committee_Classification_Data value
Добавить элемент в значение Committee_Classification_Data
public function addToCommittee_Classification_Data(\WorkdayWsdl\\StructType\Committee_Classification_DataType $item) { // validation for constraint: itemType if (!$item instanceof \WorkdayWsdl\\StructType\Committee_Classification_DataType) { throw new \InvalidArgumentException(sprintf('T...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addToCommittee_Classifications_Reference(\\WorkdayWsdl\\\\StructType\\Committee_ClassificationObjectType $item)\n {\n // validation for constraint: itemType\n if (!$item instanceof \\WorkdayWsdl\\\\StructType\\Committee_ClassificationObjectType) {\n throw new \\InvalidAr...
[ "0.6165314", "0.56484383", "0.54025185", "0.5360287", "0.5345046", "0.5263557", "0.52049553", "0.52022976", "0.50949717", "0.5032681", "0.5021441", "0.5000951", "0.49745983", "0.494031", "0.49252576", "0.48804143", "0.4863668", "0.48606434", "0.4857539", "0.4852817", "0.48136...
0.7210832
0
Get random user id
Получить случайный идентификатор пользователя
private function getRandomUserId(){ $user = \App\User::inRandomOrder()->first(); return $user->id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function generateUserId(): int\n {\n return random_int(1, self::maxUsers);\n }", "public function GenerateRandomUserID(){\n $currentTime=time();\n $random=rand();\n $currentTimes=$currentTime*$random;\n $FinalUserID=substr($currentTimes,-11,-1);\n return $F...
[ "0.8474181", "0.804453", "0.7816471", "0.7650507", "0.7521482", "0.75119996", "0.7503294", "0.73340905", "0.7269495", "0.72157854", "0.71801174", "0.71547455", "0.71421695", "0.71113825", "0.71081483", "0.7103654", "0.7067411", "0.7061381", "0.70496994", "0.7018783", "0.70103...
0.87270516
0
Get random product id
Получить случайный идентификатор продукта
private function getRandomProductId(){ $product = \App\Product::inRandomOrder()->first(); return $product->id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_product_id()\n {\n }", "public static function product()\n {\n return static::randomElement(static::$products);\n }", "private function get_product_id($product)\n {\n }", "private function getRandomUserId(){\n $user = \\App\\User::inRandomOr...
[ "0.727464", "0.6905705", "0.6838535", "0.6765668", "0.67600155", "0.674675", "0.6665404", "0.6655382", "0.66404575", "0.6579639", "0.65607417", "0.6553203", "0.65502733", "0.65464973", "0.6535147", "0.6535147", "0.64774036", "0.64720154", "0.6465427", "0.6465153", "0.64540285...
0.8885992
0
Retrieves a DRI_Workflow_Task_Template with id $id and returns a instance of the retrieved bean
Получает DRI_Workflow_Task_Template с идентификатором $id и возвращает экземпляр полученного бина
public static function getById($id) { if (empty($id)) { require_once 'modules/DRI_Workflow_Task_Templates/Exception/IdNotFound.php'; throw new DRI_Workflow_Task_Templates_Exception_IdNotFound($id); } /** @var DRI_Workflow_Task_Template $bean */ $bean = BeanFa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTemplate($id) {\n $select = $this->getDatabase()\n ->select()\n ->from($this->getTableName())\n ->where('id = ?', $id);\n\n $data = $select->fetchOne();\n $data['id'] = (int)$data['id'];\n ...
[ "0.68459606", "0.64901704", "0.6459447", "0.64402944", "0.642914", "0.64229965", "0.63131607", "0.62137496", "0.617457", "0.6146827", "0.6070734", "0.6025593", "0.5885862", "0.5884718", "0.58551425", "0.5809657", "0.5791775", "0.5776015", "0.57696414", "0.5755433", "0.5680428...
0.8388024
0
Clears the cache used when updating activity due dates from the parent if this is needed.
Очищает кэш, используемый при обновлении даты окончания активности из родителя, если это необходимо.
private function clearParentActivityDatesCache() { if ($this->task_due_date_type === self::TASK_DUE_DATE_TYPE_DAYS_FROM_PARENT_DATE_FIELD) { require_once 'modules/DRI_Workflows/LogicHook/ParentHook.php'; DRI_Workflows_LogicHook_ParentHook::clearParentActivityDatesCache($this->due_dat...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function _clearCache()\n {\n Cache::forget(\"report-resource:{$this->id}\");\n\n foreach ($this->getAssociatedDamageIds() as $id) {\n Cache::forget(\"roaddamage-resource:{$id}\");\n }\n foreach ($this->getAssociatedReportIds() as $id) {\n Cache::forget(\...
[ "0.6018081", "0.59305847", "0.58695096", "0.5840601", "0.5840601", "0.5759305", "0.57477903", "0.5737254", "0.5737254", "0.5737254", "0.57024974", "0.566175", "0.566175", "0.566175", "0.566175", "0.565182", "0.565182", "0.56439143", "0.56439143", "0.56311846", "0.56283987", ...
0.83977604
0
Adds a prehook for the tagname which is called whenever the tag will be generating by calling the passed in function.
Добавляет предварительный хук для тега, который вызывается каждый раз, когда тег будет генерироваться с помощью переданной функции.
public static function addPre($tagName, $hook) { # Initiate array is no hook for it has ever been defined if (!isset(static::$preHooks[$tagName])) { static::$preHooks[$tagName] = []; } # Add the hook if it is a callable function if (is_callable($hook)) { static::$preHooks[$tagName][] = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function add_hook($tag, $function, $priority = 10) {\n\tglobal $hook;\n\t$hook->add_hook ( $tag, $function, $priority );\n}", "function before($function){\n\t\tFrank::add_filter('before', $function);\n\t}", "public static function specialBeforeHook()\n {\n }", "public abstract function hook_in($hook_na...
[ "0.6543122", "0.6405704", "0.6144049", "0.6085382", "0.5967548", "0.594322", "0.5903928", "0.5903007", "0.5879299", "0.58543193", "0.5842313", "0.58251154", "0.58251154", "0.57959497", "0.57959497", "0.579442", "0.57665557", "0.5762109", "0.57587534", "0.5751406", "0.57460815...
0.7009631
0
Get the external ID from this item.
Получите внешний идентификатор из этого элемента.
public function getExternalId() { return $this->externalId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getExternalId()\n {\n return $this->external_id;\n }", "public function getExternalId() {\n\t\treturn $this->externalId;\n\t}", "public function getExternalId()\n {\n if (array_key_exists(\"externalId\", $this->_propDict)) {\n return $this->_propDict[\"external...
[ "0.83054227", "0.8228569", "0.81528974", "0.810801", "0.8077258", "0.8077258", "0.7921656", "0.77864057", "0.7159962", "0.70400906", "0.6962679", "0.6887946", "0.6887946", "0.6887946", "0.6887946", "0.6887946", "0.6887946", "0.6887946", "0.6887946", "0.6887946", "0.6887946", ...
0.82645273
1
Get the Cdbid from this item.
Получите Cdbid из этого элемента.
public function getCdbId() { return $this->cdbId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getCid() {\n return $this->cid;\n }", "public function getID()\n {\n return $this->iD;\n }", "public function getID()\n {\n return $this->iD;\n }", "public function getID()\n {\n return $this->iD;\n }", "public function getID()\n {\n r...
[ "0.7153493", "0.664889", "0.664889", "0.664889", "0.664889", "0.664889", "0.664889", "0.664889", "0.664889", "0.664889", "0.664889", "0.664889", "0.664889", "0.664889", "0.664889", "0.664889", "0.664889", "0.664889", "0.6562587", "0.649915", "0.649682", "0.6431276", "0.64...
0.812684
0
Get the thumbnail image from current item.
Получить миниатюрное изображение из текущего элемента.
public function getThumbnail() { return $this->thumbnail; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function get_thumbnail() {\n return get_the_post_thumbnail($this->product_id);\n }", "function getThumbnail ()\r\n \t{\r\n \t\r\n \t return $this->image;\r\n \t\r\n \t}", "public function getThumbnail()\n {\n if (!isset($this->thumbnail)) {\n $this->thumbnail = $thi...
[ "0.7773589", "0.7715391", "0.76068264", "0.7590015", "0.75624937", "0.7543074", "0.7534376", "0.7522492", "0.7516821", "0.7466542", "0.7420461", "0.73795116", "0.7346587", "0.71921253", "0.7187168", "0.7177698", "0.7139608", "0.70558983", "0.7041828", "0.70382077", "0.7028844...
0.7746456
1
Get the calendar summary from this item.
Получите итог календаря из этого элемента.
public function getCalendarSummary() { return $this->calendarSummary; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSummary() {\n\t\treturn Temboo_Results::getSubItemByKey($this->base, \"summary\");\n\t}", "public function getSummary() {\n\t\treturn Temboo_Results::getSubItemByKey($this->base, \"summary\");\n\t}", "public function getSummary() {\n\t\treturn Temboo_Results::getSubItemByKey($this->base, \"s...
[ "0.67698634", "0.67698634", "0.67698634", "0.658591", "0.65798944", "0.65264434", "0.65264434", "0.65264434", "0.65264434", "0.65264434", "0.6505231", "0.64596575", "0.64596575", "0.643782", "0.6432218", "0.63774663", "0.63638985", "0.6234578", "0.6234578", "0.6234578", "0.62...
0.8377302
0
Get the price description from this item.
Получите описание цены из этого элемента.
public function getPriceDescription() { return $this->priceDescription; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getItemPrice()\n {\n return $this->itemPrice;\n }", "public function getPrice()\n {\n return $this->_get(self::KEY_PRICE);\n }", "public function getPrice()\n {\n return $this->safeGet('price');\n }", "private function get_description() {\n $descr...
[ "0.73259085", "0.7207187", "0.71913993", "0.7187639", "0.7148158", "0.7121849", "0.7095837", "0.7095837", "0.7095837", "0.7095837", "0.7095837", "0.7095837", "0.7095837", "0.7095837", "0.7095837", "0.7095837", "0.7095837", "0.7095837", "0.7095837", "0.7095837", "0.7095837", ...
0.85747606
0
Set the cdbid from this item.
Задайте cdbid из этого элемента.
public function setCdbId($id) { $this->cdbId = $id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCdbId()\n {\n return $this->cdbId;\n }", "public function setID($_id){\n\t\t\t$this->id = $_id;\n\t\t\t\n\t\t\t// Set the chemical\n\t\t\t$this->chemical = new Chemical($this->dbi);\n\t\t\t$this->chemical->setByID($this->id);\n\t\t}", "public function setID($dplmID)\n {\n $t...
[ "0.63786954", "0.6040179", "0.5784647", "0.5514212", "0.5497776", "0.54693854", "0.5455379", "0.54406947", "0.5426054", "0.541801", "0.53973544", "0.53889346", "0.53853583", "0.5384209", "0.5358301", "0.53523403", "0.5348112", "0.5343678", "0.5334597", "0.53182924", "0.531607...
0.71862704
0
Set the price description from this item.
Установите описание цены этого товара.
public function setPriceDescription($description) { $this->priceDescription = $description; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setGoods_description($value)\r\n {\r\n \t$this->_goods_description = $value;\r\n }", "public function setPrice($price) {\n $this->price = $price;\n }", "function setPrice($price)\r\n\t{\r\n\t\t$this->_price = $price;\r\n\t}", "function setPrice($price){\n $t...
[ "0.68939555", "0.6774418", "0.6762696", "0.6737116", "0.66882086", "0.66827935", "0.66812986", "0.66812986", "0.66193104", "0.66193104", "0.66193104", "0.66193104", "0.6575241", "0.6571531", "0.6571531", "0.6558166", "0.6461065", "0.6455078", "0.6354694", "0.6343197", "0.6325...
0.7863587
0
Set the performers from this item.
Установите исполнителей из этого элемента.
public function setPerformers($performers) { $this->performers = $performers; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function performers($performers)\n {\n return $this->setProperty('performers', $performers);\n }", "public function setPerformer($performer) {\n $this->performer = $performer;\n return $this;\n }", "public function performer($performer)\n {\n return $this->setProp...
[ "0.7331679", "0.6479119", "0.6277458", "0.55801964", "0.5415", "0.53309834", "0.5294446", "0.5279262", "0.51327145", "0.51142126", "0.5113779", "0.51116765", "0.50714684", "0.50071317", "0.5005893", "0.50019705", "0.49907675", "0.49873734", "0.49757197", "0.49640366", "0.4943...
0.7746086
0
Move $options found in $values to the beginning of the array.
Переместите $options, найденные в $values, в начало массива.
function ubf_move_selected_sf_inputs_to_top( $options, $values ) { $idx_to_pull = []; $selected = []; foreach ( $options as $idx => $option ) { if ( in_array( $option->value, $values ) ) { array_unshift( $idx_to_pull, $idx ); } } foreach ( $idx_to_pull as $idx ) { $pulled = array_splic...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function setOptionsToValues($options, $values)\n {\n $values = $this->getArrayValue($values);\n $result = [];\n foreach ($values as $value) {\n if (isset($options[$value])) {\n $result[] = $options[$value];\n }\n }\n return count(...
[ "0.6147629", "0.5764053", "0.5757429", "0.55749696", "0.55008596", "0.54606855", "0.54530805", "0.54508275", "0.5433473", "0.542016", "0.5392211", "0.53910226", "0.5389372", "0.5317783", "0.5282326", "0.52679724", "0.520549", "0.5159559", "0.51380384", "0.51253086", "0.509816...
0.7312809
0
add_filter( 'login_errors', 'ZPDBRAND_login_errors' ); ============================================================================================================ ================================================== DEMO 2 ================================================== ===============================================...
add_filter( 'login_errors', 'ZPDBRAND_login_errors' ); ============================================================================================================ ================================================== ДЕМО 2 ================================================== ===============================================...
function ZPDBRAND_login_logo() { $logo_url = ZPDBRAND_PLUGIN_URL . 'img/zpd-login-logo.png'; echo " <style> body.login #login h1 a { background: url('" . $logo_url . "') no-repeat scroll center top transparent !important; height: 64px; width: 100%; } </style> "; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function lop_custom_login_logo() {\n\tglobal $data;\n\tif ( $data['lop_custom_login'] ) {\n\techo '<style type=\"text/css\">h1 a { background-image:url('.$data['lop_custom_login'].') !important; } </style>'; }\n}", "function crum_custom_login_logo() {\n\tglobal $dfd_ronneby;\n\t\n\t$before_login_page_css = $lo...
[ "0.7704234", "0.7624813", "0.76070833", "0.75553924", "0.75134265", "0.74879855", "0.7475056", "0.7467992", "0.7457266", "0.7446979", "0.73463714", "0.72869396", "0.7259223", "0.72577333", "0.7244016", "0.7204558", "0.7164809", "0.7156797", "0.7156797", "0.7153585", "0.715018...
0.7699739
1
add_action( 'admin_bar_menu', 'ZPDBRAND_remove_wp_logo', 11 ); ============================================================================================================ ================================================== DEMO 6 ================================================== =======================================...
add_action( 'admin_bar_menu', 'ZPDBRAND_remove_wp_logo', 11 ); ============================================================================================================ ================================================== ДЕМО 6 ================================================== =======================================...
function ZPDBRAND_dashboard_zombie_rssfeed_output() { echo '<div class="rss-widget zombie">'; wp_widget_rss_output(array( 'url' => 'http://thezombieapocalypseblog.com/feed/', 'title' => 'Latest news from The Zombie Apocalypse Blog', 'items' => 3, 'show_summary' => 1, 'sho...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function infomoz_dashboard_widget_function() {\r\n require_once(ABSPATH.WPINC.'/rss.php'); \r\n\t// Display whatever it is you want to show\r\n\techo \"Este widget indica que você está usando o plugin infomoz-glossário!<br>This Widget means that you are using infomoz-glossario plugin!\";\r\n\t\tif ( $rss =...
[ "0.76209235", "0.7537042", "0.7339076", "0.7171217", "0.71564466", "0.71423024", "0.7090318", "0.7063885", "0.7049235", "0.7041714", "0.7025348", "0.69498086", "0.6937557", "0.6933961", "0.69266367", "0.68990064", "0.6893533", "0.68700004", "0.6863434", "0.68580073", "0.68571...
0.7636485
0
Add RSS news feed dashboard widget
Добавить виджет панели управления с RSS-лентой новостей
function ZPDBRAND_dashboard_add_news_feed_widget(){ wp_add_dashboard_widget('dashboard_zombie_feed', 'News from The Zombie Apocalypse Blog', 'ZPDBRAND_dashboard_zombie_rssfeed_output'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function yiw_dashboard_news() {\n\t$args = array( 'show_author' => 1, 'show_date' => 1, 'show_summary' => 1, 'items'=>3 );\n\twp_widget_rss_output( YIW_RSS_URL, $args );\n}", "function js_dashboard_widget() {\n\t\t\t\tinclude_once(ABSPATH . WPINC . '/feed.php');\n\t\t\t\t$rss = fetch_feed('http://daily.makerfair...
[ "0.797372", "0.7716358", "0.755511", "0.75520825", "0.74471927", "0.74419516", "0.7320844", "0.7319767", "0.72945863", "0.7214677", "0.71746", "0.71352625", "0.70692796", "0.70684415", "0.70641744", "0.7005049", "0.7002142", "0.69717795", "0.6967675", "0.6938293", "0.6910832"...
0.80357826
0
Aktualizawanie artykulu Funkcja kazdy elementu tablicy $article_data przepuszcza przez funkcje array_sanitize znajdujaca sie w pliku core/functions/general.php. Nastepnie aktualizuje wpis.
Обновление статьи. Каждый элемент массива $article_data проходит через функцию array_sanitize, находящуюся в файле core/functions/general.php. Затем происходит обновление записи.
function update_article($article_id, $article_data) { array_walk($article_data, 'array_sanitize'); $title = $article_data['title']; //$excerpt = $article_data['excerpt']; $content = $article_data['content']; mysql_query("UPDATE articles SET `title`='$title', `content`='$content' WHERE `id` = '$artic...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function edit_article($article_id, $data)\n\t{\n\t\t$article_id = (int) $article_id;\n\n\t\tif (isset($data['article_uri']) && $data['article_uri'] != '')\n\t\t{\n\t\t\t$data['article_uri'] = create_slug($data['article_uri']);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$data['article_uri'] = create_slug($data['article_title']...
[ "0.6312659", "0.6113963", "0.6113963", "0.6113963", "0.6113963", "0.61025757", "0.59359664", "0.5915002", "0.5908555", "0.59050846", "0.5897641", "0.583058", "0.5799871", "0.57689357", "0.5732706", "0.5728637", "0.5718655", "0.5700433", "0.56637317", "0.5651214", "0.56453145"...
0.72225726
0
/ Returns an array of all templateBody objects. If no template body records exist, returns false.
Возвращает массив всех объектов templateBody. Если не существует записей шаблона, возвращает false.
public function getAllTemplateBodys() { //The query method returns a mysqli_result object $result = $this->mysqli->query('SELECT * FROM template_body ORDER template_id, sequential_id;'); $templates = Array(); if($result->num_rows >= 1){ while($row = $result->fetch_as...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTemplateBodys($templateID) {\n $query = 'SELECT * FROM template_body WHERE template_id = ? ORDER BY sequential_id;';\n\t\t// The prepare method of the mysqli object returns a mysqli_stmt object. \n // It takes a parameterized query as a parameter.\n $stmt = $this->mysqli->p...
[ "0.7344787", "0.63145477", "0.62260556", "0.6140329", "0.6052815", "0.6040828", "0.59158087", "0.5865014", "0.585417", "0.58209705", "0.5794024", "0.57867265", "0.5762872", "0.57472265", "0.57390815", "0.57179487", "0.5701264", "0.56966275", "0.5649675", "0.56430477", "0.5630...
0.8339231
0
/ Returns an array of all templateBody objects by templateId. If no template body records exist, returns false.
Возвращает массив всех объектов templateBody по templateId. Если не существует записей шаблона, возвращает false.
public function getTemplateBodys($templateID) { $query = 'SELECT * FROM template_body WHERE template_id = ? ORDER BY sequential_id;'; // The prepare method of the mysqli object returns a mysqli_stmt object. // It takes a parameterized query as a parameter. $stmt = $this->mysqli->prepare($que...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAllTemplateBodys() {\n //The query method returns a mysqli_result object\n $result = $this->mysqli->query('SELECT * FROM template_body ORDER template_id, sequential_id;');\n $templates = Array();\n \n if($result->num_rows >= 1){\n while($row = $resul...
[ "0.78688216", "0.60277265", "0.59745264", "0.58813304", "0.5693295", "0.5620034", "0.55580145", "0.54590344", "0.5448729", "0.5419596", "0.540281", "0.53736556", "0.5360772", "0.53575003", "0.53467655", "0.53454405", "0.5336511", "0.53328776", "0.53067946", "0.5273649", "0.52...
0.8001082
0
/ Delete template body record. if failed, return false else return true
Удалить запись тела шаблона. Если неудачно, вернуть false, иначе вернуть true
public function delete($templateID) { if(!$this->mysqli->connect_errno){ $query = 'DELETE FROM template_body WHERE template_id = ?'; $stmt = $this->mysqli->prepare($query); $stmt->bind_param('i', $templateID); $stmt->execute(); if($stmt->error){ ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function deleteTemplate($tid)\n\t{\n\t\t$template_info = $this->getTemplateById($tid); \n\t\tif (!empty($template_info)) {\n\t\t\t$sql = \"DELETE FROM skill_crm_template WHERE template_id='$tid' LIMIT 1\";\n\t\t\tif ($this->getDB()->query($sql)) {\n\t\t\t\t$sql = \"DELETE FROM skill_crm_template_section WHERE temp...
[ "0.6668889", "0.6552364", "0.6367563", "0.62450075", "0.6124475", "0.6123233", "0.61107016", "0.6093321", "0.6085608", "0.60574096", "0.6056033", "0.60470617", "0.6036623", "0.60248446", "0.60217124", "0.60200554", "0.60072815", "0.6001332", "0.5976827", "0.59718144", "0.5971...
0.7402793
0
Retrieve addresses associated with contact
Получить адреса, связанные с контактом
public function showAddresses(Contact $contact) { return response()->json($contact->addresses()->get()->toArray(), Response::HTTP_OK); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAddresses();", "public function getAddresses();", "public function getAddresses()\n {\n return $this->callApi('/api/addresses');\n }", "public function getAddresses()\n {\n return $this->get(\"account/addresses\", array());\n }", "public function getContacts();"...
[ "0.72079164", "0.72079164", "0.7132939", "0.71115434", "0.6825768", "0.6710942", "0.66978705", "0.66878146", "0.6667162", "0.665773", "0.66540354", "0.66370845", "0.66210335", "0.6566644", "0.6548991", "0.6510896", "0.65028274", "0.6500326", "0.6470455", "0.645681", "0.643181...
0.7577177
0
set force open path
set force open path
function setForceOpenPath($a_path) { $this->force_open_path = $a_path; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setPath($path)\n {\n // look for special windows case\n if (SMART_PATH_DELIMITER === '\\\\') {\n $this->path = strtr($path, '/', '\\\\');\n } else {\n $this->path = $path;\n }\n }", "private function setPath()\n {\n $this->path = $this->root . ...
[ "0.6519015", "0.64458793", "0.6290215", "0.6278294", "0.60767233", "0.6050953", "0.5973651", "0.59586835", "0.5957216", "0.59445685", "0.5941379", "0.5904194", "0.59037536", "0.5890519", "0.58833885", "0.5878827", "0.58605665", "0.58585554", "0.5840298", "0.58217365", "0.5816...
0.8250088
0
Get maximum tree depth
Получить максимальную глубину дерева
function getMaximumTreeDepth() { $this->tree->getMaximumDepth(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function maxDepth();", "public function maxDepth();", "public function getMaxDepth()\n {\n return $this->maxDepth;\n }", "public function getMaxDepth()\n\t{\n\t\treturn $this->maxDepth;\n\t}", "public function getMaxDepth()\n {\n return $this->_maxDepth;\n }", "public fun...
[ "0.8700129", "0.8700129", "0.8356787", "0.8354006", "0.82862395", "0.82225895", "0.8144771", "0.7909176", "0.7542197", "0.74912727", "0.74644244", "0.74644244", "0.74644244", "0.74598897", "0.7459658", "0.7447474", "0.74346787", "0.7316271", "0.7315451", "0.7209544", "0.72032...
0.87311125
0
Get original childs of node (whole tree)
Получить оригинальных детей узла (целое дерево)
function getOriginalChildsOfNode($a_parent_id) { if (is_array($this->child_nodes[$a_parent_id])) { return $this->child_nodes[$a_parent_id]; } return array(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getChild_nodes(){\n\t\t$result=array();\n\t\t$this->tmp_list=array();\n\t\t$this->treeTraversal($this->id, 0, PHP_INT_MAX);\n\t\t$result=$this->tmp_list;\n\t\treturn $result;\n\t}", "public function getChildNodes() {}", "public function getChildren() {\n\t\treturn clone $this->children;\n\t}", ...
[ "0.70841473", "0.6883958", "0.68633723", "0.67953014", "0.6704839", "0.6628774", "0.66058344", "0.65607715", "0.65349287", "0.64788663", "0.64511055", "0.6441556", "0.643509", "0.643509", "0.64147794", "0.63884985", "0.637014", "0.6367222", "0.6365031", "0.63536435", "0.63520...
0.70456046
1
Redirect to the first item available for the given object type and id.
Перенаправление на первый доступный элемент для заданного типа объекта и идентификатора.
public function redirect_to_item() { if (!$this->check_auth()) { return $this->helper->needs_auth(); } $type = $this->request->variable('type', 0); $id = $this->request->variable('id', 0); if ($type && $id) { $this->load_item(false, $type, $id); redirect($this->attention->get_report_url()); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function my_redirect($id = null) {\n\t\tif (!$this->Product->hasAny(array('Product.id' => $id))) {\n\t\t\t$this->Session->setFlash('Neexistující produkt.', REDESIGN_PATH . 'flash_failure');\n\t\t\t$this->redirect('/', null, true);\n\t\t}\n\t\n\t\t$product = $this->Product->find('first', array(\n\t\t\t'conditions' ...
[ "0.61727834", "0.6102263", "0.58738595", "0.57884073", "0.57473826", "0.57381225", "0.5671587", "0.5652336", "0.56302756", "0.56200784", "0.56082195", "0.5565782", "0.5514067", "0.55056375", "0.54831123", "0.5466569", "0.54450727", "0.54434925", "0.5420996", "0.5413071", "0.5...
0.73175645
0
funcion para eliminar el registro de una persona
функция для удаления записи о человеке
public function elimina_persona($id) { //Elimina registro de personas $sqlelp="delete from personas where persona_id=$id;"; $resultelp= pg_query($this->conexion, $sqlelp) or die("Error elp: ".pg_last_error());//elimina registro de persona //Elimina registro de data_bak $sqlelb="d...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function _eliminar();", "function eliminar($id);", "public function deletePersona(){\n #Se guarda la consulta en una variable\n $sql = \"DELETE FROM persona WHERE id = ?\";\n #se guardan los parametros (datos recogidos) en una variable,como un arreglo\n $params = array($this->i...
[ "0.7701885", "0.75463206", "0.75257444", "0.74293065", "0.74203444", "0.733141", "0.72598493", "0.7259422", "0.7182359", "0.7169572", "0.7123391", "0.71088564", "0.7107491", "0.7107022", "0.70905924", "0.7074174", "0.7050955", "0.7024989", "0.701403", "0.6987698", "0.6981366"...
0.77403337
0
Operaciones para las razones sociales Inserta nueva razon scial
Операции для социальных причин Вставьте новую социальную причину
public function agrega_razon($nombre, $dir, $repre) { $sql = "insert into razones (raz_nombre, raz_direccion, raz_legal)" . "values ('".$nombre."','".$dir."','".$repre."')"; $result= pg_query($this->conexion,$sql) or die("Error altrzn: ". pg_last_error()); $this->inserts.="1"; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function insertNewZonePlan($data){\n $maxid = $this -> select()\n -> from('piano_di_fuga', array(\"id\" => \"MAX(Zona)\"))\n -> where('Immobile = ? ', $data['Immobile'])\n -> where('Id_piano = ? ', $data['Id_piano']);\n $result ...
[ "0.66740465", "0.64833796", "0.6456204", "0.63507384", "0.63230765", "0.6315821", "0.630135", "0.6254928", "0.62229145", "0.6201779", "0.6201599", "0.62007475", "0.6179157", "0.6175267", "0.6169618", "0.6157844", "0.6157565", "0.6127279", "0.61214316", "0.6108009", "0.6103591...
0.7040628
0
////////////////////////////////// Creer un fichier csv avec les mails saisis. //////////////////////////////////
////////////////////////////////// Создать файл csv с введенными email-адресами. //////////////////////////////////
function add_NewsLetter($mail){ $file = fopen("www/admin/newsletter/list_newsletter.csv","a"); fputcsv($file,array($mail)); fclose($file); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createCSV() {\n if ($csv = fopen(\"./csv/clientInfo.csv\", \"w\")) {\n // write a file\n foreach ($this->_contacts as $contact) {\n $vars = $contact->getVars();\n $data = [$vars['id'], $vars['firstname'], $vars['lastname'], $vars['phone'], $...
[ "0.71378213", "0.6896703", "0.6858957", "0.6804958", "0.6543803", "0.65000176", "0.64678997", "0.64045197", "0.6374154", "0.63275635", "0.63239837", "0.63214755", "0.62896174", "0.62111175", "0.6183692", "0.6132336", "0.60792536", "0.6074701", "0.6074512", "0.60707814", "0.60...
0.733204
0
Show the form for creating a new efinanciera.
Показать форму для создания нового efinanciera.
public function create() { return view('efinancieras.create'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function showCreateForm(){\n return view('admin.Ebuletin.create');\n }", "public function newAction()\n {\n $entity = new informeFinanciero();\n $form = $this->createCreateForm($entity);\n\n return $this->render('escuelaBundle:informeFinanciero:new.html.twig', array(\n ...
[ "0.79806453", "0.77185994", "0.76935774", "0.7623917", "0.7550076", "0.7449236", "0.74440587", "0.7441414", "0.742842", "0.7395478", "0.73748136", "0.7366337", "0.736467", "0.7361737", "0.73475415", "0.7332331", "0.7325304", "0.7317836", "0.73176754", "0.7315872", "0.7309235"...
0.77872396
1
Writes a $line to the log with a severity level of DEBUG
Записывает $line в журнал с уровнем серьёзности DEBUG
public function logDebug($line) { $this->log($line, self::DEBUG); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function logDebug($line, $logType = null)\r\n {\r\n $this->log($line, self::DEBUG, $logType);\r\n }", "public function logDebug($line, $feature)\n\t{\n\t\t$this->log($line, self::DEBUG, $feature);\n\t}", "public function log($line, $severity)\r\n {\r\n $inst = self::instance(null,...
[ "0.7358588", "0.7081762", "0.6656246", "0.64484876", "0.6316678", "0.6300779", "0.6239282", "0.6216998", "0.6215804", "0.6211779", "0.6211392", "0.6172473", "0.6150348", "0.6143377", "0.6130961", "0.6123127", "0.6109712", "0.60900855", "0.6088029", "0.6084935", "0.6003365", ...
0.83768314
0
Returns (and removes) the last message from the queue.
Возвращает (и удаляет) последнее сообщение из очереди.
public function getMessage() { return array_pop($this->_messageQueue); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getLastQueueItem()\r\n {\r\n if(count($this->getQueueItems()) == 0) return null;\r\n\r\n \r\n return last($this->getQueueItems())->getMsg();\r\n }", "public function getLastMessage()\n {\n $message = $this->_lastMessage;\n $this->_lastMessage = null;\n\n ...
[ "0.8392605", "0.7477976", "0.74327683", "0.73568904", "0.7306604", "0.7123446", "0.6981349", "0.6939639", "0.6928929", "0.690965", "0.69082516", "0.69005364", "0.6869618", "0.68117094", "0.6801562", "0.678605", "0.6782352", "0.6740863", "0.6738762", "0.6631809", "0.66225064",...
0.7913684
1
Empties the message queue
Очищает очередь сообщений
public function clearMessages() { $this->_messageQueue = array(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function clearQueuedMessages()\n\t{\n\t\t$this->queued = array();\n\t}", "public function clearQueue()\n {\n $this->queue = array();\n }", "public function clear()\n {\n $this->queue = new \\SplQueue();\n }", "public function clear()\n {\n while (!$this->queue->isEm...
[ "0.8169156", "0.8144461", "0.79584", "0.77589417", "0.77360684", "0.747149", "0.73315495", "0.7323674", "0.7240624", "0.7229248", "0.7149691", "0.7097225", "0.70700204", "0.7044646", "0.70079035", "0.6987923", "0.69063497", "0.6904893", "0.68731666", "0.6863793", "0.68637526"...
0.87378854
0
Sets the date format used by all instances of sKLogger If the second param $timeF is not set then only the the first param will be used. This function will may have issues
Устанавливает формат даты, используемый всеми экземплярами sKLogger. Если второй параметр $timeF не задан, будет использоваться только первый параметр. Эта функция может вызвать проблемы
public static function setDateFormat($dateF, $timeF = null) { if(isset($timeF)) { self::$_dateF = $dateF; self::$_timeF = $timeF; self::$_dateFormat = self::$_dateF." ".self::$_timeF; } else { self::$_dateFormat = $dateF; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function dtlSetTimeFormat($format) {\n global $dtlTimeFormat;\n $dtlTimeFormat = $format;\n}", "public function setDateFormat($format);", "public function setFormat($format) {\r\n\t\t//or maybe use regex preg_match('/\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}/',$date)\r\n\t\tif(is_array($format)) {\r\n\t\t\t$...
[ "0.6258737", "0.6145266", "0.5976754", "0.59648263", "0.5939609", "0.5932896", "0.5913102", "0.58722913", "0.58342135", "0.5823064", "0.5743781", "0.5724634", "0.5717129", "0.5607886", "0.55504584", "0.55308485", "0.55133325", "0.5492191", "0.5469659", "0.54575", "0.54478157"...
0.7687054
0
Writes a $line to the log with a severity level of INFO. Any information can be used here, or it could be used with E_STRICT errors
Записывает $line в журнал с уровнем серьёзности INFO. Здесь может использоваться любая информация, или же это может использоваться вместе с ошибками E_STRICT
public function logInfo($line) { self::log($line, self::INFO); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "final protected function logInfo($line)\n {\n try {\n $dtPiece = (new DateTime())->format('[d-M-Y H:i:s T]');\n } catch (Exception $e) {\n $dtPiece = '[INFO]';\n }\n\n echo sprintf('%s %s', $dtPiece, $line) . PHP_EOL;\n }", "public function logInfo($line, $...
[ "0.7668413", "0.7292072", "0.7231644", "0.7004095", "0.6923766", "0.68707436", "0.67467237", "0.6607243", "0.6525818", "0.6514417", "0.6474515", "0.6474515", "0.64616215", "0.64535075", "0.64535075", "0.6413713", "0.63968885", "0.63294774", "0.63255745", "0.6318383", "0.62577...
0.81695545
0
Writes a $line to the log with a severity level of NOTICE. Generally corresponds to E_STRICT, E_NOTICE, or E_USER_NOTICE errors
Записывает строку $line в журнал с уровнем серьёзности NOTICE. Обычно соответствует ошибкам E_STRICT, E_NOTICE или E_USER_NOTICE
public function logNotice($line) { self::log($line, self::NOTICE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function logNotice($line, $logType = null)\r\n {\r\n $this->log($line, self::NOTICE, $logType);\r\n }", "public function logNotice($line, $feature)\n\t{\n\t\t$this->log($line, self::NOTICE, $feature);\n\t}", "public function logWarn($line)\r\n {\r\n self::log($line, self::WARN);\r...
[ "0.76397264", "0.6955668", "0.66233355", "0.6553447", "0.65292156", "0.6380452", "0.6336535", "0.62608355", "0.6201521", "0.6167032", "0.61350363", "0.60401016", "0.6016228", "0.5993993", "0.5961439", "0.5926515", "0.5924853", "0.591273", "0.5882491", "0.5876126", "0.586796",...
0.8239069
0
Writes a $line to the log with a severity level of WARN. Generally corresponds to E_WARNING, E_USER_WARNING, E_CORE_WARNING, or E_COMPILE_WARNING
Записывает строку $line в журнал с уровнем серьёзности WARN. Обычно соответствует E_WARNING, E_USER_WARNING, E_CORE_WARNING или E_COMPILE_WARNING
public function logWarn($line) { self::log($line, self::WARN); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function logWarn($line, $logType = null)\r\n {\r\n $this->log($line, self::WARN, $logType);\r\n }", "public function logWarn($line, $feature)\n\t{\n\t\t$this->log($line, self::WARN, $feature);\n\t}", "public static function logWarning($msg, $mod = null, $file = null, $line = null)\n {\n ...
[ "0.7784574", "0.72503096", "0.70489", "0.6768684", "0.64563084", "0.64123535", "0.6394154", "0.63069975", "0.6266372", "0.61910796", "0.6155779", "0.61511284", "0.6133955", "0.6097879", "0.6087553", "0.60827017", "0.60700613", "0.6049041", "0.60326016", "0.5999501", "0.59235"...
0.83217514
0
Writes a $line to the log with a severity level of ERR. Most likely used with E_RECOVERABLE_ERROR
Записывает строку $line в журнал с уровнем серьёзности ERR. Скорее всего, используется с E_RECOVERABLE_ERROR
public function logError($line) { self::log($line, self::ERR); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "final protected function logError($line)\n {\n error_log($line);\n }", "public function error($line);", "public function logError($line, $logType = null)\r\n {\r\n $this->log($line, self::ERR, $logType);\r\n }", "public function logErr($line, $feature)\n\t{\n\t\t$this->log($line, se...
[ "0.7293944", "0.72580194", "0.70506674", "0.68613213", "0.67797947", "0.6704444", "0.6589105", "0.6557483", "0.6539716", "0.64938074", "0.6466763", "0.6438421", "0.64375097", "0.6372831", "0.63417673", "0.63329023", "0.62947774", "0.6285743", "0.6283457", "0.6246783", "0.6166...
0.7795699
0
Writes a $line to the log with a severity level of FATAL. Generally corresponds to E_ERROR, E_USER_ERROR, E_CORE_ERROR, or E_COMPILE_ERROR
Записывает строку $line в журнал с уровнем серьёзности FATAL. Обычно соответствует E_ERROR, E_USER_ERROR, E_CORE_ERROR или E_COMPILE_ERROR
public function logFatal($line) { self::log($line, self::FATAL); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function logFatal($line, $logType = null)\r\n {\r\n $this->log($line, self::FATAL, $logType);\r\n }", "final protected function logError($line)\n {\n error_log($line);\n }", "public function logError($line)\r\n {\r\n self::log($line, self::ERR);\r\n }", "public f...
[ "0.75136644", "0.6534445", "0.6496495", "0.6488221", "0.63565195", "0.6316026", "0.6210288", "0.60432476", "0.6019747", "0.59778875", "0.5944153", "0.5933569", "0.5867967", "0.5840242", "0.58056736", "0.58032775", "0.57879555", "0.57847416", "0.57774216", "0.57767785", "0.575...
0.810541
0
Writes a $line to the log with a severity level of ALERT.
Записывает строку $line в журнал с уровнем серьёзности ALERT.
public function logAlert($line) { self::log($line, self::ALERT); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function logAlert($line, $logType = null)\r\n {\r\n $this->log($line, self::ALERT, $logType);\r\n }", "public function log($line, $severity)\r\n {\r\n $inst = self::instance(null, $severity);\r\n if ($inst->_severityThreshold >= $severity) {\r\n $status = $inst->_g...
[ "0.72227407", "0.71519834", "0.67523944", "0.67086", "0.66983694", "0.6587282", "0.65267396", "0.62559956", "0.6255355", "0.6255355", "0.6240989", "0.6240989", "0.6235296", "0.6208751", "0.61754125", "0.6167382", "0.6157826", "0.60811883", "0.6072068", "0.6004114", "0.5985675...
0.78586304
0
Writes a $line to the log with a severity level of CRIT.
Записывает строку $line в журнал с уровнем серьёзности CRIT.
public function logCrit($line) { self::log($line, self::CRIT); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function logCrit($line, $logType = null)\r\n {\r\n $this->log($line, self::CRIT, $logType);\r\n }", "public function logCrit($line, $feature)\n\t{\n\t\t$this->log($line, self::CRIT, $feature);\n\t}", "public function log($line, $severity)\r\n {\r\n $inst = self::instance(null, $se...
[ "0.7489407", "0.6743022", "0.62181795", "0.6143379", "0.6029026", "0.59573895", "0.59006083", "0.5878334", "0.58758885", "0.58726275", "0.58726275", "0.5847558", "0.5847558", "0.5806376", "0.56814456", "0.5583467", "0.55701417", "0.55403817", "0.54560447", "0.53760064", "0.53...
0.78800327
0
Writes a $line to the log with a severity level of EMERG.
Записывает строку $line в журнал с уровнем серьёзности EMERG.
public function logEmerg($line) { self::log($line, self::EMERG); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function logEmerg($line, $logType = null)\r\n {\r\n $this->log($line, self::EMERG, $logType);\r\n }", "public function logEmerg($line, $feature)\n\t{\n\t\t$this->log($line, self::EMERG, $feature);\n\t}", "function mlog ( $line = null ) {\n\tif (is_array($line) ) {\n\t\t$line = print_r($line...
[ "0.7242161", "0.7125312", "0.6545558", "0.63396144", "0.6108937", "0.6045254", "0.6036419", "0.6035301", "0.5992386", "0.59751654", "0.5903256", "0.5903256", "0.5861989", "0.5861989", "0.58280516", "0.5825924", "0.5725667", "0.5715682", "0.56358254", "0.5618089", "0.5573919",...
0.76806784
0
Writes a $line to the log with the given severity
Записывает $line в журнал с заданной серьёзностью
public function log($line, $severity) { $inst = self::instance(null, $severity); if ($inst->_severityThreshold >= $severity) { $status = $inst->_getStatus($severity); $inst->writeFreeFormLine("$status $line \n"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function log($line, $severity, $logType = null)\r\n {\r\n $status = $this->_getTimeLine($severity);\r\n $tmp = \"\";\r\n if($logType){\r\n if(isset(phpCrawler::conf()->crawlerLogType[$logType])){\r\n $tmp = phpCrawler::conf()->crawlerLogType[$logType];\r\n ...
[ "0.755401", "0.7046024", "0.6907533", "0.6907533", "0.6905713", "0.6804243", "0.6804243", "0.66499007", "0.6624872", "0.6530901", "0.64344275", "0.64204717", "0.63897294", "0.63657117", "0.6339873", "0.63209754", "0.62984645", "0.6280096", "0.6250284", "0.624667", "0.61820066...
0.82969606
0
Return all block owners to assist block loading.
Верните всех владельцев блоков для помощи в загрузке блоков.
abstract protected function getBlockOwners();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getBlockedUsers()\n {\n return $this->get_blocks(0);\n }", "public function getRegisteredBlocks(): array;", "private function getAccountOwners()\n {\n return $this->get('session')->get('client.accounts.account_owners', []);\n }", "protected function collectBlocks()\n\t{\t\t...
[ "0.6310163", "0.6066897", "0.6061784", "0.60449994", "0.6018812", "0.5982983", "0.595152", "0.5881611", "0.5869883", "0.57642674", "0.5706175", "0.5651083", "0.5642097", "0.5623025", "0.5599855", "0.5594694", "0.5504063", "0.54833966", "0.548228", "0.5479596", "0.54735833", ...
0.7495408
0
Return the main block of the environment
Верните основной блок среды
abstract protected function getMainBlock();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function main()\n\t{\n\t\treturn static::$main;\n\t}", "public function getMain()\n {\n return $this->main;\n }", "public function environment();", "private function _main() {\n return $configMain = include dirname(__FILE__) . '/main.php';\n }", "function getCodeblock()...
[ "0.65177536", "0.6472338", "0.6233596", "0.61310357", "0.603922", "0.603922", "0.6008553", "0.5956104", "0.59046155", "0.58370566", "0.57222444", "0.5684028", "0.56838435", "0.56838435", "0.5641468", "0.56264937", "0.56088454", "0.5585659", "0.5583563", "0.5574619", "0.555588...
0.75007266
0
Loads all blocks needed to display the document for caching purposes. This includes loading blocks that are owned by the Template.
Загружает все блоки, необходимые для отображения документа с целью кэширования. Это включает загрузку блоков, принадлежащих шаблону.
protected function loadBlocks() { if ($this->isLoaded) return; $blockOwners = $this->getBlockOwners(); $blocks = array(); foreach ($blockOwners as $blockOwner) { $version = $this->getVersion($blockOwner->getId()); $owned = $this->blockManager->f...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function loadBlocks()\n\t{\n\t\t$this->_cacheModuleBlocks();\t\n\t}", "private function _cacheModuleBlocks()\n\t{\t\t\n\t\t$oCache = Phpfox::getLib('cache');\t\t\n\t\t$aStyleInUse = Phpfox::getLib('template')->getStyleInUse();\t\t\n\t\tif (!isset($aStyleInUse['style_id']))\n\t\t{\n\t\t\t$aStyleInUse['styl...
[ "0.7615601", "0.682154", "0.6792192", "0.666613", "0.66083974", "0.6439431", "0.63773566", "0.6357874", "0.63192105", "0.625814", "0.6176053", "0.6165459", "0.61223656", "0.6083068", "0.60813653", "0.607484", "0.6013151", "0.60130435", "0.6004772", "0.60006064", "0.599941", ...
0.7250254
1
Create a new datatable instance;
Создайте новый экземпляр datatable;
public function newTable() { return datatables($this->source) ->addColumn('checkbox', function ($entity) { return view('admin::partials.table.checkbox', compact('entity')); }) ->editColumn('status', function ($entity) { return $entity->is_a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getNewTableObject()\n\t{\n\t\treturn new ilPCDataTable($this->getPage());\n\t}", "public function initDatatable()\n {\n return $this->container->get('datatable')\n ->setEntity($this->entityName, 'entity')\n ->setFields(\n array(\n 'ID' ...
[ "0.7245955", "0.7089758", "0.6869174", "0.66781044", "0.6588494", "0.65840626", "0.6523658", "0.6513357", "0.6508682", "0.6476295", "0.6476295", "0.6476295", "0.6427051", "0.64218974", "0.6421525", "0.63952374", "0.63800204", "0.6359595", "0.63041127", "0.6299877", "0.627454"...
0.72333187
1
Lists all Curso entities.
Список всех сущностей Curso.
public function indexAction() { $em = $this->getDoctrine()->getManager(); $entities = $em->getRepository('AdminUnadBundle:Curso')->findAll(); return array( 'entities' => $entities, ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function indexAction()\n {\n $em = $this->getDoctrine()->getEntityManager();\n\n $entities = $em->getRepository('msqlfacoopBundle:Cooperations')->findAll();\n\n return array('entities' => $entities);\n }", "public function indexAction()\n {\n $em = $this->getDoctrine()...
[ "0.71774817", "0.70038426", "0.69801486", "0.69366294", "0.6928756", "0.68930495", "0.6839093", "0.680993", "0.6804951", "0.67862695", "0.6777171", "0.6739546", "0.67343074", "0.6729699", "0.67015153", "0.6698942", "0.6680126", "0.66775817", "0.6672228", "0.6666374", "0.66586...
0.76825905
0
Creates a form to create a Curso entity.
Создает форму для создания сущности Curso.
private function createCreateForm(Curso $entity) { $form = $this->createForm(new CursoType(), $entity, array( 'action' => $this->generateUrl('curso_create'), 'method' => 'POST', )); $form->add('submit', 'submit', array('label' => 'Create')); return $form; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function createCreateForm(Costo $entity)\n {\n $form = $this->createForm(new CostoType(), $entity, array(\n 'action' => $this->generateUrl('costo_create'),\n 'method' => 'POST',\n ));\n $form->add('conceptosCosto', null, array(\n 'required' => true,\...
[ "0.7255596", "0.7248802", "0.72308403", "0.72100323", "0.7188984", "0.71666104", "0.7162339", "0.7148189", "0.7143", "0.7114738", "0.7083371", "0.7072571", "0.7072571", "0.7066884", "0.7054759", "0.705097", "0.70300794", "0.7019001", "0.69793016", "0.69777834", "0.69684803", ...
0.8245747
0
Displays a form to create a new Curso entity.
Показывает форму для создания новой сущности Curso.
public function newAction() { $entity = new Curso(); $form = $this->createCreateForm($entity); return array( 'entity' => $entity, 'form' => $form->createView(), ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function newAction() {\n $entity = new Colegiado();\n $form = $this->createCreateForm($entity);\n\n return $this->render('AppBundle:Colegiado:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "pub...
[ "0.77784425", "0.77096736", "0.76888955", "0.7680572", "0.76803046", "0.7615045", "0.7553438", "0.754971", "0.7511867", "0.7508101", "0.7492017", "0.7480337", "0.7476574", "0.74587184", "0.74533254", "0.74532795", "0.74414253", "0.7431201", "0.7429944", "0.7427116", "0.742217...
0.77343595
1
Creates a form to edit a Curso entity.
Создает форму для редактирования сущности Curso.
private function createEditForm(Curso $entity) { $form = $this->createForm(new CursoType(), $entity, array( 'action' => $this->generateUrl('curso_update', array('id' => $entity->getId())), 'method' => 'PUT', )); $form->add('submit', 'submit', array('label' => 'Update'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function createEditarForm(Curso $entity)\n {\n $session = $this->getRequest()->getSession();\n $escuelaid = $session->get('escuelaid');\n $form = $this->createForm(new CursoprogType($escuelaid), $entity, array(\n 'action' => $this->generateUrl('curso_update', array('id' =...
[ "0.79851323", "0.7375243", "0.73647845", "0.72908956", "0.72421455", "0.72065693", "0.719201", "0.7186398", "0.7153643", "0.7130415", "0.71256095", "0.71218705", "0.7108408", "0.70929295", "0.7082538", "0.70791954", "0.70752305", "0.7040429", "0.70198035", "0.7007103", "0.700...
0.8194695
0
Creates a form to edit a Curso entity.
Создает форму для редактирования сущности Curso.
private function createEditarForm(Curso $entity) { $session = $this->getRequest()->getSession(); $escuelaid = $session->get('escuelaid'); $form = $this->createForm(new CursoprogType($escuelaid), $entity, array( 'action' => $this->generateUrl('curso_update', array('id' => $entity-...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function createEditForm(Curso $entity)\n {\n $form = $this->createForm(new CursoType(), $entity, array(\n 'action' => $this->generateUrl('curso_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n $form->add('submit', 'submit', array('label' ...
[ "0.8194037", "0.73740906", "0.7363894", "0.72894466", "0.7241551", "0.7205797", "0.71914977", "0.7185947", "0.71529883", "0.7129977", "0.71247613", "0.7121753", "0.71073586", "0.70909405", "0.7080928", "0.7078647", "0.707426", "0.70402753", "0.70191693", "0.7006515", "0.70032...
0.79842716
1
Creates a form to delete a Curso entity by id.
Создает форму для удаления сущности Curso по идентификатору.
private function createDeleteForm($id) { return $this->createFormBuilder() ->setAction($this->generateUrl('curso_delete', array('id' => $id))) ->setMethod('DELETE') // ->add('submit', 'submit', array('label' => 'Delete')) ->getForm() ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('precios_delete', array('id' => $id)))\n ->setMethod('DELETE')\n //->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n ...
[ "0.78191465", "0.7801908", "0.7753842", "0.77508515", "0.7726951", "0.7724786", "0.77203196", "0.7710079", "0.7707865", "0.769475", "0.76900953", "0.76849854", "0.7667808", "0.76677424", "0.7665349", "0.7653296", "0.76522166", "0.7649386", "0.7643649", "0.76421994", "0.763351...
0.79752535
0
Increments the number of synced items.
Увеличивает количество синхронизированных элементов.
public function incSyncedItems($incrementBy = 1) { $this->setSynceditems($this->getSynceditems() + $incrementBy); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function increment() {\n $this->count++;\n }", "protected function changeQueueCountInc()\n {\n $counter = $this->_poolClientQueueCounter + 1;\n $this->changeQueueCount($counter);\n }", "public function incrementCount()\n \t{\n \t\t++$this->countValue;\n \t}", "public function i...
[ "0.6617744", "0.65655", "0.6356477", "0.60796225", "0.6071704", "0.60511434", "0.6050393", "0.6020961", "0.59791553", "0.59588563", "0.589337", "0.5850492", "0.57970536", "0.5721096", "0.5713862", "0.5695589", "0.56712395", "0.5655849", "0.5655849", "0.5644863", "0.56127125",...
0.718765
0
The compare method must return an integer less than, equal to, or greater than zero if the first argument is considered to be respectively less than, equal to, or greater than the second.
Метод compare должен возвращать целое число, меньшее, равное или большее нуля, если первый аргумент соответственно меньше, равен или больше второго.
public function compare($a, $b);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function compare(self $comparable): int;", "public function compare($x, $y);", "function compare($x, $y) {\n\t\t\t$x = $x->num;\n\t\t\t$y = $y->num;\n\t\t\tif($x == $y) return 0;\n\t\t\telseif($x > $y) return -1;\n\t\t\telse return 1;\n\t\t}", "function compare($x, $y) {\n\t\t\t\t\tif ( $x['value'] == $y['va...
[ "0.7809348", "0.7487354", "0.7458395", "0.72339785", "0.71832424", "0.71651226", "0.7127254", "0.7092919", "0.7069356", "0.70147187", "0.6991272", "0.697754", "0.6905015", "0.69014215", "0.6815311", "0.68126416", "0.6689871", "0.6647952", "0.66453457", "0.66079134", "0.657647...
0.7593166
1
Get elements that were added to the collection.
Получить элементы, которые были добавлены в коллекцию.
public function getAddedElements();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_added() {\n\t\treturn $this->added;\n\t}", "public function getAdded()\n\t{\n\n\t\treturn $this['added'];\n\n\t}", "public function getAddedObjects() {}", "public function get_elements()\n\t{\n\t\treturn $this->elements;\n\t}", "public function getElementReferences()\n {\n ret...
[ "0.6578312", "0.64945704", "0.64397156", "0.62405956", "0.62019753", "0.61643285", "0.61387366", "0.61295426", "0.60856503", "0.60619545", "0.6038354", "0.6018146", "0.6018146", "0.6018146", "0.6018146", "0.6018146", "0.59871745", "0.59713453", "0.59713453", "0.59713453", "0....
0.7418357
0
Get elements that were removed from the collection.
Получить элементы, которые были удалены из коллекции.
public function getRemovedElements();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getElementsToRemove() {\n return $this->elementsToRemove;\n }", "public function getRemovedObjects() {}", "public function get_removed() {\n\t\treturn $this->removed;\n\t}", "public function getRemovedEntities()\n {\n return $this->_removedEntities;\n }", "public func...
[ "0.7230804", "0.6931047", "0.6844548", "0.67372626", "0.6372307", "0.6338147", "0.61380833", "0.6137837", "0.61163473", "0.6089054", "0.59006846", "0.5876775", "0.5770978", "0.5720205", "0.5680871", "0.5680871", "0.56538135", "0.56410474", "0.56126356", "0.5611914", "0.560952...
0.7781158
0
This returns an array that contains all the initial positions for a chess set, in the form of key as class Piece name and value as an array with two keys which are color parameters for instatiating the object. Each of the color keys has further arrays that are the position parameter for instatiating the piece object.
Это возвращает массив, содержащий все начальные позиции для набора шахмат, в виде ключа как название класса Piece и значения как массив с двумя ключами, которые являются параметрами цвета для инициализации объекта. Каждый из ключей цвета имеет дальнейшие массивы, которые являются параметром позиции для инициализации об...
public function getInitialPositions() { return array( "King" => array("White" => array(array(7, 4)), "Black" => array(array(0, 4)) ), "Queen" => array("White" => array(array(7, 3)), "Black" => array(array(0, 3)) ), "Bishop" => array("White" => arra...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getChessSet()\n {\n $chess_set = array();\n foreach ($this->getInitialPositions() as $chessman => $colors) {\n foreach ($colors as $color => $positions) {\n foreach ($positions as $position) {\n array_push($chess_set, new $chessman($position, $color));\n }\n ...
[ "0.75854576", "0.5980862", "0.5683478", "0.5639374", "0.5638726", "0.55802894", "0.54270554", "0.5363793", "0.5357507", "0.5356968", "0.5294973", "0.52933514", "0.52924556", "0.5229491", "0.5223929", "0.51852846", "0.51749796", "0.517255", "0.51495254", "0.51322204", "0.51117...
0.74461704
1
THis sets both players to HumanPlayers since ComputerPlayer is not implemented.
Это устанавливает оба игрока в HumanPlayers, так как ComputerPlayer не реализован.
public function setPlayers() { // $player_count = 2 as params later on? // Later on put some crap in here where they can choose to have... // computer v computer, human v human, human v computer. // use php switch() method $this->white = new HumanPlayer("White", "Supsupin"); $this->black...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function putPlayersInDuel(): void\n {\n $player1 = $this->player1->getPlayer();\n $player2 = $this->player2->getPlayer();\n\n $player1->setGamemode(0);\n $player2->setGamemode(0);\n\n // TODO Disable flight\n\n $player1->setImmobile(true);\n $player2->s...
[ "0.5944954", "0.5839701", "0.5818431", "0.57823193", "0.5733232", "0.5679606", "0.5678479", "0.5588389", "0.55530035", "0.5548537", "0.55406713", "0.5509167", "0.5509084", "0.54571253", "0.54497665", "0.54444337", "0.5376456", "0.53386617", "0.53323007", "0.5331654", "0.53185...
0.77340674
0
Get the coordinates(latitude, longitude) for coordinate lookup. Loops through all adapters added using addAdapters method until it can find coordinates. Exception thrown if address obj has not been set yet or if address retrieval fails.
Получите координаты (широта, долгота) для поиска по координатам. Проходит по всем адаптерам, добавленным с помощью метода addAdapters, пока не найдет координаты. Выбрасывается исключение, если адрес obj еще не был установлен или если получение адреса завершилось неудачей.
public function retrieveCoordinates() { if ($this->_address === null) { throw new Exception('Address not set.'); } $coordinates = null; for($i=0,$length=count($this->_adapters); $i<$length;++$i) { try { $coordinates = $this->_adapters[$i]->getCoordinates($this->_address); } catch (RequestFailed...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function retrieveAddress()\n\t{\n\t\tif ($this->_coordinates === null) {\n\t\t\tthrow new Exception('Coordinates not set.');\n\t\t}\n\t\t\n\t\t$address = null;\n\t\tfor($i=0, $length=count($this->_adapters); $i<$length; ++$i) {\n\t\t\ttry {\n\t\t\t\t$address = $this->_adapters[$i]->getAddress($this->_coordi...
[ "0.72121227", "0.68264884", "0.6765745", "0.6648688", "0.66318923", "0.6528174", "0.6524333", "0.64601904", "0.6448003", "0.64390093", "0.6414968", "0.6412251", "0.62934196", "0.6269729", "0.62358356", "0.6152655", "0.6132862", "0.6064346", "0.606305", "0.59542453", "0.594015...
0.77772135
0
/ prend en argument une date dans un format quelconque et un format de date
принимает в качестве аргумента дату в любом формате и формат даты
function convertirDate ($date,$format) { return date($format,strtotime($date)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function sql_date($date,$format='') {\n\t\n\tif (strpos($date, '/')===false and strpos($date, '-')===false) { // fecha unida sin separadores formato 14012015\n\t\t$e[]=substr($date,0, 2);\n\t\t$e[]=substr($date,2, 2);\n\t\t$e[]=substr($date,4, 4);\n\t} elseif (strpos($date, '-')!==false) { // fecha separada por gu...
[ "0.74572986", "0.731841", "0.7302562", "0.7302562", "0.7302562", "0.7103831", "0.7020492", "0.6941465", "0.68572724", "0.6843737", "0.6809791", "0.68053484", "0.6796605", "0.6786292", "0.6785835", "0.67858136", "0.675809", "0.67529565", "0.6746494", "0.67401123", "0.671036", ...
0.73269206
1
Given a Db connection and a caught exception, see if it was a Timeout Exception.
Дано соединение с базой данных и захваченное исключение, проверьте, было ли это исключение тайм-аута.
static public function isDbConnTimeout(PDO $aDbConn, PDOException $aPDOException) { switch (self::getDbType($aDbConn)) { case self::DB_TYPE_MYSQL: return (strpos($aPDOException->getMessage(), '2006 MySQL') !== false); default: return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function timedOut() {\r\n\t\treturn connection_status() === CONNECTION_TIMEOUT;\r\n\t}", "public function isTimeout()\n {\n return $this->state == self::STATE_TIMEOUT;\n }", "private function hasExceededTimeout()\n {\n return -1 !== $this->timeout && (microtime(true) - $this->star...
[ "0.64005303", "0.6187161", "0.6132492", "0.58041644", "0.5757448", "0.5568289", "0.5531575", "0.5469417", "0.5440993", "0.54305816", "0.5428646", "0.5426093", "0.5413222", "0.53809935", "0.5372287", "0.53475493", "0.5331142", "0.5331089", "0.53115946", "0.52870435", "0.528615...
0.722648
0
Check all columns listed in $aFieldSet of $aDataRow against the $aValidateMethod.
Проверьте все столбцы, указанные в $aFieldSet элемента $aDataRow, с использованием $aValidateMethod.
static public function validateRow($aObj, &$aDataRow, &$aFieldSet, $aValidateMethod, &$aChildSetNames=null) { if (is_null($aDataRow)) return; foreach ($aFieldSet as $theFieldName) { if (method_exists($aObj,$aValidateMethod)) { $aObj->$aValidateMethod($aDataRow,$theFieldName); } else if (method_exists(_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function validate()\n {\n foreach ($this->arrFieldMapping as $strColumnName => $arrFieldMap) {\n $strFormattedColumn = ucfirst(str_replace(\"_\", \" \", $strColumnName));\n $strFormattedColumn = ucfirst(join(preg_split('/(?<=[a-z])(?=[A-Z])/x', $strColumnName), \" \"));\n ...
[ "0.61959887", "0.615201", "0.6117002", "0.5821585", "0.57795", "0.57327455", "0.5689544", "0.56625235", "0.5622846", "0.55617726", "0.55301374", "0.5495522", "0.5495522", "0.54059386", "0.5385855", "0.53770846", "0.5318803", "0.53186685", "0.531395", "0.53137565", "0.52853465...
0.70743924
0
Replaces variable placeholders inside a $str with any given $data. Each key in the $data array corresponds to a variable placeholder name in $str. Example: `String::insert(':name is :age years old.', array('name' => 'Bob', '65'));` Returns: Bob is 65 years old. Available $options are: before: The character or string in...
Заменяет переменные плейсхолдеры внутри $str любыми заданными $data. Каждый ключ в массиве $data соответствует имени переменного плейсхолдера в $str. Пример: `String::insert(':name is :age years old.', array('name' => 'Bob', '65'));` Возвращает: Bob is 65 years old. Доступные $options: before: Символ или строка, идущая...
public static function insert($str, $data, $options = []) { $defaults = [ 'before' => ':', 'after' => null, 'escape' => '\\', 'format' => null, 'clean' => false, ]; $options += $defaults; $format = $options['format']; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function insert(string $str, $data, array $options = []): string\n {\n $defaults = [\n 'before' => ':', 'after' => null, 'escape' => '\\\\', 'format' => null, 'clean' => false,\n ];\n $options += $defaults;\n $format = $options['format'];\n $data = (...
[ "0.7456718", "0.6527636", "0.6427769", "0.5201115", "0.5115492", "0.50913596", "0.49580166", "0.49510685", "0.4888982", "0.48840374", "0.48327565", "0.4774996", "0.47682995", "0.47303978", "0.47219422", "0.46975726", "0.4656647", "0.45999455", "0.45736358", "0.45628276", "0.4...
0.7537213
0
Cleans up a String::insert() formatted string with given $options depending on the 'clean' key in $options. The default method used is text but html is also available. The goal of this function is to replace all whitespace and unneeded markup around placeholders that did not get replaced by String::insert().
Очищает строку, сформированную в формате String::insert(), с учетом заданных $options в зависимости от ключа 'clean' в $options. По умолчанию используется метод text, но также доступен метод html. Целью данной функции является замена всех пробелов и лишних разметок вокруг плейсхолдеров, которые не были заменены String:...
protected static function cleanInsert($str, $options) { $clean = $options['clean']; if (!$clean) { return $str; } if ($clean === true) { $clean = ['method' => 'text']; } if (!is_array($clean)) { $clean = ['method' => $options['clean...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function cleanInsert(string $str, array $options): string\n {\n $clean = $options['clean'];\n if (! $clean) {\n return $str;\n }\n\n if ($clean === true) {\n $clean = ['method' => 'text'];\n }\n\n if (! is_array($clean)) {\n ...
[ "0.7628754", "0.61616784", "0.61601603", "0.5994774", "0.5762109", "0.575449", "0.5711944", "0.5648839", "0.55092204", "0.55086774", "0.5477776", "0.54502696", "0.5449367", "0.54261404", "0.5394479", "0.5381276", "0.534845", "0.5329873", "0.529947", "0.5236122", "0.5206599", ...
0.7674725
0
Split a file into pieces matching a specific size. Used when you need to split large files into smaller pieces for easy transmission. $count = File::split($file);
Разделите файл на части, соответствующие определённому размеру. Используется, когда необходимо разделить большие файлы на более мелкие части для удобной передачи. $count = File::split($file);
public static function split($filename, $piece_size = 10) { // Open the input file $file = fopen($filename, 'rb'); // Change the piece size to bytes $piece_size = floor($piece_size * 1024 * 1024); // Total number of pieces $pieces = 0; while (!feof($file)) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function split($filename, $output_dir = FALSE, $piece_size = 10)\n\t{\n\t\t// Find output dir\n\t\t$output_dir = ($output_dir == FALSE) ? pathinfo(str_replace('\\\\', '/', realpath($filename)), PATHINFO_DIRNAME) : str_replace('\\\\', '/', realpath($output_dir));\n\t\t$output_dir = rtrim($output_dir, ...
[ "0.62629145", "0.5839089", "0.5795741", "0.56152076", "0.55414534", "0.5463759", "0.53653777", "0.5350732", "0.5339093", "0.52649105", "0.52517205", "0.5239569", "0.5230217", "0.522167", "0.52153385", "0.5189278", "0.51788694", "0.5176117", "0.51589686", "0.51408726", "0.5110...
0.7015447
0
Parse notification: new private message
Обработка уведомления: новое приватное сообщение
public function parse_new_private_message( $notification ) { $item = $notification->item; if ( !$item ) { throw new \OutOfRangeException; } $idColumn = $item::$databaseColumnId; $commentClass = $item::$commentClass; try { $comment = $commentClass::loadAndCheckPerms( $notification->item_sub_id ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function parse_private_message_added( $notification )\n\t{\n\t\t$item = $notification->item;\n\t\n\t\treturn array(\n\t\t\t\t'title'\t\t=> \\IPS\\Member::loggedIn()->language()->addToStack( 'notification__private_message_added', FALSE, array( 'sprintf' => array( $item->author()->name ) ) ),\n\t\t\t\t'url'\t...
[ "0.71253973", "0.6003321", "0.58585775", "0.58129525", "0.5758142", "0.5657658", "0.5633111", "0.5604071", "0.5601406", "0.55909127", "0.5584088", "0.5571775", "0.5562107", "0.55406165", "0.55384576", "0.5527921", "0.55243564", "0.5486659", "0.54697794", "0.5447929", "0.54479...
0.73292434
0
Parse notification: private message added
Парсить уведомление: добавлен приватный сообщение
public function parse_private_message_added( $notification ) { $item = $notification->item; return array( 'title' => \IPS\Member::loggedIn()->language()->addToStack( 'notification__private_message_added', FALSE, array( 'sprintf' => array( $item->author()->name ) ) ), 'url' => $item->item()->url(), ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function parse_new_private_message( $notification )\n\t{\n\t\t$item = $notification->item;\n\n\t\tif ( !$item )\n\t\t{\n\t\t\tthrow new \\OutOfRangeException;\n\t\t}\n\n\t\t$idColumn = $item::$databaseColumnId;\n\t\t$commentClass = $item::$commentClass;\n\n\t\ttry\n\t\t{\n\t\t\t$comment = $commentClass::loa...
[ "0.6645273", "0.6345688", "0.6021899", "0.60158944", "0.5907981", "0.58431", "0.5798821", "0.57559454", "0.5734201", "0.57235235", "0.56796145", "0.56542945", "0.5626932", "0.5599903", "0.55707216", "0.55689293", "0.55656064", "0.5564164", "0.55599433", "0.55599433", "0.55406...
0.73839676
0
The function returns Announce type for current controller.
Функция возвращает тип Announce для текущего контроллера.
public function getAnnounceType() { return Announce::VACANCY; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected function getControllerType();", "public static function get_type() {\n\t\treturn 'autoresponder';\n\t}", "public static function get_type() {\n\t\treturn 'autoresponder';\n\t}", "public function getNotificationType();", "public function getNotificationType();", "public static function ...
[ "0.6174909", "0.61014295", "0.61014295", "0.6098571", "0.6098571", "0.5835765", "0.5835765", "0.5692082", "0.5673363", "0.56379545", "0.5569055", "0.54816467", "0.5479229", "0.5460363", "0.5326988", "0.531828", "0.5317536", "0.5291593", "0.52816546", "0.52666116", "0.5265762"...
0.7184213
0
Get all blocks for a given panel, including blocks that fall down from parent panels ordered by region
Получить все блоки для заданной панели, включая блоки, падающие с родительских панелей, отсортированные по региону
function getPanelBlocks($panel) { $ret = array(); $panel_blocks = $this->fetchAll($this->select() ->where("panel_id = ?", $panel->id) ->order('weight')); $blockids = array(); foreach ($panel_blocks as $block) { $b...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getBlocks();", "protected function generateLayoutBlocks()\n {\n $this->readPageLayout();\n return parent::generateLayoutBlocks();\n }", "public function getSortedChildBlocks()\n {\n $children = array();\n foreach ($this->getSortedChildren() as $childName) {\...
[ "0.63515157", "0.57713586", "0.57101804", "0.56896096", "0.56635875", "0.56546533", "0.56311536", "0.5594978", "0.55663997", "0.556139", "0.5553228", "0.54937696", "0.54373527", "0.5423767", "0.53614295", "0.5345914", "0.5331286", "0.53154755", "0.5305279", "0.53017116", "0.5...
0.7866822
0
Cleans the username and email strings from the signup form.
Очищает строки имени пользователя и электронной почты из формы регистрации.
private function SignupClean($signup_data) { $signup_data['username']=trim($signup_data['username']); $signup_data['email']=filter_var(trim($signup_data['email']), FILTER_SANITIZE_EMAIL); return $signup_data; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function validateAndSanitize(){\n $this->firstName = $this->checkAndCleanString($_POST['firstname']);\n $this->secondName = $this->checkAndCleanString($_POST['secondname']);\n $this->username = $this->checkAndCleanString($_POST['username']);\n $this->passwordVal = $this->check...
[ "0.65654683", "0.64340156", "0.64334387", "0.6395192", "0.6313903", "0.62909913", "0.6233558", "0.61965895", "0.6155118", "0.6048985", "0.59983605", "0.5997793", "0.5995922", "0.59739965", "0.59572", "0.59224075", "0.59218156", "0.5918787", "0.5910723", "0.5870852", "0.585856...
0.71118903
0
/ / Test for PostWorksheetCellsRanges of RangesController. /
// Тест для PostWorksheetCellsRanges контроллера RangesController. /
public function testPostWorksheetCellsRanges() { $remoteFolder = "TestData/In"; $localName = "Book1.xlsx"; $remoteName = "Book1.xlsx"; $rangeOperateSource = new \Aspose\Cells\Cloud\Model\Range(); $rangeOperateSource->setColumnCount(1 ); $rangeOperateSource->setColu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testPostWorksheetCellsRangeValue()\n {\n $remoteFolder = \"TestData/In\";\n\n $localName = \"Book1.xlsx\";\n $remoteName = \"Book1.xlsx\";\n\n $range = new \\Aspose\\Cells\\Cloud\\Model\\Range();\n $range->setColumnCount(1 ); \n $range->setColumnWidth(10...
[ "0.66821176", "0.6587718", "0.6228646", "0.6128441", "0.6075889", "0.57289696", "0.56384844", "0.5632763", "0.54387975", "0.49097255", "0.48895374", "0.4685341", "0.46545625", "0.4650063", "0.4584689", "0.45727825", "0.45681491", "0.45584127", "0.45583275", "0.45550883", "0.4...
0.73439366
0
/ / Test for PostWorksheetCellsRangeMerge of RangesController. /
// Тест для PostWorksheetCellsRangeMerge RangesController. /
public function testPostWorksheetCellsRangeMerge() { $remoteFolder = "TestData/In"; $localName = "Book1.xlsx"; $remoteName = "Book1.xlsx"; $range = new \Aspose\Cells\Cloud\Model\Range(); $range->setColumnCount(1 ); $range->setColumnWidth(10.0 ); $range->se...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testPostWorksheetCellsRanges()\n {\n $remoteFolder = \"TestData/In\";\n\n $localName = \"Book1.xlsx\";\n $remoteName = \"Book1.xlsx\";\n\n $rangeOperateSource = new \\Aspose\\Cells\\Cloud\\Model\\Range();\n $rangeOperateSource->setColumnCount(1 ); \n $ra...
[ "0.67419237", "0.6604117", "0.6431401", "0.6178767", "0.60578054", "0.58247674", "0.57986814", "0.57797265", "0.5705222", "0.5701268", "0.5646161", "0.5625172", "0.5611536", "0.55700624", "0.5507584", "0.547631", "0.5432656", "0.5431303", "0.54165435", "0.5377128", "0.5326212...
0.7657229
0
/ / Test for PostWorksheetCellsRangeUnMerge of RangesController. /
// Тест для PostWorksheetCellsRangeUnMerge RangesController. /
public function testPostWorksheetCellsRangeUnMerge() { $remoteFolder = "TestData/In"; $localName = "Book1.xlsx"; $remoteName = "Book1.xlsx"; $range = new \Aspose\Cells\Cloud\Model\Range(); $range->setColumnCount(1 ); $range->setColumnWidth(10.0 ); $range->...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testPostWorksheetCellsRangeMerge()\n {\n $remoteFolder = \"TestData/In\";\n\n $localName = \"Book1.xlsx\";\n $remoteName = \"Book1.xlsx\";\n\n $range = new \\Aspose\\Cells\\Cloud\\Model\\Range();\n $range->setColumnCount(1 ); \n $range->setColumnWidth(10...
[ "0.6721806", "0.63355654", "0.60341585", "0.58614844", "0.57562566", "0.55955863", "0.5407092", "0.522963", "0.50278467", "0.4953576", "0.4940692", "0.49365094", "0.48806956", "0.4782695", "0.47400397", "0.47032493", "0.4702004", "0.46856138", "0.46754023", "0.46467915", "0.4...
0.7773952
0
/ / Test for PostWorksheetCellsRangeStyle of RangesController. /
// Тест для PostWorksheetCellsRangeStyle RangesController. /
public function testPostWorksheetCellsRangeStyle() { $remoteFolder = "TestData/In"; $localName = "Book1.xlsx"; $remoteName = "Book1.xlsx"; $rangeOperateStyleFont = new \Aspose\Cells\Cloud\Model\Font(); $rangeOperateStyleFont->setSize(16 ); $rangeOperateStyle = new ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testPostWorksheetCellsRanges()\n {\n $remoteFolder = \"TestData/In\";\n\n $localName = \"Book1.xlsx\";\n $remoteName = \"Book1.xlsx\";\n\n $rangeOperateSource = new \\Aspose\\Cells\\Cloud\\Model\\Range();\n $rangeOperateSource->setColumnCount(1 ); \n $ra...
[ "0.6158095", "0.60621214", "0.5546293", "0.5494348", "0.54566634", "0.52805597", "0.51363164", "0.5112702", "0.5075919", "0.49473858", "0.47602502", "0.468463", "0.45111018", "0.45046875", "0.45046875", "0.44526154", "0.44337457", "0.4421772", "0.44053206", "0.4387987", "0.43...
0.7477364
0
/ / Test for GetWorksheetCellsRangeValue of RangesController. /
// Тест для GetWorksheetCellsRangeValue RangesController. /
public function testGetWorksheetCellsRangeValue() { $remoteFolder = "TestData/In"; $localName = "Book1.xlsx"; $remoteName = "Book1.xlsx"; CellsApiTestBase::ready( $this->instance,$localName ,$remoteFolder . "/" . $remoteName , ""); $request = new GetWorksheetCellsRa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testPostWorksheetCellsRangeValue()\n {\n $remoteFolder = \"TestData/In\";\n\n $localName = \"Book1.xlsx\";\n $remoteName = \"Book1.xlsx\";\n\n $range = new \\Aspose\\Cells\\Cloud\\Model\\Range();\n $range->setColumnCount(1 ); \n $range->setColumnWidth(10...
[ "0.6269308", "0.5779383", "0.5741133", "0.5738119", "0.5678825", "0.56243706", "0.55239904", "0.5508044", "0.5503924", "0.54792565", "0.5475242", "0.5475242", "0.5475242", "0.5436642", "0.5423558", "0.53938425", "0.53691703", "0.5319093", "0.5288635", "0.52423", "0.52172136",...
0.736291
0