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
Register middleware groups on the router.
Зарегистрируйте группы middleware на маршрутизаторе.
protected function registerMiddlewareGroups() { foreach ($this->middlewareGroups as $key => $middleware) { $this->router->middlewareGroup($key, $middleware); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function registerMiddleware()\n {\n foreach ($this->routeMiddleware as $key => $middleware) {\n $this->router->middleware($key, $middleware);\n }\n }", "protected function registerRouteMiddleware()\n {\n // register route middleware.\n foreach ($this->rou...
[ "0.7536375", "0.70073324", "0.6943897", "0.69401896", "0.6810473", "0.6803434", "0.6803434", "0.6803434", "0.6803434", "0.6694564", "0.66523147", "0.6572569", "0.648002", "0.6462815", "0.64618164", "0.6445089", "0.64074016", "0.64074016", "0.64074016", "0.6400989", "0.6371265...
0.8797743
0
Register the middlewares on the router.
Зарегистрируйте middleware на роутере.
protected function registerMiddleware() { foreach ($this->routeMiddleware as $key => $middleware) { $this->router->middleware($key, $middleware); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function registerMiddlewares()\n {\n $this->app['router']->aliasMiddleware('centurion.guest', CenturionRedirectIfAuthenticated::class);\n $this->app['router']->aliasMiddleware('centurion.auth', CenturionAuthenticate::class);\n $this->app['router']->aliasMiddleware('centurion.hasacces...
[ "0.80106723", "0.776971", "0.75409436", "0.7199919", "0.7196665", "0.7191226", "0.7143463", "0.702151", "0.7021146", "0.70103306", "0.6960549", "0.69534767", "0.69462556", "0.69462556", "0.69462556", "0.69462556", "0.6925819", "0.69199413", "0.6914242", "0.67931116", "0.67414...
0.81980276
0
Shorthand for a PluginOptions instance
Сокращение для экземпляра PluginOptions
function options_factory() { $locale = \Hbelv\Locale::create(); return \Hbelv\PluginOptions::create( $locale ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getOptions()\n {\n if (null === $this->options) {\n $this->setOptions(new PluginOptions());\n }\n return $this->options;\n }", "public function setOptions(array $options = array())\n\t{\n\t\tif (isset($options['plugins'])) {\n\t\t\t$this->_options['plugins'] ...
[ "0.71432", "0.6928967", "0.68378", "0.6683223", "0.6656692", "0.65983945", "0.6566201", "0.65459883", "0.64903635", "0.6405907", "0.6403191", "0.6393814", "0.6376045", "0.63648295", "0.63514626", "0.6328065", "0.62826973", "0.62826973", "0.6238631", "0.6192847", "0.6189876", ...
0.73223245
0
/ Show a page $page = the shimmie page object $wiki_page = the wiki page, has >title and >body $nav_page = a wiki page object with navigation, has >body
Показать страницу $page = страница shimmie, $wiki_page = страница вики, имеет >title и >body $nav_page = объект страницы вики с навигацией, имеет >body
public function display_page(Page $page, WikiPage $wiki_page, $nav_page) { // $nav_page = WikiPage or null if(is_null($nav_page)) { $nav_page = new WikiPage(); $nav_page->body = ""; } $tfe = new TextFormattingEvent($nav_page->body); send_event($tfe); // only the admin can edit the sidebar global $us...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show (Page $page)\n {\n //\n }", "public function show(Page $page)\n {\n //\n }", "public function show(Page $page)\n {\n //\n }", "public function show(Page $page)\n {\n //\n }", "public function show(Page $page)\n {\n //\n }...
[ "0.6981565", "0.6888289", "0.6888289", "0.6888289", "0.6888289", "0.6888289", "0.6888289", "0.6888289", "0.67947936", "0.6493459", "0.64798284", "0.64548147", "0.64548147", "0.63627636", "0.6282346", "0.6271041", "0.6228985", "0.6210413", "0.61684114", "0.6159041", "0.6126351...
0.71076757
0
Helpers Total comment count
Помощники Общее количество комментариев
public function comment_count() { $this->init(); $folder = $this->fetch_param('folder', $this->comment_folder); // defaults to null if ($folder != $this->comment_folder) { $this->get_comment_path(); $folder = $this->comment_folder; // resolve new folder path } if (!$this->to...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCommentCount();", "function getTotalComments()\r\n {\r\n $this->total_comments;\r\n }", "public function getCommentCount()\n {\n return $this->getData('total');\n }", "public function totalComments()\n\t\t{\n\t\t\treturn count($this->comments->response);\n\t\t}", ...
[ "0.84882176", "0.8334253", "0.827994", "0.7962099", "0.79590535", "0.79137826", "0.78466773", "0.77872294", "0.7786665", "0.7740429", "0.77338487", "0.76828206", "0.76663667", "0.76649934", "0.76510423", "0.7619612", "0.7609033", "0.7607735", "0.7602193", "0.7567774", "0.7557...
0.8352132
1
Generate a javascript file that imports plugins.
Создайте файл javascript, который импортирует плагины.
private function generatePluginsJs() { $plugins = array_map( function ($file) { return " require('./plugins/{$file}/index.js')(on, config);"; }, $this->plugins ); array_unshift($plugins, '// Automatically generated by the Cypress module for Drupal.', 'module.exports = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ft_make_scripts() {\n global $ft;\n $scripts = array();\n if (INSTALL != \"SIMPLE\") {\n $scripts[] = 'jquery-1.2.1.pack.js';\n $scripts[] = 'filethingie.js';\n }\n $result = ft_invoke_hook('add_js_file');\n $scripts = array_merge($scripts, $result);\n foreach ($scripts as $c) {\n echo \"<...
[ "0.6303539", "0.62081015", "0.61106026", "0.60891306", "0.6002219", "0.6002024", "0.5994367", "0.5734167", "0.57179815", "0.57162434", "0.5642967", "0.5642743", "0.5641598", "0.5634417", "0.56181747", "0.5608797", "0.55941325", "0.55772775", "0.55682343", "0.5564348", "0.5532...
0.8232622
0
Replaces the "Sharing" title for the post screen metabox with "Likes and Shares"
Заменяет заголовок "Sharing" для метабокса экрана поста на "Likes and Shares"
public function add_likes_to_sharing_meta_box_title() { return __( 'Likes and Shares', 'jetpack' ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function edd_social_discounts_share_to_unlock_success_title() {\n\t$title = edd_get_option( 'edd_sd_share_to_unlock_success_title', __( 'Thanks for sharing!', 'edd-social-discounts' ) );\n\n\treturn apply_filters( 'edd_social_discounts_share_to_unlock_success_title', $title );\n}", "function set_share_title($tit...
[ "0.69500375", "0.66877055", "0.6554926", "0.6499784", "0.64861095", "0.64611185", "0.63213634", "0.6298601", "0.62303275", "0.6183306", "0.6168169", "0.61655784", "0.6163499", "0.61019194", "0.60933745", "0.6091577", "0.60913277", "0.6076537", "0.6075461", "0.6062102", "0.600...
0.80564916
0
Adds the 'sharing' menu to the settings menu. Only ran if sharedaddy and publicize are not already active.
Добавляет меню 'sharing' в меню настроек. Выполняется только в том случае, если плагины sharedaddy и publicize не активны.
function sharing_menu() { add_submenu_page( 'options-general.php', esc_html__( 'Sharing Settings', 'jetpack' ), esc_html__( 'Sharing', 'jetpack' ), 'manage_options', 'sharing', array( $this, 'sharing_page' ) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function sharing_page() {\n\t\t$this->updated_message(); ?>\n\t\t<div class=\"wrap\">\n\t\t\t<div class=\"icon32\" id=\"icon-options-general\"><br /></div>\n\t\t\t<h1><?php esc_html_e( 'Sharing Settings', 'jetpack' ); ?></h1>\n\t\t\t<?php\n\t\t\t/** This action is documented in modules/sharedaddy/sharing.php */\n\...
[ "0.7365143", "0.71319926", "0.70019364", "0.694386", "0.678391", "0.67802805", "0.6677692", "0.66697794", "0.6653982", "0.66286075", "0.6621273", "0.6545581", "0.65072376", "0.64276063", "0.6360609", "0.63539916", "0.63453776", "0.63430035", "0.6339333", "0.6328098", "0.63184...
0.814753
0
Provides a sharing page with the sharing_global_options hook so we can display the setting. Only ran if sharedaddy and publicize are not already active.
Предоставляет страницу с дележем, используя хук sharing_global_options, чтобы мы могли отобразить настройки. Запускается только в том случае, если sharedaddy и publicize не активированы.
function sharing_page() { $this->updated_message(); ?> <div class="wrap"> <div class="icon32" id="icon-options-general"><br /></div> <h1><?php esc_html_e( 'Sharing Settings', 'jetpack' ); ?></h1> <?php /** This action is documented in modules/sharedaddy/sharing.php */ do_action( 'pre_admin_screen_sha...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function social_share_page()\n{\n ?>\n <div class=\"wrap\">\n <h1>Social Sharing Options</h1>\n \n <form method=\"post\" action=\"options.php\">\n <?php\n settings_fields(\"social_share_config_section\");\n \n do_settings_sections(\"social-share\");\n ...
[ "0.73561037", "0.7078744", "0.70711905", "0.7031029", "0.68519884", "0.67144704", "0.65719825", "0.65119606", "0.6500065", "0.6494328", "0.64246744", "0.64135724", "0.63669544", "0.636409", "0.63626355", "0.63561594", "0.6308274", "0.63009757", "0.62957835", "0.6264174", "0.6...
0.78387135
0
Are likes visible in this context? Some of this code was taken and modified from sharing_display() to ensure similar logic and filters apply here, too.
Видны ли лайки в этом контексте? Часть этого кода была взята и изменена из функции sharing_display(), чтобы обеспечить здесь аналогичную логику и фильтры.
function is_likes_visible() { if ( Settings::is_syncing() ) { return false; } global $wp_current_filter; // Used to apply 'sharing_show' filter $post = get_post(); // Never show on feeds or previews if ( is_feed() || is_preview() ) { $enabled = false; // Not a feed or preview, so what is it? ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function canLike()\n\t{\n\t\tglobal $registry;\n\t\t\n\t\t$result = true;\n\t\t\n\t\tif($this->type == self::TYPE_FOLLOW_ADD || $this->type == self::TYPE_GROUP_JOIN || $this->type == self::TYPE_PROFILE_EDIT)\n\t\t{\n\t\t\t$result = false;\n\t\t}\n\t\t\n\t\treturn $result;\n\t}", "public function isLiked()...
[ "0.6906996", "0.68690634", "0.6824196", "0.6788795", "0.676625", "0.65864646", "0.65402156", "0.6424903", "0.64053637", "0.63884526", "0.6365686", "0.6348123", "0.62917536", "0.6274369", "0.6197992", "0.61626554", "0.61544156", "0.61544156", "0.61544156", "0.61544156", "0.615...
0.7686967
0
Are Post Likes enabled on archive/front/search pages?
Включены ли лайки постов на страницах архива/главной/поиска?
function is_index_enabled() { $options = $this->get_options(); /** * Filters whether Likes should be enabled on archive/front/search pages. * * @module likes * * @since 2.2.0 * * @param bool $enabled Are Post Likes enabled on archive/front/search pages? */ return (bool) apply_filters( 'wpl...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function is_likes_visible() {\n\t\tif ( Settings::is_syncing() ) {\n\t\t\treturn false;\n\t\t}\n\n\t\tglobal $wp_current_filter; // Used to apply 'sharing_show' filter\n\n\t\t$post = get_post();\n\n\t\t// Never show on feeds or previews\n\t\tif ( is_feed() || is_preview() ) {\n\t\t\t$enabled = false;\n\n\t\t\t// N...
[ "0.7348984", "0.6751685", "0.65254503", "0.65245783", "0.6509716", "0.64790195", "0.63863987", "0.6321373", "0.62885857", "0.6275971", "0.624949", "0.62161046", "0.6201171", "0.6201142", "0.617599", "0.616608", "0.609408", "0.6086202", "0.6079146", "0.6075063", "0.6038382", ...
0.70435196
1
Are Post Likes enabled on single pages?
Включены ли посты «Лайки» на отдельных страницах?
function is_single_page_enabled() { $options = $this->get_options(); /** * Filters whether Likes should be enabled on single pages. * * @module likes * * @since 2.2.0 * * @param bool $enabled Are Post Likes enabled on single pages? */ return (bool) apply_filters( 'wpl_is_single_page_disabl...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function is_likes_visible() {\n\t\tif ( Settings::is_syncing() ) {\n\t\t\treturn false;\n\t\t}\n\n\t\tglobal $wp_current_filter; // Used to apply 'sharing_show' filter\n\n\t\t$post = get_post();\n\n\t\t// Never show on feeds or previews\n\t\tif ( is_feed() || is_preview() ) {\n\t\t\t$enabled = false;\n\n\t\t\t// N...
[ "0.74070346", "0.7117247", "0.68594897", "0.6850733", "0.6826812", "0.67655396", "0.6728284", "0.6715279", "0.66862136", "0.667889", "0.66650575", "0.66537213", "0.6625385", "0.6608146", "0.65920305", "0.65773284", "0.6537653", "0.6528363", "0.6519979", "0.6516494", "0.649154...
0.7134668
1
Used for WPCOM ONLY. Comment likes are in their own module in Jetpack. Returns if comment likes are enabled. Defaults to 'off'
Используется только для WPCOM. Лайки комментариев находятся в своем собственном модуле в Jetpack. Возвращает значение, указывающее, включены ли лайки комментариев. По умолчанию: 'off'
function is_comments_enabled() { /** * Filters whether Comment Likes are enabled. * true if enabled, false if not. * * @module comment-likes * * @since 2.2.0 * * @param bool $option Are Comment Likes enabled sitewide. */ return (bool) apply_filters( 'jetpack_comment_likes_enabled', get_op...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function is_likes_visible() {\n\t\tif ( Settings::is_syncing() ) {\n\t\t\treturn false;\n\t\t}\n\n\t\tglobal $wp_current_filter; // Used to apply 'sharing_show' filter\n\n\t\t$post = get_post();\n\n\t\t// Never show on feeds or previews\n\t\tif ( is_feed() || is_preview() ) {\n\t\t\t$enabled = false;\n\n\t\t\t// N...
[ "0.7068334", "0.6663805", "0.66088885", "0.6579223", "0.6530652", "0.65161884", "0.6435363", "0.636607", "0.6364427", "0.63349855", "0.6328966", "0.62819356", "0.62758285", "0.62688994", "0.6229477", "0.6217213", "0.6205622", "0.61393553", "0.61334085", "0.61202914", "0.60971...
0.7708995
0
Test Uuid conversion to string and from string
Тестирование преобразования Uuid в строку и обратно из строки
public function testUuidConversion() { $uuid1 = Uuid::uuid1(); $str1 = $uuid1->toString(); $uuid2 = Uuid::fromString($str1); $str2 = $uuid2->toString(); $this->assertEquals($str1, $str2); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function fromString(string $str) : Uuid;", "public function testUuidFormat()\n {\n $uuid = Uuid::uuid1();\n $str = $uuid->toString();\n\n $this->assertRegExp('/^\\{?[0-9a-f]{8}\\-?[0-9a-f]{4}\\-?[0-9a-f]{4}\\-?[0-9a-f]{4}\\-?[0-9a-f]{12}\\}?$/i', $str);\n }", "function ...
[ "0.7261931", "0.7241009", "0.70817137", "0.69060326", "0.6747428", "0.6471552", "0.64191455", "0.6396851", "0.6289656", "0.6274122", "0.6232582", "0.6220957", "0.6196473", "0.61548495", "0.6088645", "0.60865676", "0.5971346", "0.59700394", "0.5951919", "0.594946", "0.59360695...
0.8151377
0
Test Uuid format after converting to a string
Тестирование формата Uuid после преобразования в строку
public function testUuidFormat() { $uuid = Uuid::uuid1(); $str = $uuid->toString(); $this->assertRegExp('/^\{?[0-9a-f]{8}\-?[0-9a-f]{4}\-?[0-9a-f]{4}\-?[0-9a-f]{4}\-?[0-9a-f]{12}\}?$/i', $str); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testUuidConversion()\n {\n $uuid1 = Uuid::uuid1();\n $str1 = $uuid1->toString();\n\n $uuid2 = Uuid::fromString($str1);\n $str2 = $uuid2->toString();\n\n $this->assertEquals($str1, $str2);\n }", "function conv_to_udaaanId($userId){\r\n $max_length = 11;\...
[ "0.7380141", "0.6806763", "0.6695721", "0.66023767", "0.6516829", "0.650627", "0.64659727", "0.63714087", "0.63474756", "0.6284347", "0.6254948", "0.61958694", "0.61665016", "0.61595625", "0.60763705", "0.60366553", "0.6014404", "0.6013737", "0.6013361", "0.6013361", "0.60133...
0.7553242
0
Return a list of time punches related to a user :param $id: The Id of the User :return Array of TimePunchClass: A list of time punches related to the given user.
Вернуть список времени ударов, связанных с пользователем :param $id: Идентификатор пользователя :return Массив TimePunchClass: Список времени ударов, связанных с указанным пользователем.
function GetPunchesFromUserId($id) { global $time_punches; $qt = count($time_punches); $punches = array(); for ($i = 0; $i < $qt; $i++) { if ($time_punches[$i]->user_id == $id) { $punches[] = $time_punches[$i]; } } return $punches; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get( $id )\n { \n \n $result = $this->db->fetchAll( 'SELECT * FROM time WHERE `id`=?', array( $id ) ); \n \n if( $result )\n {\n return $result[0];\n }\n \n return array(\n 'id' => 0,\n 'd...
[ "0.61698365", "0.61178195", "0.60753065", "0.5955895", "0.59206575", "0.57836086", "0.57802576", "0.56901515", "0.5668291", "0.5666734", "0.5662819", "0.55844474", "0.55820036", "0.5576079", "0.55746967", "0.55425483", "0.5534063", "0.5533288", "0.55241716", "0.5483308", "0.5...
0.76553476
0
delete Old Cart and custom From table...
Удалить старый корзину и custom из таблицы...
public function deleteCartOld(){ $date = date('Y-m-d',strtotime("-30 days")); $sql = "DELETE FROM p_custom_submit WHERE dateTime <= '$date' AND id in (SELECT customId FROM cart WHERE dateTime <= '$date')"; $this->dbF->setRow($sql); $sql = "DELETE FROM cart WHERE dateTime <= '$date'"; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function deleteCart(){\n try{\n $stmt = $this->dbh->prepare(\"TRUNCATE TABLE Cart\");\n $stmt->execute();\n }catch(PDOEXCEPTION $e){\n echo $e->getMessage();\n die();\n }\n }", "public function deleteCart(...
[ "0.7327082", "0.7291701", "0.7068349", "0.7026294", "0.68468034", "0.6783256", "0.67559034", "0.6741791", "0.6726594", "0.6713757", "0.66907567", "0.66433775", "0.66009986", "0.6596244", "0.65927017", "0.6576082", "0.65554184", "0.6537767", "0.65358114", "0.6490019", "0.64691...
0.78407824
0
It will call when a test ended
Оно будет вызываться, когда тест завершится
public function endTest();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function endTest()\n {\n\n }", "public function endTest() {\n\t\t\tunset($this->Whistle);\n\t\t\tClassRegistry::flush();\n\t\t}", "public function endTest() {\n\t\t\tunset($this->Helper);\n\t\t\tClassRegistry::flush();\n\t\t}", "function atTestEnd($method, &$test_case) {\n\t\t$context = &SimpleTest::g...
[ "0.8308364", "0.77142924", "0.7521401", "0.7407592", "0.73565036", "0.72858536", "0.7195817", "0.71846914", "0.71846914", "0.71484387", "0.71466076", "0.71415055", "0.7116206", "0.7110185", "0.70944345", "0.7049281", "0.7048322", "0.70314544", "0.70259714", "0.70259714", "0.7...
0.8383321
0
Reorder multimedia objects of a series using the current sorting attribute.
Переупорядочьте мультимедийные объекты серии с использованием текущего атрибута сортировки.
public function reorder(Series $series) { $sorting = $series->getSortingCriteria(); $mms = $this->dm ->getRepository('PumukitSchemaBundle:MultimediaObject') ->findOrderedBy($series, $sorting); $rank = 1; foreach ($mms as $mm) { $this->dm ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function sort() {\n usort($this->records, function($a, $b) {\n return $a->sortorder - $b->sortorder; \n });\n }", "private function reorder()\n {\n /** @var RankingPosition[] $sortedArray */\n $sortedArray = $this->positions->toArray();\n uasort($sorte...
[ "0.5904523", "0.58329886", "0.5735202", "0.563791", "0.55973125", "0.55486786", "0.55243343", "0.5523146", "0.5510751", "0.548579", "0.5454831", "0.54410124", "0.53854096", "0.5371242", "0.5325615", "0.5319916", "0.53149396", "0.5297444", "0.52603996", "0.5242369", "0.5240349...
0.71793103
0
Returns HTML for an islandora_solr_facet_wrapper.
Возвращает HTML для islandora_solr_facet_wrapper.
function pld_islandora_solr_facet_wrapper($variables) { $output = '<div class="islandora-solr-facet-wrapper">'; $output .= '<h3>' . $variables['title'] . '<span class="down-arrow"><i class="fas fa-arrow-down"></i></span></h3>'; $output .= $variables['content']; $output .= '</div>'; return $output; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function displayFacets($solrQueryProcessor) {\n global $base_url;\n $facet_output = $output = '';\n $islandora_facets = isset($solrQueryProcessor->solrResult->facet_counts->facet_fields) ? $solrQueryProcessor->solrResult->facet_counts->facet_fields : array();\n\n if (empty($islandora_facets)) {\n ...
[ "0.7048761", "0.5978933", "0.57354164", "0.5664428", "0.55946845", "0.54931843", "0.5487358", "0.54757327", "0.5320097", "0.5292083", "0.5218567", "0.51511085", "0.5120404", "0.50631887", "0.50576663", "0.5015178", "0.5015178", "0.49688917", "0.49139875", "0.4889492", "0.4889...
0.7884885
0
Returns the number of HardKeys on the phone or 0 if the model doesn't support HardKeys.
Возвращает количество HardKeys на телефоне или 0, если модель не поддерживает HardKeys.
public function numberOfHardKeys();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function numberOfSoftKeys();", "public function getKeyCount() {\r\n return ipworksencrypt_openpgp_get($this->handle, 8 );\r\n }", "private function CountKeys()\n {\n $cart = $this->Read();\n $count = count($cart);\n\n return (int) $count;\n }", "public function getKeysCo...
[ "0.75731635", "0.6581608", "0.64486897", "0.61817557", "0.61064506", "0.6091121", "0.60250217", "0.60130924", "0.60088044", "0.60088044", "0.5978989", "0.59064555", "0.5901261", "0.58694124", "0.5859098", "0.5859098", "0.58030486", "0.57911944", "0.5764846", "0.5726201", "0.5...
0.79255605
0
Smarty plugin: sC_template_printMessage function
Smarty плагин: функция sC_template_printMessage
function smarty_function_sC_template_printMessageSurvey($params, &$smarty) { if (isset($params['message'])) { if (mb_strlen($params['message']) > 1000) { $prefix = mb_substr($params['message'], 0, 1000); $suffix = mb_substr($params['message'], mb_strlen($params['message']) - 300, mb...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function system_message($msg) {\r\n\r\n global $cfg;\r\n\r\n\r\n $theme_color = $cfg['USER_INITIAL_THEME_COLOR'];\r\n\r\n\r\n $tpl = new pTemplate();\r\n/*\r\n if (preg_match(\"/(admin|client|reseller)/\", $_SERVER['PHP_SELF'], $matches)) {\r\n\r\n $tpl_path = \"../\".$cfg['ROOT_TEMPLATE_PATH'];...
[ "0.73305297", "0.68473434", "0.6607309", "0.6607138", "0.6575077", "0.6552365", "0.6538088", "0.64597744", "0.6431773", "0.63971126", "0.63480717", "0.63448596", "0.63407284", "0.63375086", "0.63329965", "0.63110626", "0.63110626", "0.6301789", "0.6300779", "0.6294928", "0.62...
0.709119
1
Sets the retries for external tasks asynchronously as batch. The returned batch can be used to track the progress.
Устанавливает повторные попытки для внешних задач асинхронно в пакете. Возвращенный пакет можно использовать для отслеживания прогресса.
public function setAsync(int $retries): BatchInterface;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function batch()\n {\n $this->is_batch = true;\n $this->batch = array();\n return $this;\n }", "public function batchExecute()\n {\n $guzzleRequests = $this->createBatchPostRequests();\n\n $results = Pool::batch($this->guzzleClient, $guzzleRequests, [\n ...
[ "0.5528813", "0.5447026", "0.53193486", "0.52275157", "0.5217251", "0.5169117", "0.49882567", "0.498467", "0.498258", "0.49766383", "0.4974007", "0.4962958", "0.4916209", "0.49091884", "0.49059683", "0.48628184", "0.48494586", "0.48335123", "0.48294267", "0.47988898", "0.4789...
0.73172545
0
Implements hook_user_logout(). Logs out authenticated user from CAS, WIND or both.
Реализует hook_user_logout(). Выходит из системы аутентифицированного пользователя из CAS, WIND или обоих.
function cls_sso_user_logout() { global $user; global $base_url; $wind_redirect = ""; $destination_url = $_SERVER['HTTP_REFERER'] ? $_SERVER['HTTP_REFERER'] : $base_url; //To avoid "Access Denied" message, user will be redirected to login page after logging out from user/* pages if (in_array($destination_ur...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function logout_hook();", "protected function userLogout() {\n user_logout();\n }", "function logout() {\n\t\tglobal $_MAMBOTS;\n\n\t\t//load user bot group\n\t\t$_MAMBOTS->loadBotGroup( 'user' );\n\n\t\t//get the user\n\t\t$user = $this->getUser();\n\n\t\t//trigger the onLogOutUser event\n\t\t$resu...
[ "0.7271404", "0.7257981", "0.7193699", "0.716338", "0.71313614", "0.7128497", "0.71180815", "0.7101623", "0.70832545", "0.7077515", "0.70682716", "0.7066484", "0.70645666", "0.7024939", "0.7023359", "0.70078164", "0.69972545", "0.699302", "0.6990862", "0.69820106", "0.6980177...
0.84088707
0
Determines which login page the user needs to be redirected to. Provides output to cls_sso_login_redirect() function.
Определяет, какую страницу входа необходимо перенаправить пользователю. Предоставляет выходные данные функции cls_sso_login_redirect().
function cls_sso_get_login_page($destination) { $passcode_login = cls_sso_check_path_for_passcode_page($destination); if ($passcode_login) { $login_page = "sso/passcode-login"; } else { $login_page = "sso/cas/process-user"; } if (preg_match('/^admissions\/jd\/admitted/', $destination)) { $login_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function login_redirect() {\n\n\t\t/**\n\t\t * this function is overwritten in the inheriting classes\n\t\t */\n\t}", "function cls_sso_login_redirect() {\n global $user;\n global $base_url;\n $destination = cls_sso_get_destination();\n $login_page = cls_sso_get_login_page($destination);\n if (module...
[ "0.699047", "0.6747382", "0.66408", "0.6638594", "0.6606087", "0.6519883", "0.6518924", "0.651142", "0.6472059", "0.64655703", "0.63646764", "0.6308026", "0.6307745", "0.62875676", "0.6285324", "0.62714416", "0.6270691", "0.62553805", "0.62547374", "0.6254275", "0.62476355", ...
0.72032696
0
Displays custom page not found message.
Отображает кастомное сообщение о не найденной странице.
function cls_sso_display_page_not_found() { return "<h4>Requested page is not found.</h4>"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function page_not_found(){\n\t\t\n\t\t//Set title\n\t\t$this->data['title'] = \"404! Page not found!\";\n\t\n\t\t//Render 404 page\n\t\t$this->_render_page_view('404',$this->data);\n\t\t\n\t\t//End!\n\t\treturn;\n\t\n\t}", "function PageNotFound()\n {\n $this->tpl->assign('Page', array('Content'...
[ "0.8530085", "0.8498048", "0.8483171", "0.84744793", "0.84390175", "0.8395996", "0.83572274", "0.83432597", "0.8326129", "0.82607055", "0.823952", "0.8081201", "0.80800396", "0.80518305", "0.8021034", "0.8018821", "0.79691607", "0.7964062", "0.79571503", "0.7952405", "0.79417...
0.8629749
0
Displays custom "account not set up" message.
Показывает кастомное сообщение "аккаунт не настроен".
function cls_sso_display_account_not_set_up() { return "<h4>Your account has not been set up fully.</h4>"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function account(){\n Gui::setBody('<h1>Not implemented</h1>');\n }", "public function error_missing_user()\n {\n $msg = __(\n '<strong>Easypay Gateway Disabled</strong> Missing USER. %sClick here to configure.%s',\n 'wceasypay'\n ...
[ "0.69007385", "0.67499197", "0.6482895", "0.639338", "0.63436353", "0.63403136", "0.6279274", "0.61977506", "0.6195419", "0.6188204", "0.6185512", "0.61759293", "0.6169478", "0.6131056", "0.6105589", "0.6087772", "0.60835606", "0.6077466", "0.6047875", "0.60214466", "0.600664...
0.83492523
0
sellercosts is the shippingrate total in case
sellercosts является общим стоимостью доставки в случае
protected function getSellercosts() { $shippingAddress = $this->getQuote()->getShippingAddress(); $shippingCost = $shippingAddress->getData("base_shipping_amount"); $shippingTaxR = $shippingAddress->getData("base_shipping_tax_amount"); //the sellercosts is float type return f...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getShippingCosts()\n {\n $session = Shopware()->Session();\n $country = [ 'id' => $session['sCountry'] ];\n $payment = Shopware()->Container()->get('MoptPayoneMain')->getPaymentHelper()->getPaymentPaydirektExpress();\n if (empty($country) || empty($payment)) {\n ...
[ "0.7254943", "0.71856785", "0.71132606", "0.70602405", "0.70528895", "0.69732213", "0.6960232", "0.6927833", "0.68679714", "0.6858767", "0.6832947", "0.6776122", "0.6749442", "0.6743829", "0.6742588", "0.6720141", "0.6690459", "0.6628701", "0.6625727", "0.660815", "0.65743047...
0.79971117
0
Replace the entire error output buffer with the given string.
Замените весь буфер вывода ошибки заданным строкой.
public function replaceErrorOutput(string $output) { $this->output = collect($this->output)->reject(function ($output) { return $output['type'] === 'err'; })->values()->all(); if (strlen($output) > 0) { $this->output[] = [ 'type' => 'err', ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function error($string) {\n $this->output->writeln(\"<error>$string</error>\");\n }", "public function error($string)\n {\n $this->getOutput()->writeln(\"<error>$string</error>\");\n }", "public function addErr(string $output): void\n {\n $this->stdErr .= $output;\n }...
[ "0.64449817", "0.6345561", "0.6334998", "0.62116003", "0.5958168", "0.5898102", "0.58421266", "0.58421266", "0.5800836", "0.57851774", "0.574481", "0.57163656", "0.5617986", "0.5610103", "0.5600734", "0.5583176", "0.5577233", "0.5520488", "0.5484097", "0.54734164", "0.5436853...
0.7056343
0
Resolve the standard output as a string.
Разрешите стандартный вывод как строку.
protected function resolveOutput() { $output = collect($this->output) ->filter(fn ($output) => $output['type'] === 'out'); return $output->isNotEmpty() ? rtrim($output->map->buffer->implode(''), "\n")."\n" : ''; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getStandardOutput(): string\n {\n return $this->stdout;\n }", "public function output() : string\n {\n return $this->stdout->read();\n }", "public function output() {\n return (string)$this->output;\n }", "protected function resolveErrorOutput()\n {\n ...
[ "0.73219705", "0.7205157", "0.6660674", "0.66313076", "0.6490487", "0.63916075", "0.6322467", "0.6242903", "0.6233393", "0.617447", "0.61712116", "0.61532605", "0.6132894", "0.6102507", "0.61018527", "0.6077336", "0.5984304", "0.5963712", "0.5954009", "0.59485346", "0.5939569...
0.73689485
0
Resolve the error output as a string.
Разрешите вывод ошибки в виде строки.
protected function resolveErrorOutput() { $output = collect($this->output) ->filter(fn ($output) => $output['type'] === 'err'); return $output->isNotEmpty() ? rtrim($output->map->buffer->implode(''), "\n")."\n" : ''; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getErrorOutput();", "protected function resolveOutput()\n {\n $output = collect($this->output)\n ->filter(fn ($output) => $output['type'] === 'out');\n\n return $output->isNotEmpty()\n ? rtrim($output->map->buffer->implode(''), \"\\n\").\"\\n\"\n ...
[ "0.6863654", "0.6738424", "0.661801", "0.66070867", "0.656694", "0.65577394", "0.65475756", "0.6533133", "0.6455235", "0.64260817", "0.64240724", "0.6194351", "0.6169133", "0.6156744", "0.61536497", "0.614944", "0.6134003", "0.6131387", "0.61013305", "0.6092556", "0.60616505"...
0.799691
0
fills the collection if it hasn't already been fille
заполняет коллекцию, если она еще не была заполнена
protected function _fillCollection() { if ($this->_filled) { return; } $ids = $this->_ids; if ($this->_pager instanceof Pager) { $ids = array_slice($ids, $this->_pager->getOffset(), $this->_pager->getPageSize()); } $object_name = $this->_obje...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function initFilteredCollection()\n {\n if ($this->length === 0) {\n $this->findNext();\n }\n }", "private function _populateCollection()\n {\n //merge the properties into the collection\n $this->collection = $this->_getBaseArray();\n $this->collec...
[ "0.6407444", "0.6180204", "0.60203826", "0.58663714", "0.5796227", "0.5727422", "0.57199794", "0.5707549", "0.5696004", "0.56746125", "0.5671355", "0.5660921", "0.5651445", "0.56430906", "0.55832136", "0.55751", "0.55716115", "0.5570264", "0.55661404", "0.5563896", "0.5559465...
0.75485015
0
gets the pager object
получает объект пейджеров
public function getPager() { return $this->_pager; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function _pager($pageQueryStr = '')\n{\n return new Pager($pageQueryStr);\n}", "protected function getPage() {}", "protected function getPage() {}", "function getPage() { return $this->page; }", "public function getPage() {}", "public function getPage () {}", "public function getPage();", "public ...
[ "0.69663215", "0.68967867", "0.6895591", "0.6827396", "0.6712954", "0.6700859", "0.66793555", "0.66793555", "0.66063553", "0.6497499", "0.6478193", "0.647521", "0.64652073", "0.6453097", "0.6429506", "0.6410901", "0.64108235", "0.64108235", "0.64108235", "0.64108235", "0.6410...
0.72074026
0
Recreate images directory, with subdirectories and images for live and pending items. Users SSE(server sent event). See note on SSE in controller/admin/recreateImages.
Воссоздайте директорию изображений с поддиректориями и изображениями для живых и ожидающих элементов. Пользователи SSE (server sent event). См. примечание по SSE в controller/admin/recreateImages.
function recreateImages() { header('Content-Type: text/event-stream'); header('Cache-Control: no-cache'); $progressPercent = 0; $imagesCount = $this->countImages(); if (empty($imagesCount)) $imagesCount = 1; $backupDate = date('Y-m-d-H-i-s'); // backup images...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function execute()\n {\n foreach (scandir('../assets/images') as $imageFile) {\n file_put_contents('../content/images/new', file_get_contents($imageFile));\n unlink($imageFile);\n }\n }", "public function action_reset_images()\n\t{\n\t\ttry {\n\t\t set_time_lim...
[ "0.6724631", "0.6261996", "0.61731404", "0.6106629", "0.6080195", "0.6024589", "0.59907615", "0.59659207", "0.59607124", "0.5942988", "0.59392405", "0.5929395", "0.5920596", "0.5881747", "0.58650184", "0.5835929", "0.58212864", "0.5816803", "0.58081275", "0.5807184", "0.58068...
0.77328247
0
Count all images, live and pending (but not offline) used by method recreateImages.
Посчитать все изображения, живые и ожидаемые (но не отключенные), используемые методом recreateImages.
function countImages() { $stmt = $this->dbh->prepare('SELECT count(*) FROM imagesTable'); $stmt->execute(); $imagesCount = $stmt->fetchColumn(); $status = 'offline'; $stmt = $this->dbh->prepare('SELECT count(*) FROM pendingImagesTable LEFT JOIN pendingItemsTa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function ImageCount();", "public function countImages()\n {\n $this->db->query('SELECT COUNT(*) AS im \n FROM pd_images WHERE gl_created');\n $results = $this->db->resultSet();\n return $results;\n\n }", "public function getNumberImages (...
[ "0.7456352", "0.7415533", "0.7392838", "0.7220558", "0.7106606", "0.7104144", "0.6987322", "0.69290996", "0.6894936", "0.6641051", "0.65703", "0.6503849", "0.6389126", "0.6356916", "0.6325245", "0.62836534", "0.6275333", "0.62558055", "0.62552804", "0.6243392", "0.6197889", ...
0.7569045
0
Removes a directory, including its files and subdirectories
Удаляет директорию, включая её файлы и поддиректории
function removeDirectory($dir) { if (is_dir($dir)) { $objects = scandir($dir); foreach ($objects as $object) { if ($object != "." && $object != "..") { if (is_dir($dir."/".$object)) $this->removeDirectory($dir."/".$object); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function removeDirectory();", "function removeDir($dir)\n{\n\n $files = new RecursiveIteratorIterator(\n new RecursiveDirectoryIterator($dir, RecursiveDirectoryIterator::SKIP_DOTS),\n RecursiveIteratorIterator::CHILD_FIRST\n );\n\n foreach ($files as $fileinfo)\n {\n $todo...
[ "0.8201983", "0.79404765", "0.7904341", "0.78448075", "0.78276926", "0.77317226", "0.77180994", "0.7704127", "0.7665727", "0.76614386", "0.7609091", "0.7599599", "0.7584545", "0.7575703", "0.7557277", "0.75462294", "0.75421214", "0.75275326", "0.75136113", "0.7503168", "0.749...
0.80250126
1
Check if a plugin is active. Method will return false if a plugin is active for network but the parameter $option[ 'network' ] is omitted or set to 'false'.
Проверьте, активен ли плагин. Метод вернет false, если плагин активен для сети, но параметр $option[ 'network' ] не указан или установлен в 'false'.
public function isActive( $plugin, array $options = [ ] ) { if ( ! is_string( $plugin ) ) { // Todo throw new InvalidArgumentException( "First parameter \$plugin must be of type string" ); } $arguments = [ 'plugin', 'list', "--name={$plugin}", '--field=status' ]; if ( isset( $options[ 'site_url' ] ) ) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function rocket_is_plugin_active_for_network( $plugin )\n{\n\tif ( !is_multisite() ) {\n\t\treturn false;\n\t}\n\n\t$plugins = get_site_option( 'active_sitewide_plugins');\n\tif ( isset($plugins[$plugin]) ) {\n\t\treturn true;\n\t}\n\n\treturn false;\n}", "function lmm_is_plugin_active( $plugin ) {\n\t$active_pl...
[ "0.7445241", "0.7370895", "0.7199707", "0.70736086", "0.698262", "0.68269366", "0.6677753", "0.6451108", "0.63142747", "0.62831455", "0.6217415", "0.61735725", "0.61672604", "0.6158301", "0.61508614", "0.6131961", "0.61055505", "0.6086733", "0.6075301", "0.6058067", "0.605245...
0.7660845
0
Deep copies the given value.
Производит глубокую копию заданного значения.
function deep_copy( $value, $useCloneMethod = FALSE ) { return ( new DeepCopy( $useCloneMethod ) )->copy( $value ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function copy($value)\n {\n return \\is_object($value) ? (clone $value) : $value;\n }", "function copyValue()\n\t{\n\t\t$value = $this->getValue();\n\t\t\n\t\tif (isset($value))\n\t\t{\n\t\t\tif (method_exists($value, \"cloneNode\"))\n\t\t\t{\n\t\t\t\t$value = $value->cloneNode(true);\n\t\t\t...
[ "0.7762658", "0.76087624", "0.74329734", "0.6895284", "0.6865818", "0.66139716", "0.6538725", "0.6365951", "0.6336575", "0.63358414", "0.63332194", "0.630284", "0.62086844", "0.6183397", "0.6180599", "0.61734563", "0.600798", "0.600798", "0.5937692", "0.59373695", "0.5903107"...
0.8079824
0
format helpers xml2array() will convert the given XML text to an array in the XML structure. Link: Arguments : $contents The XML text $get_attributes 1 or 0. If this is 1 the function will get the attributes as well as the tag values this results in a different array structure in the return value. $priority Can be 'tag...
Помощники форматирования xml2array() преобразуют данный текст XML в массив в структуре XML. Ссылка: Аргументы: $contents Текст XML $get_attributes 1 или 0. Если это 1, функция получает как значения тегов, так и атрибуты, что приводит к различной структуре массива возвращаемого значения. $priority Может быть 'tag' или '...
public static function xmlToArray($contents, $get_attributes = 0, $priority = 'tag') { if (empty($contents)) { return null; } if (!function_exists('xml_parser_create')) { //print "'xml_parser_create()' function not found!"; return null; } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function XmlToArray($contents, $get_attributes = 1, $priority = 'tag') {\n\n if (!$contents)\n return array();\n\n if (!function_exists('xml_parser_create')) {\n return array();\n }\n\n //Get the XML parser of PHP - PHP must have this module for the p...
[ "0.8443696", "0.7891439", "0.74505895", "0.7273027", "0.7246974", "0.7144865", "0.67033243", "0.67033243", "0.60186243", "0.5971132", "0.592775", "0.5775268", "0.5759006", "0.57438916", "0.5667504", "0.56235236", "0.55755365", "0.5565565", "0.5558983", "0.55047816", "0.547920...
0.85275936
0
Checks to see if a string is printable or not. Considers tab, carriage return, linefeed as printable.
Проверяет, является ли строка печатаемой или нет. Рассматривает табуляцию, возврат каретки, перевод строки как печатаемые.
public static function isPrintable($string) { // Using regex here for more control. Could have used ctype_print but that // does not consider tab, carriage return, and linefeed as printable. return preg_match('/^[A-Za-zàèìòùÀÈÌÒÙáéíóúýÁÉÍÓÚÝâêîôûÂÊÎÔÛãñõÃÑÕäëïöüÿÄËÏÖÜŸçÇߨøÅ寿œ0-9_~\-!@#\$%...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ctype_print($text) {\n if (is_int($text) && $text >= -128 && $text <= 255) {\n if ($text < 0) {\n $text += 256;\n }\n return ($text >= 32 && $text <= 126);\n } elseif (is_string($text) || is_int($text)) {\n return ((int)preg_match('/...
[ "0.69814116", "0.6955593", "0.6413914", "0.60123885", "0.5747919", "0.5738153", "0.5716062", "0.56726944", "0.5672233", "0.56553257", "0.5576441", "0.5557064", "0.54960775", "0.5432639", "0.5398123", "0.531894", "0.530706", "0.52895325", "0.5283399", "0.5278065", "0.5277495",...
0.83686966
0
Get field factory class
Получить класс фабрики полей
public function getFactory() { return new FieldFactory($this->customFields); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected static function fieldsFactory(): FieldsFactory\n {\n return self::$factory;\n }", "public function getFieldTypeFactory();", "public function getFactory();", "public function getFactory() {}", "private function getFieldClass(string $type)\n {\n $file = basePath('src/Alxarafe...
[ "0.7830868", "0.77586925", "0.66211706", "0.65676165", "0.6555431", "0.6554349", "0.6482763", "0.64640665", "0.64315045", "0.64315045", "0.6340983", "0.6287916", "0.6287916", "0.62837666", "0.62787265", "0.62787265", "0.62787265", "0.62787265", "0.62787265", "0.62787265", "0....
0.8099263
0
Saves a shukkairai_dt edited
Сохраняет отредактированный shukkairai_dt
public function saveAction() { if (!$this->request->isPost()) { $this->dispatcher->forward(array( 'controller' => "shukkairai_dts", 'action' => 'index' )); return; } $id = $this->request->getPost("id"); $shukkaira...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function saveAction()\n {\n\n if (!$this->request->isPost()) {\n $this->dispatcher->forward(array(\n 'controller' => \"shiiresaki_sime_naiyou_dts\",\n 'action' => 'index'\n ));\n\n return;\n }\n\n $id = $this->request->ge...
[ "0.7359927", "0.7008147", "0.6988485", "0.6497525", "0.6470089", "0.6374668", "0.63636273", "0.63527966", "0.6346124", "0.63358676", "0.6332851", "0.63045454", "0.6301596", "0.62954235", "0.6268004", "0.62421846", "0.61994153", "0.6196336", "0.6193997", "0.6185865", "0.618204...
0.7407638
0
Get the list of application bootstraps
Получить список загрузок приложения
protected function bootstrap() : array { $bootstrap = [ \Roots\Acorn\Bootstrap\SageFeatures::class, \Roots\Acorn\Bootstrap\LoadConfiguration::class, \Roots\Acorn\Bootstrap\RegisterGlobals::class, \Roots\Acorn\Bootstrap\LoadBindings::class, \Roots\A...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getBootstrap();", "public function getApplications()\n {\n $definitions = $this->container->getParameter('applications');\n $applications = array();\n foreach ($definitions as $slug => $def) {\n $application = $this->getApplication($slug);\n if ($app...
[ "0.7139772", "0.70901173", "0.68948233", "0.6831693", "0.6816377", "0.6769854", "0.65794414", "0.6563127", "0.6525915", "0.65220994", "0.65220994", "0.65195477", "0.651232", "0.6482783", "0.64581615", "0.6349795", "0.6340644", "0.62301755", "0.6215179", "0.62072253", "0.61811...
0.7096404
1
/ Register User Block Types
/ Регистрация типов блоков пользователя
function register_user_block_types(){ $settings = apply_filters('acfe/block_type/prepare_register', acfe_get_settings($this->settings)); if(empty($settings)) return; foreach($settings as $name => $args){ // Bail early if(empty($...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function register_block_type() {\n\t\tregister_block_type(\n\t\t\t$this->namespace . '/' . $this->block_name,\n\t\t\tarray(\n\t\t\t\t'editor_script' => 'wc-' . $this->block_name,\n\t\t\t\t'editor_style' => 'wc-block-editor',\n\t\t\t\t'style' => 'wc-block-style',\n\t\t\t)\n\t\t);\n\t}", "function ...
[ "0.74068683", "0.7282186", "0.72431725", "0.69129205", "0.6737098", "0.65908945", "0.6574033", "0.6538787", "0.6455486", "0.6413193", "0.63864326", "0.6369298", "0.634554", "0.63448966", "0.6334039", "0.6309945", "0.6301082", "0.61765426", "0.6170125", "0.61281574", "0.609200...
0.8470343
0
/ Edit Columns HTML
/ Редактировать столбцы HTML
function edit_columns_html($column, $post_id){ switch($column){ // Name case 'name': echo '<code style="font-size: 12px;">' . $this->get_name($post_id) . '</code>'; break; // Category ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function featured_content_edit_columns($columns) {\n $columns = array(\n 'cb' => '<input type=\"checkbox\" />',\n 'thumbnail' => 'Image',\n 'title' => 'feature Title',\n 'intro' => 'Introduction',\n 'author' => 'Author',\n );\n...
[ "0.68906146", "0.6828128", "0.67610997", "0.67407465", "0.6738951", "0.6728189", "0.67228985", "0.66895807", "0.66873556", "0.664902", "0.66134155", "0.6508316", "0.64196485", "0.6408753", "0.63958055", "0.6376305", "0.6360049", "0.6291111", "0.6286386", "0.62755734", "0.6275...
0.72427666
0
Specify that the plan is on a yearly interval.
Укажите, что план действует ежегодно.
public function yearly() { $this->interval = 'yearly'; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isYearly()\n {\n return $this->interval === 'yearly';\n }", "public function yearly($value) {\n return $this->setProperty('yearly', $value);\n }", "public function setScheduleYear($year = 0);", "function setInc(){\n\t\tif($this->period==\"monthly\")\n\t\t\t$this->inc=1;...
[ "0.73250073", "0.64983606", "0.61455095", "0.6076342", "0.60606873", "0.60402846", "0.6038417", "0.6007038", "0.59377956", "0.58675754", "0.58383244", "0.5797606", "0.5792328", "0.5760876", "0.5739309", "0.5716659", "0.5715989", "0.5707469", "0.57040024", "0.5703244", "0.5700...
0.73831815
1
the maximum length of a single message (will truncate) set a user to online by creating an entry in the ChatOnlineUsers table if the user is already online, the LastActive field will be updated to NOW() Params: User_Id the user id of who to set online returns: true on success, or an errormsg string on error
максимальная длина одного сообщения (будет обрезано) установить пользователя в режиме онлайн, создав запись в таблице ChatOnlineUsers, если пользователь уже онлайн, поле LastActive будет обновлено до NOW() Параметры: User_Id идентификатор пользователя, которого нужно установить в режиме онлайн Возвращает: true при успе...
function SetUserOnline( $User_Id ){ if( empty( $User_Id ) || ! is_int( $User_Id ) ) return( "Param error" ); $Sql = "UPDATE User SET IsOnlineChat = 1, LastActiveChat = NOW() WHERE Id = $User_Id LIMIT 1"; mysql_query( $Sql ); $errno = mysql_errno(); if( 0 != $errno ) return( "mysql error: $errno" ); // user ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function SetUserOffline( $User_Id ){\n\n\tif( empty( $User_Id ) || ! is_int( $User_Id ) )\n\t\treturn( \"Param error: User_Id - wrong type or empty.\" );\n\t$Sql = \"UPDATE User SET IsOnlineChat = 0, LastActiveChat = NOW() WHERE Id = $User_Id LIMIT 1\";\n\tmysql_query( $Sql );\n\t$errno = mysql_errno();\n\tif( 0 !...
[ "0.69793886", "0.6463549", "0.63666624", "0.6331217", "0.63227874", "0.58146614", "0.56441116", "0.5603898", "0.5565253", "0.5540828", "0.5502774", "0.5479328", "0.5467102", "0.5457726", "0.54563564", "0.5440825", "0.53754884", "0.53663486", "0.5337671", "0.5337207", "0.53291...
0.75224644
0
set a user to offline by removing the record from the ChatOnlineUsers table Params: User_Id the user id of who to set offline returns: true on success, or an errormsg string on error
Установить пользователя в оффлайн-состояние, удалив запись из таблицы ChatOnlineUsers Параметры: User_Id идентификатор пользователя, которого нужно установить в оффлайн-состояние Возвращает: true при успешном выполнении, или строку с сообщением об ошибке в случае ошибки
function SetUserOffline( $User_Id ){ if( empty( $User_Id ) || ! is_int( $User_Id ) ) return( "Param error: User_Id - wrong type or empty." ); $Sql = "UPDATE User SET IsOnlineChat = 0, LastActiveChat = NOW() WHERE Id = $User_Id LIMIT 1"; mysql_query( $Sql ); $errno = mysql_errno(); if( 0 != $errno ) return( "m...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function SetUserOnline( $User_Id ){\n\t\n\tif( empty( $User_Id ) || ! is_int( $User_Id ) )\n\t\treturn( \"Param error\" );\n\t$Sql = \"UPDATE User SET IsOnlineChat = 1, LastActiveChat = NOW() WHERE Id = $User_Id LIMIT 1\";\n\tmysql_query( $Sql );\n\t$errno = mysql_errno();\n\tif( 0 != $errno )\n\t\treturn( \"mysql...
[ "0.70733434", "0.7048937", "0.6989938", "0.66736203", "0.64072627", "0.62734294", "0.6165752", "0.6045424", "0.60314804", "0.59398305", "0.5912469", "0.58044446", "0.5792946", "0.57674325", "0.5717685", "0.56970716", "0.5695448", "0.5689769", "0.5637573", "0.56281275", "0.561...
0.80887115
0
returns an associative array of users who are online returns an array of online users on success, or an errormsg on error
возвращает ассоциативный массив пользователей, которые находятся онлайн, в случае успеха, или сообщение об ошибке в случае ошибки
function GetOnlineUsers(){ $OnlineUsers = array(); $Sql = " SELECT U.Id AS Id, CONCAT( U.FirstName, ' ', U.LastName ) AS Name, Bus.Name As BusinessName FROM User U, Accounts Acc, Business Bus WHERE U.IsOnlineChat != 0 AND U.Account_Id = Acc.Id AND Acc.Business_Id = Bus.Id"; $result = mysql_que...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getUsersOnline(){\n\t $result = $this->getBitrixApi(array(\n\t\t\t'FILTER' => array ('IS_ONLINE' => 'Y',),\n\t\t\t), 'user.get');\n\n\t if ($result){\n\t \tif (isset($result['total']) && $result['total']>0) \n\t \t\treturn $result['result'];\n\t \telse return false;\n\t } else {\n...
[ "0.84730434", "0.76582587", "0.7593298", "0.75120175", "0.7497383", "0.74685436", "0.7468169", "0.7468169", "0.74635404", "0.74523526", "0.74419755", "0.74072", "0.7361422", "0.7282878", "0.7261797", "0.7258237", "0.7217265", "0.72149485", "0.70898336", "0.70683664", "0.70486...
0.7742403
1
given an array of user ids (chat participants), get the associated Conversation_Id params: FromUser_Id the user creating the conversation User_Id_Array an array of user ids: array( 1,2,3 ... ) returns: Conversation_Id (int) on success, or an errormsg on error
дан массив идентификаторов пользователей (участников чата), получить связанный Conversation_Id параметры: FromUser_Id пользователь, создающий чат User_Id_Array массив идентификаторов пользователей: array( 1,2,3 ... ) возвращает: Conversation_Id (int) при успешном выполнении, или сообщение об ошибке в случае ошибки
function CreateConversationId( $FromUser_Id, $User_Id_Array ){ // given an array of user ids - // 1) check if this exact group of ids is already forming a conversation. // 2) if so, return the conversation id - finished. // 3) otherwise, create a new conversation id record // 4) insert each user id into the parti...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function GetConversationIdsFromUserId( $FromUser_Id ){\n\n\tif( ! is_int( $FromUser_Id ) )\n\t\treturn( \"Param error: FromUser_Id - wrong type or empty.\" );\n\n\t$Sql = \"SELECT Conversation_Id FROM ChatConversationParticipants WHERE User_Id = $FromUser_Id\";\n\t$result = mysql_query( $Sql );\n\t$errno = mysql_e...
[ "0.7577046", "0.7073129", "0.6864772", "0.68353957", "0.663073", "0.6609367", "0.66061354", "0.6526187", "0.63598126", "0.6338855", "0.6316539", "0.6252845", "0.61836237", "0.6170326", "0.6092609", "0.60847265", "0.6053267", "0.60366213", "0.6019624", "0.5989704", "0.59562945...
0.7901682
0
return an array of user ids that are participating in a conversation params: Conversation_Id the conversation id returns: an array of user ids array( 1,2,...) on success errormsg on error
вернуть массив идентификаторов пользователей, участвующих в беседе params: Conversation_Id идентификатор беседы returns: массив идентификаторов пользователей array( 1,2,...) при успешном выполнении errormsg при ошибке
function GetUsersInConversation( $Conversation_Id ){ if( ! is_int( $Conversation_Id ) ) return( "Param error: Conversation_Id - wrong type or empty." ); // get the user ids within a conversation $Sql = "SELECT UserId_List FROM ChatConversations WHERE Id = $Conversation_Id LIMIT 1"; $result = mysql_query( $Sql )...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getUserIdsForConvo($conversationId){\n\t\t$query = \"SELECT user_one, user_two FROM conversation WHERE conversationId = $conversationId\";\n\t\treturn Database::getResultSetAsArray($query);\n\t}", "function GetConversationIdsFromUserId( $FromUser_Id ){\n\n\tif( ! is_int( $FromUser_Id ) )\n\t\tret...
[ "0.7742586", "0.73817647", "0.7088733", "0.6995056", "0.68358517", "0.6739574", "0.66809493", "0.65206605", "0.6483122", "0.6472868", "0.6429682", "0.6425396", "0.6411096", "0.63975316", "0.6380223", "0.6352845", "0.6342031", "0.63094133", "0.629902", "0.62608904", "0.6230868...
0.7760243
0
return an array of conversation ids that a user id is participating in params: FromUser_Id the user id returns: an array of conversation ids array( 1,2,...) on success errormsg on error
вернуть массив идентификаторов бесед, в которых участвует идентификатор пользователя параметры: FromUser_Id идентификатор пользователя возвращает: массив идентификаторов бесед array(1,2,...) при успешном выполнении errormsg при ошибке
function GetConversationIdsFromUserId( $FromUser_Id ){ if( ! is_int( $FromUser_Id ) ) return( "Param error: FromUser_Id - wrong type or empty." ); $Sql = "SELECT Conversation_Id FROM ChatConversationParticipants WHERE User_Id = $FromUser_Id"; $result = mysql_query( $Sql ); $errno = mysql_errno(); if( 0 != $err...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getListenerIds($user)\n {\n //get partner whom user favourite\n $lOnlFansId = array();\n\n //searching from database\n $lFans = Favourite::where('partner_id', '=', $user->id)->get();\n if(!$lFans->isEmpty()){\n foreach ($lFans as $fan) {\n ...
[ "0.72482604", "0.71369934", "0.7083625", "0.7021509", "0.6950238", "0.6687215", "0.66870475", "0.6684659", "0.6600432", "0.6562371", "0.6554495", "0.6498348", "0.6495832", "0.6443552", "0.64414144", "0.63727164", "0.63582224", "0.63374275", "0.6333397", "0.63258505", "0.63239...
0.8356511
0
send a message to a user Params: FromUser_Id who the message is from Conversation_Id the conversation id that the message is posted to Message the message text (MAX_MESSAGE_LEN bytes max) returns: true on success, errormsg otherwise.
отправить сообщение пользователю Параметры: FromUser_Id от кого отправлено сообщение Conversation_Id идентификатор чата, в который отправляется сообщение Message текст сообщения (максимум MAX_MESSAGE_LEN байт) возвращает: true при успешном выполнении, errormsg в противном случае.
function SendMessage( $FromUser_Id, $Conversation_Id, $Message ){ // sanity checks. if( ! is_int( $FromUser_Id ) || ! is_int( $Conversation_Id ) || 0 == strlen( $Message ) ) return( "Param error: FromUser_Id / Conversation_Id / Message - wrong type or empty." ); // ensure the FromUser_Id is actually in the Con...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function user_message_send($to, $subject, $message, $convo_id = 0) {\n\t global $database, $class_user;\n\n\t // VALIDATE CONVERSATION ID\n\t if($convo_id == \"\" OR !is_numeric($convo_id)) { $convo_id = 0; }\n\n\t // GET TO USER\n\t $to_user = new se_user(Array(0, $to));\n\n\t // CHECK TO SEE IF MESSAGE IS ...
[ "0.70646703", "0.6937308", "0.6897981", "0.6885115", "0.68458164", "0.6751401", "0.67403334", "0.6735484", "0.6717577", "0.6709608", "0.6542987", "0.650415", "0.6462952", "0.6452747", "0.6430111", "0.63756716", "0.6354696", "0.63510245", "0.6350097", "0.6337627", "0.63166004"...
0.773897
0
Get all unread messages to (for) a specified user Params: User_Id user id of who to get messages for returns: array of messages on success, or an errormsg on error
Получить все непрочитанные сообщения для (для) указанного пользователя Параметры: User_Id идентификатор пользователя, для которого нужно получить сообщения возвращает: массив сообщений при успехе, или сообщение об ошибке в случае ошибки
function GetUnreadMessages( $User_Id ){ if( ! is_int( $User_Id ) ) return( "Param error: User_Id - wrong type or empty." ); $Messages = array(); $Sql = "SELECT m.Conversation_Id AS Conversation_Id, m.Id AS MessageId, m.FromUser_Id as FromUser_Id, CONCAT( u.FirstName, ' ', u.LastName ) AS FromUser_Nam...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getUnreadByUserId($user_id) {\n\t\t$sql = 'SELECT * FROM ' . NOTIFICATIONS_TABLE_NAME . ' where user_id = :user_id AND is_read = 0';\n\t\t$params = array(':user_id' => $user_id);\n\n\t\t$result = $this->db->query_db($sql, $params)->fetchAll(PDO::FETCH_ASSOC);\n\n\t\treturn $result;\t\n\t}", "publ...
[ "0.79135704", "0.759831", "0.75201666", "0.7447418", "0.7446079", "0.73776466", "0.73085904", "0.72688997", "0.72414637", "0.72213125", "0.7213601", "0.7213519", "0.7210579", "0.70359", "0.70350164", "0.70189375", "0.6976784", "0.6958053", "0.6955718", "0.695092", "0.694587",...
0.8461219
0
return the last read message id for a given user Params: User_Id user id of who to get messages for returns: the last unre
вернуть идентификатор последнего прочитанного сообщения для заданного пользователя Параметры: User_Id идентификатор пользователя, для которого нужно получить сообщения возвращает: последний непрочитанный
function GetLastReadMessageId( $User_Id ){ if( ! is_int( $User_Id ) ) return( "Param error: User_Id - wrong type or empty." ); $Sql = "SELECT MAX( LastReadMessage_Id ) FROM ChatConversationParticipants WHERE User_Id = $User_Id LIMIT 1"; $result = mysql_query( $Sql ); $errno = mysql_errno(); if( 0 != $errno ) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function lastMessageByUserId($user_id,$cantMess){\r\n $q = Doctrine_Query::create()\r\n ->from(\"Message m , m.Conversation \")\r\n ->leftJoin(\"m.Conversation c\")\r\n ->where(\"(c.user_to_id = $user_id OR c.user_from_id = $user_id)\")\r\n ->andWhere(\"m.user_id <> $user_id\")\r\n ...
[ "0.73152554", "0.6824954", "0.6799087", "0.6779587", "0.6769025", "0.66664356", "0.6663479", "0.6590527", "0.65140563", "0.64905334", "0.6488868", "0.63785696", "0.63601005", "0.63417095", "0.63331616", "0.62911195", "0.6272502", "0.62430614", "0.6241509", "0.6237741", "0.622...
0.8237267
0
Get all messages to a specified user that are greater than LastMessageId Params: ConversationIdArray an array of conversation ids that you want the messages for this can be obtained from: GetConversationIdsFromUserId() LastMessageId a message id returns: array of messages on success, or an errormsg on error
Получить все сообщения для указанного пользователя, которые больше LastMessageId Параметры: ConversationIdArray массив идентификаторов чатов, для которых вы хотите получить сообщения, это можно получить из: GetConversationIdsFromUserId() LastMessageId идентификатор сообщения Возвращается: массив сообщений в случае успе...
function GetMessages( $ConversationIdArray, $LastMessageId ){ if( ! is_array( $ConversationIdArray ) || ! is_int( $LastMessageId ) ) return( "Param error: ConversationIdArray / LastMessageId - wrong type or empty." ); $Messages = array(); if( 0 == count( $ConversationIdArray ) ){ // this user is not in any conv...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getMessagesFromLastReceivedMessage($userId, $lastId = 0)\n {\n $userId = intval($userId);\n $lastId = intval($lastId);\n\n if (empty($userId)) {\n return 0;\n }\n\n $messagesTable = Database::get_main_table(TABLE_MESSAGE);\n $userTable ...
[ "0.7131494", "0.69212425", "0.6910486", "0.69050115", "0.6769677", "0.6648811", "0.65980834", "0.6537211", "0.65326416", "0.6511721", "0.6491113", "0.64504147", "0.6447291", "0.64414334", "0.6424168", "0.6406356", "0.64015853", "0.6400921", "0.63757455", "0.6330126", "0.63251...
0.7725402
0
update all LastReadMessage_Id for all User_Id in all their active conversations given an array of array( 0 => array(Conversation_Id,User_Id,Message_Id), 1 => array(Conversation_Id,User_Id,Message_Id), ... ) update the ChatConversationParticipants tables setting the LastReadMessage_Id to the Message_Id for each Conversa...
обновить LastReadMessage_Id для всех User_Id в всех их активных беседах, используя массив массивов (0 => массив(Conversation_Id, User_Id, Message_Id), 1 => массив(Conversation_Id, User_Id, Message_Id), ...) обновить таблицу ChatConversationParticipants, установив LastReadMessage_Id в Message_Id для каждого Conversation...
function UpdateLastRead( $LastReadArray ){ if( ! is_array( $LastReadArray ) || 0 == count( $LastReadArray ) ) return( "Param error: LastReadArray - wrong type or empty." ); /* // compose an sql statement like this: UPDATE ChatConversationParticipants SET LastReadMessage_Id = CASE WHEN ( Conversation_Id = 42 A...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function update(Request $request, User $message)\n {\n //\n $converses=Conversation::Where('r_id',auth()->user()->id)->where('status','unread')->orderBy('updated_at','desc')->get();\n $this->validate($request,[\n 'body'=>'required'\n ]);\n $name = $message->n...
[ "0.54812247", "0.5395084", "0.5365171", "0.52720004", "0.52615255", "0.52101547", "0.5194421", "0.519151", "0.5179355", "0.5174167", "0.51727647", "0.51579106", "0.51503325", "0.514385", "0.5123578", "0.5120785", "0.49562293", "0.49424025", "0.49310806", "0.49177518", "0.4917...
0.70691985
0
Echo the title of a post. The genesis_post_title_text filter is applied on the text of the title, while the genesis_post_title_output filter is applied on the echoed markup.
Отобразить заголовок поста. Фильтр genesis_post_title_text применяется к тексту заголовка, а фильтр genesis_post_title_output — к отображаемому разметке.
function maw_genesis_do_post_title() { $title = apply_filters( 'genesis_post_title_text', get_the_title() ); if ( 0 == strlen( $title ) ) return; if ( is_singular() ) $title = sprintf( '<h2><span>%s</span></h2>', $title ); elseif ( apply_filters( 'genesis_link_post_title', true ) ) $title = sprin...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static function post_title() {\r\n\t\t\techo '<div class=\"single-title post-title is-big-title entry-title\">';\r\n\t\t\techo '<h1>';\r\n\t\t\tthe_title();\r\n\t\t\techo '</h1>';\r\n\t\t\techo '</div><!--#single title-->';\r\n\t\t}", "public function title() {\n if ($this->no_results)\n ...
[ "0.72182053", "0.7154993", "0.71176565", "0.70930976", "0.70409596", "0.69600683", "0.68654716", "0.6801719", "0.6775993", "0.6756393", "0.6695168", "0.66945124", "0.6684915", "0.6654778", "0.66547406", "0.6611083", "0.6609375", "0.6604867", "0.657711", "0.656961", "0.6561820...
0.7638614
0
/ recherche de personnes
/ поиск людей
function searchPerson($ar){ $p = new XParam($ar, array()); $nom = trim($p->get('nom')); if (empty($nom)){ die(json_encode(array('ok'=>1, 'nb'=>0))); } $searchmode = $p->get('searchmode'); $person = array('NOM'=>trim($nom), 'PRENOM'=>($searchmode==1)?trim($p->get('prenom...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function searchPersons() {\r\n $this->checkRole();\r\n $this->checkMessages();\r\n \r\n echo new \\view\\Main(array(\r\n \"body\" => new \\view\\administrator\\PersonSearch(array(\r\n \"errorMessage\" => $this->errorMessage,\r\n \"resultMe...
[ "0.7650126", "0.7278807", "0.6981606", "0.6973406", "0.6881132", "0.6881132", "0.6713378", "0.6563056", "0.6499674", "0.64926386", "0.64774173", "0.64610404", "0.6420362", "0.64107156", "0.63830453", "0.63769555", "0.6361315", "0.6357329", "0.63490885", "0.631411", "0.6309722...
0.73237485
1
Returns configured mPDF object
Возвращает настроенный объект mPDF
protected function getPdfObject() { // Get options from TypoScript $pageFormat = ($this->options->getPdfPageFormat()) ? $this->options->getPdfPageFormat() : 'A4'; $pageOrientation = ($orientation = $this->options->getPdfPageOrientation()) ? $orientation : 'L'; $leftMargin = ($this->opti...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getMpdf()\n\t{\n\t\treturn $this->mpdf;\n\t}", "protected function getPDF(){\n return $this->pdf;\n }", "public function getPdf()\n {\n if (func_num_args() === 0)\n {\n $Provider = $this->Provider->getInstance();\n }\n else\n {\n $...
[ "0.74084985", "0.6472614", "0.63614607", "0.6325647", "0.6292673", "0.6289274", "0.62191015", "0.6187841", "0.6001618", "0.59842324", "0.59487957", "0.58932346", "0.5825438", "0.58201236", "0.5813508", "0.57729405", "0.5737202", "0.57172984", "0.56665576", "0.56665576", "0.56...
0.75799066
0
Creates a new row in the sys_file_reference table and returns it's uid
Создает новую строку в таблице sys_file_reference и возвращает её uid
protected function createNewFileReferenceRow(): int { return $this->dbService->getQuery('sys_file_reference')->insert([ 'table_local' => 'sys_file', 'sys_language_uid' => TcaUtil::getLanguageUid($this->row, $this->tableName) ?? 0, 'tstamp' => $GLOBALS['EXEC_TIME'], ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function processNewSysFileReference(int $uid)\n {\n $record = BackendUtility::getRecord('sys_file_reference', $uid);\n\n // Try to find the file\n try {\n $file = GeneralUtility::makeInstance(ResourceFactory::class)->getFileObject($record['uid_local']);\n } catch...
[ "0.58760166", "0.5697423", "0.568461", "0.5678052", "0.55164367", "0.5500278", "0.54475665", "0.54241574", "0.54127806", "0.5412347", "0.5372283", "0.53314555", "0.5286101", "0.52786875", "0.5215034", "0.5132681", "0.5121013", "0.51114655", "0.51000595", "0.50273126", "0.4993...
0.7575936
0
Show Help includes (Usage, Arguments, Description, Options).
Показать справку включает (Использование, Аргументы, Описание, Опции).
public function showHelp() { CLI::write(hkm_lang('CLI.helpUsage'), 'yellow'); if (! empty($this->usage)) { $usage = $this->usage; } else { $usage = $this->name; if (! empty($this->arguments)) { $usage .= ' [arguments]'; } } CLI::write(hkm_setPad($usage, 0, 0, 2)); if (! empty($...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function showHelp()\n {\n echo $this->help();\n exit(0);\n }", "public function help()\n {\n if ($this->_opts) {\n echo $this->_opts->getUsageMessage();\n echo \"\\n\";\n }\n\n exit(1);\n }", "public function cli_help() {}", "protect...
[ "0.83484936", "0.83144957", "0.8268957", "0.8132672", "0.8026131", "0.8014356", "0.793721", "0.7925517", "0.792493", "0.79146385", "0.7908727", "0.7746654", "0.7744488", "0.7742208", "0.7729575", "0.7710249", "0.7692481", "0.7688769", "0.76769495", "0.766561", "0.7646882", ...
0.8362985
0
Get the EC private key in octet string representation.
Получите приватный ключ EC в виде строки октетов.
public function privateKeyOctets(): string { return $this->string(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function privateKeyOctets(): string\n {\n return $this->_privateKey;\n }", "public function getPrivateKey() {\n\t\treturn $this->getKey('priv');\n\t}", "public function getPrivateKey()\n {\n return Arr::get($this->keys, 'private');\n }", "public function getPrivateKey() {}", ...
[ "0.74838275", "0.66025186", "0.6523395", "0.6513327", "0.641475", "0.6412446", "0.63767374", "0.63754994", "0.62270564", "0.6209741", "0.6209741", "0.6209741", "0.6208903", "0.6181936", "0.6161917", "0.6147834", "0.60542375", "0.60421854", "0.60421294", "0.6018881", "0.600768...
0.7181921
1
Including the css in html/head section. codeyml type: widget data: plugin: 'davegandy/fontawesome450' method: include code
Включение css в раздел html/head. codeyml тип: widget данные: плагин: 'davegandy/fontawesome450' метод: include код
public static function widget_include(){ $element = wfDocument::createHtmlElement('link', null, array('href' => '/plugin/davegandy/fontawesome450/css/font-awesome.css', 'rel' => 'stylesheet', 'id' => 'PluginDavegandyFontawesome450')); wfDocument::renderElement(array($element)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function theme58090_include_custom_assets() {\n\t// Get the theme prefix.\n\t$prefix = cherry_get_prefix();\n\n\twp_enqueue_style( 'font-awesome', '//maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css', false, '4.4.0', 'all' );\n\twp_enqueue_style( 'fl-bigmug-line', get_stylesheet_directory_uri() ...
[ "0.7194629", "0.68886346", "0.68027765", "0.6758039", "0.67354566", "0.6732843", "0.6705558", "0.6703883", "0.6686077", "0.66773194", "0.6665173", "0.66289943", "0.6627519", "0.66099006", "0.66034144", "0.66021097", "0.66002387", "0.65892124", "0.6583109", "0.65668803", "0.65...
0.8063795
0
Render an i tag with Fontawesome class. Set data/spin as true to make icon spin. Set data/size to one of lg, 2x, 3x, 4x or 5x to make icon larger. codeyml type: widget data: plugin: 'davegandy/fontawesome450' method: 'render' data: icon: 'plug' code
Отобразить тег i с классом Fontawesome. Установите data/spin в true, чтобы сделать иконку вращающейся. Установите data/size в одно из значений lg, 2x, 3x, 4x или 5x, чтобы увеличить размер иконки. codeyml тип: widget данные: плагин: 'davegandy/fontawesome450' метод: 'render' данные: иконка: 'plug' code
public static function widget_render($data){ $default = array( 'icon' => 'windows', 'size' => null, 'spin' => false, ); $default = array_merge($default, $data['data']); $class = 'fa fa-'.wfArray::get($default, 'icon'); if(wfArray::get($default, 'size'))...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function font_awesome($icon){\n\treturn \"<span class='fa fa-fw $icon'></span>\";\n}", "function i($code)\n{\n $icon = '<i class=\"fa fa-' . $code . ' \" ></i>';\n return $icon;\n}", "public function renderIcon($attrs);", "function MyMod_Interface_Icon($icon,$options=array())\n {\n $options[...
[ "0.6148088", "0.6109923", "0.606604", "0.60266554", "0.6024111", "0.60229087", "0.6004468", "0.5938415", "0.5867488", "0.58541524", "0.58481514", "0.58276397", "0.5826917", "0.5813581", "0.57662684", "0.56982154", "0.567814", "0.56652313", "0.5663785", "0.56308585", "0.561685...
0.70532095
0
Returns admin auth id, in this case email
Возвращает идентификатор администратора для аутентификации, в данном случае email
private function identity() { return $this->authService->getIdentity()->admin_email; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getAdminId()\n {\n return self::where('name', 'admin')->first()->id;\n }", "public function getAdminId()\n {\n return $this->_adminId;\n }", "public function getAdminId(): int\n {\n return $this->adminId;\n }", "function getAdminUserId...
[ "0.7829392", "0.762353", "0.7596112", "0.7545505", "0.7473447", "0.74266887", "0.73756725", "0.73725325", "0.73287404", "0.7303456", "0.72154707", "0.7210484", "0.7210145", "0.70377463", "0.7035744", "0.6976088", "0.6934805", "0.6920211", "0.69015867", "0.6843923", "0.6819702...
0.77768666
1
asserts that created filter is same as original filter
утверждает, что созданный фильтр такой же, как оригинальный фильтр
protected function assertOriginalFilter(stubFilter $filter, $createdFilter) { parent::assertOriginalFilter($filter, $createdFilter->getDecoratedFilter()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testFilterShouldNotLog()\n {\n /** @var MockObject|LoggerInterface $mock */\n $mock = $this->createMock(LoggerInterface::class);\n\n /** @var MockObject|callable $filter1 */\n $filter1 = $this->createPartialMock(CallableMock::class, ['__invoke']);\n $filter1->e...
[ "0.63858724", "0.6335551", "0.6285215", "0.6247623", "0.6108243", "0.61018634", "0.60995704", "0.6073411", "0.6066494", "0.6030105", "0.59793043", "0.59664893", "0.5957228", "0.59325606", "0.5901794", "0.59011436", "0.58325464", "0.58265954", "0.57997376", "0.5799033", "0.577...
0.7627166
0
Instanciate player with name and 0 points
Создать игрока с именем и 0 очками
public function __construct(string $name = null) { $this->type = "Player"; $this->name = $name ? $name : $this->type . rand(1000, 9999); $this->totalPoints = 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createPlayer();", "function createPlayer($name)\n\t{\n\t\t$player = array(\"teamkills\" => 0,\n\t\t\t\t\t\t\"teamkilled\" => 0,\n\t\t\t\t\t\t\"chatlines\" => 0,\n\t\t\t\t\t\t\"suicides\" => 0,\n\t\t\t\t\t\t\"votes\" => 0,\n\t\t\t\t\t\t\"kicks\" => 0,\n\t\t\t\t\t\t\"currentspree\" => 0,\n\t\t\t\t\...
[ "0.75646675", "0.7030315", "0.66361034", "0.65837073", "0.6536788", "0.6305783", "0.6302668", "0.6270241", "0.6146727", "0.6139227", "0.61200804", "0.6095816", "0.609405", "0.6033344", "0.5997286", "0.597451", "0.59226304", "0.5910229", "0.5876709", "0.58662915", "0.5856563",...
0.7788808
0
Returns true if players total points is greater than or equal to 100 else false
Возвращает true, если общая сумма очков игроков больше или равна 100, иначе false
public function hasWon() { return $this->totalPoints >= 100; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function validatePoints()\n {\n $original_points = (int)UserBagQuery::create()->findPk($this->getBagId())->getTotalPoints();\n $original_points += BagsPeer::EXTRA_POINTS;\n // Add extra points allowed by admin\n if ($this->isNew()) {\n $points = $this->getTotalPoint...
[ "0.6681627", "0.65634465", "0.6459438", "0.6431436", "0.6335359", "0.6255071", "0.6217004", "0.6205909", "0.61985135", "0.61810035", "0.61215484", "0.6096664", "0.609483", "0.60923815", "0.60782665", "0.6063878", "0.60480016", "0.5989662", "0.5987846", "0.5960834", "0.5921903...
0.7160382
0
Display the theme credit
Показать кредит темы
function freshio_credit() { ?> <div class="site-info"> <?php echo apply_filters('freshio_copyright_text', $content = esc_html__('Coppyright', 'freshio') . ' &copy; ' . date('Y') . ' ' . '<a class="site-url" href="' . site_url() . '">' . get_bloginfo('name') . '</a>' . esc_html__('. All Rights Reserved.', 'fresh...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function crmpress_do_credits() {\n\n\t?>\n\t<p class=\"credit\"><a href=\"http://www.billerickson.net/wordpress-genesis-crm/\" target=\"_blank\"><?php _e( 'Powered by CRM Press', 'crmpress' ); ?></a></p>\n\t<?php\n\n}", "protected function get_credit() {\n\t\treturn '<p class=\"cs_credit\">Calendar produced usin...
[ "0.7575988", "0.7511154", "0.72472966", "0.69879436", "0.6894115", "0.683733", "0.6796641", "0.6733958", "0.67251027", "0.6669395", "0.65676165", "0.6481012", "0.64719874", "0.64497197", "0.6442072", "0.6434391", "0.64138937", "0.6300934", "0.6290616", "0.62748605", "0.626895...
0.76516503
0
Site branding wrapper and display
Обертка для брендирования сайта и отображение
function freshio_site_branding() { ?> <div class="site-branding"> <?php echo freshio_site_title_or_logo(); ?> </div> <?php }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function storefront_site_branding() {\n return;\n}", "function the_brand() {\n\n\tif ( function_exists( 'the_custom_logo' ) ) {\n\t\tthe_custom_logo();\n\t} else {\n\t\t$brand = get_bloginfo('name');\n $output = $brand;\n\t}\n}", "public function add_brand()\n\t{\n\t\t$header = $this->loaded_module_a...
[ "0.7185809", "0.6720469", "0.658935", "0.65762866", "0.65745586", "0.6542674", "0.6496781", "0.64410317", "0.6413965", "0.6411489", "0.64052063", "0.6321198", "0.63044196", "0.6251974", "0.6245962", "0.62387174", "0.62237775", "0.62039566", "0.6167225", "0.6156186", "0.614553...
0.7871283
0
Display navigation to next/previous post when applicable.
Показывать навигацию к следующему/предыдущему посту при наличии.
function freshio_post_nav() { $prev_post = get_previous_post(); $next_post = get_next_post(); $args = array( 'next_text' => get_the_post_thumbnail($next_post->ID, array(110, 110)) . '<span class="nav-content"><span class="reader-text">' . esc_html__('NEXT', 'freshio') . ' </span>%title' . '</span> ', 'pre...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function _kalium_blog_single_post_prev_next_navigation() {\n\tif ( kalium_blog_get_option( 'single/prev_next' ) ) {\n\n\t\t// Args\n\t\t$args = [];\n\n\t\t$adjacent_post_args = apply_filters( 'kalium_blog_single_post_prev_next_navigation', [\n\t\t\t'return' => 'id',\n\t\t\t'loop' => true\n\t\t] );\n\n\t\t$prev_i...
[ "0.753764", "0.7503505", "0.72719234", "0.7257473", "0.7242458", "0.72187775", "0.71033424", "0.7056341", "0.7034301", "0.7023912", "0.7021799", "0.69786257", "0.6952084", "0.69372654", "0.68880755", "0.6872854", "0.68387836", "0.6809484", "0.67802584", "0.6751055", "0.674716...
0.7853644
0
Display social icons If the subscribe and connect plugin is active, display the icons.
Показывать иконки социальных сетей Если активен плагин подписки и подключения, отображать иконки.
function freshio_social_icons() { if (class_exists('Subscribe_And_Connect')) { echo '<div class="subscribe-and-connect-connect">'; subscribe_and_connect_connect(); echo '</div>'; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hasSocialIcons() {\n return true;\n }", "function foundation_q_the_social_accounts( $show_icons = false ){\n\n // Variáveis\n $foundation_skype = foundation_q_get_option( 'social_skype_user' );\n $foundation_whatsapp = foundation_q_get_option( 'social_whatsapp_user' );\n ...
[ "0.7469688", "0.71680784", "0.7121175", "0.6879064", "0.68295634", "0.67699784", "0.6757376", "0.6701878", "0.66816705", "0.6627469", "0.6599008", "0.65676546", "0.65470606", "0.65350354", "0.65322626", "0.63987076", "0.6397136", "0.6350571", "0.6259229", "0.6250878", "0.6156...
0.8226564
0
The primary navigation wrapper
Основной элемент обертки навигации
function freshio_primary_navigation_wrapper() { echo '<div class="freshio-primary-navigation"><div class="col-full">'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function showPrimaryNav()\n {\n }", "public function OpenMainNav(){\n\t\techo '<ul class=\"mainnav\">';\n\t}", "private function app_nav() {\n\n $aidlink = parent::get_aidlink();\n\n $locale = parent::get_locale();\n\n $sections = Admins::getInstance()->getAdminSections();\n\n ...
[ "0.6910449", "0.6609733", "0.65216416", "0.64571", "0.6446471", "0.6440984", "0.63949364", "0.6388638", "0.63688993", "0.6328863", "0.6293733", "0.6292099", "0.62698185", "0.626845", "0.6226422", "0.62208945", "0.6218065", "0.62081325", "0.61972994", "0.6176302", "0.6167484",...
0.7526593
0
The primary navigation wrapper close
Основной навигационный обертка закрыть
function freshio_primary_navigation_wrapper_close() { echo '</div></div>'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function storechild_primary_navigation_wrapper_close() {\n\techo '</section>';\n}", "function llorix_one_lite_home_ribbon_section_close_trigger() {\n\tdo_action( 'llorix_one_lite_home_ribbon_section_close' );\n}", "function llorix_one_lite_home_logos_section_close_trigger() {\n\tdo_action( 'llorix_one_lite_hom...
[ "0.7247751", "0.67506754", "0.6717133", "0.63560355", "0.63437974", "0.6329656", "0.6319514", "0.62992", "0.62931263", "0.62866724", "0.6219299", "0.6174017", "0.61336154", "0.6127411", "0.61024505", "0.605779", "0.6031821", "0.60269934", "0.6016231", "0.59765595", "0.5888332...
0.8112264
0
The header container close
Закрытие контейнера заголовка
function freshio_header_container_close() { echo '</div>'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function tableheader_close() {\n }", "function header_action_close()\n {\n return app('reactor.builders.contents')->headerActionClose();\n }", "function alienship_entry_header_markup_close() {\n\techo '</header>';\n}", "function section_close() {\n }", "function llorix_one_lite_header_to...
[ "0.7578536", "0.7335911", "0.6935076", "0.66410744", "0.66257685", "0.65525097", "0.65447557", "0.6502827", "0.6493602", "0.64462125", "0.6415899", "0.63178396", "0.6308604", "0.6269554", "0.62401015", "0.6236148", "0.619857", "0.61937916", "0.61860675", "0.6181587", "0.61650...
0.8369299
0
/ Gets all the cars used for a particular class param int $class_id the class id to search for returns associative array containing all the cars
Получает все автомобили, используемые для определенного класса параметр int $class_id идентификатор класса для поиска возвращает ассоциативный массив, содержащий все автомобили
public static function getCarsInClass($class_id) { if (empty($class_id) OR !is_numeric($class_id)) { trigger_error('Error - $class_id cannot be empty and must be numeric', E_USER_ERROR); } // array to hold our final list of cars $class_car_ids = array(); // get class cars from DB $sele...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function get_vehicles_by_class($class_id, $sort) {\n $db = Database::getDB();\n if ($sort == 'year') {\n $order_by = 'V.year';\n } else {\n $order_by = 'V.price';\n }\n $query = 'SELECT V.vehicle_id, V.year, V.price, V.model, M.Make, T.Type,...
[ "0.68008494", "0.6419409", "0.63301414", "0.621449", "0.6184807", "0.61826247", "0.60795414", "0.60663974", "0.60484695", "0.6044739", "0.6024068", "0.6004847", "0.59339374", "0.5913733", "0.5905721", "0.59016114", "0.58903074", "0.587727", "0.58735573", "0.5857351", "0.58453...
0.8648281
0
Show the form for creating a new ServiceOption.
Показать форму для создания нового ServiceOption.
public function create() { return view('service_options.create'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create() {\n //\n return view('admin.option.create');\n }", "public function create()\n\t{\n\t\t\n\t\treturn view('option/create');\n\t}", "public function create()\n {\n return view('admin.serviceAdd');\n }", "public function create()\n {\n return view...
[ "0.71844256", "0.7107957", "0.69858086", "0.68742144", "0.67319375", "0.6641363", "0.6628694", "0.66138184", "0.6581318", "0.6581318", "0.6581318", "0.6581318", "0.6581318", "0.6581318", "0.6569416", "0.65684724", "0.65681034", "0.6564358", "0.65544224", "0.6550652", "0.65498...
0.8008199
0
Store a newly created ServiceOption in storage.
Храните только что созданный ServiceOption в хранилище.
public function store(CreateServiceOptionRequest $request) { $this->validate($request,[ 'name'=>'required|unique:service_options,name' ]); $input = $request->all(); $input['created_by'] = Auth::user()->mf_id; $input['client_id']= Auth::user()->client_id; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store(VotingOptionDTO $votingOptionDTO): void;", "public function store() {\n\t\tupdate_option( $this->option_name, $this, 'no' );\n\n\t\tdelete_transient($this->option_name);\n\t\tset_transient($this->option_name, $this);\n\t}", "public function store()\n\t{\n\t\t$rules = array(\n\t\t\t'option...
[ "0.65640587", "0.6527178", "0.65137637", "0.618648", "0.60476243", "0.60407233", "0.5989788", "0.59241325", "0.5872527", "0.5856663", "0.58308136", "0.58208853", "0.57881284", "0.5774969", "0.57273364", "0.5671761", "0.5608587", "0.5543012", "0.5533302", "0.55260384", "0.5520...
0.7114615
0
Test custom status with unknown reason
Тестирование пользовательского статуса с неизвестной причиной
public function testCustomStatusWithUnknownReason() { $status = new Status(599); $this->assertSame(599, $status->code()); $this->assertSame('Unknown', $status->reason()); $this->assertSame('599 Unknown', (string) $status); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testInvalidStatus()\n {\n $response = $this->get(\"paymentendpoint/ce3a0b03349078d8e85d1de8ded3f0/complete\");\n $this->assertEquals($response->getStatusCode(), 403);\n }", "abstract public function getStatusMessage();", "public function testAssertResponseStatusErrorPass()\n...
[ "0.6868431", "0.67062426", "0.66548747", "0.6576808", "0.6567753", "0.6563442", "0.6536232", "0.6468409", "0.63938636", "0.63938636", "0.634872", "0.63459575", "0.6331879", "0.6301629", "0.6274934", "0.6247968", "0.62284625", "0.622686", "0.6224713", "0.62219095", "0.6199404"...
0.76748717
0
Return minor version of svn client
Верните минорную версию клиента svn
public static function getSvnMinorVersion() { $version = USVN_SVNUtils::getSvnVersion(); return $version[1]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getLongVersion()\n\t{\n\t\t$version = parent::getLongVersion();\n\n\t\t/** @var Connector $repository_connector */\n\t\t$repository_connector = $this->dic['repository_connector'];\n\t\t$client_version = $repository_connector->getCommand('', '--version --quiet')->run();\n\n\t\treturn $version . ' (S...
[ "0.7343148", "0.70370877", "0.70209354", "0.69291013", "0.67650735", "0.67288584", "0.66962034", "0.66851693", "0.6644318", "0.65268373", "0.6465419", "0.64490837", "0.64490837", "0.64490837", "0.64490837", "0.64490837", "0.6438288", "0.6419702", "0.6418006", "0.63816094", "0...
0.8318592
0
Return version of svn client
Версия клиента svn
public static function getSvnVersion() { return USVN_SVNUtils::parseSvnVersion(USVN_ConsoleUtils::runCmdCaptureMessage(USVN_SVNUtils::svnCommand("--version --quiet"), $return)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getLongVersion()\n\t{\n\t\t$version = parent::getLongVersion();\n\n\t\t/** @var Connector $repository_connector */\n\t\t$repository_connector = $this->dic['repository_connector'];\n\t\t$client_version = $repository_connector->getCommand('', '--version --quiet')->run();\n\n\t\treturn $version . ' (S...
[ "0.73978204", "0.70427597", "0.70182896", "0.69187987", "0.6874328", "0.6832942", "0.6832942", "0.6757236", "0.6749678", "0.6733095", "0.6695932", "0.66900086", "0.66900086", "0.6656842", "0.66498613", "0.66498613", "0.66298705", "0.66057956", "0.65932435", "0.65915704", "0.6...
0.7992857
0
Get the command svnadmin
Получить команду svnadmin
public static function svnadminCommand($cmd) { return "svnadmin --config-dir /USVN/fake $cmd"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCommandString()\n {\n return $this->command_string;\n }", "public function getCommand(): string;", "function getCommand() {\n\t\treturn 'list';\n\t}", "public function get_command()\n\t{\n\t\t$params = '';\n\n\t\tif ($this->params)\n\t\t\t$params = ' ' . implode(' ', $this->pa...
[ "0.65339535", "0.6271937", "0.62269443", "0.6217353", "0.61532426", "0.60984904", "0.6096136", "0.60774755", "0.60774755", "0.6049134", "0.60457367", "0.60316586", "0.6030139", "0.6020228", "0.6010968", "0.6010968", "0.60051155", "0.60051155", "0.5955805", "0.5926579", "0.588...
0.71213514
0
Get the path to the templates repository in URL form (file://...).
Получите путь к репозиторию шаблонов в виде URL (file://...).
private static function getTemplatesRepoFileUrl( $config ) { $path = self::getTemplatesRepoFilesystemPath( $config ); if( empty( $path ) ) { return NULL; } return self::getRepositoryFileUrl( $path ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_path() {\n\t\tif ( ! empty( $this->branch ) ) {\n\t\t\treturn TEMPLATE_REPO_PATH . $this->username . '/' . $this->repository . '/' . $this->branch . '/';\n\t\t}\n\t\treturn TEMPLATE_REPO_PATH . $this->username . '/' . $this->repository . '/';\n\t}", "function getTemplatePath();", "public st...
[ "0.7579477", "0.74242693", "0.7397564", "0.730694", "0.7272787", "0.71909463", "0.7102072", "0.6992247", "0.6966271", "0.69631416", "0.68608123", "0.6833985", "0.68304896", "0.68286663", "0.6819686", "0.6812738", "0.6810264", "0.6798686", "0.67966235", "0.6794607", "0.6789499...
0.7522769
1
Get the list of repository templates.
Получить список шаблонов репозиториев.
public static function getRepositoryTemplates() { $config = Zend_Registry::get('config'); $path = self::getTemplatesRepoFileUrl( $config ); if( empty( $path ) ) { return NULL; } $cmd_output = USVN_ConsoleUtils::runCmdCaptureMessageUnsafe( USVN_SVNUtils::svnCommand("ls $path"), $return_code ); if...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTemplates();", "public function getTemplates();", "public function getTemplates()\n {\n $response = $this->prepareHttpClient('/templates')\n ->send();\n\n return $this->parseResponse($response);\n }", "function getTemplatesListing()\r\n\t{\r\n\t\...
[ "0.721894", "0.721894", "0.7153169", "0.69664747", "0.68475837", "0.6814356", "0.6792673", "0.67913973", "0.67780936", "0.67780936", "0.67780936", "0.67780936", "0.67731637", "0.677222", "0.67623526", "0.6737131", "0.66991365", "0.669782", "0.66945034", "0.6658538", "0.662669...
0.8161444
0
Get a descriptive message for the last JSON decoding error.
Получить описательное сообщение об последней ошибке декодирования JSON.
private static function getJsonErrorMsg() { if( function_exists('json_last_error_msg') ) { return json_last_error_msg(); } else { switch( json_last_error() ) { case JSON_ERROR_NONE: return 'No error'; case JSON_ERROR_DEPTH: return 'Maximum stack depth exceeded'; case JSON_ERROR_ST...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function get_json_last_error()\n {\n }", "function json_last_error () {}", "protected function getJsonError() {\n\t\t$error = '';\n\t\tswitch (json_last_error()) {\n\t\t\tcase JSON_ERROR_NONE:\n\t\t\t\t$error = 'No errors';\n\t\t\t\tbreak;\n\t\t\tcase JSON_ERROR_DEPTH:\n\t\t\t\t$error = 'Maximu...
[ "0.7629576", "0.73837215", "0.72978276", "0.72855353", "0.70815706", "0.70006037", "0.65535176", "0.65133536", "0.64748436", "0.64532423", "0.637134", "0.6318291", "0.6225379", "0.6201429", "0.6186253", "0.615064", "0.6106194", "0.61053735", "0.6104015", "0.60757095", "0.6042...
0.75717056
1
Decode the SVN access control file (that shall be in JSON form) into a hashed array containing the decoded elements.
Декодируйте файл контроля доступа SVN (который должен быть в формате JSON) в массив с хэшированными элементами.
private static function parseAccessFile( $svnaccess_contents ) { $svnaccess_specs = json_decode( $svnaccess_contents, TRUE ); if( json_last_error() != JSON_ERROR_NONE ) { throw new USVN_Exception( "Error parsing SVN access control file: %s", self::getJsonErrorMsg() ); } return $svnaccess_specs; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function draftinfo_decode($str)\n {\n $info = array();\n\n foreach (preg_split('/;\\s+/', $str) as $part) {\n list($key, $val) = explode('=', $part, 2);\n if (strpos($val, 'B::') === 0) {\n $val = base64_decode(substr($val, 3));\n }\n ...
[ "0.5488374", "0.5254208", "0.5189446", "0.5188604", "0.5133165", "0.5123362", "0.5105458", "0.5090302", "0.50833946", "0.50728154", "0.5039246", "0.49983442", "0.49967217", "0.4958914", "0.49580672", "0.49509308", "0.49429265", "0.49105242", "0.49060306", "0.49021327", "0.490...
0.7300051
0
CC every email generated by the Email class to the given address. It won't affect the original delivery in the same way that send_all_emails_to does.It just adds a CC header with the given email address.Note that you can only call this once subsequent calls will overwrite the configuration variable. This can be used wh...
Копировать каждый электронный адрес, сгенерированный классом Email, в указанный адрес. Это не повлияет на оригинальную доставку так же, как send_all_emails_to. Это просто добавляет заголовок CC с указанным адресом электронной почты. Обратите внимание, что этот метод можно вызвать только один раз, последующие вызовы пер...
public static function cc_all_emails_to($emailAddress) { self::$cc_all_emails_to = $emailAddress; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function cc($email, $name = '')\r\n {\r\n foreach (EmailUtil::explodeAddresses($email) as $emailAddress) {\r\n $this->_ccEmailList[] = $emailAddress;\r\n $this->_phpmailer->addCC($email,$name);\r\n }\r\n }", "public function cc(string $email);", "public function...
[ "0.7298704", "0.714926", "0.7119207", "0.69035786", "0.68469423", "0.671879", "0.6717861", "0.6694323", "0.6691638", "0.6678636", "0.6665987", "0.6644578", "0.66341513", "0.66009617", "0.6533844", "0.6520026", "0.64536893", "0.64501107", "0.63369924", "0.6291688", "0.6280547"...
0.7760438
0
BCC every email generated by the Email class to the given address. It won't affect the original delivery in the same way that send_all_emails_to does.It just adds a BCC header with the given email address.Note that you can only call this once subsequent calls will overwrite the configuration variable. This can be used ...
Все электронные письма, созданные классом Email, будут отправляться как BCC на указанный адрес. Это не повлияет на исходную доставку так же, как send_all_emails_to. Это просто добавляет заголовок BCC с указанным адресом электронной почты. Обратите внимание, что этот метод можно вызвать только один раз, последующие вызо...
public static function bcc_all_emails_to($emailAddress) { self::$bcc_all_emails_to = $emailAddress; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function bcc($email,$name='')\r\n {\r\n foreach (EmailUtil::explodeAddresses($email) as $emailAddress) {\r\n $this->_bccEmailList[] = $emailAddress;\r\n $this->_phpmailer->addBCC($email,$name);\r\n }\r\n }", "public function bccToContact()\n {\n $email =...
[ "0.7436944", "0.7077176", "0.70663244", "0.692261", "0.69037473", "0.68986416", "0.6886086", "0.68815565", "0.6849676", "0.68395233", "0.68343455", "0.67984474", "0.67843306", "0.67329985", "0.67176855", "0.6708325", "0.6696274", "0.6560676", "0.654705", "0.65426546", "0.6501...
0.7713377
0
Custom field for selecting image
Пользовательское поле для выбора изображения
public function settings_select_image( $field ){ $image_id_name = 'image_id_' . $field['name']; $image_src_name = 'image_src_' . $field['name']; // Field select $this->settings_hidden( array( 'name' => $image_id_name ) ); $this-...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function add_smt_image_field() {\n // this will add the custom meta field to the add new term page\n wp_enqueue_media(); \n ?>\n <div class=\"form-field\">\n <label for=\"smt_image\"><?php _e( 'Category Image:', 'journey' ); ?></label>\n <input type=\"text\" name=\"smt_image[image]\" id=\"...
[ "0.72196347", "0.7175724", "0.70355934", "0.68821675", "0.68384457", "0.67718905", "0.6733773", "0.6715307", "0.666732", "0.65539306", "0.6539699", "0.6539385", "0.6518171", "0.6508009", "0.649963", "0.649392", "0.6428693", "0.64150685", "0.6408063", "0.64078355", "0.6391754"...
0.72539604
0
Custom field for updating Gravity Forms Popup cookie
Пользовательское поле для обновления куки Gravity Forms Popup
public function settings_update_gravityforms_popup_cookie_type(){ $link = "admin-ajax.php?action=gravityforms_popup_update_cookie"; $label = __( 'Update Cookie', 'gravityforms-popup' ); $desc = __( 'Clicking this will force all visitor to view the popup (again)', 'gravityforms-popup'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function set_cookie_value(){\n \t$settings_link \t= admin_url( \"admin.php?page=gf_settings&subview=gravityforms-popup\" );\n\n \t$timestamp = current_time( 'timestamp' );\n\n if( $this->get_plugin_setting( 'use_multisite_cookie', 0 ) > 0 ){\n $update = update_site_op...
[ "0.7517184", "0.67336386", "0.6207939", "0.6125926", "0.5979121", "0.58795094", "0.5874751", "0.5855656", "0.58415484", "0.5802828", "0.57753813", "0.576489", "0.5741566", "0.573963", "0.5735254", "0.5722787", "0.56882113", "0.56764567", "0.5667639", "0.5662902", "0.5647339",...
0.7612525
0
/Poll BBB /Poll() sends UDP packet to BBB to get the temperature value and receives the value from the BBB.
/Пoll BBB /Poll() отправляет UDP-пакет на BBB для получения значения температуры и получает это значение с BBB.
function poll() { $remote_ip =$GLOBALS['BBBip']; /* IP Address of BBB */ $remote_port = $GLOBALS['BBBport']; /* Port number of BBB */ $rip = ''; $rport = 0; fwrite($GLOBALS['log'],date("Y-F-d H:i:s",time())." > Polling BBB...\n"); socket_sendto($GLOBALS['sock'], $GLOBALS['led'], 100 , 0 , $rem...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function poll()\r\n {\r\n\t $remote_ip = $GLOBALS['BBBip'];\t/*\tIP Address of BBB\t*/\r\n\t $remote_port = $GLOBALS['BBBport'];\t\t\t/*\tPort number of BBB\t*/\r\n\t $rip = '';\r\n\t $rport = 0;\r\n\t \r\n\t fwrite($GLOBALS['log'],date(\"Y-F-d H:i:s:u\",time()).\" > Polling BBB...\\n\");\r\n\t if($GLOBALS['precis...
[ "0.8333123", "0.6396786", "0.58309764", "0.5603553", "0.52946126", "0.524572", "0.51929545", "0.50372154", "0.50299317", "0.4994431", "0.4953395", "0.4942598", "0.49290723", "0.48883685", "0.48837763", "0.48817623", "0.48804468", "0.487602", "0.4860553", "0.48539156", "0.4834...
0.7595136
1
Create array of single error by code
Создать массив из одного ошибки по коду
protected function getErrorByCode($code){ if(!isset($this->errors[$code])){ $code = 0; } return [$code => $this->errors[$code]]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getError(): array;", "abstract function getErrors(): array;", "private function error() {\n\t\treturn array(0 => \"ERROR\");\n\t}", "function getErrors(): array;", "protected function get_errors() : array\n {\n }", "public function getErrorsAsArray(): array;", "private fun...
[ "0.72091204", "0.7171159", "0.69811493", "0.6917204", "0.67092717", "0.67084056", "0.6673717", "0.66727513", "0.66722494", "0.66722494", "0.66722494", "0.66722494", "0.66722494", "0.66722494", "0.66722494", "0.66722494", "0.6669275", "0.6666328", "0.66222894", "0.6600939", "0...
0.7298259
0
Set an array with all the combined data (real estate data, location, work zones) of the record/model RealEstate which ID is $id.
Создайте массив со всеми объединенными данными (данные недвижимости, расположение, зоны работы) записи/модели RealEstate, ID которой равен $id.
private function setRealEstateData($id, RealEstateRequest $attributes) { $data = []; // Set REAL ESTATE fiscal data $data['real_estate'] = [ 'user_id' => Auth::id(), 'web' => $attributes->input('web', null), 'business_name' => $attributes->i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setallvalues($id='',$condition='')\n\t{\n\t\t$rs=$this->fetchrecordset($id, $condition);\n\t\tif($ardoc= mysql_fetch_array($rs))\n\t\t{\t\t\t\n\t\t\t$this->id = $ardoc['id'];\n\t\t\t$this->company_name = $ardoc['company_name'];\n\t\t\t$this->main_location = $ardoc['main_location'];\n\t\t\t$this->address =...
[ "0.65332425", "0.63834107", "0.63505197", "0.61430466", "0.60673964", "0.60131484", "0.5883502", "0.5839804", "0.57591426", "0.56349164", "0.56102186", "0.5545604", "0.5542655", "0.55283767", "0.5510706", "0.55055904", "0.54931253", "0.54926986", "0.54767424", "0.54673713", "...
0.7238437
0
Return messages from Order ID
Возврат сообщений по идентификатору заказа
public static function getMessagesByOrderId($order_id, $private = false, JeproshopContext $context = null){ if (!JeproshopTools::isBool($private)) die(JError::raiseError()); if (!$context){ $context = JeproshopContext::getContext(); } $db = JFactory::getDBO(); $query = "SE...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static public function getMessagesByOrderId($id_order, $private = false)\n\t{\n\t \tif (!Validate::isBool($private))\n\t \t\tdie(Tools::displayError());\n\n\t\tglobal $cookie;\n\t\t$result = Db::getInstance()->ExecuteS('\n\t\t\tSELECT m.*, c.`firstname` AS cfirstname, c.`lastname` AS clastname, e.`firstname` AS ef...
[ "0.7444374", "0.68695325", "0.6848723", "0.6825689", "0.67536336", "0.6525853", "0.6404732", "0.63732004", "0.63544387", "0.63276553", "0.63276553", "0.63276553", "0.63276553", "0.62869376", "0.62760055", "0.62728745", "0.6240173", "0.6201205", "0.6200441", "0.6185477", "0.61...
0.7201004
1
Return current process title
Вернуть текущее название процесса
public static function getProcessTitle() { return cli_get_process_title(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPidTitle()\n\t{\n\t\treturn $this->pidTitle;\n\t}", "protected function getTitle() : string\n\t{\n\t\t$title = str_ireplace('{TITLE}', $this->app->title->get(), $this->app->config->title);\n\n\t\t$this->app->plugins->run('system_theme_get_title', $this, $title);\n\n\t\treturn $title;\n\t}", ...
[ "0.74782443", "0.732295", "0.7284166", "0.7187032", "0.7123633", "0.7121802", "0.71147627", "0.7111135", "0.709305", "0.705577", "0.70235455", "0.69686365", "0.6967575", "0.69607204", "0.69564164", "0.69517887", "0.69159055", "0.6913097", "0.6907573", "0.6892404", "0.68659234...
0.9014263
0
Randomly draws one card out of card deck, determines its face value, then removes the card from the deck. returns array[][display]/[value] Initial ACE value = 11
Случайным образом из колоды карт вытягивается одна карта, определяется её достоинство, затем карта удаляется из колоды. Возвращается массив [display]/[value]. Начальное значение туза = 11
function DrawCards(&$deck, $amount = 1) { for ($i=1; $i<=$amount;$i++) { $suit = array_rand($deck); $faceCard = array_rand($deck[$suit]); unset($deck[$suit][$faceCard]); if ($faceCard > 10) $faceValue = 10; else $faceValue = (int)$faceCar...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function drawCard()\r\n {\r\n $card = array_pop($this->cardsInDeck);\r\n return $card;\r\n }", "public function drawCard(){\n $return_card = $this->deck[$this->cards_drawn];//retrieve current card\n $this->cards_drawn++;\n if($this->cards_drawn >= self::DECKSIZE){/...
[ "0.66922235", "0.66361", "0.63593745", "0.6309206", "0.623363", "0.614574", "0.61143655", "0.60158044", "0.58917016", "0.58144695", "0.5803489", "0.57653314", "0.57534844", "0.575118", "0.57298625", "0.57181144", "0.571198", "0.570174", "0.5695425", "0.5651855", "0.5561825", ...
0.72845304
0
Count remaining cards in deck.
Посчитать оставшиеся карты в колоде.
function CountRemainingCards($deck) { $cards = 0; foreach ($deck as $value) $cards = $cards + count($value); return $cards; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getRemainingCardCount(){\n\t\treturn count($this->cards);\n\t}", "public function getCardsRemaining(){\n return count($this->deck) - $this->cards_drawn;\n }", "public function count()\n {\n $this->cards;\n return count($this->cards);\n }", "public function count(...
[ "0.8283974", "0.8147469", "0.7646667", "0.76171625", "0.7484095", "0.7439241", "0.74361914", "0.7397886", "0.7255958", "0.7195863", "0.7039659", "0.7017326", "0.6857269", "0.6832754", "0.667717", "0.6620155", "0.6498911", "0.6443188", "0.64196235", "0.6403297", "0.6368915", ...
0.84611315
0
Sum up values of cards in an array.
Суммируйте значения карт в массиве.
function SumOflValues($cards) { $sum = 0; foreach ($cards as $card) { $sum = $sum + $card['value']; } return $sum; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getHandScore($playerCards) {\n return array_sum($playerCards);\n }", "function arraySumUp ($arrays){\n $sumUp = 0;\n foreach($arrays as $array){\n $sumUp +=$array[\"price\"];\n }\n return $sumUp;\n\n}", "function simpleArraySum($ar) {\n\n return array_sum($ar);\n\n}", ...
[ "0.6711857", "0.662291", "0.6461713", "0.6455519", "0.6420145", "0.6389226", "0.6367862", "0.63374436", "0.63207275", "0.6302504", "0.6275954", "0.6214212", "0.6214212", "0.6214212", "0.62132925", "0.6206021", "0.6165616", "0.6164692", "0.6155523", "0.6152674", "0.610632", ...
0.78628653
0
Serializes arbitrary data to the implemented format.
Сериализует произвольные данные в реализованный формат.
public function serialize($data);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function serialize($data);", "public function serializeData();", "abstract public function serialize();", "public function serialize(array $data) : string;", "public function serialize($data, array $params = array());", "public function serialize($data)\n {\n return $this->seriali...
[ "0.75389445", "0.74743384", "0.7207962", "0.7077527", "0.68420815", "0.6773912", "0.67628217", "0.67589664", "0.6719765", "0.6694839", "0.6692163", "0.6692163", "0.66645235", "0.66439396", "0.66353136", "0.6631736", "0.6626784", "0.6626313", "0.660586", "0.6605468", "0.660546...
0.75288177
1