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
Webcomic Navigation FUNC_WEBNAV Webcomic navigation panel
Навигация по веб-комиксу FUNC_WEBNAV Панель навигации по веб-комиксу
public function webcomic_navigation(){ //Capture current URL $this->session->set_userdata('last_admin_url',current_url()); //Fetch nav settings - note model is loaded in constructor $this->data['nav_settings'] = $this->Settings->fetch_site_nav(); //If buttons file exists, set flag $this->data['nav_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function nav(){\n\t\t\t\n\t\t\t$logoFile = \"nbmaa-white-logo.png\";\n\t\t\t$logoBGColor = \"rgba(71, 61, 55, .7)\";\n\t\t\t$exhibitionsResult = queryCalendarPageExhibitions();\n\t\t\t$exhibitionImage;\n\t\t\t$exhibitonGallery;\n\t\t\t$randomInt;\n\t\t\t$keywords;\n\t\t\t$todaysDate = date(\"Y-m-d\");\n\...
[ "0.7002557", "0.69600606", "0.6959233", "0.6942332", "0.6936924", "0.68793976", "0.68289363", "0.67763543", "0.67715293", "0.67555356", "0.6752539", "0.673542", "0.66843784", "0.66813403", "0.6671974", "0.66404474", "0.6635533", "0.6631584", "0.6625229", "0.6606469", "0.66013...
0.7967025
0
FUNC_UPNB Upload navigation buttons sheet (AJAX)
FUNC_UPNB Загрузка листа кнопок навигации (AJAX)
public function upload_nav_buttons(){ //Check for AJAX request - kill if false if($this->validation->is_ajax_request() == FALSE){ echo "Error: access forbidden"; return FALSE; } //DEBUG //print_r($this->input->post()); //Set file upload type $type = "custom"; //Attempt file validation ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function actionUploadAjax() {\n\t\t//$this->Uploads ( true );\n\t}", "public function actionUploadAjax() {\n\t\t$this->Uploads ( true );\n\t}", "public function actionUploadAjax() {\n $this->Uploads(true);\n }", "public static function mla_compose_upload_tab( ) {\r\n\t\t$page_template_array ...
[ "0.6632411", "0.64613533", "0.63943183", "0.63687754", "0.6362065", "0.61517155", "0.60692286", "0.6046595", "0.6040915", "0.6023052", "0.6015535", "0.5987532", "0.5987532", "0.5987532", "0.5976908", "0.59601474", "0.5836568", "0.57634836", "0.5755653", "0.57520294", "0.57435...
0.7267163
0
Webcomic Favicon FUNC_WEBFAV Webcomic favicon panel
Webcomic Favicon FUNC_WEBFAV Панель иконки вебкомикса
public function webcomic_favicon(){ //Capture current URL $this->session->set_userdata('last_admin_url',current_url()); //Fetch nav settings - note model is loaded in constructor $this->data['nav_settings'] = $this->Settings->fetch_site_nav(); //If buttons file exists, set flag $this->data['favicon...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function add_favicon() {\n\n$favicon_url = vp_option('vpt_option.fav_icon');;\n\necho '<link rel=\"shortcut icon\" href=\"' . $favicon_url . '\" />';\n\n}", "function sp_adminfavicon() {\necho '<link rel=\"icon\" type=\"image/x-icon\" href=\"'.SP_BASE_URL.'favicon.ico\" />';\n}", "function dot_cfi_favicon_fron...
[ "0.7368811", "0.73185647", "0.7316649", "0.72906214", "0.7269163", "0.72310376", "0.7219936", "0.720203", "0.71972644", "0.7189744", "0.716418", "0.71634394", "0.70949644", "0.703749", "0.6995958", "0.69526505", "0.6946692", "0.69443554", "0.6866663", "0.6843328", "0.68427104...
0.7886127
0
FUNC_DCO Delete a comic page inc. file (AJAX)
FUNC_DCO Удалить страницу комикса включая файл (AJAX)
public function delete_comic($pageid){ //Check for AJAX request - kill if false if($this->validation->is_ajax_request() == FALSE){ echo "Error: access forbidden"; return FALSE; } //Load models $this->load->model('Comic_model','Comic'); $this->load->model('Tagging_model','Tagging'); $this->load...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ajaxPluginDelete()\r\n{\r\n\t\tglobal $DB, $objComm, $lang;\r\n\t\t$datum=explode(\";\",$_REQUEST[\"datum\"]);\r\n\t\t$objComm->trashData($datum[0],$datum[1],$datum[2]);\r\n\t\t$SQL=\"DELETE FROM \".$datum[0].\" WHERE \".$datum[1].\"='\".$datum[2].\"'\";\r\n\t\t$response=$DB->query($SQL, '');\r\n\t\tif($r...
[ "0.6835723", "0.6749927", "0.6740326", "0.6723967", "0.66714597", "0.66714597", "0.66714597", "0.66445774", "0.6604767", "0.65878594", "0.65780294", "0.6571459", "0.6558461", "0.65474826", "0.653157", "0.6521392", "0.6504681", "0.6493248", "0.6484879", "0.64820004", "0.646450...
0.72316235
0
FUNC_MOCH Move a chapter i.e. reorder it in sequence (AJAX)
FUNC_MOCH Переместить главу, то есть изменить её порядок в последовательности (AJAX)
public function move_chapter($chapterid,$direction){ //Check for AJAX request - kill if false if($this->validation->is_ajax_request() == FALSE){ echo "Error: access forbidden"; return FALSE; } //Load chapters model $this->load->model('Chapters_model','Chapters'); //Validate direction if(!$d...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function move_comic($pageid,$direction){\n\t\t\n\t\t//Check for AJAX request - kill if false\n\t\tif($this->validation->is_ajax_request() == FALSE){\n\t\t\techo \"Error: access forbidden\";\n\t\t\treturn FALSE;\n\t\t}\n\t\t\n\t\t//Load comic model\n\t\t$this->load->model('Comic_model','Comic');\n\t\t\n\t\t/...
[ "0.64462453", "0.634398", "0.60636944", "0.6012629", "0.59864867", "0.5880124", "0.5861271", "0.5856812", "0.5836863", "0.5774281", "0.57411826", "0.5728134", "0.57225835", "0.56930554", "0.5690656", "0.5688611", "0.5679029", "0.56696165", "0.56391203", "0.5634418", "0.562171...
0.70362926
0
FUNC_UPCHAR Upload a character profile img (AJAX)
FUNC_UPCHAR Загрузить изображение профиля персонажа (AJAX)
public function upload_profile_img($characterid){ //Check for AJAX request - kill if false if($this->validation->is_ajax_request() == FALSE){ echo "Error: access forbidden"; return FALSE; } //Load characters model $this->load->model('Characters_model','Characters'); //DEBUG //print_r($this-...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function uploadUserAvatar()\n {\n $this->restModule->sendPOST('/uploads/user-avatar/user_avatar', [], ['file' => codecept_data_dir('pit.jpg')]);\n $this->restModule->seeResponseCodeIs(201);\n $this->restModule->seeResponseIsJson();\n $usAvatar = $this->restModule->grabResponse();\n ...
[ "0.67958456", "0.67853683", "0.67465055", "0.67121243", "0.6685848", "0.66854644", "0.66669416", "0.6563324", "0.65442115", "0.65371925", "0.65319616", "0.65319616", "0.6530364", "0.6492529", "0.6484583", "0.64511263", "0.644692", "0.64308804", "0.64089227", "0.640054", "0.63...
0.75109124
0
FUNC_STAG Autosuggest box for tags (AJAX)
FUNC_STAG Автодополнение для тегов (AJAX)
public function search_tags(){ //Check for AJAX request - kill if false if($this->validation->is_ajax_request() == FALSE){ echo "Error: access forbidden"; return FALSE; } //Load tagging model $this->load->model('Tagging_model','Tagging'); //DEBUG //print_r($this->input->post()); //Sani...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function wp_ajax_ajax_tag_search()\n{\n}", "public static function disable_tags_auto_suggestion() {\n\t\tif( defined( 'DOING_AJAX' ) && DOING_AJAX ) {\n\t\t\tif( isset( $_GET['action'] ) && $_GET['action'] == 'ajax-tag-search' && isset( $_GET['tax'] ) && $_GET['tax'] == 'glossary_tag' ) {\n\t\t\t\tdie;\n\t\t\t}\...
[ "0.74691653", "0.7213394", "0.7122215", "0.6967199", "0.6912591", "0.68892145", "0.6874134", "0.6852563", "0.6848444", "0.68107736", "0.68063766", "0.6781515", "0.6763524", "0.67445344", "0.6743098", "0.67385554", "0.67246604", "0.67067313", "0.67063415", "0.6641234", "0.6626...
0.7228764
1
Draws a button (needs to include /OMSMain/incl/css_forms_buttons.php before using this function)
Рисует кнопку (необходимо включить /OMSMain/incl/css_forms_buttons.php перед использованием этой функции)
function DrawButton( $caption, $onClick, $img = '/icon/button.gif', $type = FALSE, $title = '', $is_submit = FALSE, $add_string = '', $button_id = '', $button_dis = '' ) { global $color_body_hlt, $bg_fset; $caption = str_replace( '&nbsp;', '', trim( $caption )); $limit = 30; $len ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function osc_draw_button($title = null, $icon = null, $link = null, $style = null, $params = null) {\n $types = array('submit', 'button', 'reset');\n $styles = array('primary', 'info', 'success', 'warning', 'danger', 'inverse', 'link');\n\n if ( !isset($params['type']) ) {\n $params['type'] = 'submit...
[ "0.6743925", "0.6705401", "0.66966885", "0.66481984", "0.6606806", "0.65489453", "0.6548581", "0.649788", "0.63716274", "0.6366468", "0.63390493", "0.63011986", "0.6292241", "0.62591356", "0.62146527", "0.61978185", "0.61782014", "0.6178105", "0.6171105", "0.61412895", "0.613...
0.77072674
0
Cria um hash simples da senha, usando MD5:
Создает простой хеш пароля, используя MD5:
function make_hash($str){ return md5($str); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function makeUniqueHash(){\n\t\treturn md5(uniqid('', true));\n\t}", "function my_hash($string) {\r\n\t\treturn md5($string);\r\n\t}", "public function generateHash()\n {\n $amount = ($this->amount ? $this->amount : \"0.00\");\n return strtoupper(md5($this->md5_setting . $this->a...
[ "0.7265011", "0.7130033", "0.7121513", "0.7107265", "0.7021794", "0.6968853", "0.69553494", "0.69432145", "0.6914744", "0.6887091", "0.6881105", "0.6879427", "0.68695825", "0.68517464", "0.685132", "0.68470395", "0.68428725", "0.6826835", "0.68218285", "0.67995155", "0.679435...
0.7424939
0
Seeks to the next nonwhitespace token.
Ищет следующий токен, не являющийся whitespace.
private function seekToNextRelevantToken(\Iterator $tokenIterator) { for (; $tokenIterator->valid(); $tokenIterator->next()) { $token = $tokenIterator->current(); if (T_WHITESPACE !== $token[0]) { break; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function eatWhiteSpace()\n {\n $ret = 0;\n if ($this->token_type != self::WHITESPACE &&\n $this->token_type != self::EOL) {\n return $ret;\n }\n while ($this->nextToken() == self::WHITESPACE ||\n $this->token_type == self::EOL) {\n $...
[ "0.6951759", "0.68491113", "0.6615174", "0.6522378", "0.64558566", "0.64103305", "0.6370599", "0.62616813", "0.6258622", "0.6251742", "0.62432146", "0.6228633", "0.61637187", "0.61605144", "0.61598814", "0.596614", "0.59652376", "0.5943205", "0.59248656", "0.59167457", "0.591...
0.72197235
0
Generate a class name from a tag name
Создайте имя класса из имени тега
protected function getTagNameClass($tag) { return str_replace('"', '', str_replace(' ', '_', $tag)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTagClass($name);", "private static function makeClassName(): string {\n\t\treturn self::$prefix . ( self::$counter++ );\n\t}", "function makeClassName($name)\n\t{\n\t\tif($this->isOldLayout())\n\t\t\treturn \"runner-\".$name;\n\t\treturn \"rnr-\".$name;\n\t}", "protected static function ge...
[ "0.7481838", "0.6822071", "0.66992575", "0.6672384", "0.653792", "0.6514737", "0.650456", "0.6480232", "0.6436254", "0.6432555", "0.6412365", "0.63980395", "0.639062", "0.639062", "0.6381385", "0.6381385", "0.6381385", "0.6381385", "0.6381385", "0.6381385", "0.6381385", "0....
0.7996242
0
Return STD Discount Input Options NOTE: options format is used for ProcessWire\Sanitizer's float, int functions
Вернуть STD Discount Input Options ЗАМЕЧАНИЕ: формат опций используется для функций ProcessWire\Sanitizer's float, int
private function getStdDiscountFieldInputOptions() { $opts = []; $opts['std_disc_percent'] = [ 'max' => $this->fieldAttribute('std_disc_percent', 'max'), 'precision' => $this->fieldAttribute('std_disc_percent', 'precision') ]; $opts['std_disc_date'] = [ 'dateformat' => $this->fieldAttribute...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function getStdDueFieldInputOptions() {\n\t\t$opts = [];\n\n\t\t$opts['std_due_days'] = [\n\t\t\t'max' => $this->fieldAttribute('std_due_days', 'max'),\n\t\t\t'default' => $this->fieldAttribute('std_due_days', 'default'),\n\t\t];\n\t\t$opts['std_due_day'] = [\n\t\t\t'max' => $this->fieldAttribute('s...
[ "0.58321196", "0.5691962", "0.568996", "0.54896915", "0.54679555", "0.5449301", "0.5449301", "0.5439455", "0.53590983", "0.5356738", "0.5355564", "0.5345747", "0.5273182", "0.5259948", "0.5242501", "0.5222394", "0.52164584", "0.52135336", "0.5211947", "0.5202", "0.5194836", ...
0.7172301
0
Register the path to the themes.
Зарегистрируйте путь к темам.
public function registerThemePath() { $path = $this->app['path.base'].'/themes'; $this->app['theme.path'] = realpath($path); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function register()\n {\n OmegaTheme::setThemePath(resource_path() . '/theme/main');\n OmegaTheme::setInstallerPath('install/install.php');\n OmegaTheme::setTemplateRegisterPath('template/register.php');\n }", "function register_theme_directory($directory)\n{\n}", "public func...
[ "0.7203711", "0.70886916", "0.70747733", "0.70497", "0.6953595", "0.6925823", "0.6900805", "0.66549253", "0.6653378", "0.662753", "0.6591018", "0.6576626", "0.65444624", "0.65258175", "0.64811134", "0.64713657", "0.64686644", "0.6449757", "0.6435018", "0.6397256", "0.63883775...
0.8565273
0
Register the view environment.
Зарегистрируйте окружение представления.
public function registerEnvironment() { $me = $this; $this->app['view'] = $this->app->share(function($app) use ($me) { // Next we need to grab the engine resolver instance that will be used by the // environment. The resolver will be used by an environment to get each of // the various engine implement...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function registerView()\n {\n $this->app->singleton('view', function ($app) {\n // Next we need to grab the engine resolver instance that will be used by the\n // environment. The resolver will be used by an environment to get each of\n // the various engine implem...
[ "0.78467214", "0.7002263", "0.6779522", "0.6770538", "0.67166877", "0.6715177", "0.6651534", "0.65665036", "0.654757", "0.65410227", "0.6531526", "0.6512047", "0.6496664", "0.64874405", "0.63949525", "0.6387614", "0.63571036", "0.6343832", "0.6340347", "0.6338025", "0.6304903...
0.84111756
0
Sidebar setting (collapse or not)
Настройка панели бокса (свернуть или нет)
public function sidebar() { if (!$this->ion_auth->logged_in()) { // redirect them to the login page redirect('admin/login', 'refresh'); } else if (!$this->ion_auth->is_admin()) { // redirect them to the home page because they must be an administrator to view this return show_error('You must be ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function wp_admin_bar_sidebar_toggle($wp_admin_bar)\n{\n}", "public function panel_sidebar() {\n\t}", "public function isShowAtSidebar()\r\n {\r\n return $this->isShowAt('sidebar');\r\n }", "function display_sidebar()\n{\n static $display;\n isset($display) || $display = apply_filters('sag...
[ "0.71671146", "0.71117824", "0.6882723", "0.6721531", "0.6715971", "0.6684513", "0.66347855", "0.6555488", "0.6525732", "0.6517354", "0.6488412", "0.6464394", "0.6437034", "0.63862056", "0.6380989", "0.637719", "0.63641465", "0.6300285", "0.62395096", "0.6223242", "0.6180882"...
0.77262986
0
Returns the command to run PHPUnit.
Возвращает команду для запуска PHPUnit.
public function phpUnitCommand() { // Load the actual autoloader being used and determine its filename using // reflection. We can determine the vendor directory based on that filename. $autoloader = require $this->appRoot . '/autoload.php'; $reflector = new \ReflectionClass($autoloader); $vendor_di...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function getPhpUnitExecutable()\n {\n $proj_dir = Util::getProjectDirectory();\n\n $phpunit_executable = $phpunit_executable = \"{$proj_dir}/vendor/bin/phpunit\";\n\n if (!file_exists($phpunit_executable)) {\n $this->taskExec(\"dktl installphpunit\")->run();\n ...
[ "0.7076105", "0.70647734", "0.6965118", "0.69297385", "0.6407061", "0.63352436", "0.6083101", "0.6061556", "0.60124195", "0.6003157", "0.59259367", "0.58987784", "0.58615464", "0.58020633", "0.58018", "0.5801126", "0.5740507", "0.5725541", "0.57065725", "0.57065725", "0.57065...
0.8068078
0
API Method retrieves a single Attendance record and render as JSON
API-метод получает один запись Attendance и отображает её в формате JSON
public function Read() { try { $pk = $this->GetRouter()->GetUrlParam('id'); $attendance = $this->Phreezer->Get('Attendance',$pk); $this->RenderJSON($attendance, $this->JSONPCallback(), true, $this->SimpleObjectParams()); } catch (Exception $ex) { $this->RenderExceptionJSON($ex); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function index()\n {\n $attendance = AttendanceModel::all();\n\n $object = array();\n\n foreach($attendance as $value){\n $var = array(\n \"id\" => $value[\"ID\"],\n \"student_id\" => $value[\"STUDENTID\"],\n \"nrc\" => $value[\...
[ "0.7220858", "0.69793624", "0.69793624", "0.69793624", "0.685356", "0.6695014", "0.66869587", "0.6645545", "0.6626403", "0.66061217", "0.6597931", "0.65728515", "0.6529461", "0.6518182", "0.6517869", "0.6514325", "0.6487484", "0.6472816", "0.645065", "0.6427577", "0.63967097"...
0.7773328
0
API Method inserts a new Attendance record and render response as JSON
API-метод вставляет новый запись Attendance и отображает ответ в формате JSON
public function Create() { try { $json = json_decode(RequestUtil::GetBody()); if (!$json) { throw new Exception('The request body does not contain valid JSON'); } $attendance = new Attendance($this->Phreezer); // TODO: any fields that should not be inserted by the user should be com...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function add_attendance(){\n\t\t//Get user data from session\n\t\t$user_data = $this -> session -> userdata('authorized');\n\n\t\t$user_id = $user_data[\"id\"];\n\t\t$team_id = $user_data[\"team\"][0];\n\t\t$attendance = $this -> input -> get('attendance');\n\t\t$match_fixture_id = $this -> input -> get('ma...
[ "0.72241706", "0.6781851", "0.6747109", "0.67363095", "0.6663041", "0.66495055", "0.6638398", "0.660642", "0.6605319", "0.6602031", "0.65892184", "0.65849817", "0.65285873", "0.64811194", "0.64294416", "0.64158547", "0.6411115", "0.63989305", "0.63957155", "0.6371064", "0.636...
0.7584369
0
API Method updates an existing Attendance record and render response as JSON
API-метод обновляет существующий запись о посещаемости и отображает ответ в формате JSON
public function Update() { try { $json = json_decode(RequestUtil::GetBody()); if (!$json) { throw new Exception('The request body does not contain valid JSON'); } $pk = $this->GetRouter()->GetUrlParam('id'); $attendance = $this->Phreezer->Get('Attendance',$pk); // TODO: any field...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function update(UserAttendanceValidator $request, $id)\n {\n $data=UserAttendance::find($id);\n if($data)\n {\n $data->update($request->all());\n if ($data->save())\n {\n return response()->json([\n 'success'=> true,\n ...
[ "0.72482866", "0.71940094", "0.71940094", "0.71940094", "0.7155375", "0.7154939", "0.7150816", "0.71218294", "0.7119432", "0.69932204", "0.68390536", "0.6834621", "0.68203586", "0.6780172", "0.67753506", "0.67371184", "0.6688456", "0.6657989", "0.66470295", "0.6635545", "0.66...
0.7834906
0
API Method deletes an existing Attendance record and render response as JSON
API-метод удаляет существующий запись о посещении и отображает ответ в формате JSON
public function Delete() { try { // TODO: if a soft delete is prefered, change this to update the deleted flag instead of hard-deleting $pk = $this->GetRouter()->GetUrlParam('id'); $attendance = $this->Phreezer->Get('Attendance',$pk); $attendance->Delete(); $output = new stdClass(); $t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function destroy($id)\n {\n try {\n $atendimento = Atendimento::find($id);\n if(isset($atendimento)){\n $atendimento->delete();\n return response()->json([\n 'message' => 'attendance deleted successfully'\n ], 20...
[ "0.7296751", "0.7253795", "0.7113095", "0.69844675", "0.6937513", "0.6862193", "0.68309355", "0.67995906", "0.6759114", "0.6759114", "0.6759114", "0.6759114", "0.6715787", "0.66763854", "0.66319776", "0.6609499", "0.658928", "0.6474439", "0.6470203", "0.64579546", "0.64512694...
0.8068406
0
Get the end node
Получить конечную вершину
public function getEndNode() { return $this->end; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getEndLine()\n {\n return $this->node->getEndLine();\n }", "public function getEndElement()\n\t{\n\t\treturn $this->endingElement;\n\t}", "Public Function getEnd() { Return $this->end; }", "public function getLast() {\n return end($this->Nodes);\n }", "public function...
[ "0.7751519", "0.7663118", "0.7573195", "0.7453675", "0.7438898", "0.7435477", "0.74029315", "0.74029315", "0.74029315", "0.74029315", "0.74029315", "0.74029315", "0.74029315", "0.74029315", "0.740292", "0.73577005", "0.73206747", "0.7189315", "0.71345055", "0.70959103", "0.70...
0.9001879
0
Get a single path
Получить один путь
public function getSinglePath() { $paths = $this->getPaths(); return $paths ? $paths[0] : null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function path();", "public static function get_path()\n {\n }", "public static function get_path()\n {\n }", "public static function get_path()\n {\n }", "public function getPath(): string;", "public function getPath(): string;", "public function getPath...
[ "0.775045", "0.7743181", "0.77429897", "0.77429897", "0.7715418", "0.7715418", "0.7715418", "0.7715418", "0.7715418", "0.7715418", "0.7715418", "0.7715418", "0.7715418", "0.7581766", "0.7576494", "0.7576494", "0.7576494", "0.7576494", "0.7576494", "0.7576494", "0.7576494", ...
0.8112648
0
Get the start node
Получить начальную вершину
public function getStartNode() { return $this->start; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Public Function getStart() { Return $this->start; }", "function GetStart() {\n\t\treturn $this->start;\n\t}", "public function getStart() {\n\t\tif (! isset($this->start) or empty($this->start)) {\n\t\t\t$this->start();\n\t\t}\n\n\t\treturn $this->start;\n\t}", "public function getStart()\r\n\t{\r\n\t\tretur...
[ "0.74896616", "0.7412936", "0.7360091", "0.7292552", "0.7262835", "0.7262835", "0.7262835", "0.7262835", "0.7262835", "0.7262835", "0.7262835", "0.7262835", "0.7262835", "0.7262835", "0.7262835", "0.70366514", "0.70218676", "0.69910794", "0.6989914", "0.6954927", "0.68887186"...
0.9091626
0
Set the end node
Установить конечную вершину
public function setEndNode(Node $end) { $this->end = $end; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getEndNode()\n\t{\n\t\treturn $this->end;\n\t}", "function setEnd() {\n\t}", "protected function updateNodeEnd() \r\n {\r\n $sql = 'SELECT MAX(`'.$this->tree_cols['rank'].'`) FROM `'.$this->table.'`';\r\n $rank_max = $this->db->readSqlValue($sql);\r\n \r\n //step thr...
[ "0.6917527", "0.6902897", "0.6793501", "0.6784777", "0.6781047", "0.67201024", "0.66630924", "0.6654216", "0.66135466", "0.6589025", "0.65809506", "0.64023656", "0.62745386", "0.6112039", "0.6106336", "0.5942931", "0.5942931", "0.59225434", "0.5860391", "0.5858227", "0.580570...
0.8012203
0
Set the start node
Установить начальную вершину
public function setStartNode(Node $start) { $this->start = $start; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setStart($start) {\n\t\t$this->start = $start;\n\t}", "public function setStart($val)\n {\n $this->_propDict[\"start\"] = $val;\n return $this;\n }", "public function setStart($start = null);", "public function getStartNode()\n\t{\n\t\treturn $this->start;\n\t}", "publi...
[ "0.6887916", "0.6775499", "0.67260814", "0.6688606", "0.6619864", "0.64617336", "0.63859195", "0.6342005", "0.62835485", "0.6174799", "0.61455315", "0.6073841", "0.60561454", "0.60561454", "0.60466224", "0.6027862", "0.60191065", "0.60027564", "0.6001661", "0.5963851", "0.595...
0.7810633
0
Worker for email service sebagai contoh untuk membuat service
Работник для электронной почты как пример для создания сервиса
public function runservice() { $action = function ($data) { $arrdata = (Object) json_decode($data); $email = new Email; foreach ($arrdata->to[0] as $to) { if ($to == '') { continue; } $email->to($to); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function sendToEmailJob() { }", "public function queueBirthDayMessage() {\n $mobj = memcache_connect('10.179.252.160', 11211);\n $currDate = date(\"Y-m-d\");\n $tomorrowDate = date(\"Y-m-d\", strtotime(date(\"Y-m-d\", strtotime($currDate)) . \" +1 day\"));\n\n $md = explode(...
[ "0.6775433", "0.63819456", "0.6281928", "0.62783235", "0.6249516", "0.6247944", "0.6245273", "0.6223679", "0.6184619", "0.618288", "0.61463857", "0.6128095", "0.6123904", "0.612388", "0.6121258", "0.610448", "0.6104268", "0.6100053", "0.6093886", "0.6089891", "0.60522884", ...
0.70942795
0
Clears vote events cache
Очищает кэш событий голосования
private function clearVotingCache() { global $VOTE_CACHE; unset($VOTE_CACHE["VOTE_CACHE_VOTING"][$this->id]); unset(self::$canVoteStorage[$this->id]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function clearEventVideos()\n\t{\n\t\t$this->collEventVideos = null; // important to set this to NULL since that means it is uninitialized\n\t}", "public function clearPendingEvents();", "public function clearEvents()\n\t{\n\t\t$this->collEvents = null; // important to set this to NULL since that means ...
[ "0.66289985", "0.65835977", "0.6538977", "0.6501332", "0.6339001", "0.62664753", "0.6144601", "0.6131343", "0.6092988", "0.6076796", "0.6068953", "0.60394186", "0.6036697", "0.602199", "0.60132223", "0.60048157", "0.60048157", "0.59991527", "0.59882975", "0.59643096", "0.5961...
0.78555495
0
/Order Tags Mass Delete Action Code Starts
/Действие массового удаления меток заказов начинается
public function massDeleteAction() { $ordertagIds = $this->getRequest()->getParam('ordertags'); if (!is_array($ordertagIds)) { Mage::getSingleton('adminhtml/session')->addError(Mage::helper('adminhtml')->__('Please select Order Tag(s)')); } else { try { foreach ($ordertagIds as $ordertagId) { $thi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function controller_task_tags_delete() {\n identity_require(\"task-tag\");\n if (!request_is_post()) {\n redirect(url_task_tags());\n }\n\n $tag = array(\n \"name\" => request(\"name\"),\n \"type\" => request(\"type\"),\n \"parent\" => request(\"parent\", 0)\n );\n if ...
[ "0.7623714", "0.7232088", "0.71843684", "0.7142276", "0.70260304", "0.70106626", "0.6822116", "0.6814088", "0.67985046", "0.67937607", "0.67907643", "0.6767075", "0.67669773", "0.6766271", "0.676059", "0.6711751", "0.6691469", "0.6646122", "0.6645353", "0.6645353", "0.6637649...
0.8025785
0
Adds a css object to the output queue
Добавляет css-объект в очередь вывода
public function add(CssObjectInterface $css);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function insert_queued_css()\n\t{\n\t\t$css = self::get_queued_css();\n\n\t\tif ($css)\n\t\t{\n\t\t\tself::insert_css($css);\n\t\t}\n\t}", "public static function queue_css($css)\n\t{\n\t\tif (self::$_css)\n\t\t{\n\t\t\tself::$_css .= NL;\n\t\t}\n\n\t\tself::$_css .= trim($css);\n\t}", "public fu...
[ "0.69401467", "0.6916508", "0.654621", "0.6301133", "0.6254241", "0.62193644", "0.6101114", "0.6065169", "0.6065152", "0.60512555", "0.6005633", "0.5988016", "0.597122", "0.5917374", "0.59152913", "0.59020257", "0.5889808", "0.5876441", "0.5854993", "0.5836723", "0.58353347",...
0.7035255
0
Creates and returns a link css object.
Создаёт и возвращает объект css-ссылки.
public function link(string $url): CssObjectInterface;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_css_linked()\n {\n }", "public function get_css_linked() {\n\t}", "public function getCss()\n {\n $compiler = new CssCompiler($this->tempDir, $this->wwwDir);\n $compiler->setConvertToDataUrl($this->convertToDataUrl);\n $compiler->setData($this->css);\n $co...
[ "0.71515256", "0.71309847", "0.6396793", "0.63589555", "0.6114951", "0.6108916", "0.5994613", "0.5945959", "0.5944455", "0.5918127", "0.58896405", "0.58836585", "0.5849327", "0.58468866", "0.58220506", "0.5787714", "0.5779086", "0.5763336", "0.57381517", "0.57015485", "0.5618...
0.7570209
0
Creates and returns an inline css object
Создает и возвращает объект встроенной css
public function inline(string $styles): CssObjectInterface;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function insert_inline_css() {\n }", "public function insert_inline_css() {\n }", "public function insert_inline_css() {\n }", "public function insert_inline_css() {\n }", "public function insert_inline_css() {\n }", "public function insert_inline_css() {\n }", "public function...
[ "0.6940684", "0.6940684", "0.6940684", "0.6940684", "0.6940684", "0.6940684", "0.6940684", "0.6940684", "0.6940684", "0.6940684", "0.69224083", "0.6897898", "0.659361", "0.6395529", "0.63517845", "0.63305205", "0.6310518", "0.62760645", "0.6250143", "0.62480164", "0.6245982",...
0.72588265
0
Return the raw output
Вернуть сырые данные вывода
public function rawOutput() { return $this->rawOutput; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getRawOutput() {\r\n\t\tprint_r($this->responseObject);\r\n\t}", "public function raw()\n {\n ob_start();\n $this->_movie->output();\n $data = ob_get_clean();\n return $data;\n }", "public function getRaw(): string\n {\n return $this->stdOut;\n }",...
[ "0.8032027", "0.77554727", "0.76931584", "0.7609122", "0.75070584", "0.75070584", "0.75070584", "0.75070584", "0.75070584", "0.7497421", "0.7438976", "0.74222094", "0.7402913", "0.7384132", "0.7346797", "0.72673345", "0.7259941", "0.72563994", "0.7236512", "0.72343004", "0.72...
0.81522393
0
Boots all of the service providers
Запускает все поставщиков служб
public function bootProviders() { foreach($this->providers as $provider) { $provider->boot(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function boot()\n {\n foreach ($this->providers as $provider)\n {\n $inst = $this->make($provider);\n if (method_exists($inst,\"boot\"))\n {\n $inst->boot();\n }\n }\n $this->hasBeenBootstrapped = true;\n }", "pub...
[ "0.8082702", "0.8021818", "0.79896367", "0.7952138", "0.7451221", "0.7358931", "0.7306085", "0.7286138", "0.7286138", "0.727091", "0.7263042", "0.7180406", "0.71344763", "0.711869", "0.7086569", "0.70025396", "0.69931144", "0.6929755", "0.691444", "0.690752", "0.69055045", ...
0.81403273
0
No Cache Headers This just outputs headers to the browser to force the browser to reload the and not cache anything.
Нет заголовков кэширования. Это просто выводит заголовки в браузер, чтобы заставить браузер перезагрузить страницу и не кэшировать ничего.
public static function no_cache_headers() { // Date in the past header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // always modified header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // HTTP/1.1 header("Cache-Control: no-store, no-cache, must-revalidate"); header("Cache-Control: post-ch...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function sendNoCacheHeaders()\n {\n atkdebug(\"Sending no-cache headers (lmd: \".gmdate(\"D, d M Y H:i:s\").\" GMT)\");\n atkOutput::header(\"Expires: Mon, 26 Jul 1997 05:00:00 GMT\"); // Date in the past\n atkOutput::header(\"Last-Modified: \" . gmdate(\"D, d M Y H:i:s\") . \" G...
[ "0.8977172", "0.86790013", "0.86550295", "0.8575504", "0.853036", "0.83562696", "0.8292209", "0.8275169", "0.826697", "0.8265592", "0.8262548", "0.82368267", "0.81965846", "0.81965846", "0.8155051", "0.8152139", "0.8080152", "0.80217326", "0.797297", "0.7968749", "0.7950812",...
0.87524354
1
reflects given input and returns an appropriate reflector If no method name is provided it will check whether $class denotes a class name or is an object instance. If yes it returns an instance of \ReflectionClass or \ReflectionObject which allows reflection on the provided class. In case $class is a function name it w...
отражает заданный вход и возвращает соответствующий отражатель. Если не указано имя метода, он проверяет, представляет ли $class имя класса или является экземпляром объекта. Если да, возвращает экземпляр \ReflectionClass или \ReflectionObject, которые позволяют выполнять отражение по указанному классу. В случае, если $...
function reflect(string|callable|object|array $class, ?string $methodName = null): Reflector { if (\is_callable($class) && \is_string($class)) { return new ReflectionFunction($class); } if (\is_array($class) && count($class) === 2) { list($class, $methodName) = $clas...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getMethodReflection(string $class, string $method): ReflectionMethod;", "public function getClassReflection(string $class): ReflectionClass;", "public function getMethod($name, $reflectionClass = '\\Core\\Reflection\\Method') {\n\t\t$phpReflection = parent::getMethod ( $name );\n\t\t$JOReflecti...
[ "0.69495815", "0.6921937", "0.6764308", "0.6589497", "0.65062195", "0.6453552", "0.6424883", "0.6252467", "0.6231439", "0.6058012", "0.6023318", "0.60087717", "0.598506", "0.5983452", "0.5912137", "0.5905258", "0.58596146", "0.5837678", "0.58300537", "0.58164215", "0.57988495...
0.77786404
0
shortcut for reflect($class, '__construct')
сокращение для reflect($class, '__construct')
function reflectConstructor(string|object $class): ReflectionMethod { /** @var ReflectionMethod $constructor */ $constructor = reflect($class, '__construct'); return $constructor; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getConstructor(string $class): ?ReflectionMethod;", "public function getConstructor($className);", "public function getCtor(string $class): ?\\ReflectionMethod;", "public function __construct($reflectionClass)\n {\n foreach ($reflectionClass as $name => $class) {\n // if(...
[ "0.68867695", "0.681428", "0.6796074", "0.6615963", "0.6421057", "0.6408831", "0.63754994", "0.6371077", "0.63354987", "0.63349414", "0.6327456", "0.63252074", "0.63144284", "0.630894", "0.63073456", "0.6264356", "0.61879814", "0.615239", "0.60588104", "0.60588104", "0.600431...
0.7323859
0
returns annotations of constructor of given reflected
возвращает аннотации конструктора заданного отражённого
function annotationsOfConstructor(string|object $reflected): Annotations { if ($reflected instanceof ReflectionClass) { $constructor = $reflected->getConstructor(); if (null === $constructor) { throw new ReflectionException( 'Method ' . $reflected-...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function annotationsOfConstructorParameter(string $name, $class): Annotations\n {\n return annotationsOf(constructorParameter($name, $class));\n }", "public function getConstructor() {}", "protected function identifyConstructorParams(\\ReflectionClass $reflection)\n {\n $params = array()...
[ "0.65815127", "0.6186472", "0.61064684", "0.57290494", "0.57136613", "0.56924975", "0.5690489", "0.568704", "0.5677073", "0.5673247", "0.563658", "0.56290674", "0.56166744", "0.5565361", "0.5555001", "0.55327964", "0.55270547", "0.5480854", "0.54801893", "0.54736733", "0.5330...
0.7936586
0
returns annotation target for given reflector
возвращает аннотацию целевого объекта для заданного рефлектора
function _annotationTarget(Reflector $reflector): string { if ($reflector instanceof ReflectionClass) { return $reflector->getName(); } if ($reflector instanceof ReflectionMethod) { return $reflector->class . '::' . $reflector->getName() . '()'; } if...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTarget(\\ReflectionClass $reflection, string $name): ?\\Reflector;", "public abstract function getReflector();", "public function getReflector()\n {\n return $this->reflector;\n }", "public static function getTargetClass() : string;", "public function readReflector(Reflector...
[ "0.63918495", "0.613184", "0.606031", "0.6043662", "0.6021867", "0.59439087", "0.58608717", "0.58608717", "0.57789266", "0.5751485", "0.5641526", "0.5621646", "0.5598383", "0.55061007", "0.54426014", "0.5442331", "0.5412623", "0.5412623", "0.5412623", "0.5412623", "0.5408384"...
0.80489594
0
returns doc comment for given reflector
возвращает комментарий документации для заданного рефлектора
function docComment(Reflector $reflector): string { if ($reflector instanceof ReflectionClass || $reflector instanceof ReflectionFunctionAbstract || $reflector instanceof ReflectionProperty) { $docComment = $reflector->getDocComment(); return (false !=...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDocComment()\n {\n return $this->getReflector()->getDocComment();\n }", "public function getDocComment();", "public function getMoufPhpDocComment();", "function bl_get_comments($reflection)\n{\n $result = '';\n $comments = $reflection->getDocComment();\n if (empty($co...
[ "0.75764084", "0.7396752", "0.7137289", "0.6854571", "0.6734369", "0.6533407", "0.6501849", "0.64089036", "0.6396257", "0.6371498", "0.63529307", "0.6276024", "0.6276024", "0.6276024", "0.62164485", "0.60719675", "0.60300195", "0.58929527", "0.57886964", "0.5749362", "0.57441...
0.8333944
0
returns constructor parameters for given class
возвращает параметры конструктора для заданного класса
function parametersOfConstructor(string|object $class): Sequence { return parametersOf($class, '__construct'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getConstructorParameters(string $class): ?array;", "public function getCtorParams(string $class): ?array;", "public function getConstructorArguments() {}", "public function construct($class, $parameters = []);", "public function getConstructorParams()\n {\n return $this->construct...
[ "0.7847708", "0.7690791", "0.7195755", "0.69006217", "0.6873688", "0.6794758", "0.67888653", "0.67190194", "0.6426969", "0.6418157", "0.6374625", "0.6279348", "0.627347", "0.62296075", "0.6203076", "0.6193835", "0.61687255", "0.6158581", "0.6158581", "0.6132472", "0.61280316"...
0.77961427
1
Determines whether the given property refers to a date field.
Определяет, относится ли заданное свойство к полю даты.
protected function isDateField(string $property, string $resourceClass) : bool { $propertyType = $this->getPropertyType($resourceClass, $property); return in_array($propertyType, self::ELASTICA_DATE_TYPES); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function isDate($fieldname){\n\t\t$type = $this->getType($fieldname);\n\t\tif ( PEAR::isError($type) ){\n\t\t\treturn false;\n\t\t}\n\t\treturn in_array( $type, array('date','datetime','time','timestamp') );\n\t}", "public function isDateField($field)\n {\n $result = false;\n\n if (strtolower($f...
[ "0.7466895", "0.7430053", "0.7393528", "0.7308724", "0.7236123", "0.7024591", "0.683833", "0.6770232", "0.66453564", "0.65953434", "0.65867245", "0.6434726", "0.64263105", "0.6385323", "0.6377005", "0.6258073", "0.62448627", "0.6232368", "0.6230433", "0.6211936", "0.6201894",...
0.75029373
0
Get software information for Special:Version
Получить информацию о программном обеспечении для Special:Version
public static function getSoftwareInfo( &$software ) { $engine = Scribunto::newDefaultEngine(); $engine->setTitle( Title::makeTitle( NS_SPECIAL, 'Version' ) ); $engine->getSoftwareInfo( $software ); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getProgVersion();", "public function getFirmwareVersion()\n\t{\n\t\t$command = 'getpara[98]=1';\n\t\treturn $this->sendContents($command);\n\t}", "function get_version();", "function getSoftwareVersion() {\n\t\treturn $this->m_softwareVersion;\n\t}", "public function getSoftwareVersion()\n ...
[ "0.6788927", "0.67272663", "0.6701646", "0.669046", "0.6676571", "0.6616729", "0.6596789", "0.6580189", "0.6498547", "0.63990265", "0.6368093", "0.6328012", "0.6328012", "0.6326041", "0.63199717", "0.6300826", "0.6291834", "0.6290968", "0.6284714", "0.6282643", "0.62759584", ...
0.7146909
0
Returns working copies found at given path.
Возвращает рабочие копии, найденные по заданному пути.
protected function getWorkingCopyPaths($path) { $this->io->write('Looking for working copies ... '); $all_working_copies = $this->getWorkingCopiesRecursive($path); $working_copies = array_diff($all_working_copies, $this->getIgnored()); $all_working_copies_count = count($all_working_copies); $working_copies_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getWorkingCopiesRecursive($path)\n\t{\n\t\t$working_copies = array();\n\n\t\tif ( $this->io->isVerbose() ) {\n\t\t\t$this->io->writeln(\n\t\t\t\tPHP_EOL . '<fg=white;bg=magenta>scanning: ' . $path . '</>'\n\t\t\t);\n\t\t}\n\n\t\tforeach ( glob($path . '/*', GLOB_ONLYDIR) as $sub_folder ) {\n\t\t...
[ "0.7820306", "0.6408421", "0.5732254", "0.5702416", "0.5702416", "0.5653966", "0.5564737", "0.55401146", "0.5525463", "0.53895855", "0.538503", "0.53665787", "0.5307947", "0.53069156", "0.5300273", "0.5294498", "0.52828604", "0.52828604", "0.5250463", "0.52472705", "0.5226072...
0.77526903
1
This function is used to validate registeration page
Эта функция используется для проверки страницы регистрации
function showValidateRegPage() { include('classes/Lib/CheckInputs.php'); $obj = new Lib_CheckInputs('register'); include('classes/Core/CUserRegistration.php'); include_once('classes/Display/DUserRegistration.php'); include('classes/Core/CKeywordSearch.php'); include('classes/Display/DKeywordSearch....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function checkregister()\n {\n\n $this -> load -> model('user_model');\n if($this -> user_model -> insert_from_register()){\n $data = array(\n 'title' => '恭喜您,注册成功!',\n 'description' => '恭喜您已经成为会员,现在将跳转至会员登录页',\n 'second' => 3,\n ...
[ "0.7486595", "0.74751776", "0.7358961", "0.73339427", "0.7325614", "0.7286699", "0.7252301", "0.72403", "0.72218204", "0.7219905", "0.7209413", "0.71513015", "0.71332544", "0.71324784", "0.7112068", "0.71095765", "0.7105086", "0.70979774", "0.70979774", "0.7092312", "0.709216...
0.74987715
0
This function is used to register the user from twitter
Эта функция используется для регистрации пользователя из Twitter
function twitterRegister() { $sess = $_SESSION['twitter_user_info']->name; $me = $_POST['email']; include('classes/Core/CUserRegistration.php'); $objUser = new Core_CUserRegistration(); $objUser->twitterRegister($me,$sess); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function twitterLogin($user_info)\n\t\t{\n\t\t\tglobal $CFG,$objSmarty;\n\t\t\t$num_customer = $this->getNumValues($CFG['table']['register'],\"email = '\".$this->filterInput($user_info->logemail).\"' AND log_status ='2' \");\n\t\t\tif($num_customer > 0)\n\t\t\t\t{\n\t\t\t\t\t$customerId = $this->getValue(\"user_id...
[ "0.74343896", "0.71229565", "0.70946145", "0.70724005", "0.7066045", "0.6929987", "0.68659323", "0.68417907", "0.6829577", "0.67687327", "0.67574155", "0.67170227", "0.6674939", "0.66674924", "0.66581714", "0.66579753", "0.66556376", "0.66101557", "0.660449", "0.6590725", "0....
0.8572665
0
Affichage de la page Accueil
Показ страницы Главная
public function displayAccueil() { // Appel du fichier config.php où sont déclarées // les classes et les tables de données correspondantes include 'Config/config.php'; // on affiche le contenu de la page d'accueil $this->page .= ' <section id="accueil">...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function makeAcceuilpage()\n {\n $this->titre = \"Acceuil\";\n $this->contenu = \"Bienvenue sur le site MyRoadTrip\";\n $this->menu = $this->getMenu();\n }", "function ctlAcceuil()\n\t{\n\t\tafficherAccueil(); // appelle la fonction pour afficher l'acceuil de site\n\t}", "public function affi...
[ "0.7263358", "0.7105201", "0.7066703", "0.67716396", "0.6767153", "0.6638257", "0.66378784", "0.66251874", "0.6588922", "0.65758973", "0.6509776", "0.64829385", "0.64390236", "0.64385736", "0.6418922", "0.63918614", "0.6302695", "0.62515646", "0.62480617", "0.6235519", "0.621...
0.7108403
1
Changes the colspan of a widget.
Изменяет colspan элемента управления.
public function actionChangeWidgetColspan() { $this->requirePostRequest(); $this->requireAjaxRequest(); $widgetId = craft()->request->getRequiredPost('id'); $colspan = craft()->request->getRequiredPost('colspan'); craft()->dashboard->changeWidgetColspan($widgetId, $colspan); $this->returnJson(array('suc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setColspan($colspan)\n {\n if (!is_int($colspan)) {\n throw new GUIException(\"The specified colspan is not valid.\");\n }\n $this->colspan = $colspan;\n $this->setAttributes(\"Colspan\");\n }", "public function setColspan($colspan)\n {\n $th...
[ "0.6803008", "0.61436856", "0.5808492", "0.5646929", "0.53653646", "0.53484833", "0.50576854", "0.5024706", "0.49866378", "0.49849707", "0.49600253", "0.49248338", "0.48628905", "0.4860829", "0.47991294", "0.47749543", "0.47604677", "0.47588444", "0.47367075", "0.47110352", "...
0.74954474
0
Attempts to save a widget and responds with JSON.
Попытки сохранить виджет и ответить с JSON.
private function _saveAndReturnWidget(WidgetModel $widget) { if (craft()->dashboard->saveUserWidget($widget)) { $info = $this->_getWidgetInfo($widget); $templatesService = craft()->templates; $this->returnJson(array( 'success' => true, 'info' => $info, 'headHtml' => $templatesService->getHead...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function kmr_save_widget() {\n\tkmr_save( 'widget' );\n}", "function wp_ajax_save_widget()\n{\n}", "public function on_widget_save_settings() {\n\t\t$this->_verify_access('ninja.tac:read.tac');\n\n\t\t$dashboard = $this->_current_dashboard();\n\t\tif (! $dashboard->get_can_write()) {\n\t\t\t$this->template = n...
[ "0.7025624", "0.67832595", "0.6559831", "0.641276", "0.6325322", "0.6307236", "0.62316775", "0.61510265", "0.6130462", "0.6130462", "0.6067695", "0.60583115", "0.59629524", "0.5791165", "0.5772878", "0.57297736", "0.5720975", "0.5628377", "0.56028783", "0.55687124", "0.556555...
0.7236727
0
Include a file from the feather includes directory.
Включите файл из каталога feather includes.
function feather_include($filename) { include_once dirname(__FILE__) .'/includes/'. $filename; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function file_include() {\n if (isset($this->file)) {\n require_once DRUPAL_ROOT . '/' . $this->file_path . '/' . $this->file;\n }\n }", "public function include($file) {\n\t\tinclude $this->public . \"/include/\" . $file . '.php';\n\t}", "private static function includeFile($file)\n {\n ...
[ "0.7770213", "0.71811086", "0.7002889", "0.6975525", "0.68505365", "0.68484914", "0.68458056", "0.6672945", "0.6664573", "0.661387", "0.6597338", "0.6582818", "0.65323174", "0.64386433", "0.64368683", "0.64331615", "0.643299", "0.64161074", "0.6407184", "0.6338303", "0.631601...
0.81170756
0
Command callback for `drush feather`.
Callback команды для `drush feather`.
function drush_feather() { $args = func_get_args(); $command = array_shift($args); if (empty($command)) { $command = 'status'; } $commands = drush_get_commands(); $command = $commands['feather-'. $command]; drush_dispatch($command, $args); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function drush_hook_COMMAND() {\n\n}", "function drush_hook_pre_COMMAND() {\n\n}", "function example_drush_command() {\n $items = array();\n\n // the key in the $items array is the name of the command.\n $items['example'] = array(\n // the name of the function implementing your command.\n 'callback' =...
[ "0.69687504", "0.6560323", "0.6501737", "0.6486844", "0.6475543", "0.63227445", "0.6307256", "0.6132325", "0.59142077", "0.588795", "0.5661852", "0.5655325", "0.55413604", "0.55298036", "0.54626465", "0.5435327", "0.5408776", "0.5400003", "0.5378786", "0.53785604", "0.5377041...
0.8177956
0
Command callback for `drush featherrestart`.
Обратный вызов команды для `drush featherrestart`.
function drush_feather_restart() { $server = feather_get_server(); $server->stop(); while ($server->is_running()) { sleep(1); } $server->start(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function drush_feather() {\n $args = func_get_args();\n $command = array_shift($args);\n if (empty($command)) {\n $command = 'status';\n }\n\n $commands = drush_get_commands();\n $command = $commands['feather-'. $command];\n\n drush_dispatch($command, $args);\n}", "function start(){\n\t\t$this->restart...
[ "0.6311579", "0.615032", "0.5933079", "0.58843815", "0.58334184", "0.58142906", "0.57532597", "0.5739792", "0.5687089", "0.5679271", "0.5671476", "0.55620575", "0.5526075", "0.55194676", "0.55130947", "0.5466845", "0.5426531", "0.54079956", "0.5399143", "0.5395309", "0.531771...
0.7437982
0
Command callback for `drush feathererrorlog`.
Обратный вызов команды для `drush feathererrorlog`.
function drush_feather_error_log() { $server = feather_get_server(); $log_file = $server->log_path .'/error_log'; drush_shell_exec_interactive("tail -f {$log_file}"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function errorf() {\n $args= func_get_args();\n $this->callAppenders(LogLevel::ERROR, array(vsprintf($args[0], array_slice($args, 1))));\n }", "public function error() {\n $args= func_get_args();\n $this->callAppenders(LogLevel::ERROR, $args);\n }", "public function logError() ...
[ "0.7023356", "0.69680613", "0.67063004", "0.6690266", "0.66748244", "0.6570809", "0.6534956", "0.6472537", "0.64496386", "0.64031076", "0.6285661", "0.6237052", "0.6234141", "0.62223613", "0.61651176", "0.6150426", "0.6133059", "0.6101793", "0.6099719", "0.6044832", "0.602398...
0.7984469
0
Creates a new EcDatosBasicos model. If creation is successful, the browser will be redirected to the 'view' page.
Создает новый объект модели EcDatosBasicos. Если создание успешно, браузер будет перенаправлен на страницу 'view'.
public function actionCreate() { $modelDatosBasico = new EcDatosBasicos(); $modelPlaneacion = new EcPlaneacion(); $modelVerificacion = new EcVerificacion(); $modelReportes = new EcReportes(); if ($modelDatosBasico->load(Yii::$app->request->post()) && $modelDatosBasico->sav...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function actionCreate()\n {\n $model = new Conta();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->idConta]);\n } else {\n return $this->render('create', [\n 'model' => $mode...
[ "0.73894334", "0.7344237", "0.734382", "0.73036534", "0.72026294", "0.7196413", "0.71906763", "0.71895874", "0.7162158", "0.7117739", "0.7109834", "0.70961595", "0.70877457", "0.7079243", "0.7063517", "0.70351785", "0.70243055", "0.69909346", "0.69845366", "0.6963711", "0.696...
0.7848511
0
/$select = "COUNT(sce070d_cod_asign) as acumasig"; $from = "sce2000.sce070d"; $where = "sce070d_estatus = 'A' AND (sce070d_nro_incritos > 0 OR sce070d_nro_estudiante_nuevo_ing > 0) AND sce070d_lapso = '" . $lapso . "' AND sce070d_sede = '" . $sede . "' AND sce070d_cedula_doc 'n/a' AND sce070d_cedula_doc ''";
/$select = "COUNT(sce070d_cod_asign) as acumasig"; $from = "sce2000.sce070d"; $where = "sce070d_estatus = 'A' AND (sce070d_nro_incritos > 0 OR sce070d_nro_estudiante_nuevo_ing > 0) AND sce070d_lapso = '" . $lapso . "' AND sce070d_sede = '" . $sede . "' AND sce070d_cedula_doc 'n/a' AND sce070d_cedula_doc ''";
function Asignaturas_secciones(&$nro,$sede,$lapso){ $select = "COUNT(eval006d_codasign) as acumasig"; $from = "sce2000.eval006d"; $where = "eval006d_lapso = '" . $lapso . "' AND eval006d_codsede = '" . $sede . "'"; $groupby = ""; $orderby = ""; $datos =Consultar...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function estadistica_40()\n\t\t{\n\t\t\t$this->sql=\"select count(pc_id) as contador from convenio \";\n\t\t\t$this->sql.=\"where pc_id in (select pc_id from ip_convenio) \";\n\t\t\t$this->sql.=\"and convenio.pc_año between (YEAR(CURDATE())-2) AND YEAR(CURDATE())\";\n\t\t\treturn parent::ejecutaQUERY();\n\t\t}", ...
[ "0.6947229", "0.6908437", "0.67155254", "0.67122835", "0.66956323", "0.6643567", "0.66405964", "0.662362", "0.6606424", "0.65957254", "0.6565835", "0.6554742", "0.6546332", "0.65389943", "0.646668", "0.64545596", "0.6440686", "0.6434473", "0.6409171", "0.64049876", "0.6372012...
0.70165527
0
This is the maximum length a table alias can be
Это максимальная длина, которую может иметь псевдоним таблицы
public function tableAliasLength() { return 255; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function tableAliasLength()\n {\n return 30;\n }", "public function getAliasLength()\n\t{\n\t\treturn 30;\n\t}", "public function testCharLengthMaxNotAllowed()\n {\n $blueprint = $this->getNewBlueprint();\n $blueprint->char('char_column', 'max');\n\n $grammar = $this...
[ "0.83703816", "0.7251879", "0.6801035", "0.6551734", "0.6475423", "0.6435409", "0.6345806", "0.6333435", "0.63158756", "0.62908334", "0.6236277", "0.60493743", "0.60095286", "0.5971109", "0.5969356", "0.59386826", "0.59386826", "0.5921968", "0.5907171", "0.5903398", "0.588657...
0.83864635
0
Renames a table. ===== Example rename_table('octopuses', 'octopi')
Переименовывает таблицу. ===== Пример rename_table('octopuses', 'octopi')
abstract public function renameTable($name, $newName);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function rename_table($table, $new_name) { }", "abstract function renameTable($tablename, $newTableName);", "public function renameTable($table, $newName)\n {\n return \"ALTER TABLE $table rename $newName\";\n }", "public function renameTable($table,$newName)\n\t{\n\t\treturn 'RENAME T...
[ "0.8476296", "0.802976", "0.72838765", "0.7157384", "0.7154034", "0.71362114", "0.70330465", "0.7021734", "0.701591", "0.69800544", "0.6928381", "0.68905604", "0.6762576", "0.6726001", "0.65548825", "0.65452373", "0.6525788", "0.6510876", "0.6505895", "0.6461019", "0.6450179"...
0.81348276
1
Changes the column's definition according to the new options. See TableDefinitioncolumn for details of the options you can use. ===== Examples change_column(:suppliers, :name, :string, :limit => 80) change_column(:accounts, :description, :text)
Изменяет определение столбца в соответствии с новыми параметрами. См. TableDefinitioncolumn для деталей параметров, которые вы можете использовать. ===== Примеры change_column(:suppliers, :name, :string, :limit => 80) change_column(:accounts, :description, :text)
abstract public function changeColumn($tableName, $columnName, $type, $options=array());
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function changeColumn($table, $name, $options) {\n\t\tif (!in_array($this->_db->fullTableName($table, false, false), $this->_db->listSources())) {\n\t\t\tthrow new MissingTableException(__d('migration', 'Table \"%s\" does not exist in database.', $this->_db->fullTableName($table, false, false)));\n\t\t}\n\t...
[ "0.67082614", "0.6631627", "0.6593377", "0.6544525", "0.65426266", "0.6511237", "0.6497284", "0.6477117", "0.64454603", "0.6443194", "0.6406818", "0.639909", "0.63939863", "0.6367501", "0.6364539", "0.63497245", "0.63314086", "0.63096637", "0.6307249", "0.6290039", "0.6284877...
0.7380014
0
Sets a new default value for a column. If you want to set the default value to +NULL+, you are out of luck. You need to DatabaseStatementsexecute the apppropriate SQL statement yourself. ===== Examples change_column_default(:suppliers, :qualification, 'new') change_column_default(:accounts, :authorized, 1)
Устанавливает новое значение по умолчанию для столбца. Если вы хотите установить значение по умолчанию в виде +NULL+, вам не повезёт. Вам нужно самому выполнить соответствующее SQL-запрос через DatabaseStatements. ===== Примеры change_column_default(:suppliers, :qualification, 'new') change_column_default(:accounts, :a...
abstract public function changeColumnDefault($tableName, $columnName, $default);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function views_pgsql_field_set_default(&$ret, $table, $field, $default) {\n if ($default == NULL) {\n $default = 'NULL';\n }\n else {\n $default = is_string($default) ? \"'$default'\" : $default;\n }\n\n $ret[] = update_sql('ALTER TABLE {'. $table .'} ALTER COLUMN '. $field .' SET DEFAULT '. $default);\...
[ "0.69948083", "0.6804684", "0.67044467", "0.6670743", "0.65378034", "0.65378034", "0.63962376", "0.638945", "0.6327899", "0.6303085", "0.6255699", "0.61614263", "0.61474437", "0.6145071", "0.60950595", "0.6012061", "0.5954473", "0.59316516", "0.59310687", "0.59274817", "0.586...
0.7746318
0
Renames a column. ===== Example rename_column(:suppliers, :description, :name)
Переименовывает столбец. ===== Пример rename_column(:suppliers, :description, :name)
abstract public function renameColumn($tableName, $columnName, $newColumnName);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function rename_column($table_name, $column_name, $new_column_name);", "function RenameColumn($TableID, $FieldID, $NewFieldName, $NewFieldType){\n $OldFieldName = RequestFieldTableDetail($FieldID, \"FieldName\");\n $sql = ChangeField($FieldID, $NewFieldName, $NewFieldType);\n $sql .= \"ALTER TABLE \" ....
[ "0.84942955", "0.70128846", "0.7010143", "0.6976941", "0.6905221", "0.68968695", "0.6863109", "0.68320775", "0.6831661", "0.6800344", "0.67016906", "0.6396773", "0.6371145", "0.63544095", "0.6228413", "0.61912304", "0.61234343", "0.61201555", "0.610727", "0.6077965", "0.60716...
0.77127475
1
Hook vt_row_pre_post_actions_merge handler Prepare user reputation for showing in topic messages
Обработчик Hook vt_row_pre_post_actions_merge Подготовка пользовательской репутации для отображения в сообщениях темы
public function vt_row_pre_post_actions_merge($cur_post, $forum_user) { if ($cur_post['poster_id']!=1 && $forum_user['g_rep_enable'] == 1 && App::$forum_config['o_reputation_enabled'] == 1 && $cur_post['rep_enable'] == 1 && $forum_user['rep_disable_adm'] == 0 && $forum_user['rep_enable'] == 1) { App::$forum_pag...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function incrementrep(){\n // DO NOT USE incrementrep, PLEASE INTEGRATE THIS FUNCTIONALITY INTO\n // CHANGE STATUS TO MONITOR FOR CERTAIN SET PHASES IN ITEM STATUS\n //$params = array(':action' => $action,\n // ':UserID' => $_SESSION['userid']);\n ...
[ "0.5434813", "0.53336567", "0.5320534", "0.52939206", "0.51814127", "0.51171964", "0.5093313", "0.5039304", "0.5036896", "0.5032914", "0.50056267", "0.49592477", "0.4953947", "0.49389845", "0.49082655", "0.49032524", "0.48997816", "0.48592138", "0.48502105", "0.4844544", "0.4...
0.7349282
0
Hook agr_add_edit_group_flood_fieldset_end handler Show admin group setting form for reputation
Обработчик Hook agr_add_edit_group_flood_fieldset_end отображает форму настройки администраторской группы для репутации
public function agr_add_edit_group_flood_fieldset_end($group) { View::$instance = View::factory(FORUM_ROOT.'extensions/reputation/view/admin_group_setting', array('group' => $group)); echo View::$instance->render(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function agr_add_edit_group_flood_fieldset_end($group)\n\t{\n\t\tView::$instance = View::factory(FORUM_ROOT.'extensions/k_fields/view/admin_group_setting', array('group' => $group));\n\t\techo View::$instance->render();\n\t}", "public function agr_add_edit_group_flood_fieldset_end($group)\n\t{\n\t...
[ "0.764741", "0.75156844", "0.70513546", "0.6813071", "0.6803394", "0.6791285", "0.6673446", "0.66633093", "0.6620631", "0.6537725", "0.6355202", "0.6272672", "0.62580496", "0.62575734", "0.624073", "0.6233087", "0.62159586", "0.62057877", "0.6200858", "0.6173012", "0.614434",...
0.8015279
0
Hook aop_features_message_fieldset_end handler Show global reputation setting form
Привязать обработчик aop_features_message_fieldset_end Показать форму настройки глобальной репутации
public function aop_features_message_fieldset_end() { $forum_page['group_count'] = $forum_page['item_count'] = 0; View::$instance = View::factory(FORUM_ROOT.'extensions/reputation/view/admin_options_features', array('forum_page' => $forum_page)); echo View::$instance->render(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function recount_preferences_form()\n { \n global $IN, $DSP, $LANG, $PREFS;\n\n if ( ! $DSP->allowed_group('can_admin_utilities'))\n {\n return $DSP->no_access_message();\n }\n \n $recount_batch_total = $PREFS->ini('recount_batch_total'); \n \n ...
[ "0.64422584", "0.63018805", "0.6070325", "0.5912343", "0.58624804", "0.5856677", "0.58259195", "0.58194155", "0.58192325", "0.5818208", "0.577918", "0.57701254", "0.5688817", "0.5667934", "0.5657547", "0.5619361", "0.5618595", "0.5608309", "0.5602058", "0.55882376", "0.558696...
0.7541463
0
Thrown when a MySQL database name is too long.
Выбрасывается при слишком длинном имени базы данных MySQL.
public static function yourMySQLDatabaseNameIsTooLongCouldYouChangeItThx($database): self { return new self( "The database name \"$database\" is longer than MySQL's limit (64 characters). " . "Please use a shorter database name" ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function yourPostgreSQLDatabaseNameIsTooLongCouldYouChangeItThx($database): self\n {\n return new self(\n \"The database name \\\"$database\\\" is longer than PostgreSQL's limit (63 characters). \"\n . \"Please use a shorter database name\"\n );\n }", "publ...
[ "0.65730315", "0.6280757", "0.59526134", "0.58457845", "0.57330614", "0.565282", "0.5643877", "0.5608776", "0.5608413", "0.55589664", "0.5520483", "0.5463711", "0.543925", "0.54289454", "0.53664446", "0.5333217", "0.5287765", "0.5265738", "0.5255495", "0.52500296", "0.5228937...
0.7492121
0
Thrown when a PostgreSQL database name is too long.
Выбрасывается, когда имя базы данных PostgreSQL слишком длинное.
public static function yourPostgreSQLDatabaseNameIsTooLongCouldYouChangeItThx($database): self { return new self( "The database name \"$database\" is longer than PostgreSQL's limit (63 characters). " . "Please use a shorter database name" ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function yourMySQLDatabaseNameIsTooLongCouldYouChangeItThx($database): self\n {\n return new self(\n \"The database name \\\"$database\\\" is longer than MySQL's limit (64 characters). \"\n . \"Please use a shorter database name\"\n );\n }", "public functio...
[ "0.674948", "0.6129813", "0.57526404", "0.569815", "0.5694371", "0.5689329", "0.5600226", "0.5584826", "0.5558208", "0.5448948", "0.54460317", "0.5441939", "0.5424497", "0.5373032", "0.53573817", "0.52917415", "0.52820766", "0.525634", "0.521325", "0.5193536", "0.5190077", ...
0.7725435
0
A database builder has been executed a second time.
База данных была построена во второй раз.
public static function databaseBuilderAlreadyExecuted(): self { return new self('This DatabaseBuilder has already been executed'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function updateDatabase() {}", "protected function afterRefreshingDatabase()\n {\n // ...\n }", "function drush_sql_bootstrap_further() {}", "public function refreshDatabase(): void\n {\n if (File::exists($this->databaseCopy)) {\n File::copy($this->databaseCopy, $thi...
[ "0.63778704", "0.6141189", "0.58230627", "0.58071506", "0.580082", "0.57913995", "0.57795537", "0.57308203", "0.57229555", "0.5718907", "0.5711574", "0.5710278", "0.56568927", "0.5625186", "0.5622135", "0.56121385", "0.5595303", "0.5572972", "0.55711496", "0.55653757", "0.555...
0.74247134
0
get all the SurveyQuestionTypes from the database using the database query
получить все SurveyQuestionTypes из базы данных с помощью базового запроса
public function getAllSurveyQuestionTypes(){ $SurveyQuestionTypeList = array(); $this->_DB->doQuery("SELECT * FROM svms_survey_question_type"); $rows = $this->_DB->getAllRows(); for($i = 0; $i < sizeof($rows); $i++) { $row = $rows[$i]; $this->_SurveyQuestionType = new SurveyQuestionType(); $thi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getQuestionTypes()\n{\n GLOBAL $dbObject;\n GLOBAL $toJsonString; \n\n $dbObject->querySelect(\"select type.id,type.type,type_class.typeClass from type \n inner join type_class on type.type_class_id = type_class.id\n where type_class.typeClass = 'Question'\");\n if($dbOb...
[ "0.68432087", "0.6818879", "0.6792482", "0.67364824", "0.67201823", "0.6638022", "0.6611776", "0.6600196", "0.6572753", "0.65702194", "0.6457229", "0.6399469", "0.62906575", "0.62208855", "0.6211177", "0.62087196", "0.62052876", "0.6197183", "0.6168452", "0.60286295", "0.6028...
0.8067531
0
create SurveyQuestionType funtion with the SurveyQuestionType object
создать функцию SurveyQuestionType с объектом SurveyQuestionType
public function createSurveyQuestionType($SurveyQuestionType){ $ID=$SurveyQuestionType->getID(); $Type=$SurveyQuestionType->getType(); $SQL = "INSERT INTO svms_survey_question_type(ID,Type) VALUES('$ID','$Type')"; $SQL = $this->_DB->doQuery($SQL); $Result = new Result(); $Result->setIsSuccess(1); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createQuestion($type = self::TEXT_QUESTION);", "public function createAnswer($type = self::TEXT_ANSWER);", "function getQuestionType()\n\t{\n\t\treturn \"SurveyTextQuestion\";\n\t}", "function create_question($survey_id, $type, $instructions, $question, $position){\n $query = \"INSERT IN...
[ "0.728715", "0.6252549", "0.6134329", "0.61332893", "0.61273754", "0.60984534", "0.60491896", "0.59258723", "0.5922386", "0.58980566", "0.58807343", "0.5846041", "0.58316976", "0.58316976", "0.5820441", "0.57951695", "0.57845926", "0.57623184", "0.57578623", "0.57548463", "0....
0.739926
0
update an SurveyQuestionType object based on its
обновить объект SurveyQuestionType на основе его
public function updateSurveyQuestionType($SurveyQuestionType){ $SQL = "UPDATE svms_survey_question_type SET Type='".$SurveyQuestionType->getType()."' WHERE ID='".$SurveyQuestionType->getID()."'"; $SQL = $this->_DB->doQuery($SQL); $Result = new Result(); $Result->setIsSuccess(1); $Result->setResultObject(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function update(QuestionTypeRequest $request, QuestionType $type)\n {\n try {\n $this->questionTypeService->update($request,$type->id);\n return response(ResponseMessage::SuccessMessage());\n } catch (\\Exception $ex) {\n return response(ResponseMessage::Err...
[ "0.6519258", "0.64189756", "0.6331724", "0.62775236", "0.6247965", "0.6204414", "0.61868334", "0.616877", "0.61533177", "0.5995423", "0.59811944", "0.5968166", "0.5955728", "0.5947535", "0.58068603", "0.57893425", "0.5747765", "0.57416606", "0.56920356", "0.568217", "0.565385...
0.7051962
0
delete an SurveyQuestionType based on its id of the database
удалить SurveyQuestionType по его идентификатору из базы данных
public function deleteSurveyQuestionType($SurveyQuestionType){ $SQL = "DELETE from svms_survey_question_type where ID ='".$SurveyQuestionType->getID()."'"; $SQL = $this->_DB->doQuery($SQL); $Result = new Result(); $Result->setIsSuccess(1); $Result->setResultObject($SQL); return $Result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function delete_survey_question($id){ \n $this->db->where('s_id', $id); \n $query = $this->db->delete(\"map_question_to_survey\"); \n return 1;\n }", "public function question_delete($question_id) {\n\t\t$this->db->where('id', $question_id);\n\t\t$this->db->delete('question')...
[ "0.7503673", "0.7026128", "0.69586694", "0.6890311", "0.68694395", "0.6652389", "0.6611653", "0.65676403", "0.65656596", "0.6562394", "0.6548172", "0.65480137", "0.6505084", "0.64886236", "0.6471139", "0.64645123", "0.6454815", "0.6453484", "0.6405138", "0.6358994", "0.635194...
0.7352589
1
Sorts posts by time they were posted
Сортирует посты по времени их публикации
function sortByDate($a, $b) { return strtotime($a['posttime']) < strtotime($b ['posttime']); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function sortPosts()\n {\n $this->app->writeln(\"\\n<comment>Sorting</comment>\");\n\n $cmpFn = function (Content $one, Content $other) {\n // Sort by chapters\n if ($one instanceof Doc && $other instanceof Doc) {\n if ($one->chapter == $other->chapter)...
[ "0.68184465", "0.6590421", "0.6505386", "0.64980805", "0.63972706", "0.63808453", "0.6267702", "0.6249608", "0.62476325", "0.6234239", "0.6230488", "0.616267", "0.60892826", "0.60307634", "0.59757113", "0.59741503", "0.58945125", "0.5886924", "0.5876811", "0.5872363", "0.5832...
0.70220226
0
Create a shortcode to query site options across the network [uri_network_option option="uridepartment" key="urid_jsinline"] option is the name of the option, key is used if the option is an array
Создайте короткий код для запроса опций сайта по всей сети [uri_network_option option="uridepartment" key="urid_jsinline"] option — это имя опции, key используется, если опция является массивом
function uri_network_option_shortcode( $atts ) { _uri_network_js(); $attributes = shortcode_atts( array( 'option' => 'uridepartment', // shortcode attributes to seek and their defaults 'key' => '', // if the option we query is an array, this key will show only the value for one element ), $atts ); $resul...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function uri_network_option_query( $option_name ) {\n\tglobal $wpdb;\n\t// get all the blog ids from the blogs table\n\t$blogs = $wpdb->get_results(\"SELECT blog_id FROM {$wpdb->blogs}\", ARRAY_A);\n\n\t// build a sql statement for each blog options table, adding in the blog id for each row\n\t$sqls = array();\n\t...
[ "0.67243224", "0.588586", "0.57322246", "0.5703075", "0.5682383", "0.56587636", "0.5650435", "0.5621059", "0.56180125", "0.560835", "0.5608013", "0.5584795", "0.5581481", "0.5563861", "0.55457175", "0.5444229", "0.54387206", "0.53900075", "0.53894776", "0.5361304", "0.5361296...
0.813686
0
Count up the number of crops that have already been created and return true if they are at the max number. For:
Посчитайте количество уже созданных культур и верните true, если их количество достигло максимального. Для:
private function tooManyCrops($src) { // If there is no max set, we are applying no limit if (empty($this->config['max_crops'])) return false; // Count up the crops $found = 0; $parts = pathinfo($src); $files = scandir($parts['dirname']); foreach($files as $file) { // Check if this file, when...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hasMaxautopos(){\n return $this->_has(4);\n }", "public function hasMaxFindings(){\n return $this->_has(3);\n }", "private function checkCountProcess()\n {\n $maxLoop = 30;\n $nbLoop = 0;\n\n while ($this->countProcess == $this->limitProcess) {\n ...
[ "0.643093", "0.622402", "0.5865137", "0.561652", "0.55662525", "0.5557466", "0.5538858", "0.55304664", "0.55184275", "0.54898316", "0.54898316", "0.5489133", "0.54822636", "0.54435545", "0.5428175", "0.5417899", "0.5415454", "0.5407741", "0.54061025", "0.5399048", "0.5394133"...
0.7139412
0
Retrieves the user with the specified credentials from LDAP. Returns null if the user could not be found. If the optional $checkDatabaseModel flag has been set to false, it will instead return true if the authentication was successful.
Получает пользователя с указанными учетными данными из LDAP. Возвращает null, если пользователь не был найден. Если необязательный флаг $checkDatabaseModel установлен в false, вместо этого возвращается true, если аутентификация прошла успешно.
public function retrieveByCredentials(array $credentials, $checkDatabaseModel=true) { $u = $credentials['username']; $p = $credentials['password']; $m = $this->modelName; // attempt to auth with the credentials provided first try { // attempt regular authentication if($this->...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getUser()\n {\n $userClass = $this->userClass;\n $identity = $this->session->get(self::TOKEN_NAME);\n if (isset($identity[ 'id' ])) {\n $user = $userClass::findFirst([\n 'conditions' => $userClass::getQualifier() . ' = :val:',\n 'bind...
[ "0.65644693", "0.64533186", "0.63491625", "0.63475424", "0.63162935", "0.63136923", "0.63119495", "0.62969035", "0.62418145", "0.62001854", "0.6197134", "0.6150705", "0.6121679", "0.609405", "0.60854346", "0.6065621", "0.6022355", "0.60188353", "0.6013962", "0.6013735", "0.59...
0.7794013
0
Manages the states of certain controls in the UI: date shown, category selected, ... The state of all these controls is updated if they are set in $_REQUEST or $set_states and saved in the session. The following states are used: date or year, month, day: the actual date of the period displayed cat_id: the selected cate...
Управляет состояниями определенных элементов управления в интерфейсе: отображаемая дата, выбранная категория и т.д. Состояние всех этих элементов обновляется, если они заданы в $_REQUEST или $set_states и сохранены в сессии. Используются следующие состояния: дата или год, месяц, день: реальная дата периода, который ото...
function manage_states($set_states=NULL) { // retrieve saved states from prefs $states = is_array($this->bo->cal_prefs['saved_states']) ? $this->bo->cal_prefs['saved_states'] : unserialize($this->bo->cal_prefs['saved_states']); // only look at _REQUEST, if we are in the calendar (prefs and admin show our s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function _populateState()\n\t{\n\t\t/**\n\t\t * Compute the client state\n\t\t */\n\t\t$client = & JRequest::getVar('client', 0, '', 'int');\n\t\t$this->setState('client',$client);\n\t\t/**\n\t\t * Compute the option state\n\t\t */\n\t\t$option = & JRequest::getCmd('option', 'com_languages');\n\t\t$this-...
[ "0.58667314", "0.5852283", "0.5820053", "0.57794446", "0.57606685", "0.5574653", "0.55175644", "0.5445683", "0.54040027", "0.54023206", "0.5387548", "0.5363717", "0.5342939", "0.5322216", "0.5315447", "0.530957", "0.52762127", "0.5257444", "0.5257214", "0.52424264", "0.523952...
0.72313255
0
gets the icons displayed for a given event
получает иконки, отображаемые для заданного события
function event_icons($event) { $is_private = !$event['public'] && !$this->bo->check_perms(EGW_ACL_READ,$event); $icons = array(); if (!$is_private) { if($event['priority'] == 3) { $icons[] = html::image('calendar','high',lang('high priority')); } if($event['recur_type'] != MCAL_RECUR_NONE) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getEventEmoticons()\n {\n $result = array(\n '100' => 'e_100_crying.png',\n '101' => 'e_101_sad.png',\n '102' => 'e_102_happy.png',\n '103' => 'e_103_upset.png',\n '104' => 'e_104_silent.png',\n '105' => 'e_105_tired.png',\...
[ "0.67890364", "0.6509247", "0.63946104", "0.624154", "0.6234982", "0.6207065", "0.6174903", "0.6168629", "0.60788393", "0.6075353", "0.60696757", "0.6068255", "0.59962964", "0.59396327", "0.5937041", "0.5913469", "0.5900495", "0.58912766", "0.58398247", "0.58287936", "0.57796...
0.7782762
0
creates the content for the sideboxmenu, called as hook
создает содержимое для sideboxmenu, вызываемое как хук
function sidebox_menu() { $link_vars = array(); // Magic etemplate2 favorites menu (from framework) display_sidebox('calendar', lang('Favorites'), egw_framework::favorite_list('calendar')); $file = array('menuOpened' => true); // menu open by default // Target for etemplate $file[] = array( 'no_lang' ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function sidemenu();", "function sidebox($appname,$menu_title,$file,$type=null)\n\t{\n\t\tif((!$appname || ($appname==$GLOBALS['egw_info']['flags']['currentapp'] && $file)) && is_object($this->tpl))\n\t\t{\n\t\t\t// fix app admin menus to use admin.admin_ui.index loader\n\t\t\tif (($type == 'admin' || $me...
[ "0.68288374", "0.67048514", "0.66754955", "0.6640059", "0.66108", "0.64445615", "0.64445615", "0.64445615", "0.64445615", "0.64445615", "0.64445615", "0.64293003", "0.6320872", "0.63070893", "0.6292848", "0.62879276", "0.6283935", "0.62449706", "0.62418526", "0.62418526", "0....
0.70539
0
Return a device type matching the provided device type ID
Вернуть тип устройства, соответствующий предоставленному идентификатору типа устройства
protected function findDeviceTypeByID($deviceTypeID=null, $pageNumber=1) { $pageSize = 100; /** * @var Lounge2_DeviceTypes */ $deviceTypes = null; /** * @var Lounge2_DeviceType */ $foundDeviceType = null; $recordCount = 0; if (isset($deviceTypeID)) { $deviceTypesCo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getDevice($type, $id) {\n $deviceKey = sprintf(self::DEVICE_KEY_FORMAT, $type, $id);\n return val($deviceKey, $this->devices, false);\n }", "abstract public function getDeviceFromID($wurflID);", "public function getType($id)\n {\n return $this->types->find($id);\n ...
[ "0.7122091", "0.6426664", "0.6318387", "0.62898153", "0.62154424", "0.6208339", "0.6177796", "0.6163515", "0.61405003", "0.6126201", "0.60712063", "0.60052675", "0.5998946", "0.59921026", "0.59751475", "0.5959575", "0.5951767", "0.59314734", "0.59083974", "0.58887875", "0.588...
0.70899683
1
Store a newly created DetailPurchaseOrder in storage.
Храните только что созданный DetailPurchaseOrder в хранилище.
public function store(CreateDetailPurchaseOrderRequest $request) { $input = $request->all(); $detailPurchaseOrder = $this->detailPurchaseOrderRepository->create($input); Flash::success('Detail Purchase Order saved successfully.'); return redirect(route('detailPurchaseOrders.index')...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store(OrderDetailRequest $request)\n {\n $order_detail = new OrderDetail();\n $order_detail->order_id = $request->order_id;\n $order_detail->product_id = $request->product_id;\n $order_detail->number = $request->number;\n $order_detail->save();\n Session...
[ "0.7025151", "0.66535294", "0.64397913", "0.6417689", "0.64062256", "0.6279551", "0.6271901", "0.6262795", "0.62343395", "0.6224671", "0.6205614", "0.6153301", "0.6111264", "0.6107396", "0.60851043", "0.6069071", "0.60327697", "0.6019476", "0.60115206", "0.6001674", "0.599752...
0.7190438
0
Returns the achievements for this stats' user and game. If the achievements haven't been parsed already, parsing is done now.
Возвращает достижения для пользователя и игры этих статистик. Если достижения еще не были проанализированы, анализ выполняется сейчас.
public function getAchievements() { if(empty($this->achievements)) { foreach($this->xmlData->achievements as $achievement) { $this->achievements[] = new GameAchievement($this->steamId, $this->appId, $achievement->name, ($achievement->closed == 1)); } } return $this->achievements; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAchievements($userId, $gameId) : AchievementList\n {\n // Create the URL to get the user's achievements.\n $url1 = $this->baseAPIUrl . 'ISteamUserStats/GetPlayerAchievements/v0001/';\n $parameters1 = '?key=' . $this->apiKey . '&steamid=' . $userId . '&appid=' . $gameId;\n...
[ "0.700838", "0.6888164", "0.6736874", "0.67077935", "0.61174524", "0.5997182", "0.5964525", "0.58860457", "0.5881419", "0.57845706", "0.5721193", "0.54154307", "0.5405632", "0.53868926", "0.53746945", "0.53628254", "0.53393984", "0.52848417", "0.5195309", "0.5113658", "0.5100...
0.77647614
0
/ / Head Hook /
// Head Hook /
function of_head() { do_action( 'of_head' ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function head() {\n}", "public function hookHeader()\n {\n if ($this->active == false) {\n return;\n }\n /*$version = Tools::substr(_PS_VERSION_, 0, 3);\n $this->context->controller->addJS($this->_path . 'views/js/' . $version . '/front.js');\n $this->context->con...
[ "0.7084437", "0.7005963", "0.69305676", "0.6885948", "0.6862241", "0.6853299", "0.68238664", "0.6777349", "0.6762992", "0.6706614", "0.6706614", "0.669856", "0.66914326", "0.66914326", "0.6647187", "0.6619999", "0.65411794", "0.6524705", "0.64975286", "0.64972293", "0.6476566...
0.7480864
0
The project default locale.
Служебный локаль проекта.
public function getDefaultLocale();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getDefaultLocale(): string\n {\n return self::proxy()->getDefaultLocale();\n }", "public function getDefaultLocale()\n {\n return $this->defaultLocale;\n }", "public static function getDefaultLocale(): string\n {\n return static::$_defaultLocale ??= Lo...
[ "0.8466131", "0.8414207", "0.8330448", "0.8076043", "0.7986099", "0.7982975", "0.7834321", "0.78227395", "0.78076315", "0.7737386", "0.77076167", "0.7677395", "0.7663101", "0.76413435", "0.7625594", "0.7622443", "0.7587807", "0.7571394", "0.7479165", "0.7471903", "0.745874", ...
0.85121536
1
Set the project default locale.
Установите язык проекта по умолчанию.
public function setDefaultLocale(Locale $locale);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setLocale()\n {\n // Initialize Locale if set and configured.\n if ($this['language']->enabled() && $this['config']->get('system.languages.override_locale')) {\n $language = $this['language']->getLanguage();\n setlocale(LC_ALL, strlen($language) < 3 ? ($langua...
[ "0.76077527", "0.7585429", "0.7585429", "0.7585429", "0.747743", "0.7384005", "0.7365431", "0.7270496", "0.7265019", "0.71365434", "0.71016926", "0.70489484", "0.6963189", "0.6928253", "0.69236934", "0.6917887", "0.686607", "0.6841932", "0.6838542", "0.6828517", "0.6809844", ...
0.79620534
0
Display login error view
Показать вид с ошибкой входа
function login_error() { $this->template->render('login'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function loginerror()\n {\n Session::set('csrf_token', uniqid('', true));\n \n $data['title'] = '&Uuml;bersicht';\n $this->_view->render('header', $data);\n $this->_view->render('public/login', $data);\n $data['sportarten'] = $this->_common->getSportarten();\n ...
[ "0.81973755", "0.7692689", "0.74482507", "0.74386597", "0.7386358", "0.7313822", "0.73043174", "0.72825575", "0.7274795", "0.7213097", "0.71221393", "0.7096887", "0.7005409", "0.7002236", "0.69927675", "0.69801563", "0.697241", "0.6965927", "0.69568825", "0.6938222", "0.69255...
0.8262101
0
Returns all possible Queue tasks. Makes sure that app tasks are prioritized over plugin ones.
Возвращает все возможные задачи очереди. Убедитесь, что задачи приложения имеют приоритет над задачами плагинов.
public function allAppAndPluginTasks() { if ($this->tasks !== null) { return $this->tasks; } $paths = App::classPath('Shell/Task'); $this->tasks = []; foreach ($paths as $path) { $Folder = new Folder($path); $this->tasks = $this->getAppPaths($Folder); } $plugins = Plugin::loaded(); foreach ($...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function allAppAndPluginTasks() {\n\n if ($this->tasks !== null) {\n return $this->tasks;\n }\n\n $this->tasks = [];\n $this->tasks = array_merge($this->tasks, $this->getAppTasks());\n $this->tasks = array_merge($this->tasks, $this->getPluginTasks());\n\n ...
[ "0.750569", "0.6423341", "0.6307879", "0.629579", "0.6269921", "0.62667197", "0.61603916", "0.61603916", "0.6129958", "0.6067746", "0.60615784", "0.60532874", "0.6033639", "0.6033639", "0.6015597", "0.60050344", "0.59956026", "0.59956026", "0.5994372", "0.59905833", "0.598997...
0.717024
1
Show the form for creating a new tbluploadtypes
Показать форму для создания нового tbluploadtypes
public function create() { return view('admin.tbluploadtypes.create'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function new_file_types_form()\n {\n $admin = geoAdmin::getInstance();\n\n $toolTip['mime_type'] = geoHTML::showTooltip('File Mime Type', 'This tag is passed to the server by the uploading computer to let the server know what kind of file is being uploaded. There are several places to identify thi...
[ "0.72822237", "0.72329265", "0.6980889", "0.6922579", "0.6893666", "0.68843293", "0.68763435", "0.68747604", "0.68732363", "0.6815502", "0.67877144", "0.6784351", "0.6749895", "0.67427707", "0.6730911", "0.6722461", "0.6719071", "0.6715069", "0.6704908", "0.6703858", "0.67035...
0.8110914
0
Show the form for editing the specified tbluploadtypes.
Показать форму для редактирования указанного tbluploadtypes.
public function edit($id) { $tbluploadtypes = Tbluploadtypes::find($id); return view('admin.tbluploadtypes.edit', compact('tbluploadtypes')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function start_form( $type='new' )\r\n\t{\r\n\t\tif( $type == 'edit' )\r\n\t\t{\r\n\t\t\t$file_id = intval($this->ipsclass->input['id']);\r\n\t\t\t\r\n\t\t\t$this->ipsclass->DB->build_query( array( 'select' \t=> 'file_id, file_cat, file_name, file_submitter',\r\n\t\t\t\t\t\t\t\t\t\t\t\t \t 'from'\t\t=> 'downloads_...
[ "0.66266364", "0.6614322", "0.6392237", "0.6366902", "0.63609105", "0.63495886", "0.6344252", "0.6313372", "0.62072474", "0.6177606", "0.6147898", "0.61429524", "0.6114033", "0.60670996", "0.59985334", "0.5981075", "0.5980994", "0.59765536", "0.59640545", "0.5948576", "0.5947...
0.70328546
0
The payment info of the service (also known as billing text). Note: The paymentInfo will be placed on the end user invoice bill.
Информация о платеже услуги (также известная как текст бухгалтерского учета). Примечание: PaymentInfo будет размещена на счете конечного пользователя.
public function get_payment_info() { return $this->_payment_info; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPayment_info()\n {\n return isset($this->payment_info) ? $this->payment_info : null;\n }", "abstract public function getPaymentInfo();", "function _getFormattedPaymentDetails() {}", "public function getPaymentInfo(){\n return null;\n }", "public function getPaymentDescri...
[ "0.7512567", "0.73447466", "0.6884826", "0.67297363", "0.6709403", "0.6683101", "0.667441", "0.66504574", "0.6631736", "0.6583612", "0.6532796", "0.652101", "0.65000564", "0.64942026", "0.647556", "0.644985", "0.6425935", "0.6398371", "0.635679", "0.6317314", "0.63092506", ...
0.7569121
0
The end user source IP
IP-адрес конечного пользователя
public function get_user_source_ip() { return $this->_user_source_IP; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static function getIp() : string\n {\n return $_SERVER['HTTP_X_FORWARDED_FOR'] ?? $_SERVER['REMOTE_ADDR'] ?? $_SERVER['HTTP_CLIENT_IP'] ?? \"\";\n }", "private function getUserIp(){\r\n return $_SERVER['REMOTE_ADDR'];\r\n }", "private function getIp()\n\t{\n\t\treturn $_SERVER['...
[ "0.82967263", "0.8285034", "0.82231486", "0.8199034", "0.81484133", "0.8134715", "0.8131692", "0.8129544", "0.8109257", "0.8062831", "0.8054311", "0.8030542", "0.8028441", "0.8028045", "0.80175334", "0.80011266", "0.7998009", "0.7992073", "0.79901093", "0.7983235", "0.7983235...
0.8472074
0
Export with Multi Websites "Customer Main File".
Экспорт с нескольких сайтов "Файл основного клиента".
public function testExportWithMultiWebsites(): void { $this->processCustomerAttribute(); $expectedAttributes = $this->getExpectedAttributes(); $lines = $this->export($expectedAttributes); $this->checkExportData($lines, $expectedAttributes); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function export() {\n\t\tif(isset($_REQUEST['baseurl'])) {\n\t\t\t$base = $_REQUEST['baseurl'];\n\t\t\tif(substr($base,-1) != '/') $base .= '/';\n\t\t\tDirector::setBaseURL($base);\n\t\t}\n\t\t\n\t\t// setup temporary folders\n\t\t$tmpBaseFolder = TEMP_FOLDER . '/static-export';\n\t\t$tmpFolder = (project()) ? \"$...
[ "0.6157084", "0.5941677", "0.5904568", "0.5849934", "0.58426404", "0.5828067", "0.57305163", "0.5702954", "0.5692289", "0.56879795", "0.5680189", "0.5669298", "0.56647503", "0.5651574", "0.5651522", "0.5651522", "0.5651522", "0.5651522", "0.5651522", "0.5651522", "0.5651522",...
0.74291766
0
Check that attribute is multiselect type by attribute code.
Проверьте, что атрибут имеет тип множественного выбора по коду атрибута.
private function isMultiselect(string $attributeCode): bool { return isset($this->attributeTypes[$attributeCode]) && $this->attributeTypes[$attributeCode] === 'multiselect'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function isMultiselect($attributeCode)\n {\n return isset($this->attributeTypes[$attributeCode])\n && $this->attributeTypes[$attributeCode] === 'multiselect';\n }", "public function getIsMultipleAttribute()\n {\n $fieldType = Arr::get($this->config, 'field_type');\n ...
[ "0.7273487", "0.673244", "0.63744646", "0.61093855", "0.5804558", "0.5803087", "0.58018464", "0.5797295", "0.5787265", "0.57486403", "0.57486403", "0.5744293", "0.57156324", "0.5652333", "0.56208694", "0.5568132", "0.5521397", "0.5520434", "0.5481468", "0.5462939", "0.5437702...
0.7352763
0
Test entity type code value
Код значения типа сущности тестирования
public function testGetEntityTypeCode() { $this->assertEquals('customer', $this->_model->getEntityTypeCode()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function entityTypeCode() : string;", "abstract public function getEntityTypeCode();", "public function getEntityTypeCode(): string\n {\n return self::ENTITY_CODE;\n }", "public function testGetValueElementType()\n {\n $this->assertEquals('text', $this->model->getValueE...
[ "0.7484078", "0.71308136", "0.6570743", "0.63073236", "0.62660974", "0.62256885", "0.62091374", "0.60406554", "0.6030763", "0.5967718", "0.596421", "0.59527075", "0.59517384", "0.5947221", "0.5924732", "0.59098935", "0.5850583", "0.58480436", "0.584191", "0.5840619", "0.58218...
0.77348953
0
Test type of attribute collection
Тип тестирования сборки атрибутов
public function testGetAttributeCollection() { $this->assertInstanceOf(Collection::class, $this->_model->getAttributeCollection()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function masvideos_has_custom_attribute_types() {\n $types = masvideos_get_attribute_types();\n\n return 1 < count( $types ) || ! array_key_exists( 'select', $types );\n}", "public function testGetAttributeType()\n {\n $this->markTestIncomplete();\n }", "function wc_has_custom_attribute_type...
[ "0.6524664", "0.6476007", "0.64198375", "0.63621676", "0.6350334", "0.6312573", "0.62811613", "0.6169133", "0.6165019", "0.6165019", "0.60530424", "0.60215664", "0.5995178", "0.59785116", "0.59779865", "0.5975404", "0.5971997", "0.59635884", "0.5963035", "0.5913259", "0.59109...
0.7730813
0
Test for method filterAttributeCollection()
Тест для метода filterAttributeCollection()
public function testFilterAttributeCollection() { /** @var $collection Collection */ $collection = $this->_model->getAttributeCollection(); $collection = $this->_model->filterAttributeCollection($collection); /** * Check that disabled attributes is not existed in attribute c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract function attributesToFilter(): array;", "public function testGetAttributeCollection()\n {\n $this->assertInstanceOf(Collection::class, $this->_model->getAttributeCollection());\n }", "public function testFilter()\n {\n // filter all elements with lastname\n Coll...
[ "0.7605152", "0.72505677", "0.6824691", "0.65524465", "0.6542282", "0.6488586", "0.64448994", "0.64274853", "0.6410643", "0.6386186", "0.63516265", "0.6329805", "0.6286689", "0.6276355", "0.6232599", "0.62214595", "0.6178351", "0.6139452", "0.6128243", "0.6123528", "0.6117133...
0.8627701
0
Skips whitespace and comment. Stops when first token that is not whitespace or comment is occured.
Пропускает пробелы и комментарии. Останавливается, когда встречается первый токен, который не является пробелом или комментарием.
private function skipWhitespaceAndComment(Iterator $tokens) { while ($tokens->valid()) { $token = $tokens->current(); if (!is_array($token) || !in_array($token[0], [T_WHITESPACE, T_COMMENT])) { break; } $tokens->next(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function skip_whitespace()\n {\n }", "protected function skipWhitespacesAndComments()\n {\n $comments = [];\n $content = \"\";\n $secStartIdx = $this->index;\n while (($char = $this->charAt()) !== null) {\n //Whitespace\n if (in_array($char, $this...
[ "0.741132", "0.7276148", "0.70483524", "0.6684309", "0.65751946", "0.6531338", "0.630948", "0.63049537", "0.62566346", "0.6132258", "0.60595125", "0.60557693", "0.6042424", "0.5921067", "0.5874782", "0.58644193", "0.57705003", "0.5647308", "0.5619997", "0.5588155", "0.5577135...
0.7335035
1
The method to delete taxes
Метод удаления налогов
public function deleteTaxes(ParameterMap $paramInstance=null) { $handlerInstance=new CommonAPIHandler(); $apiPath=""; $apiPath=$apiPath.('/crm/v2/org/taxes'); $handlerInstance->setAPIPath($apiPath); $handlerInstance->setHttpMethod(Constants::REQUEST_METHOD_DELETE); $handlerInstance->setCategoryMethod...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function action_delete()\n\t{\n\t\tlog_debug(\"inc_taxes\", \"Executing action_delete()\");\n\n\n\t\t/*\n\t\t\tStart SQL Transaction\n\t\t*/\n\n\t\t$sql_obj = New sql_query;\n\t\t$sql_obj->trans_begin();\n\n\n\t\t/*\n\t\t\tDelete Tax\n\t\t*/\n\t\t\t\n\t\t$sql_obj->string\t= \"DELETE FROM account_taxes WHERE id='\"...
[ "0.7736614", "0.7404096", "0.7216548", "0.7167659", "0.70897543", "0.70320976", "0.70117795", "0.68903077", "0.67637044", "0.665936", "0.65951526", "0.657297", "0.6533349", "0.6505556", "0.6419498", "0.6419321", "0.64184123", "0.6369373", "0.6211949", "0.6141094", "0.6141094"...
0.74665564
1
The method to delete tax
Метод удаления налога
public function deleteTax(string $id) { $handlerInstance=new CommonAPIHandler(); $apiPath=""; $apiPath=$apiPath.('/crm/v2/org/taxes/'); $apiPath=$apiPath.(strval($id)); $handlerInstance->setAPIPath($apiPath); $handlerInstance->setHttpMethod(Constants::REQUEST_METHOD_DELETE); $handlerInstance->setC...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function action_delete()\n\t{\n\t\tlog_debug(\"inc_taxes\", \"Executing action_delete()\");\n\n\n\t\t/*\n\t\t\tStart SQL Transaction\n\t\t*/\n\n\t\t$sql_obj = New sql_query;\n\t\t$sql_obj->trans_begin();\n\n\n\t\t/*\n\t\t\tDelete Tax\n\t\t*/\n\t\t\t\n\t\t$sql_obj->string\t= \"DELETE FROM account_taxes WHERE id='\"...
[ "0.75717145", "0.74570924", "0.74476767", "0.7406843", "0.73762006", "0.73429376", "0.71944356", "0.7002066", "0.6948192", "0.69248235", "0.67071277", "0.6658688", "0.65604556", "0.6545095", "0.6544225", "0.65048915", "0.6454517", "0.6433717", "0.63899094", "0.6302488", "0.62...
0.76223254
0
Register the manager class.
Зарегистрируйте класс менеджера.
protected function registerManager(): void { $this->app->singleton('spikkl', function (Container $app) { return new Manager($app); }); $this->app->alias('spikkl', Manager::class); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function registerManager()\n {\n $this->app->singleton('permission', function () {\n new Manager();\n });\n }", "protected function registerManager()\n {\n $this->app->singleton('filereportgenerator', function () {\n return new FileReportGeneratorMana...
[ "0.761263", "0.7496366", "0.7433199", "0.7340381", "0.7296278", "0.7278282", "0.72644037", "0.7124151", "0.7073275", "0.69071996", "0.68558854", "0.6676333", "0.661379", "0.6578282", "0.64231235", "0.6358398", "0.63574845", "0.63541925", "0.6351173", "0.6341701", "0.6271027",...
0.7920273
0
Register the Spikkl API adapter class.
Зарегистрируйте класс адаптера Spikkl API.
protected function registerApiAdapter(): void { $this->app->singleton('spikkl.api', function (Container $app) { $config = $app['config']; return new ApiClientAdapter($config, $app['spikkl.api.client']); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function registerApiClient(): void\n {\n $this->app->singleton('spikkl.api.client', function () {\n return (new ApiClient())->addVersionString('Laravel/' . self::PACKAGE_VERSION);\n });\n\n $this->app->alias('spikkl.api.client', ApiClient::class);\n }", "protected ...
[ "0.6409758", "0.6247401", "0.6150575", "0.59119844", "0.5898995", "0.57120055", "0.5708576", "0.5698247", "0.56600803", "0.5636602", "0.56193477", "0.55790776", "0.55422455", "0.55064", "0.54984605", "0.54532605", "0.542758", "0.5370981", "0.53593683", "0.5348108", "0.5336767...
0.78899676
0
Register the Spikkl API Client.
Зарегистрируйте клиент API Spikkl.
protected function registerApiClient(): void { $this->app->singleton('spikkl.api.client', function () { return (new ApiClient())->addVersionString('Laravel/' . self::PACKAGE_VERSION); }); $this->app->alias('spikkl.api.client', ApiClient::class); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function registerDhlClient()\n {\n $this->app->singleton(Client::class, function () {\n return (new Client)->setUserId(config('dhlparcel.id'))->setApiKey(config('dhlparcel.secret'));\n });\n\n $this->app->alias(Client::class, 'dhlparcel');\n }", "protected function...
[ "0.66288733", "0.6626101", "0.65770423", "0.65467966", "0.6304791", "0.6092587", "0.60909224", "0.6048445", "0.60319436", "0.60319436", "0.60191697", "0.5966349", "0.5966349", "0.5960942", "0.59607446", "0.5938171", "0.5903075", "0.58792603", "0.585034", "0.58331", "0.5791898...
0.76684123
0
check if file updated by the last modification time
проверить, обновлен ли файл по времени последнего изменения
public function isFileUpdatedByTime() { $lastUpdated = filemtime(self::BASE_FILE_PATH); // check if the timestamp file is existed or not, if not then it is the first time running // write the last modification time of base file to this file if (!file_exists(self::BASE_FILE_LAST_UPDATED_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function isModified(): bool\n {\n \\clearstatcache(false, $this->file);\n\n return $this->lastModified < \\filemtime($this->file);\n }", "public function fileMetricsChanged()\n {\n //$lm = filemtime($this->getDownloadPath());\n $size = filesize($this->getDownloadPath());\n r...
[ "0.79453576", "0.7370825", "0.73637664", "0.7356327", "0.7326193", "0.7278332", "0.7273923", "0.7114673", "0.70834744", "0.7079472", "0.7063103", "0.70412326", "0.70116574", "0.70094585", "0.70032996", "0.69964427", "0.69713265", "0.69646156", "0.69206303", "0.69206303", "0.6...
0.84802336
0