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
Handles a request to restore a site's default settings.
Обрабатывает запрос на восстановление стандартных настроек сайта.
public function handle_restore_site_request() { $this->verify_request( 'wpseo-network-restore', 'restore_site_nonce' ); $option_group = 'wpseo_ms'; $site_id = ! empty( $_POST[ $option_group ]['site_id'] ) ? (int) $_POST[ $option_group ]['site_id'] : 0; // WPCS: CSRF ok. if ( ! $site_id ) { add_settings_err...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function _revertSettings()\n\t{\n\t\t$this->request[ 'id'] = intval($this->request['id'] );\n\t\t\n\t\tif ( ! $this->request['id'] )\n\t\t{\n\t\t\t$this->registry->output->global_message = $this->lang->words['s_noid'];\n\t\t\t$this->_settingForm();\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t$conf = $this->DB->bui...
[ "0.6526571", "0.638763", "0.6332739", "0.61058265", "0.5951402", "0.5875898", "0.5762253", "0.57219625", "0.56826127", "0.5614432", "0.5582048", "0.5555023", "0.55345225", "0.5493743", "0.54910505", "0.5490907", "0.54790527", "0.5420931", "0.5401148", "0.53954107", "0.5376604...
0.7501808
0
Enqueues network admin assets.
Добавляет сетевые административные активы в очередь.
public function enqueue_assets() { $asset_manager = new WPSEO_Admin_Asset_Manager(); $asset_manager->enqueue_script( 'network-admin-script' ); $translations = array( /* translators: %s: success message */ 'success_prefix' => __( 'Success: %s', 'wordpress-seo' ), /* translators: %s: error message */ '...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function admin_enqueue() {\n\t}", "public function enqueues() {\n\n\t\t// Hook for addons.\n\t\tdo_action( 'wpforms_overview_enqueue' );\n\t}", "public function addAdminAssets() {}", "public function enqueueAssets()\n {\n\n }", "public function enqueueAdmin() {\n\n\t\t$screen = get_current_scr...
[ "0.6676226", "0.647395", "0.646086", "0.63938105", "0.63097906", "0.62761474", "0.6231365", "0.6215913", "0.61859655", "0.61859655", "0.6155881", "0.60556567", "0.6038738", "0.6035635", "0.60283107", "0.60270846", "0.60070014", "0.6004932", "0.59598094", "0.59500974", "0.5948...
0.7086469
0
Terminates the current request by either redirecting back or sending an AJAX response.
Завершает текущий запрос, либо перенаправляя обратно, либо отправляя ответ AJAX.
public function terminate_request() { if ( wp_doing_ajax() ) { $settings_errors = get_settings_errors(); if ( ! empty( $settings_errors ) && $settings_errors[0]['type'] === 'updated' ) { wp_send_json_success( $settings_errors, 200 ); } wp_send_json_error( $settings_errors, 400 ); } $this->persi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function stopAjax()\n {\n if ($this->isAjax() && $this->arParams['USE_AJAX'] === 'Y')\n {\n global $APPLICATION;\n \n $APPLICATION->FinalActions();\n \n exit;\n }\n }", "public function ProcessAjax()\n {\n exit; ...
[ "0.6861626", "0.68592966", "0.6817523", "0.6786425", "0.67853296", "0.6750098", "0.66238844", "0.6550272", "0.64247847", "0.6377474", "0.63451546", "0.63360554", "0.6315446", "0.62481916", "0.62476975", "0.6218362", "0.6211445", "0.6205424", "0.62030804", "0.6201062", "0.6194...
0.71081233
0
Persists settings errors. Settings errors are stored in a transient for 30 seconds so that this transient can be retrieved on the next page load.
Ошибка сохранения настроек. Ошибки настроек хранятся в временной переменной в течение 30 секунд, чтобы эта временная переменная могла быть получена при следующем загрузке страницы.
protected function persist_settings_errors() { /* * A regular transient is used here, since it is automatically cleared right after the redirect. * A network transient would be cleaner, but would require a lot of copied code from core for * just a minor adjustment when displaying settings errors. */ set...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store_error_log () {\n set_transient( $this->token . '-request-error', $this->errors );\n }", "public function save_errors() {\n update_option( 'reverseredirect_meta_box_errors', self::$meta_box_errors );\n }", "public function store_errors() {\r\n\r\n\t\tif ( sizeof( $thi...
[ "0.67210436", "0.66983634", "0.6675579", "0.62183565", "0.5981091", "0.5788024", "0.5767254", "0.5756014", "0.5743274", "0.5691551", "0.5685055", "0.56568706", "0.5628224", "0.5585055", "0.5561909", "0.5555822", "0.5555822", "0.55274844", "0.55005616", "0.54673225", "0.546607...
0.8932762
0
Write data of $userId
Запишите данные пользователя $userId
abstract protected function _saveUser(string $userId, array $data): void;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function write($id, $data);", "public function setUserId($userId);", "public function setUserId($userId);", "public function setUserId($userId);", "public function data($userId);", "public function store($idUser)\n\t{\n\t\t//\n\t}", "public function setUserid($userId)\n {\n $this->user...
[ "0.6854074", "0.6810684", "0.6810684", "0.6810684", "0.680562", "0.6765409", "0.67102045", "0.66553", "0.66553", "0.66553", "0.66553", "0.6641623", "0.6638287", "0.66286665", "0.66218936", "0.6552447", "0.65392166", "0.64836365", "0.64836365", "0.64836365", "0.64836365", "0...
0.7087045
0
Cancel the last round's score
Отменить результат последнего раунда
function cancel_score() { if ($_POST['xsrf_token'] != $_SESSION['xsrf_token']) trigger_error('XSRF code incorrect', E_USER_ERROR); $set = (int) htmlentities($_POST['set']) - 1; if ($set < 1 || $set > 12) trigger_error('Invalid set?!', E_USER_ERROR); if ($set == 12) { // Scores are as text entered into TEA...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function resetScore() {\n\t\t\t$this->intScore = 0;\n\t\t}", "public function cancel()\n\t\t{\n\n\t\t}", "public function cancel() {}", "public function cancel();", "public function cancel();", "public function cancel();", "public function cancelar()\n {\n //Obtiene el estado cancelado...
[ "0.6677073", "0.6627007", "0.6613055", "0.6598251", "0.6598251", "0.6598251", "0.65354216", "0.65117294", "0.6508114", "0.6379494", "0.6361966", "0.6257085", "0.6224976", "0.61576796", "0.6042707", "0.60320663", "0.59943527", "0.5983028", "0.5945116", "0.5928684", "0.59249693...
0.7509884
0
Get next action name
Получить следующее имя действия
public function getNextAction($action = null);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPreviousActionName() {}", "public function getActionName()\n {\n // get the last action stack entry\n $lastEntry = $this->getActionStack()->getLastEntry();\n\n if ($lastEntry)\n {\n return $lastEntry->getActionName();\n }\n }", "public function nextMenuName()\n {\n ...
[ "0.7706049", "0.7228433", "0.7129572", "0.701642", "0.6938614", "0.69346255", "0.6931514", "0.6914179", "0.6846979", "0.6816592", "0.6816592", "0.68139035", "0.6796041", "0.67937726", "0.6787562", "0.67571175", "0.6754127", "0.67103493", "0.6704772", "0.67008686", "0.6691723"...
0.7403202
1
Get previous action name
Получить имя предыдущего действия
public function getPreviousAction($action = null);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPreviousActionName() {}", "public function getPreviousControllerName() {}", "function previous_route_name() {\n return app('router')->getRoutes()->match(app('request')->create(url()->previous()))->getName();\n }", "public function getActionName()\n {\n // get the last action ...
[ "0.9495191", "0.7931342", "0.7775319", "0.76248837", "0.7415484", "0.7158709", "0.71272075", "0.71117574", "0.70401394", "0.70333457", "0.70333457", "0.7024379", "0.7004711", "0.69871324", "0.69684637", "0.69120836", "0.6896575", "0.6895518", "0.68773574", "0.68601984", "0.68...
0.8064743
1
Gets current and total progress
Получает текущий и общий прогресс
public function getProgress();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCurrentProgress()\n\t{\n\t\treturn $this->storage->getProgress();\n\t}", "function getProgress() ;", "public function getProgress()\n {\n return $this->progress;\n }", "public function getProgress() {\n\t\treturn $this->progress;\n\t}", "public function Progress()\t\t\t\t\t\...
[ "0.8133409", "0.8087067", "0.7777647", "0.7741135", "0.7739297", "0.74723357", "0.7442626", "0.7423105", "0.73016125", "0.727943", "0.72650343", "0.72321355", "0.71070355", "0.7074518", "0.70086026", "0.70084167", "0.6948977", "0.6930716", "0.6882367", "0.6861321", "0.6853429...
0.8259556
0
Get the type argument.
Получить аргумент типа.
private function getTypeArgument(): string { $type = $this->option('type'); if (is_null($type)) { $type = $this->ask('type'); } return $type; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getType()\n {\n return $this->args[\"type\"];\n }", "public function setTypeArgument()\n {\n return $this->setType(self::ARGUMENT);\n }", "public static function get_type();", "public function getParameterType()\n {\n return $this->parameterType;\n }", ...
[ "0.76217616", "0.72234416", "0.6870518", "0.6738243", "0.6717106", "0.6676956", "0.65997773", "0.65770745", "0.65470165", "0.6472128", "0.64581347", "0.64406383", "0.6439306", "0.6435469", "0.64253145", "0.64252734", "0.64246225", "0.64065486", "0.63928896", "0.634735", "0.63...
0.77515703
0
Get the message argument.
Получить аргумент сообщения.
private function getMessageArgument(): string { $message = $this->option('message'); if (is_null($message)) { $message = $this->ask('message'); } return $message; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getArgument();", "public function getArgument() {}", "function getMessageParam() {\n\t\treturn $this->_MessageParam;\n\t}", "public function getArg()\n {\n return $this->arg;\n }", "protected function getArgument($name) {\n return $this->args[$name];\n }", "public functio...
[ "0.7502543", "0.7472165", "0.73648626", "0.71914434", "0.6714585", "0.666392", "0.66594005", "0.66005474", "0.65064484", "0.64788485", "0.6438204", "0.63686705", "0.6364339", "0.63546824", "0.6349549", "0.6349549", "0.63341165", "0.63341165", "0.6322371", "0.6251926", "0.6248...
0.8165371
0
Get product name by id to pass it to rename to change the product directory that hold the image
Получить имя продукта по идентификатору, чтобы передать его в rename для изменения каталога продукта, содержащего изображение
function getProductNameById($id) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static function get_wporg_product_dir_name($product_id)\n {\n }", "function getProductName($product_id) {\n\t\t\t$model = $this -> model;\n\t\t\treturn $model -> getProductName($product_id) ;\n\t\t}", "function getProductName($product_id)\n{\n\tglobal $log;\n\t$log->debug(\"Entering getPr...
[ "0.7379145", "0.7147172", "0.7021577", "0.6806736", "0.6659983", "0.66416836", "0.66364235", "0.65922034", "0.6587593", "0.65354383", "0.64985484", "0.64786035", "0.64771265", "0.6442446", "0.6440119", "0.63688433", "0.6344524", "0.6344524", "0.63428324", "0.62983716", "0.623...
0.7765361
0
Display view for managing subscription recipients
Просмотр для управления получателями подписки
public function recipients() { checkIfAuthenticated(); //set title $data['title'] = 'Manage Report Recipients'; $data['content'] = 'subscription_recipients'; //set js component $data['pagejs'] = 'components/report_recipients'; //set api_token $data['ap...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function subscribeAction() {\n // Check incoming data\n $name = trim(Arr::get($this->post, 'name'));\n if( !$name OR mb_strlen($name, 'UTF-8') < 2 ) {\n $this->error('Имя введено неверно!');\n }\n\n $email = Arr::get( $this->post, 'email'...
[ "0.6694302", "0.6677798", "0.6608911", "0.6580918", "0.64942443", "0.6486292", "0.6299894", "0.6295695", "0.62914467", "0.62652355", "0.62608564", "0.6260526", "0.6256948", "0.6224045", "0.6221316", "0.62118465", "0.61896527", "0.6185419", "0.6144737", "0.6133211", "0.6121681...
0.7919844
0
Populate (create or update) module reminder tags
Заполнить (создать или обновить) метки модуля напоминания
public function populateModuleReminderTags() { // get all tags from infusionSoftSDK and insert them into table $module_reminder_tags = $this->infusionSoftSDK->getAllTags()->toArray(); foreach ($module_reminder_tags as $module_reminder_tag) { Modul...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function update_tags() {\n\t\t\t$tags = get_tags();\n\t\t\tforeach ( $tags as $tag ) {\n\t\t\t\t$this->connection->hmSet(\n\t\t\t\t\t'tag:' . $tag->term_id,\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'term_id' => $tag->term_id,\n\t\t\t\t\t\t'name' => $tag->name,\n\t\t\t\t\t\t'slug' => $tag->slug,\n\t\t\t\t\t),\n...
[ "0.5441539", "0.54415166", "0.5392211", "0.52224", "0.5157135", "0.51250356", "0.5092237", "0.5041643", "0.50132954", "0.4979107", "0.49747318", "0.49568456", "0.4896716", "0.48948553", "0.488761", "0.48838624", "0.48732644", "0.4869818", "0.48442385", "0.4836168", "0.4814872...
0.7745558
0
Checks if one of the needles from $needle_array is found in the $haystack
Проверяет, найдено ли одно из иголок из $needle_array в $haystack
protected static function multi_instring($haystack, $needle_array) { foreach ($needle_array as $needle) { if (strpos($haystack, $needle) !== false) { return $needle; } } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function in_array_any($needles, $haystack) {\n Trace::add_trace('search in array',__METHOD__);\n return !!array_intersect($needles, $haystack);\n }", "function any_in_array($needle, $haystack)\n{\n $needle = (is_array($needle)) ? $needle : array($needle);\n\n foreach ($needle as $it...
[ "0.7459121", "0.7364533", "0.7307058", "0.72591794", "0.7178829", "0.7080435", "0.7012473", "0.6945275", "0.6933189", "0.6924399", "0.68953854", "0.68545717", "0.68363166", "0.6824534", "0.68005556", "0.67839193", "0.6775458", "0.67591923", "0.6746673", "0.67422813", "0.67411...
0.7445017
1
Adds the social icons to the panel.
Добавляет социальные иконки на панель.
static function add_social_buttons($social_icons) { td_util::update_option('td_social_networks', $social_icons); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function widget_dev_register_social_icons_widget() {\r\n\tregister_widget( 'widget_dev_Social_Icons_Widget' );\r\n}", "function freshio_social_icons()\n\t{\n\t\tif (class_exists('Subscribe_And_Connect')) {\n\t\t\techo '<div class=\"subscribe-and-connect-connect\">';\n\t\t\tsubscribe_and_connect_connect();\n\t\t\...
[ "0.6905663", "0.6776428", "0.66898775", "0.6665187", "0.6656672", "0.6563027", "0.6554972", "0.641649", "0.6415783", "0.63460386", "0.6290832", "0.6149396", "0.61061466", "0.6084229", "0.60697913", "0.60693747", "0.6039026", "0.60329586", "0.6025294", "0.6008273", "0.60027784...
0.7364033
0
remove all the ads from the theme options. Must be called before adding custom ads
Удалить все рекламные объявления из опций темы. Должно вызываться перед добавлением кастомных объявлений
static function clear_all_ads() { td_util::update_option('td_ads', ''); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function cleanup_options() {\n\t\tforeach ( array(\n\t\t\t'seo_woo_archive_layout',\n\t\t\t'seo_woo_single_layout',\n\t\t\t'seo_woo_page_layout',\n\t\t\t'seo_woo_wp_title',\n\t\t\t'seo_woo_meta_single_desc',\n\t\t\t'seo_woo_meta_single_key',\n\t\t\t'seo_woo_home_layout',\n\t\t\t) as $option ) {\n\t\t\tdele...
[ "0.7459273", "0.7057283", "0.68351126", "0.67877144", "0.6784555", "0.67728853", "0.66667557", "0.6562581", "0.65468645", "0.65376043", "0.65325063", "0.65315175", "0.649359", "0.64154786", "0.64036155", "0.6377515", "0.6377072", "0.63534343", "0.63362974", "0.63348925", "0.6...
0.768951
0
ads an ad image via a td_pic_id to an ad spot
добавляет изображение рекламы через td_pic_id в рекламное место
static function add_ad_image($ad_spot_name, $td_image_id) { $td_ad_spots = td_util::get_option('td_ads'); $new_ad_spot['ad_code']= '<div class="td-all-devices"><a href="#"><img src="' . td_demo_media::get_image_url_by_td_id($td_image_id) . '"/></a></div>'; $new_ad_spot['current_ad_type']= 'ot...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function insert_image_shortcode($html, $id, $caption, $title, $align, $url) {\n\t return \"[image id='$id']\";\n\t}", "function AddLink($cid,$img = 0){\n\t\n\tglobal $db_setup_images;\n\tglobal $eden_cfg;\n\t\n\t$res_setup = mysql_query(\"SELECT eden_setup_image_width, eden_setup_image_height, eden_setup_image_...
[ "0.6032174", "0.5815831", "0.57602406", "0.57488436", "0.56944484", "0.56062424", "0.5498398", "0.5494145", "0.5426444", "0.54175854", "0.54148895", "0.54006195", "0.53845024", "0.53730553", "0.5354572", "0.5354074", "0.5336133", "0.53251404", "0.5318356", "0.5312883", "0.528...
0.75793326
0
updates the text form the footer
обновляет текст из футера
static function update_footer_text($new_text) { td_util::update_option('tds_footer_text', $new_text); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function footer()\n {\n $this->SetY(-19);\n $this->drawLine();\n $this->SetFontSize(10);\n $this->Cell(0, 10, $this->infoTextForFooter , 0, false, 'L', 0, '', 0, false, 'T', 'M');\n $this->Ln(4);\n $now = new FrozenTime();\n $textForFooterRight =\n ...
[ "0.7362435", "0.7319765", "0.7256005", "0.7250497", "0.70978445", "0.7039889", "0.7012658", "0.6953659", "0.69424284", "0.693978", "0.6925827", "0.6863776", "0.68558586", "0.6855529", "0.6843856", "0.6819607", "0.67907804", "0.67874014", "0.6759192", "0.6758418", "0.6751958",...
0.7808289
0
updates the footer logo, this one can also clear the logo
обновляет логотип в подвале, этот же может также очистить логотип
static function update_footer_logo($logo_params) { if (empty($logo_params['normal'])) { td_util::update_option('tds_footer_logo_upload', ''); } else { td_util::update_option('tds_footer_logo_upload', td_demo_media::get_image_url_by_td_id($logo_params['normal'])); } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function change_logo()\n {\n if ($this->isLoggedIn()) {\n $data['menu'] = $this->Admin_model->getMenuItems('admin_menu');\n $data['theme'] = $this->Admin_model->getActiveTheme();\n $data['company_info'] = $this->Admin_model->get_company_info();\n $data['...
[ "0.679988", "0.6678966", "0.6652192", "0.653835", "0.6490855", "0.64822847", "0.6481465", "0.64701784", "0.64677685", "0.64540493", "0.64444333", "0.6406402", "0.63685745", "0.6334616", "0.6281833", "0.62806755", "0.62585795", "0.6225868", "0.62169904", "0.62014276", "0.61883...
0.7442748
0
remove the sidebars that begin with td_demo_
удалите боковые панели, начинающиеся с td_demo_
static function remove() { $tmp_sidebars = td_util::get_option('sidebars'); if (!empty($tmp_sidebars)) { foreach ($tmp_sidebars as $index => $sidebar) { if (substr($sidebar, 0, 8) == 'td_demo_') { unset($tmp_sidebars[$index]); } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function dano_remove_sidebar() {\n return false;\n}", "static function remove_widgets_from_sidebar($sidebar_id = 'default') {\r\n\r\n\t if (!in_array('td-' . $sidebar_id, self::$hard_coded_sidebars)) {\r\n\t\t self::kill(__CLASS__, __FUNCTION__, 'You can only remove widgets from the hardcoded sidebars. ...
[ "0.6722849", "0.6191272", "0.61096394", "0.60994136", "0.6034653", "0.6032737", "0.60058236", "0.5995255", "0.5975521", "0.59753954", "0.5948731", "0.5937071", "0.59348285", "0.59177876", "0.590998", "0.58669776", "0.5866088", "0.5865907", "0.58263946", "0.58166236", "0.58116...
0.70091796
0
adds a category to a menu
добавляет категорию в меню
static function add_category($menu_params) { // requiered parameters self::check_params(__CLASS__, __FUNCTION__, $menu_params, array( 'title' => 'Param is requiered!', 'category_id' => 'Param is requiered! - this is the category id that will be used to generate the mega menu', 'add_to...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function add_category()\r\n\t{\r\n\t\t$metaModel = BluApplication::getModel('meta');\r\n\t\t$category = $metaModel->getValue($this->_category);\r\n\t\textract($category);\r\n\t\t\r\n\t\tinclude(BLUPATH_BASE_TEMPLATES.'/categories/add_category.php');\r\n\t}", "public function addCategory ()\n {\n ...
[ "0.7658093", "0.7185828", "0.718276", "0.7167277", "0.7122288", "0.7062201", "0.6889966", "0.6799168", "0.6798902", "0.6798467", "0.67886966", "0.67700195", "0.67597926", "0.6750782", "0.67211443", "0.6711324", "0.6701579", "0.668001", "0.6669284", "0.6628426", "0.6620665", ...
0.7478158
1
Installation statistics for defined periods.
Статистика установки для определенных периодов.
private function _installStat() { $this->getHelper( 'contextSwitch' ) ->addActionContext( 'install-stat', 'json' ) ->initContext( 'json' ) ; // Prepare periods. $firstInstallDate = Table::_( 'instances' )->getFirstInstallDate(); $firstInstallDate = new DateTime( $firstInstallDate ); $period...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function _pluginInstallStat()\n\t\t{\n\t\t\t$chartData = array (\n\t\t\t\t'cols' => array (\n\t\t\t\t\tarray ( 'id' => 'col_app', 'label' => 'Application', 'type' => 'string' ),\n\t\t\t\t\tarray ( 'id' => 'col_amount', 'label' => 'Amount', 'type' => 'number' ),\n\t\t\t\t),\n\t\t\t\t'rows' => array ()\n\t\t...
[ "0.66540235", "0.6513099", "0.607612", "0.5975457", "0.5952507", "0.5871871", "0.584617", "0.58252585", "0.57096195", "0.56605834", "0.5621506", "0.5525617", "0.54750043", "0.54188627", "0.5394333", "0.53802717", "0.5377821", "0.53678405", "0.5361593", "0.5348103", "0.5340875...
0.7875585
0
Installation statistics by platforms. Google chart.
Статистика установки по платформам. График Google.
private function _platformInstallStat() { $chartData = array ( 'cols' => array ( array ( 'id' => 'col_platforms', 'label' => 'Platforms', 'type' => 'string' ), array ( 'id' => 'col_amount', 'label' => 'Amount', 'type' => 'number' ), ), 'rows' => array () ); $installed = Table::_( 'insta...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function _pluginInstallStat()\n\t\t{\n\t\t\t$chartData = array (\n\t\t\t\t'cols' => array (\n\t\t\t\t\tarray ( 'id' => 'col_app', 'label' => 'Application', 'type' => 'string' ),\n\t\t\t\t\tarray ( 'id' => 'col_amount', 'label' => 'Amount', 'type' => 'number' ),\n\t\t\t\t),\n\t\t\t\t'rows' => array ()\n\t\t...
[ "0.64182204", "0.6103444", "0.5872072", "0.5779901", "0.57479507", "0.5726414", "0.56854165", "0.5681068", "0.5668347", "0.56245524", "0.54870003", "0.5341995", "0.53352284", "0.53223664", "0.530386", "0.5237139", "0.5235139", "0.5199289", "0.51941234", "0.51723653", "0.51474...
0.7496988
0
Installation statistics by plugins. Google chart.
Статистика установки по плагинам. График Google.
private function _pluginInstallStat() { $chartData = array ( 'cols' => array ( array ( 'id' => 'col_app', 'label' => 'Application', 'type' => 'string' ), array ( 'id' => 'col_amount', 'label' => 'Amount', 'type' => 'number' ), ), 'rows' => array () ); $installed = Table::_( 'instances' ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function pb_get_ga_statistics() {\n\n\t$gaID = polarbear_setting(\"GoogleAnalyticsReportID\");\n\t$gaEmail = polarbear_setting(\"GoogleAnalyticsEmail\");\n\t$gaPassword = polarbear_setting(\"GoogleAnalyticsPassword\");\n\t$maxAge = 3600; // seconds to store data in cache. 3600 = one hour\n\t\n\tif (empty($gaID) ||...
[ "0.6274213", "0.61881834", "0.6134406", "0.6053817", "0.60087496", "0.5965177", "0.58951575", "0.5886331", "0.5858206", "0.58560795", "0.58361477", "0.57779026", "0.5777365", "0.5665616", "0.56523544", "0.5591818", "0.5555485", "0.5545594", "0.5533346", "0.5532917", "0.550373...
0.733759
0
Earned statistics by platform. Google chart.
Статистика, накопленная по платформам. График Google.
private function _platformEarnedStat() { $chartData = array ( 'cols' => array ( array ( 'id' => 'col_app', 'label' => 'Platform', 'type' => 'string' ), array ( 'id' => 'col_amount', 'label' => 'Amount', 'type' => 'number' ), ), 'rows' => array () ); $platforms = array (); // Add tran...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function pb_get_ga_statistics() {\n\n\t$gaID = polarbear_setting(\"GoogleAnalyticsReportID\");\n\t$gaEmail = polarbear_setting(\"GoogleAnalyticsEmail\");\n\t$gaPassword = polarbear_setting(\"GoogleAnalyticsPassword\");\n\t$maxAge = 3600; // seconds to store data in cache. 3600 = one hour\n\t\n\tif (empty($gaID) ||...
[ "0.64086205", "0.6174419", "0.6096233", "0.59640354", "0.59469146", "0.594241", "0.5650834", "0.5625153", "0.5623993", "0.5617384", "0.5600977", "0.5579607", "0.5532282", "0.55215985", "0.5427119", "0.5404487", "0.5385144", "0.5372927", "0.5364274", "0.53567433", "0.5353902",...
0.72966
0
Earned statistics by plugin. Google chart.
Статистика, полученная с помощью плагина. График Google.
private function _pluginEarnedStat() { $chartData = array ( 'cols' => array ( array ( 'id' => 'col_app', 'label' => 'Application', 'type' => 'string' ), array ( 'id' => 'col_amount', 'label' => 'Amount', 'type' => 'number' ), ), 'rows' => array () ); $plugins = array (); // Add trans...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function yellow_pages_statistics_ga_chart($analytics, $profile_id, $metric, $metrics, $period) {\n $period_vars = yellow_pages_statistics_ga_get_period_variables($period);\n\n $results = $analytics->data_ga->get(\n 'ga:' . $profile_id,\n $period_vars['start_date'],\n 'today',\n $metric,\n array(\n...
[ "0.7074837", "0.69146514", "0.65565217", "0.6300049", "0.626913", "0.62101924", "0.61513406", "0.61477596", "0.6042427", "0.5945096", "0.5935977", "0.5923978", "0.5914193", "0.5910825", "0.58913803", "0.5883007", "0.58758855", "0.5818874", "0.5793469", "0.57834864", "0.577571...
0.7557612
0
Calculates day amount of given period.
Вычисляет количество дней в заданном периоде.
private function _calcPeriodDays( $period ) { if ( is_string( $period ) ) { $startDate = new DateTime(); $startDate->modify( $period ); $startDate->setTime( 0, 0, 0 ); } else { $startDate = $period; } $endDate = new DateTime(); $endDate->setTime( 0, 0, 0 ); $interval = $endDate->diff...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function calculateDaysFromPeriods($periods) {\n $days = 0;\n $len = count($periods);\n for ($periodIndex = $len-1; $periodIndex >= 0; $periodIndex--) {\n $period = $periods[$periodIndex];\n $number = $period->getNumber();\n \n $structure = ...
[ "0.6811713", "0.6329433", "0.62630796", "0.6143446", "0.609961", "0.6087887", "0.6061823", "0.59344655", "0.586934", "0.5724193", "0.57158244", "0.56918395", "0.5673935", "0.56409335", "0.562342", "0.5620516", "0.5574529", "0.5570285", "0.5557938", "0.5552378", "0.5536527", ...
0.74262035
0
$worker = new StringReverseWorker();
$worker = new StringReverseWorker();
public function __construct() { // $this->freeWorkers[spl_object_hash($worker)] = $worker; // $worker = new StringReverseWorker(); // $this->freeWorkers[spl_object_hash($worker)] = $worker; // $worker = new StringReverseWorker(); // $this->freeWorkers[spl_object_hash($worker...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function resolve_reverse()\n {\n extract($this->worker['reverse']);\n $this->source = array_reverse($this->source, $preserve);\n }", "public static function reverse()\n\t{\n\t}", "function reverse()\n {\n }", "abstract public function reverse(): self;", "private\n\n func...
[ "0.6243676", "0.61476535", "0.61472327", "0.60527956", "0.5854791", "0.56748337", "0.5642727", "0.5470329", "0.543049", "0.53710246", "0.5294483", "0.52850837", "0.52304924", "0.52137303", "0.51163167", "0.50989276", "0.50940335", "0.50286484", "0.49782944", "0.49440944", "0....
0.71806026
0
Get only posts with a custom status
Получить только посты с пользовательским статусом
public function status($postStatus) { return $this->where('post_status', $postStatus); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function test_get_posts_by_status()\n\t{\n\t\t$expected = Post::create( array(\n\t\t\t'title' => 'This is a Post',\n\t\t\t'content' => 'If this was really a post, would it have such rslugiculous content?',\n\t\t\t'user_id' => $this->user->id,\n\t\t\t'status' => Post::status( 'published' ),\n\t\t\t'content_t...
[ "0.6918111", "0.6744258", "0.66556156", "0.6654141", "0.66000915", "0.65688574", "0.6546295", "0.6476983", "0.63990706", "0.63855755", "0.6374468", "0.6338814", "0.6323367", "0.62501925", "0.6168825", "0.6144016", "0.61293393", "0.610225", "0.60951155", "0.60909635", "0.60741...
0.7255208
0
Get only posts with a specific slug
Получить только посты с конкретным слагом
public function slug($slug) { return $this->where('post_name', $slug); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function post($slug)\n {\n return $this->get('posts', ['filter' => ['name' => $slug]]);\n }", "public function findBySlug($slug){\n\n\t\t$args = array(\n\t\t\t'name' => $slug,\n\t\t\t'post_type' => $this->post_type,\n\t\t\t'post_status' => 'publish',\n\t\t\t'numberposts' => 1\n\t\t);\n\n\t\t$...
[ "0.72277343", "0.7157789", "0.7072185", "0.68914723", "0.68223375", "0.68195546", "0.67224586", "0.6708445", "0.6686454", "0.668259", "0.66816354", "0.666419", "0.66414917", "0.66322714", "0.66059244", "0.66059244", "0.66059244", "0.66059244", "0.66059244", "0.66059244", "0.6...
0.7832526
0
Get the user's last license
Получить последнюю лицензию пользователя
public function getLastUserLicense(User $user) { $lastLicense = $this->createQueryBuilder('l') ->orderBy('l.year', 'DESC') ->andWhere('l.user = :user') ->setParameter('user', $user) ->setMaxResults(1) ->getQuery() ->getOneOrNullResult()...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getLicense() {\n\t\treturn $this->license;\n\t}", "public function get_license_id(){\n\t\treturn $this->license;\n\t}", "public function getLicense()\n {\n return (string)$this->l;\n }", "function getLicense() {\n\t\treturn $this->_licensetext;\n\t}", "public function get_li...
[ "0.6809551", "0.67020345", "0.65577096", "0.6407251", "0.6365137", "0.6268575", "0.62633497", "0.6228902", "0.6223696", "0.621609", "0.6162529", "0.61412096", "0.61346203", "0.61346203", "0.6132576", "0.6117003", "0.6101006", "0.60657936", "0.6059238", "0.6034448", "0.6010815...
0.77010113
0
Find object by primary key. Propel uses the instance pool to skip the database if the object exists. Go fast if the query is untouched. $obj = $c>findPk(12, $con);
Найти объект по первичному ключу. Propel использует буфер экземпляров для пропускания базы данных, если объект существует. Быстрее, если запрос не был изменен. $obj = $c>findPk(12, $con);
public function findPk($key, $con = null) { if ($key === null) { return null; } if ((null !== ($obj = Oops_Db_MemcachedServersPeer::getInstanceFromPool((string) $key))) && !$this->formatter) { // the object is alredy in the instance pool return $obj; } if ($con === null) { $con = Propel::getConne...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function findPk($key, $con = null)\n\t{\n\t\tif ($key === null) {\n\t\t\treturn null;\n\t\t}\n\t\tif ((null !== ($obj = Buses201101Peer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t}\n\t\tif ($con === null) {\n\t\t...
[ "0.7665454", "0.75575393", "0.7535924", "0.7526595", "0.74953145", "0.7489507", "0.7483596", "0.7462587", "0.74420434", "0.744191", "0.7433601", "0.7425497", "0.742445", "0.7417212", "0.74165916", "0.74157536", "0.7411815", "0.73994774", "0.7397289", "0.7384904", "0.7384727",...
0.7582437
1
Return the status of this item. The status is contingent on the status of child media. APPROVED: implied by all Scripto media entities approved or no Scripto media entities COMPLETED: implied by all Scripto media entities completed IN PROGRESS: implied by at least one Scripto media entity edited NEW: implied by no Scri...
Верните статус этого элемента. Статус зависит от статуса дочерних медиа. Утверждено: подразумевается, если все медиа Scripto утверждены или нет медиа Scripto. Завершено: подразумевается, если все медиа Scripto завершены. В процессе: подразумевается, если хотя бы одно медиа Scripto отредактировано. Новое: подразумеваетс...
public function status() { $totalCount = $this->mediaCount(); if (!$totalCount) { return self::STATUS_APPROVED; } if ($this->isApprovedMediaCount() === $totalCount) { return self::STATUS_APPROVED; } if ($this->isCompletedMediaCount() === $total...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function manageStatus()\n {\n // populate fields\n $query = array(\n // The transaction ID of the payment transaction.\n self::TRANSACTION_ID => $this->transactionId,\n // Valid values are Accept or Deny\n self::ACTION => $this->action);\n ...
[ "0.59569734", "0.5857592", "0.5818087", "0.5736397", "0.5730234", "0.5723517", "0.5723517", "0.57157487", "0.5710885", "0.5703361", "0.5681229", "0.56671447", "0.56663585", "0.5644165", "0.5625829", "0.56090444", "0.5606482", "0.55947036", "0.5579105", "0.5578929", "0.5568972...
0.70329636
0
Was this item edited after it was imported?
Был ли этот элемент изменен после его импорта?
public function isEditedAfterImported() { $imported = $this->resource->getScriptoProject()->getImported(); return $imported ? $this->edited() > $imported : false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function toBeSavedWithUpdate()\n {\n return ($this->saveType === Record::UPDATE);\n }", "public function hasBeenModified();", "public function isModified(): bool;", "public function isUpdated() {}", "function isModified() {\r\n\t\treturn $this->_Modified;\r\n\t}", "function isAltered(...
[ "0.66067225", "0.6563779", "0.6523725", "0.6436081", "0.6398266", "0.6396812", "0.63927966", "0.63789225", "0.63789225", "0.63789225", "0.63789225", "0.63789225", "0.63789225", "0.6357352", "0.6350444", "0.6327869", "0.62733096", "0.6258987", "0.6258399", "0.6252209", "0.6246...
0.7993649
0
Get the number of child media.
Получить количество дочерних медиа.
public function mediaCount() { $api = $this->getServiceLocator()->get('Omeka\ApiManager'); $response = $api->search('scripto_media', [ 'scripto_item_id' => $this->id(), 'limit' => 0, ]); return $response->getTotalResults(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function childCount(): int;", "function sukelius_get_image_attachment_count() {\r\n\t$images = get_children( array( 'post_parent' => get_the_ID(), 'post_type' => 'attachment', 'post_mime_type' => 'image', 'numberposts' => -1 ) );\r\n\treturn count( $images );\r\n}", "public function getChildCount(): int...
[ "0.6884372", "0.6608434", "0.65881246", "0.6577683", "0.6577683", "0.6527185", "0.6524085", "0.65180427", "0.645108", "0.6358354", "0.62911516", "0.62462544", "0.6174651", "0.6157182", "0.61566466", "0.61553794", "0.61524177", "0.60913897", "0.60404885", "0.60404617", "0.6025...
0.7036134
0
Get the number of child media that are approved.
Получить количество дочерних медиа, которые одобрены.
public function isApprovedMediaCount() { $api = $this->getServiceLocator()->get('Omeka\ApiManager'); $response = $api->search('scripto_media', [ 'scripto_item_id' => $this->id(), 'is_approved' => true, 'limit' => 0, ]); return $response->getTotalRe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isEditedAfterApprovedMediaCount()\n {\n $api = $this->getServiceLocator()->get('Omeka\\ApiManager');\n $response = $api->search('scripto_media', [\n 'scripto_item_id' => $this->id(),\n 'is_edited_after_approved' => true,\n 'limit' => 0,\n ]);...
[ "0.678578", "0.65445256", "0.652744", "0.6385355", "0.6385355", "0.63792723", "0.6354249", "0.6346102", "0.6155663", "0.6065548", "0.6065548", "0.60565066", "0.6039158", "0.60391086", "0.6035405", "0.6034534", "0.6026932", "0.5980623", "0.5928621", "0.5918248", "0.59101045", ...
0.731797
0
Get the number of child media that are completed.
Получить количество дочерних медиа, которые завершены.
public function isCompletedMediaCount() { $api = $this->getServiceLocator()->get('Omeka\ApiManager'); $response = $api->search('scripto_media', [ 'scripto_item_id' => $this->id(), 'is_completed' => true, 'limit' => 0, ]); return $response->getTotal...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function count()\n {\n if ($this->numFiles == -1) {\n $this->numFiles = 0;\n\n foreach ($this->children as $child) {\n $this->numFiles += count($child);\n }\n }\n\n return $this->numFiles;\n }", "public function mediaCount()\n {...
[ "0.6706374", "0.658258", "0.6464816", "0.6373629", "0.6330761", "0.6304044", "0.62879586", "0.6275654", "0.62438095", "0.62266195", "0.6218307", "0.6217447", "0.61255133", "0.61255133", "0.6119396", "0.6058501", "0.6052854", "0.6052854", "0.6011584", "0.6005838", "0.59982234"...
0.7112594
0
Get the number of child media that have been edited after approved.
Получить количество дочерних медиа, которые были отредактированы после одобрения.
public function isEditedAfterApprovedMediaCount() { $api = $this->getServiceLocator()->get('Omeka\ApiManager'); $response = $api->search('scripto_media', [ 'scripto_item_id' => $this->id(), 'is_edited_after_approved' => true, 'limit' => 0, ]); retu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isEditedMediaCount()\n {\n $api = $this->getServiceLocator()->get('Omeka\\ApiManager');\n $response = $api->search('scripto_media', [\n 'scripto_item_id' => $this->id(),\n 'is_edited' => true,\n 'limit' => 0,\n ]);\n return $response->...
[ "0.70261467", "0.6766503", "0.6762965", "0.6402988", "0.6402988", "0.6278844", "0.6155943", "0.61542946", "0.61244386", "0.6078472", "0.59768546", "0.59461945", "0.58647406", "0.58219117", "0.57931256", "0.5779487", "0.57717556", "0.57717556", "0.5759414", "0.5740918", "0.573...
0.74419045
0
The public method achieve_create_new_employee creates a new employee
Публичный метод achieve_create_new_employee создает нового сотрудника
public function achieve_create_new_employee() { (new MidrubBaseUserAppsCollectionAchieveHelpers\Employees)->achieve_create_new_employee(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function newAction(Employees $employee)\n {\n\n\n $office = new Offices();\n $office = $this->get('doctrine.orm.entity_manager')\n ->getRepository('AppBundle:Offices')\n ->find(\"1\");\n $employee->setOfficecode($office);\n\n $em = $this->getDoctrine()->g...
[ "0.7616851", "0.7614808", "0.7423643", "0.7360573", "0.73588496", "0.73535866", "0.73142993", "0.7264646", "0.7217375", "0.71383", "0.70935655", "0.70899373", "0.7048703", "0.7047112", "0.7038492", "0.70364636", "0.7020608", "0.7005146", "0.7004637", "0.7003956", "0.694806", ...
0.85290587
0
The public method get_employees gets all employees
Публичный метод get_employees получает всех сотрудников
public function get_employees() { (new MidrubBaseUserAppsCollectionAchieveHelpers\Employees)->get_employees(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getEmployees();", "public function getAllEmployees()\n {\n \t$users_services = new UsersService();\n \t$employess = $users_services->fetchAll(1);\n \t$result = array();\n \t\n \tforeach ($employess as $emp){\n \t\t$result[$emp['user_id']] = $emp['name'].\"...
[ "0.8761813", "0.80943036", "0.80915564", "0.80723447", "0.80436885", "0.79199874", "0.78664845", "0.7845939", "0.7825658", "0.77940804", "0.77361023", "0.77184165", "0.7656971", "0.76300544", "0.7566773", "0.7564651", "0.7552317", "0.74993175", "0.7481883", "0.74749416", "0.7...
0.8554863
1
The public method get_employee get employee data
Публичный метод get_employee получает данные сотрудника
public function get_employee() { (new MidrubBaseUserAppsCollectionAchieveHelpers\Employees)->get_employee(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getEmployees();", "public function getEmployee($id) {\n return $this->db->get_where('ems_employee',['id' => $id])->row();\n }", "public function getEmployee() {\n return $this->employee;\n }", "public function getEmployeeInfo()\n {\n return $this->employ...
[ "0.7674797", "0.7351282", "0.73255354", "0.7214884", "0.71744215", "0.7135362", "0.7103362", "0.7101878", "0.7098074", "0.70504826", "0.704053", "0.7021886", "0.7021418", "0.70144826", "0.7013623", "0.7011728", "0.6963173", "0.69365984", "0.6905266", "0.6897849", "0.68596303"...
0.8018886
0
Get instance with given hashcode
Получить экземпляр с заданным хэш-кодом
public static function findInstanceByHash($hashCode){ return static::$instances[$hashCode]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function findByHash(string $hash): self\n {\n $id = Arr::first(Hashids::decode($hash));\n\n return self::query()->find($id);\n }", "public function get ($hash = null);", "public function getByHash($hash)\n {\n \treturn $this->createQuery('ap')\n\t\t\t\t\t\t->addWhere('ap...
[ "0.66282654", "0.65031195", "0.64767784", "0.64719415", "0.61629283", "0.6138106", "0.60899496", "0.5946072", "0.5919535", "0.5913471", "0.58086914", "0.57293266", "0.5720413", "0.5704647", "0.569766", "0.5690188", "0.5636385", "0.56199783", "0.56071573", "0.556723", "0.55622...
0.8198142
0
get the recurring tasks which are ready to renew as on a given date
получить повторяющиеся задачи, которые готовы к обновлению на заданную дату
function get_renewable_tasks($date) { $tasks_table = $this->db->dbprefix('tasks'); $sql = "SELECT * FROM $tasks_table WHERE $tasks_table.deleted=0 AND $tasks_table.recurring=1 AND $tasks_table.next_recurring_date IS NOT NULL AND $tasks_table.next_recurrin...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getRecurringItems();", "function getRecurringItems();", "function send_subscription_reminder($last_notified, $next_billing_cycle)\n{\n $notify_days = json_decode(get_option('subscription_product_notify_days'));\n\n foreach ($notify_days as $day) {\n echo \"\\n\";\n $_last_notified ...
[ "0.6643643", "0.6643643", "0.60268056", "0.5977394", "0.5977394", "0.5765051", "0.5763242", "0.5739961", "0.57295203", "0.5715861", "0.56333613", "0.5606362", "0.5598773", "0.55972", "0.5594501", "0.5562938", "0.5540879", "0.5520747", "0.54951936", "0.54874897", "0.54717124",...
0.80712295
0
one product has one stok relationship
один продукт имеет одну стоковую связь
public function stok() { return $this->hasOne('App\Stok', 'product_id', 'id'); // id refer to stok relationship.id }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function product() {\n return $this->hasOne('App\\Models\\Product');\n }", "public function product()\n \t{\n \t\treturn $this->hasOne(product::class, 'id','product_id');\n \t}", "public function product()\n {\n \treturn $this->hasOne('App\\Product', 'id_product', 'id');\n }", "public fun...
[ "0.7207528", "0.7179511", "0.71707356", "0.7142122", "0.7126752", "0.71040225", "0.7015255", "0.69603246", "0.6957711", "0.6947667", "0.6917226", "0.69027114", "0.6896275", "0.68940735", "0.6882725", "0.6878491", "0.68268746", "0.6822611", "0.6822611", "0.6818917", "0.6812611...
0.7657209
0
Generates a link to the provided path (typically $controller, $method, $arg)
Генерирует ссылку на указанный путь (обычно $controller, $method, $arg)
public function createInternalLink($controller, $method, $arg1=false, $arg2=false, $arg3=false, $arg4=false, $arg5=false, $arg6=false) { $path_components = func_get_args(); return $this->project->webroot . "/" . implode("/", $path_components); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function link_to($text, $name, $data = array()) {\n $method = new ReflectionMethod('Framework', '_getPathByName');\n $method->setAccessible(true);\n \n $path = $method->invokeArgs($GLOBALS['app'], array($name, $data));\n \n return sprintf('<a href=\"%s\">%s</a>', $path, $text);\n}", "static fun...
[ "0.65603465", "0.6550698", "0.65321344", "0.641832", "0.6355524", "0.63097084", "0.6255152", "0.6104873", "0.60209614", "0.5992757", "0.598661", "0.5960571", "0.5949898", "0.59474266", "0.59474266", "0.5938378", "0.5902935", "0.58778065", "0.5853549", "0.5843249", "0.58395594...
0.70985305
0
Displays a form to create a new Tweet entity.
Показывает форму для создания новой сущности Tweet.
public function newAction() { $tweet = new Tweet(); $form = $this->createForm(new TweetType(), $tweet); return array( 'tweet' => $tweet, 'form' => $form->createView(), ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create()\n {\n return view('tweets.create'\n );\n }", "public function create()\n {\n return view('tweets.create');\n }", "public function create()\n {\n // ↓追加\n return view('tweet.create');\n }", "public function create()\n {\n return view('t...
[ "0.76700336", "0.75364065", "0.75323117", "0.70569086", "0.70242786", "0.687656", "0.6849886", "0.6833236", "0.6772764", "0.6753831", "0.6738626", "0.6738001", "0.6719549", "0.6694449", "0.66819984", "0.6676967", "0.6665703", "0.66621244", "0.66507566", "0.66452223", "0.66449...
0.7732562
0
Get the url to verify.
Получите URL для проверки.
public function verifyUrl() { return $this->base()['verify_url']; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getURL()\n {\n $url = $this->site->getURL() . 'verify/';\n if ($this->verify_user->id != $this->current_user->id) {\n $url .= $this->verify_user->id . '/';\n }\n \n return $url;\n }", "public function getVerificationURL()\n {\n $custom...
[ "0.82099915", "0.778522", "0.70930696", "0.70253354", "0.70085955", "0.7006354", "0.7005292", "0.6984369", "0.6938669", "0.69145113", "0.6907817", "0.6907817", "0.6907817", "0.67418665", "0.6737024", "0.6720893", "0.67186904", "0.67180836", "0.67123646", "0.6708962", "0.67088...
0.89944625
0
Get the signature_provider function of the client.
Получите функцию signature_provider клиента.
final public function getSignatureProvider() { return $this->signatureProvider; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getProviderName(): string;", "public function getServiceProviderCode(): string\n {\n return $this->service_provider_code;\n }", "public function getServerSignature();", "public function getSignatureAlgorithm()\n {\n return $this->signature_algorithm;\n }", "public ...
[ "0.5681267", "0.5660347", "0.5645415", "0.5609699", "0.5599564", "0.5599564", "0.5599564", "0.5599564", "0.5528345", "0.5526918", "0.5526918", "0.5526918", "0.5526918", "0.55255014", "0.55107254", "0.55107254", "0.55107254", "0.55107254", "0.55107254", "0.55107254", "0.551072...
0.7421431
0
Add invocation id to each request
Добавить идентификатор вызова в каждый запрос
private function addInvocationId() { $this->handlerList->prependSign(Middleware::invocationId(), 'invocation-id'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function generateNewRequestId()\n {\n return strval($this->wsRpcReqNumber++);\n }", "public function generate_request_identifier()\n {\n if (isset($_MIDCOM->context->cache_request_identifier))\n {\n // An injector has generated this already, let it be\n ...
[ "0.66666543", "0.60073054", "0.58522934", "0.58099484", "0.5807868", "0.5691357", "0.56806576", "0.5669879", "0.56175375", "0.55925286", "0.55907375", "0.5479643", "0.54281855", "0.53610986", "0.53473264", "0.533675", "0.5336164", "0.5336164", "0.5323485", "0.53088623", "0.52...
0.77409494
0
Retrieves arguments to be used in endpoint resolution.
Получает аргументы, используемые для разрешения конечной точки.
public function getEndpointProviderArgs() { return $this->normalizeEndpointProviderArgs(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getArguments()\n {\n return ClientResolver::getDefaultArguments();\n }", "function e107cli_get_arguments() {\n return e107cli_get_context('arguments');\n}", "public function get_arguments();", "public function getArguments() {}", "public function getArguments() {}", "...
[ "0.7444757", "0.7240668", "0.72402817", "0.7220475", "0.7220475", "0.7220475", "0.7220475", "0.71954656", "0.7022886", "0.7022886", "0.7022886", "0.7022886", "0.7022886", "0.7022886", "0.7009594", "0.69599193", "0.6927441", "0.69111", "0.68815005", "0.6805498", "0.6805498", ...
0.7260764
1
Appends value to 'wholesaler_ids' list
Добавляет значение в список 'wholesaler_ids'
public function appendWholesalerIds($value) { return $this->append(self::wholesaler_ids, $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function appendWholesalerId($value)\n {\n return $this->append(self::wholesaler_id, $value);\n }", "public function appendWholesalerId($value)\n {\n return $this->append(self::wholesaler_id, $value);\n }", "public function setWholesalerId($value)\n {\n return $this->s...
[ "0.70329237", "0.70329237", "0.63161063", "0.5603005", "0.54242516", "0.53406316", "0.5267676", "0.5157643", "0.51435107", "0.51213413", "0.5120637", "0.5096254", "0.508796", "0.508796", "0.50741345", "0.5024229", "0.49594676", "0.4878635", "0.4866829", "0.48516342", "0.48316...
0.77983224
0
Returns count of 'wholesaler_ids' list
Возвращает количество элементов в списке 'wholesaler_ids'
public function getWholesalerIdsCount() { return $this->count(self::wholesaler_ids); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getWholesalerIdCount()\n {\n return $this->count(self::wholesaler_id);\n }", "public function getWholesalerIdCount()\n {\n return $this->count(self::wholesaler_id);\n }", "function WholesalerCount($argWhere = '') {\n\n $arrClms = 'pkWholesalerID';\n $argW...
[ "0.85151374", "0.85151374", "0.6424538", "0.61576813", "0.5955441", "0.5876431", "0.58531183", "0.58018076", "0.56216156", "0.56075716", "0.55885607", "0.556368", "0.55199313", "0.54970247", "0.5491798", "0.548183", "0.54736704", "0.5445429", "0.5445429", "0.5445429", "0.5440...
0.88518727
0
Sets value of 'activity_id' property
Устанавливает значение свойства 'activity_id'
public function setActivityId($value) { return $this->set(self::activity_id, $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setAppActivityId(?string $value): void {\n $this->getBackingStore()->set('appActivityId', $value);\n }", "function setActivityStarted($activity_id) {\n $now = date(\"U\");\n for($i=0;$i<count($this->activities);$i++) {\n if($this->activities[$i]['activity_id']==$activity_id) ...
[ "0.70639956", "0.6815061", "0.67034066", "0.66374993", "0.6334757", "0.6241564", "0.60937285", "0.60937285", "0.6036454", "0.59977716", "0.5976194", "0.59761566", "0.59761566", "0.5957632", "0.59072745", "0.589327", "0.588137", "0.58659965", "0.5832237", "0.5808041", "0.58069...
0.7970927
0
Returns value of 'activity_id' property
Возвращает значение свойства 'activity_id'
public function getActivityId() { $value = $this->get(self::activity_id); return $value === null ? (integer)$value : $value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getActivityId(): int\n {\n return $this->activityId;\n }", "public function getExternalActivityId()\n {\n return isset($this->external_activity_id) ? $this->external_activity_id : '';\n }", "function ajan_activity_id() {\n\techo ajan_get_activity_id();\n}", "public f...
[ "0.7579163", "0.7372323", "0.7045821", "0.70122105", "0.70011604", "0.6979633", "0.6829211", "0.6713081", "0.6601114", "0.6534026", "0.64801997", "0.6470879", "0.6391499", "0.6389387", "0.63517946", "0.6297575", "0.62741053", "0.6252841", "0.6247952", "0.6243343", "0.62387365...
0.80849934
0
Builds a tree array. call function on looping values ex : buildTree($row, $parentId) refference :
Строит массив дерева. вызывать функцию при обходе значений, например: buildTree($row, $parentId) ссылка:
public function buildTree($data = array(), $parentId = 0, $parentIndex = 'parent_id', $idIndex = 'id', $is_counted_children = false) { $branch = array(); $sort_index = 1; if (count($data) > 1) { foreach ($data as $element) { $element['sort_index'] = $sort_index; if ($element[$parentInde...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function buildTree(array $elements, $parentId = 0, $my_id = 'id', $parent_id='parentid')\r\n{\r\n $branch = array();\r\n\r\n foreach ($elements as $element)\r\n {\r\n if ($element[$parent_id] == $parentId)\r\n {\r\n $children = buildTree($elements, $element[$my_id]);\r\n\r\n ...
[ "0.72881263", "0.7219687", "0.71965355", "0.7136242", "0.7126826", "0.7041226", "0.7035666", "0.70171666", "0.69812334", "0.6953294", "0.6932383", "0.69167477", "0.6905631", "0.6901642", "0.68999755", "0.68728393", "0.68411887", "0.6823551", "0.68144053", "0.68098694", "0.677...
0.74343
0
convert multidimensional array to single array only single index refference :
преобразовать многомерный массив в одномерный массив только с одномерным индексом:
public function nestedToSingle(array $array) { $singleDimArray = []; foreach ($array as $item) { if (is_array($item)) { $singleDimArray = array_merge($singleDimArray, $this->nestedToSingle($item)); } else { $singleDimArray[] = $item; } } return $singleDimArray; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function array_2d_to_1d( $input_array )\n{\n\t$output_array = array();\n\n\tfor ($i = 0; $i < count($input_array); $i++)\n\t\tfor ($j = 0; $j < count($input_array[$i]); $j++)\n\t\t\t$output_array[] = $input_array[$i][$j];\n\n\treturn $output_array;\n}", "function reduceDimensionalityArray($multiDimArray)\r\n{\r\...
[ "0.7371141", "0.7020911", "0.69290566", "0.68226", "0.67845464", "0.6724216", "0.66867554", "0.6670524", "0.6635078", "0.6623646", "0.6562359", "0.6552441", "0.6545815", "0.6538492", "0.65307343", "0.6527628", "0.6525217", "0.650086", "0.6424378", "0.6406984", "0.640469", "...
0.7423006
0
Determine if session has old cart collection
Определить, есть ли у сессии старая коллекция корзины
private function requestHasCollection() { return $this->request->session()->has(self::$CartName); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function existingCart()\n {\n return ($this->customerIsSignedIn())\n ? session()->has('cart_quote_id')\n : session()->has('g_cart');\n }", "private function requestHasValidCollection()\n {\n return $this->request->session()->get(self::$CartName) instanceof C...
[ "0.70831627", "0.69983464", "0.69578946", "0.6666566", "0.66606504", "0.6553737", "0.652835", "0.6500752", "0.64988923", "0.6495842", "0.64915043", "0.6477942", "0.64736164", "0.6389525", "0.6347641", "0.6343444", "0.6243701", "0.62329936", "0.62001365", "0.61704695", "0.6166...
0.71988213
0
Determine if the cart collection which stored in session is instance of CartCollection object
Определите, является ли коллекция корзин, хранящаяся в сессии, экземпляром объекта CartCollection
private function requestHasValidCollection() { return $this->request->session()->get(self::$CartName) instanceof CartCollection; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function requestHasCollection()\n {\n return $this->request->session()->has(self::$CartName);\n }", "function IsInCart() {\n\t\treturn ($this->Item() && $this->Item()->Quantity > 0) ? true : false;\n\t}", "public function isCollection(): bool\n {\n return $this->collection;\n ...
[ "0.74595976", "0.685228", "0.66804767", "0.6623182", "0.6623182", "0.6623182", "0.662226", "0.65469694", "0.64828014", "0.6463043", "0.64479625", "0.6339439", "0.6326822", "0.62736857", "0.6186603", "0.6185858", "0.61461705", "0.61270994", "0.6098632", "0.607466", "0.6035402"...
0.82809174
0
Storing Cart Collection into session
Хранение Коллекции корзины в сессии
private function saveCollectionToSession(CartCollection $cartCollection) { $this->request->session()->put(self::$CartName, $cartCollection); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function saveInSession() \n {\n $_SESSION['cart'] = $this->products;\n }", "private function refreshCartInSession() \n {\n $this->request->session()->put('cart', $this->shoppedProducts);\n }", "function outputCart(){\n if(isset($_GET['_id'])){\n $collection = $db->pro...
[ "0.80957127", "0.7629398", "0.7410028", "0.7267143", "0.7229218", "0.7195916", "0.7145222", "0.71303254", "0.7093266", "0.70928377", "0.7025287", "0.7017095", "0.6987771", "0.69791394", "0.69616574", "0.69471955", "0.6905088", "0.6888569", "0.6872867", "0.6860909", "0.6860695...
0.76832175
1
Destroying current cart collection
Уничтожение текущей коллекции корзины
public function destroy() { $this->request->session()->put(self::$CartName, new CartCollection()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function destroy() {\n \n //\n Cart::destroy();\n }", "public function destroyCart() {\n unset($this->cart);\n $this->cart->merchantId = $this->credentials['merchantId'];\n $this->updateCart();\n }", "public function destroyAll()\n {\n Cart::destro...
[ "0.8120191", "0.74096256", "0.7373198", "0.7365025", "0.73298633", "0.7318113", "0.72921467", "0.72919756", "0.7252642", "0.72383887", "0.72357386", "0.7231264", "0.72162074", "0.71962774", "0.71651137", "0.7153075", "0.71396023", "0.71396023", "0.71396023", "0.71396023", "0....
0.83616114
0
Displays a form to create a new ParametrageBu entity.
Показывает форму для создания нового объекта ParametrageBu.
public function newAction() { $entity = new ParametrageBu(); $form = $this->createCreateForm($entity,'ParametrageBu'); return array( 'entity' => $entity, 'form' => $form->createView(), ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function newAction()\n {\n $entity = new Parametros();\n $form = $this->createCreateForm($entity);\n\n return $this->render('lOroAdminBundle:Parametros:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "pu...
[ "0.7622456", "0.71601987", "0.7111793", "0.708624", "0.69810617", "0.69578934", "0.6939378", "0.69280165", "0.6901567", "0.6859349", "0.6818945", "0.681147", "0.67930484", "0.6788663", "0.67658275", "0.67407405", "0.6723509", "0.67074835", "0.66965973", "0.6693026", "0.669302...
0.7837869
0
Set maximum number of seconds to allow cURL to execute
Установить максимальное количество секунд, которое позволяет cURL выполнять выполнение
public function setCurlTimeOut($time) { self::$CURL_TIMEOUT = $time; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function set_curl_timeout($_curl_timeout) {\r\n $this->curl_timeout = $_curl_timeout;\r\n }", "public function set_curl_connect_timeout($_curl_connect_timeout) {\r\n $this->curl_connect_timeout = $_curl_connect_timeout;\r\n }", "function bump_request_timeout() {\n return 60;\n ...
[ "0.7501923", "0.68856376", "0.6700078", "0.6681665", "0.6613317", "0.6604556", "0.6577302", "0.6386632", "0.63249534", "0.632228", "0.631837", "0.6284366", "0.6256597", "0.6215217", "0.6191517", "0.6180767", "0.61490756", "0.6146488", "0.6124639", "0.61030805", "0.60959655", ...
0.7365318
1
Does the provided array of request body elements contain any upload items so that the request should be treated as a multipart request?
Содержит ли предоставленный массив элементов тела запроса какие-либо элементы загрузки, чтобы запрос должен быть считан как многочастный запрос?
protected function isMultipart($body){ if (is_array($body)) { foreach ($body as $name => $value){ if ($value instanceof NingUpload) { return true; } } } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function is_uploaded_all_files(array $data)\n{\n foreach ($data as $key => $value) {\n if (!is_uploaded_file($data[$key]['tmp_name'])) {\n return false;\n break;\n }\n }\n return true;\n}", "final public function prepareMultipartRequestPayloads(array $headers = [], ar...
[ "0.6404987", "0.6261016", "0.60925174", "0.60913455", "0.60396403", "0.60371065", "0.6034925", "0.6009668", "0.59986794", "0.5959064", "0.5954177", "0.5901257", "0.58906376", "0.5874817", "0.5807596", "0.5773316", "0.57680285", "0.5728061", "0.57238334", "0.57009566", "0.5699...
0.769893
0
function addXmlObject Saves an XML Object (XMLObject or XMLElement) as an entry in this object.
Функция addXmlObject сохраняет объект XML (XMLObject или XMLElement) как запись в этом объекте.
function addXmlObject( $xmlObject ) { $this->xmlValues[] = $xmlObject; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function xml_set_object($parser, object $object): void\n{\n error_clear_last();\n $result = \\xml_set_object($parser, $object);\n if ($result === false) {\n throw XmlException::createFromPhpError();\n }\n}", "function add($obj)\n {\n $this->tag->add($obj);\n }", "abstract public...
[ "0.58962286", "0.57813334", "0.5767535", "0.5767535", "0.5756309", "0.5753961", "0.56828445", "0.5661632", "0.56464237", "0.56464237", "0.56464237", "0.56464237", "0.56464237", "0.564277", "0.5548301", "0.55447054", "0.5507478", "0.5481878", "0.5476044", "0.547442", "0.546181...
0.8313565
0
function clearXMLValues initialize the xmlValues array to an empty array.
Функция clearXMLValues инициализирует массив xmlValues пустым массивом.
function clearXMLValues( ) { $this->xmlValues = array(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function clearValues() {\n\t\t$this->inputValues = array();\n\t}", "public function clear()\n\t{\n\t\t$this->values = array();\n\t}", "public function clear()\n {\n $this->_value_ = array();\n }", "public static function clear(): void\n {\n static::$_values = [];\n }", "fun...
[ "0.7334569", "0.732683", "0.72736895", "0.72720104", "0.70676833", "0.69247305", "0.6847359", "0.6728647", "0.6678327", "0.65884066", "0.6517651", "0.6507846", "0.64952344", "0.6488626", "0.6426352", "0.64103067", "0.6384097", "0.63802123", "0.6366654", "0.6364317", "0.634326...
0.9156178
0
function getNodeName Returns the object's xmlNodeName.
function getNodeName Возвращает имя узла объекта.
function getNodeName() { return $this->xmlNodeName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getNodeName() {}", "public function getNodeName(): string;", "public function getNodeName()\n {\n if (array_key_exists(\"nodeName\", $this->_propDict)) {\n return $this->_propDict[\"nodeName\"];\n } else {\n return null;\n }\n }", "protected fu...
[ "0.8750728", "0.85067964", "0.8438361", "0.80837727", "0.7811067", "0.75232196", "0.74385035", "0.74125314", "0.7270698", "0.7224773", "0.71566033", "0.7151771", "0.7132932", "0.71294475", "0.71192425", "0.7072167", "0.7072167", "0.7026034", "0.70129806", "0.6957869", "0.6949...
0.90822875
0
function setNodeName Stores this objects root node name.
Функция setNodeName сохраняет имя корневого узла этого объекта.
function setNodeName( $name ) { $this->xmlNodeName = $name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setNodeName($nodeName) {\n\t\t$this->nodeName = $nodeName;\n\t}", "public function setNodeName($value)\n {\n $this->node->nodeName = $value;\n }", "public function setNodeName( $name )\r\n\t{\r\n\t\tif( $this->nodeName == (string) $name )\r\n\t\t\treturn FALSE;\r\n\t\t$this->nodeNa...
[ "0.7898192", "0.7678666", "0.766323", "0.72100157", "0.7029813", "0.6932612", "0.6667405", "0.66424865", "0.66082525", "0.65249085", "0.65057355", "0.6495393", "0.643654", "0.643654", "0.6433924", "0.64180404", "0.6417435", "0.6182585", "0.6171576", "0.6028672", "0.60230416",...
0.81327313
0
function setValues Stores the given array of XML Objects.
Функция setValues сохраняет заданный массив объектов XML.
function setValues( $values ) { $this->xmlValues = $values; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setValues();", "public function setValues(array $values);", "public function values(array $values){\n $this->driver->setValues($values);\n }", "public function setValues($values = array());", "public function setValues($values)\r\n\t{\r\n\t\t$this->values = $values;\r\n\t}", "pu...
[ "0.7222392", "0.7195367", "0.67815524", "0.6713867", "0.67039096", "0.6654247", "0.6621671", "0.6621671", "0.6598791", "0.65924466", "0.65924466", "0.65545845", "0.6549837", "0.6536796", "0.6507312", "0.64276487", "0.6353804", "0.6340073", "0.63189536", "0.6294567", "0.626400...
0.79953045
0
end classMethod() function getData Returns the element's data
конец функции classMethod() получает данные элемента
function getData() { return $this->elementData; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getDataElement() {\n return $this->_dataElement;\n }", "function getData()\r\n {\r\n \treturn $this->_data;\r\n }", "function getData() { return $this->_data; }", "function getData()\n\t{\n\t\treturn $this->_data;\n\t}", "function getData() {\n\t\treturn $this->_data;\...
[ "0.80564743", "0.75087345", "0.7471743", "0.739643", "0.737375", "0.73569155", "0.73569155", "0.73428977", "0.7299775", "0.72808385", "0.7273078", "0.72705144", "0.7265173", "0.72542906", "0.725192", "0.72499573", "0.72499573", "0.72499573", "0.72499573", "0.72499573", "0.724...
0.8532274
0
function getName Returns the element's name
function getName Возвращает имя элемента
function getName() { return $this->elementName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getName(){\n\t\treturn $this->getAttribute('name');\n\t}", "function getName()\n\t{\n\t\treturn $this->getAttribute('name');\n\t}", "function getName() {\n return $this->_attr['name'];\n }", "public function getElementName() {\n\n return $this->elementName;\n }", "public functi...
[ "0.8067044", "0.79721814", "0.793648", "0.79079974", "0.78705674", "0.7808423", "0.7694968", "0.7673699", "0.75897026", "0.7528026", "0.7528026", "0.7527022", "0.7527022", "0.7527022", "0.7527022", "0.7527022", "0.7487879", "0.7487879", "0.7487879", "0.7487879", "0.7487879", ...
0.8431834
0
function setName Sets the element's name
function setName Устанавливает имя элемента
function setName( $name ) { $this->elementName = $name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setName($name){\n\t\t$this->name = $name;\n\t\t$this->setAttribute('name', $name);\n\t}", "public function setName($name)\n\t{\n\t\tif(empty($name))\n\t\t\tthrow new \\Exception(\"The Element name cannot be empty\", 500);\n\t\telse\t\t\n\t\t\t$this->name = $name;\n\t}", "Public Function setName($name)...
[ "0.83299613", "0.8058704", "0.7961839", "0.79107416", "0.7880299", "0.78730226", "0.7821167", "0.7808703", "0.77894133", "0.77894133", "0.77894133", "0.77894133", "0.77894133", "0.77894133", "0.77781254", "0.77635086", "0.7759528", "0.7756658", "0.7731151", "0.7726464", "0.77...
0.8829589
0
Display a listing of Bid.
Показать список ставок.
public function index() { $bids = Bid::all(); return view('admin.bids.index', compact('bids')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function index()\n {\n $bids = Bid::all();\n return BidResource::collection($bids);\n }", "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $bids = $em->getRepository('SocBundle:Bid')->findAll();\n\n return $this->render('bid/ind...
[ "0.7523838", "0.728445", "0.7170742", "0.71003634", "0.6952712", "0.6944221", "0.68532854", "0.6666946", "0.6614973", "0.6541211", "0.6493121", "0.63883734", "0.6325941", "0.63257873", "0.6314918", "0.6314255", "0.63121635", "0.6308827", "0.62822056", "0.6278726", "0.6274932"...
0.7412872
1
Helper function that Verifies any API request, filling in the needed parameters from the $_GET array
Помощь функция, которая проверяет любой API-запрос, заполняя необходимые параметры из массива $_GET
public function verify_get_api_request() { // The following api properties should be part of the URL // api_key, api_secret, user, token // Make sure all the needed parameters were set if(!$this->all_get_parameters_set(['api_key', 'api_secret', 'user', 'token'])) { return false; } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function validateAPI(): void\n {\n if (isset($_GET['api_key']) && in_array($_GET['api_key'], $this->api_keys, true)) {\n $this->api_key = $_GET['api_key'];\n }\n }", "protected function validate()\n {\n $request = &$this->getRequest();\n //decode url encodings first,...
[ "0.72930545", "0.69149905", "0.66244286", "0.652356", "0.6510087", "0.64036727", "0.6380135", "0.63797784", "0.6375033", "0.6343001", "0.63285893", "0.6312358", "0.63066363", "0.6289704", "0.628823", "0.6283182", "0.6263166", "0.62529755", "0.6235917", "0.62235194", "0.622093...
0.7499336
0
Username string validity test
Тест на корректность строки имени пользователя
private function verify_username_string_validity($username) { // Make sure the username is long enough if(strlen($username) < $this->configuration['username_requirements']['length']) { return false; } // Make sure the username is only alphanumeric for($i = 0; $i < strlen($username)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function checkUsername() {\n if (strlen($this->name) <= 0 || strlen($this->name) > 30) {\n return false;\n }\n return preg_match('/^[a-zA-Z0-9]*$/', $str);\n }", "function validate_username($username)\n{\n}", "function is_valid_username($value) {\n return preg_match...
[ "0.8361209", "0.8091373", "0.8040346", "0.80215085", "0.79660416", "0.7963948", "0.79315114", "0.79288393", "0.79083776", "0.78837156", "0.7879767", "0.7780967", "0.7773366", "0.7770096", "0.77699876", "0.77571803", "0.77506274", "0.7731657", "0.77051264", "0.7691611", "0.768...
0.8294697
1
Determines if a character is one of the allowed special characters ( most of the ones on a standard English keyboard)
Определяет, является ли символ одним из разрешенных специальных символов (большинство из них находятся на стандартной английской клавиатуре)
private function is_special_character($c) { $specials = "~`!@#$%^&*()_-+={[]}|:;',./<>?"; return (strpos($specials, $c) !== FALSE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function _s_has_special_chars( $string ) {\n\treturn preg_match('/[^a-zA-Z\\d]/', $string);\n}", "function isSpecialChar($char){\n if(strtolower($char) === strtoupper($char)){\n return true;\n } else {\n return false;\n }\n}", "function is_special_character($username)\r\n\t{\r\n ...
[ "0.80287176", "0.80158967", "0.7777196", "0.7707088", "0.7378753", "0.7327811", "0.7265422", "0.72321385", "0.7225049", "0.72180396", "0.7178483", "0.7134319", "0.71243054", "0.71213156", "0.70530105", "0.6954229", "0.6943381", "0.6925827", "0.6904417", "0.68904805", "0.68770...
0.823309
0
Is an action method fo the controller which produces a map using specific values for width, height, physical coordinates and zoom level.
Это метод действия контроллера, который создает карту с использованием конкретных значений ширины, высоты, физических координат и уровня масштабирования.
public function getMap() { REST::requireRequestMethod('GET'); $requiredParameters = array('width', 'height', 'lat', 'lon', 'zoom'); if (Util::isValid($requiredParameters, $values, $this->params)) { extract($values); /** * Failure tol...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function mapAction()\t{\n\tif($this->_getParam('constituency',false)){\n\t$finds = new Finds();\n\t$finds = $finds->getFindsConstituencyMap($this->_getParam('constituency'));\n\t$dom = new DOMDocument(\"1.0\");\n\t$node = $dom->createElement(\"markers\");\n\t$parnode = $dom->appendChild($node); \n\tforeach(...
[ "0.6923774", "0.68025005", "0.6627443", "0.658618", "0.656893", "0.65508264", "0.64636916", "0.64315754", "0.63379395", "0.6313979", "0.6274254", "0.62591225", "0.6251449", "0.623022", "0.6205091", "0.6204636", "0.62009734", "0.61937964", "0.6181257", "0.6166839", "0.6159203"...
0.7383087
0
Verification du champ nom
Проверка поля имя
function verifNom($fnom) { if (!preg_match('/^[a-zA-Z ]*$/', $fnom) || strlen($fnom) < 2 || strlen($fnom) > 25) { return FALSE; } else { return TRUE; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function gestion_valid_nom() {\n $uti = Utilisateur::get_by_pseudo($_SESSION['pseudo']);\n if (!isset($_SESSION['connect'])) {\n $content = \"<div class='warning'><p>Vous n'êtes pas connecté.</p></div>\";\n } else {\n if ($uti != null) {\n if (isset(...
[ "0.75538373", "0.73555154", "0.73386216", "0.71481717", "0.70551205", "0.70265704", "0.70265704", "0.6977811", "0.6862288", "0.6826664", "0.67133474", "0.6637545", "0.6590641", "0.658663", "0.65730035", "0.65644526", "0.6551455", "0.6544526", "0.65317124", "0.6520368", "0.650...
0.736308
1
Returns routes tree array.
Возвращает массив дерева маршрутов.
public function getRouteTree(): array;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getRoutes(): array;", "public function getRoutes(): array;", "public function get_routes() {\r\n\t\treturn array();\r\n\t}", "public function getAllRoutes(): array;", "public function getAllRoutes(): array;", "public function getRouteArray() {\n\t\treturn $this->routes;\n\t}", "public function...
[ "0.7808607", "0.773395", "0.76336193", "0.76118296", "0.76118296", "0.75134814", "0.7512875", "0.7429255", "0.735333", "0.72512215", "0.72512215", "0.72512215", "0.72512215", "0.72512215", "0.72312266", "0.7231077", "0.71597636", "0.7114834", "0.7100307", "0.7053829", "0.7031...
0.85871005
0
updates an existing PayPal payment from a given order. required to add shipping address to a Plus payment if customer chooses PayPal
обновляет существующую платежную операцию PayPal по заданному заказу. требуется для добавления адреса доставки в платеж Plus, если клиент выбирает PayPal
public function updatePaymentFromOrder($payment_id, order $order) { require_once DIR_FS_CATALOG.'gm/classes/JSON.php'; $json = MainFactory::create('Services_JSON'); $tax = 0; if($_SESSION['customers_status']['customer_status_show_price_tax'] == 0 && $_SESSION['customers_status']['customer_status_add_tax_ot'] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function update_paypal_order() {\n\t\t$timestamp = strtotime($this->CI->input->post('payment_date')); \n\t\t$payment_date = date(\"Y-m-d H:i:s\",$timestamp);\n\t\t\n\t\t\n\t\t// custom is the user id in the production database\n\t\t//$this->CI->input->post('custom')\n\t\t\n\t\t// order id\n\t\t//$this->CI->...
[ "0.71926254", "0.7187158", "0.702876", "0.70240486", "0.6719495", "0.6519533", "0.6501356", "0.64047164", "0.6400901", "0.63421255", "0.63319343", "0.6317417", "0.6314154", "0.6291679", "0.6282393", "0.6280559", "0.6271487", "0.6229937", "0.62271166", "0.61839217", "0.6180288...
0.7436136
0
creates a payment to be used in conjunction with the paylink feature (ECM payment without line items)
создает платеж, который используется в сочетании с функцией paylink (платеж без позиций)
public function createPaylinkPayment($paycode) { $orders_id = $paycode->orders_id; $amount = $paycode->amount; $paycode_hash = $paycode->paycode; $order = new order((int)$orders_id); $intent = $this->config->get('intent'); $mode = 'ecm'; $paymentExperienceProfileId = $this->config->get('payment_experien...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function createMyPayment()\n {\n $options = array(\n 'name' => 'zwillaweb_payment_bitcoincash',\n 'description' => 'BitcoinCash',\n 'action' => 'payment_bitcoincash',\n 'active' => 1,\n 'position' => 0,\n 'a...
[ "0.72606146", "0.7220065", "0.7178495", "0.7155993", "0.6924003", "0.68973243", "0.67901343", "0.67537475", "0.6741648", "0.6725946", "0.66870123", "0.6656795", "0.65953076", "0.65658534", "0.6552007", "0.6526921", "0.6488463", "0.6466615", "0.645384", "0.64288497", "0.642778...
0.73457307
0
Conversation has many Messages.
Совершение имеет много Сообщений.
public function messages() { // hasMany(RelatedModel, foreignKeyOnRelatedModel = conversation_id, localKey = id) return $this->hasMany(Message::class,'conversation_id'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function messages()\n\t{\n\t\treturn $this->hasMany('DJB\\Confer\\Message', 'conversation_id');\n\t}", "public function conversations()\n {\n return $this->hasMany(Conversation::class);\n }", "public function conversations()\n {\n return $this->hasMany('Infogue\\Conversation');\n ...
[ "0.7845388", "0.76839787", "0.7645515", "0.7375637", "0.730802", "0.7203966", "0.71954113", "0.71954113", "0.71954113", "0.71954113", "0.71954113", "0.71954113", "0.71954113", "0.71954113", "0.7151936", "0.713457", "0.7133609", "0.71020585", "0.707288", "0.70322806", "0.70178...
0.7883687
0
First question. Asks whats the target currency
Первый вопрос. Задает, какая целевая валюта
public function askCurrency() { $error = null; $question = Question::create("In what currency do you want to see your account balance?"); $this->ask('In what currency do you want see your balance?', function (Answer $answer) { $this->currency = $answer->getText(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function currency_check() {\n\t}", "function getDefaultCurrency() ;", "abstract function getCurrency();", "function checkSelectedCurrencyInGBP($currency, $amount, $selected = '') {\n $currency = $currency;\n $selected = 'GBP';\n\n $data = file_get_contents('https://apilayer.net/api/live?access_key=d...
[ "0.6537964", "0.6379171", "0.63358176", "0.6192224", "0.605253", "0.6044432", "0.60250694", "0.6021233", "0.5967687", "0.5954277", "0.59390914", "0.59187746", "0.5857083", "0.58449996", "0.5843425", "0.5843425", "0.5843425", "0.58373946", "0.5835722", "0.5833724", "0.58315253...
0.74844724
0
/ sanitizeString is a function that is intended to sanitize input gathered from forms in order to prevent injection and cross site scripting $str_input is the string retrieved
sanitizeString — это функция, предназначенная для очистки ввода, полученного из форм, с целью предотвращения инъекций и кросс-сайтовых скриптов. $str_input — это строка, полученная
function sanitizeString($str_input) { $str_input = strip_tags($str_input); $str_input = htmlentities($str_input); $str_input = stripslashes($str_input); return $str_input; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function sanitize_string($string) {\n\treturn sanitise_string($string);\n}", "function processInput($str)\n{\n\t//return (addslashes(htmlspecialchars($str)));\n//\t$str = htmlspecialchars($str);\n\t$str = preg_replace(array('/</', '/>/','/\"/',\"/'/\"), array('', '','`','`'), $str);\n\n\t$str = str_replace(\"?\"...
[ "0.7604305", "0.75983375", "0.7556669", "0.75305516", "0.7479185", "0.7468712", "0.7424624", "0.74238163", "0.738048", "0.72324604", "0.71970725", "0.71939117", "0.7110783", "0.710719", "0.7105616", "0.7091949", "0.70838004", "0.70802665", "0.70674026", "0.7059413", "0.701617...
0.784963
0
end function getStashTable() Setter for $this>stashTable = array()
конец функции getStashTable() Установщик для $this>stashTable = массив()
protected function setStashTable($arg0) { $this->stashTable = $arg0; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getStashTable() \n\t{\n\t\treturn $this->stashTable;\n\t}", "public function setTable($table)\n {\n }", "public function preDumpTableData($table);", "public function setTable($table);", "function SetTable($table)\n\t{\n\t\t$this->table = $table;\n\t}", "public function ge...
[ "0.80876136", "0.6188501", "0.6171877", "0.6086275", "0.60741496", "0.60564554", "0.6033467", "0.60174215", "0.6006796", "0.6005852", "0.5991391", "0.59627897", "0.59627897", "0.5950544", "0.593168", "0.5926328", "0.5925328", "0.5925107", "0.59179837", "0.59168977", "0.591379...
0.7404769
1
Fetches all the primary key values in the table. (not the name of the primary key) The result will be left in array form because more than one column may represent the key!
Получает все значения первичного ключа в таблице (не имя самого ключа). Результат будет сохранен в виде массива, так как более чем одна колонка может представлять ключ!
public function fetchPrimaryKeyValues() { $values = array(); $sql = "SELECT " . $this->getPrimaryKeyString() . " FROM `" . $this->m_table . "`"; $resultSet = $this->m_mysqliConn->query($sql); if ($resultSet === false) { throw new Exception("query failed: [" . $sq...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function primary_keys()\n\t{\n\t\t$primary_key = $this->primary_key();\n\t\t$primary_keys = DB::select($primary_key)\n\t\t\t->from($this->_table)\n\t\t\t->execute()\n\t\t\t->as_array(NULL, $primary_key);\n\n\t\treturn $primary_keys;\n\t}", "private function getPrimaryKeySet($table_name)\n\t{\n\t\t//$sql =...
[ "0.81007487", "0.7804084", "0.77625895", "0.7640792", "0.7429597", "0.7404315", "0.73806536", "0.7372594", "0.73560077", "0.7329009", "0.72681636", "0.72681636", "0.72681636", "0.7256019", "0.72534865", "0.7221703", "0.71994096", "0.715017", "0.71309906", "0.7070033", "0.7044...
0.7986664
1
Generates a hash for the entire table so we can quickly compare tables to see if they are already in syc. Reference:
Генерирует хеш для всей таблицы, чтобы можно было быстро сравнивать таблицы и определять, находятся ли они уже в синхронизации. Ссылка:
public function fetchTableHash() { $tableHash = ""; $columns = $this->m_columns; $wrapped_column_list = array(); # Using coalesce to prevent null values causing sync issues as raised in the # NullColumnTest test. E.g. [2, null, null] and [null, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hash();", "abstract function get_hash ();", "public function hashCode()\n {\n $validPk = null !== $this->getOehshnbr() &&\n null !== $this->getOehshseq();\n\n $validPrimaryKeyFKs = 2;\n $primaryKeyFKs = [];\n\n //relation salesorder to table so_header\n...
[ "0.689087", "0.6767453", "0.67349154", "0.6692805", "0.664005", "0.65731037", "0.6486495", "0.6473729", "0.6473729", "0.6473729", "0.6473729", "0.6472596", "0.646153", "0.6452285", "0.6381999", "0.63643795", "0.6300719", "0.6257343", "0.6256334", "0.6230329", "0.6229075", "...
0.7045037
0
Replace all the data_rows in the database by the primary keys specified in the index_values. The order of the index_values We delibereately delete all the rows before inserting the updates because we do not want to run into issues with other unique keys etc.
Замените все данные_rows в базе данных на первичные ключи, указанные в index_values. Порядок index_values мы намеренно удаляем все строки перед вставкой обновлений, потому что не хотим столкнуться с проблемами по отношению к другим уникальным ключам и т.д.
public function replaceRows($index_values, $data_rows) { $multi_query = new iRAP\MultiQuery\MultiQuery($this->m_mysqliConn); $key_value_sets = array(); # The primary key could itself be foreach ($index_values as $index => $key_set) { $escaped_key...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function resetIndexes(): void\n {\n $this->data = $this->values();\n }", "function _update_batch($table, $values, $index, $where = NULL) {\n $ids = array();\n $where = ($where != '' AND count($where) >= 1) ? implode(\" \", $where) . ' AND ' : '';\n foreach ($values as ...
[ "0.62308764", "0.60043454", "0.60021937", "0.58852625", "0.57656974", "0.5738873", "0.5663501", "0.56462526", "0.56375504", "0.55761135", "0.5568595", "0.5464563", "0.5449793", "0.54479194", "0.5446351", "0.54147774", "0.5400447", "0.53772277", "0.5359513", "0.53453326", "0.5...
0.804431
0
Convert the primary key array into a string that can be used in queries. e.g. array('id') would become: "(`id`)" array(group, filter) would become "(`group`, `filter`)"
Преобразуйте основной массив ключей в строку, которая может использоваться в запросах. Например, array('id') будет преобразован в: "(`id`)" array(group, filter) будет преобразован в: "(`group`, `filter`)"
private function getPrimaryKeyString() { $wrapped_elements = \iRAP\CoreLibs\ArrayLib::wrapElements($this->m_primary_key, '`'); $csv = implode(',', $wrapped_elements); return $csv; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected static function serialize_pk_array($pk_array) {\n return implode(\",\",$pk_array);\n }", "function idArrayToSql($array){\n\t\t$arrayString = \"(\";\n\t\t$arrayString .= CommonTools::arrayToReadableFormat($array);\n\t\t$arrayString .= \")\";\n\t\treturn $arrayString;\n\t}", "function keysToStri...
[ "0.76049036", "0.73622274", "0.6938015", "0.6747802", "0.66136914", "0.6583529", "0.6526548", "0.64523757", "0.6301249", "0.62642044", "0.6211659", "0.61697567", "0.6098824", "0.6057719", "0.60246116", "0.60232204", "0.60223806", "0.59985024", "0.5960918", "0.5960146", "0.594...
0.7407871
1
Returns whether this table has a primary key or not.
Возвращает true, если таблица имеет первичный ключ, и false в противном случае.
public function hasPrimaryKey() : bool { $result = true; if ($this->m_primary_key === null) { $result = false; } return $result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function hasPrimaryKey() {\n\t\treturn $this->getTable()->hasPrimaryKey();\n\t}", "public function isPrimaryKey() {\n\t\t$isPrimaryKey = $this->key === 'PRI';\n\n\t\treturn $isPrimaryKey;\n\t}", "protected function isPrimaryKeyDefined()\n {\n if (empty($this->primaryKey)) {\n return false;...
[ "0.84531325", "0.8294158", "0.8268793", "0.8225083", "0.8151812", "0.79947996", "0.79530305", "0.7658628", "0.73870116", "0.72315705", "0.722641", "0.71663934", "0.71439475", "0.70898676", "0.70898676", "0.70898676", "0.7002988", "0.68881077", "0.6884368", "0.6836805", "0.683...
0.84138745
1
Finds and displays a tblpersona entity.
Находит и отображает сущность tblpersona.
public function showAction(Tblpersona $tblpersona) { $deleteForm = $this->createDeleteForm($tblpersona); return $this->render('tblpersona/show.html.twig', array( 'tblpersona' => $tblpersona, 'delete_form' => $deleteForm->createView(), )); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show(Persona $persona)\n {\n //\n }", "public function show(Persona $persona)\n {\n return $this->showOne($persona);\n }", "public function show(persona $persona)\n {\n return view('personas.show', compact('persona'));\n }", "public function showAction(P...
[ "0.73080164", "0.68180686", "0.65294087", "0.6521146", "0.64421624", "0.64421624", "0.64421624", "0.64421624", "0.6386382", "0.63605773", "0.63059366", "0.6244479", "0.6212335", "0.6163842", "0.6123233", "0.6108741", "0.60839057", "0.6050148", "0.59924364", "0.59584004", "0.5...
0.7245519
1
Deletes a tblpersona entity.
Удаляет сущность tblpersona.
public function deleteAction(Request $request, Tblpersona $tblpersona) { $form = $this->createDeleteForm($tblpersona); $form->handleRequest($request); if ($form->isSubmitted() && $form->isValid()) { $em = $this->getDoctrine()->getManager(); $em->remove($tblpersona); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function delete_persona($id)\n {\n return $this->db->delete('persona',array('id'=>$id));\n }", "public function delete() {\n\n // catch errors\n $opt = array(\n PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,\n PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC\n );\n\n ...
[ "0.7689191", "0.7334206", "0.72900385", "0.7200087", "0.7124371", "0.701282", "0.69692", "0.69639134", "0.69547534", "0.695058", "0.69434094", "0.68914217", "0.68778956", "0.68501526", "0.6842769", "0.68385607", "0.6810628", "0.6802756", "0.6787097", "0.6782742", "0.6759972",...
0.750203
1
Creates a form to delete a tblpersona entity.
Создает форму для удаления сущности tblpersona.
private function createDeleteForm(Tblpersona $tblpersona) { return $this->createFormBuilder() ->setAction($this->generateUrl('tblpersona_delete', array('id' => $tblpersona->getIntidpersona()))) ->setMethod('DELETE') ->getForm() ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function createDeleteForm(Personas $persona)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('personas_delete', array('idPersona' => $persona->getIdpersona())))\n ->setMethod('DELETE')\n ->getForm();\n }", "private function createDeleteForm(R...
[ "0.8080971", "0.76861596", "0.7442677", "0.72062194", "0.7178972", "0.7149778", "0.7033917", "0.70054656", "0.6887282", "0.6850054", "0.684462", "0.68147075", "0.6779463", "0.6778369", "0.6770568", "0.6768034", "0.6751357", "0.67361426", "0.67209", "0.6690255", "0.66809815", ...
0.8420798
0
Internal method which fetches the access token for the app
Внутренний метод, который получает токен доступа для приложения
private function get_app_access_token() { $params = array( 'client_id' => parent::getAppId(), 'client_secret' => parent::getApiSecret(), 'type' => 'client_cred', 'method' => 'GET' ); $url = parent::getUrl('graph', '/oauth/access_token'); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAppAccessToken()\n {\n $response = $this->client->get(\"/oauth/access_token?client_id={$this->config['client_id']}&client_secret={$this->config['client_secret']}&grant_type=client_credentials\");\n $response = json_decode($response->getBody()->getContents());\n return $re...
[ "0.793772", "0.77538145", "0.76991713", "0.76991713", "0.7696508", "0.7696508", "0.7618771", "0.7570974", "0.74763495", "0.74268633", "0.74230534", "0.7397371", "0.7187902", "0.7166727", "0.71175724", "0.7106651", "0.70961916", "0.70961916", "0.70961916", "0.70961916", "0.709...
0.8150047
0
Internal helper function which builds the subscription url
Внутренняя вспомогательная функция, которая строит URL подписки
private function subscriptions_url() { return '/' . parent::getAppId() . '/subscriptions'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSubscriptionUrl()\n {\n return $this->subscriptionUrl;\n }", "protected function generateURL()\n {\n $options = http_build_query(array_slice($this->options,0,5));\n $this->baseUrl = sprintf($this->baseUrl,$this->uID,$this->api,$options);\n return $this->bas...
[ "0.68250316", "0.6812261", "0.67227525", "0.66779304", "0.6560069", "0.6555176", "0.6546839", "0.65245026", "0.6507952", "0.64942473", "0.6465239", "0.6454299", "0.6330216", "0.63198936", "0.6299209", "0.6294915", "0.6284822", "0.6276318", "0.62212324", "0.62113035", "0.62094...
0.7530894
0
Instantiate prepares object specific sql statements
Instantiate prepares object specific sql statements
function __construct() { parent::__construct(); //locates DB handle //Prepare sql statements specific to this object $this->selectStmt = 'SELECT * FROM keywords WHERE id = ?'; $this->selectAllStmt = 'SELECT * FROM keywords'; $this->updateStmt = 'UPDATE keywords SET keyword=?,crea...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function initSql()\n {\n if (!isset($this->sql))\n {\n $this->sql = new aMysql();\n }\n }", "public function initialize() {\n parent::initialize();\n\n $this->addClauses([\n self::DEFERRABLE => 'DEFERRABLE %s',\n self::EITHER => 'OR ...
[ "0.7244498", "0.70080864", "0.68865985", "0.6874028", "0.68121105", "0.6666976", "0.66227263", "0.6599977", "0.65724266", "0.6548034", "0.65304285", "0.64979076", "0.64939225", "0.641204", "0.63696104", "0.6369459", "0.63633615", "0.635874", "0.63533276", "0.63421184", "0.632...
0.74336696
0
Saves a record list object and returns the id
Сохраняет объект списка записей и возвращает идентификатор
public static function saveRecordList($recordList, $module, $id = null, $user = null) { global $dictionary; $db = DBManagerFactory::getInstance(); if ($user == null) { $user = $GLOBALS['current_user']; } $currentTime = $GLOBALS['timedate']->nowDb(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function save(){\n $object_row = $this->getDatabaseObjectRow(); \n \n if( !$this->id ){\n $this->id = $this->getNewId();\n }\n \n $object_data = $this->getObjectData( $object_row );\n \n $object_row->setFromArray( $object_data ); \n ...
[ "0.6438278", "0.61630183", "0.6109151", "0.60902345", "0.6042952", "0.6041593", "0.5982012", "0.59763634", "0.5951374", "0.5944276", "0.59171814", "0.5891368", "0.5864367", "0.5861472", "0.5850407", "0.58394384", "0.5832548", "0.58067155", "0.58044595", "0.5786282", "0.578415...
0.7167701
0
Deletes a record list based on record list id
Удаляет список записей на основе идентификатора списка записей
public static function deleteRecordList($recordListId) { return DBManagerFactory::getConnection() ->executeUpdate('DELETE FROM record_list WHERE id = ?', [$recordListId]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function deleteList($db, $id)\n{\n $statement = $db->prepare(\"DELETE FROM lists WHERE list_id=:id\");\n $statement->bindValue(':id', $id);\n $statement->execute();\n}", "public static function delete($id) {\n DB::query('DELETE FROM List WHERE id = :id', array('id' => $id));\n }", "function ...
[ "0.69407326", "0.6863561", "0.6850905", "0.68281525", "0.6805348", "0.67644167", "0.67618114", "0.66281074", "0.66193503", "0.65886176", "0.6577694", "0.6562195", "0.6443166", "0.64382374", "0.64248157", "0.6402749", "0.6397985", "0.63938266", "0.6384252", "0.6372717", "0.637...
0.72814244
0
Build Public Model Configuration
Настройка публичной модели
public function buildModelConfigPublic() { $error = object('errors'); $modelConfig = $this->getModelConfigFormValues(); $render = $this->getTemplate('json'); if ($modelConfig->isValid()){ $module = $modelConfig->getHost_module(); $modelConfigName = $modelConfig->getModel_config_name(); $moduleName...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function buildConfiguration() {}", "abstract public function generateConfiguration();", "public function generateConfig() {}", "public function build()\n {\n if( method_exists($this, 'init') ) {\n $this->init();\n }\n\n $this->buildModel();\n $this->buildDTO()...
[ "0.6914731", "0.65825355", "0.64446706", "0.64294076", "0.63696516", "0.6245718", "0.6212937", "0.6165562", "0.60272104", "0.6018335", "0.59965074", "0.5964536", "0.5956553", "0.595594", "0.5922056", "0.5919043", "0.591296", "0.5899911", "0.5846262", "0.5841829", "0.5812079",...
0.76786625
0
Build Admin Model Configuration
Создание конфигурации модели администратора
public function buildModelConfigAdmin() { $error = object('errors'); $modelConfig = $this->getModelConfigFormValues(); $render = $this->getTemplate('json'); if ($modelConfig->isValid()){ $module = $modelConfig->getHost_module(); $modelConfigName = $modelConfig->getModel_config_name(); $moduleNa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function buildModelConfigPublic()\n\t{\n\t\t$error = object('errors');\n\t\t$modelConfig = $this->getModelConfigFormValues();\n\t\t$render = $this->getTemplate('json');\n\t\tif ($modelConfig->isValid()){\n\t\t\t$module = $modelConfig->getHost_module();\n\t\t\t$modelConfigName = $modelConfig->getModel_config...
[ "0.65158206", "0.61917037", "0.6157029", "0.6151323", "0.61483914", "0.6139938", "0.6113415", "0.6039245", "0.5988504", "0.59661824", "0.595074", "0.59491384", "0.5912737", "0.5907004", "0.5896823", "0.58491665", "0.57949436", "0.5791567", "0.57912713", "0.57744014", "0.57740...
0.7768434
0