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
COUNTER QUERY METHOD Used to count the number of results matching specified params Requires $sql statement(string) as argument Accepts the params array as second optinal argument Returns the result as an object on success, false otherwise
МЕТОД СЧЁТА РЕЗУЛЬТАТОВ Используется для подсчёта количества результатов, соответствующих заданным параметрам. Требует аргумент $sql (строка) как аргумент. Принимает массив params в качестве второго необязательного аргумента. Возвращает результат в виде объекта при успешном выполнении, иначе возвращает false.
public function countQuery($sql, $params = false){ $query = $this->_pdo->prepare($sql); $x = 1; if($params && count($params) > 0){ foreach($params as $param){ $query->bindValue($x, $param); $x++; } } if($query->execute()){ return $query->fetch(PD...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function count ($sql, $paramsList=array())\n {\n $return = 0;\n\n if (count((array)$paramsList)) {\n $this->_db->query($sql, $paramsList);\n } else {\n $this->_db->query($sql);\n }\n\n if ($row = $this->_db->fetchRow()) {\n $return = ...
[ "0.77955", "0.76566356", "0.76251507", "0.75639015", "0.75500864", "0.7450782", "0.7373824", "0.73664534", "0.7283838", "0.72753596", "0.7252571", "0.72017777", "0.7188901", "0.7145335", "0.7138945", "0.7083341", "0.7038171", "0.7007914", "0.6993546", "0.69554466", "0.6953725...
0.7954925
0
Add shortcodes for read more and custom comments
Добавить короткие коды для "Прочитать больше" и пользовательских комментариев
function sukelius_register_shortcodes() { add_shortcode( 'custom_comments', 'sukelius_custom_comments' ); add_shortcode( 'read_more', 'sukelius_read_more' ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addShortcodes() {\n\t\t// Nothing to do here now, adding class so method exists for child classes\n\t}", "function Discography_Shortcodes() {\n\t\tadd_shortcode( 'discography_songs', array( $this, 'discography_songs' ) );\n\t}", "function init_short_code_shortcodes() {\n\t\tload_plugin_textdoma...
[ "0.6661463", "0.6658517", "0.6643053", "0.6583872", "0.6501047", "0.6380792", "0.6380792", "0.63797647", "0.62513655", "0.62326765", "0.62087053", "0.6208285", "0.6207824", "0.61938924", "0.6163945", "0.6156306", "0.6139198", "0.6136761", "0.6136176", "0.61197484", "0.6097012...
0.7695253
0
Function for deciding which pages should have a onecolumn layout.
Функция для определения, какие страницы должны иметь од столбцовый макет.
function sukelius_one_column() { if ( !is_active_sidebar( 'primary' ) && !is_active_sidebar( 'secondary' ) ) add_filter( 'get_theme_layout', 'sukelius_theme_layout_one_column' ); elseif ( is_attachment() && 'layout-default' == theme_layouts_get_layout() ) add_filter( 'get_theme_layout', 'sukelius_theme_la...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function eino_one_column() {\n\n\tif ( !is_active_sidebar( 'primary' ) && !is_active_sidebar( 'secondary' ) && '1c' == get_theme_mod( 'theme_layout' ) )\n\t\tadd_filter( 'theme_mod_theme_layout', 'eino_theme_layout_one_column' );\n\t\t\n\telseif ( !is_active_sidebar( 'primary' ) && !is_active_sidebar( 'secondary' ...
[ "0.72496504", "0.6795542", "0.6654768", "0.6260155", "0.6233467", "0.6189749", "0.61075854", "0.610375", "0.60169923", "0.60044795", "0.59952635", "0.598126", "0.592408", "0.5911839", "0.58537877", "0.5846692", "0.5832122", "0.579642", "0.5779197", "0.56860644", "0.5669999", ...
0.7067841
1
Filters 'get_theme_layout' by returning 'layout1c'.
Фильтруйте 'get_theme_layout', возвращая 'layout1c'.
function sukelius_theme_layout_one_column( $layout ) { return 'layout-1c'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function codeless_get_page_layout(){\n \n global $codeless_page_layout;\n\n // Make a test and save at the global variable to make the function works faster\n if(!isset($codeless_page_layout) || empty($codeless_page_layout) || (isset($codeless_page_layout) && !$codeless_page_layout) || is_customize_pre...
[ "0.7008999", "0.6976096", "0.6790492", "0.6626015", "0.6577637", "0.64869064", "0.6486692", "0.6432987", "0.6373148", "0.6327705", "0.630441", "0.6259434", "0.6242075", "0.62150484", "0.62142664", "0.619851", "0.6193407", "0.61775357", "0.61515534", "0.61233747", "0.6109337",...
0.73228455
0
Additional body classes Counts widgets number in subsidiary sidebar and ads css class (.sidebarsubsidiary$number) to body_class. Used to increase / decrease widget size according to number of widgets. Example: if there's one widget in subsidiary sidebar widget width is 100%, if two widgets, 48.5% each... Check if secon...
Дополнительные классы тела считаются количество виджетов в вспомогательной панели и добавляют класс CSS (.sidebarsubsidiary$number) в body_class. Используется для увеличения или уменьшения размера виджета в зависимости от количества виджетов. Пример: если в вспомогательной панели один виджет, ширина виджета составляет ...
function sukelius_additional_body_classes( $classes ) { /* Add class sidebar-subsidiary-$num to body ($num is number of active widgets in subsidiary sidebar) */ if ( is_active_sidebar( 'subsidiary' ) ) { $the_sidebars = wp_get_sidebars_widgets(); $num = coun...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function wpg_body_class($class) {\n\t\n\t$class[] = 'hfeed site';\n\t\n\t// Active sidebar - 2 column (content)\n\tif (is_active_sidebar( 'wpg-sidebar-right' ) ) {\n\t\t$class[] = 'active-sidebar';\n\t}\n\treturn $class;\n}", "function eino_subsidiary_classes( $classes ) {\n \n\tif ( is_active_sidebar( 'subsi...
[ "0.68228203", "0.66684556", "0.6578819", "0.65534526", "0.6519606", "0.6469003", "0.6463032", "0.64502686", "0.6433353", "0.64080876", "0.63442314", "0.6341026", "0.6340857", "0.63235515", "0.6291442", "0.6279894", "0.6277201", "0.6259892", "0.62513226", "0.62295747", "0.6210...
0.7839797
0
Excluding sticky posts from home page if slider enabled. Sticky posts are in a slider.
Исключение прикрепленных постов из страницы домашней, если слайдер включен. Прикрепленные посты находятся в слайдере.
function sukelius_exclude_sticky( $query ) { /* Exclude if is home and is main query. */ if ( is_home() && $query->is_main_query() && hybrid_get_setting( 'slider_display' ) == 1 ) $query->set( 'post__not_in', get_option( 'sticky_posts' ) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function bakes_and_cakes_exclude_posts_for_blogpage( $query ) {\n $show_on_front = get_option( 'show_on_front' );\n $ed_slider = get_theme_mod( 'bakes_and_cakes_ed_slider' );\n $slider_category = get_theme_mod( 'bakes_and_cakes_slider_cat' );\n\n if ( ! is_admin() && $query->is_home() && $query...
[ "0.731152", "0.65324706", "0.6403447", "0.6000261", "0.59326535", "0.5898182", "0.5865365", "0.5848174", "0.5837212", "0.5814178", "0.580075", "0.5800694", "0.57965726", "0.57865596", "0.5759446", "0.57491976", "0.574634", "0.5728005", "0.57197833", "0.570464", "0.57002974", ...
0.8032777
0
Returns the number of images attached to the current post in the loop.
Возвращает количество изображений, прикрепленных к текущему посту в цикле.
function sukelius_get_image_attachment_count() { $images = get_children( array( 'post_parent' => get_the_ID(), 'post_type' => 'attachment', 'post_mime_type' => 'image', 'numberposts' => -1 ) ); return count( $images ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function numImages() { return $this->_m_numImages; }", "public function getImagesCount()\n {\n $count = Image::count();\n return $count;\n }", "function numPics() \t{\treturn $this->getOne(\"select count(*) RES from wf_images\")['RES'];\t}", "public function getNumberImages () {}",...
[ "0.763724", "0.75930053", "0.7588651", "0.751635", "0.7468028", "0.74412704", "0.73831844", "0.7187636", "0.7160676", "0.7082644", "0.689582", "0.68101096", "0.68046534", "0.67932516", "0.67701644", "0.6711891", "0.66925806", "0.66837513", "0.6626113", "0.6598604", "0.658617"...
0.78117144
0
Add custom header background image
Добавить кастомное изображение фона заголовка
function sukelius_header_bg() { $header_img = get_header_image(); if ( $header_img ) { ?> <style type="text/css"> #header .wrap { background: url('<?php echo $header_img; ?>') no-repeat; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function _custom_header_background_just_in_time()\n{\n}", "function wstd_header_image() {\r\n\t$image = '';\r\n\tif ( is_division() && is_page_top() ) {\r\n\t\tif ( has_post_thumbnail() )\r\n\t\t\t$image = esc_url( wp_get_attachment_image_src( get_post_thumbnail_id(), 'full' )[0] );\r\n /*\r\n */\r...
[ "0.7250413", "0.72460085", "0.71239024", "0.70157766", "0.68681514", "0.6818705", "0.6813482", "0.674286", "0.6721592", "0.6716939", "0.66742015", "0.66711587", "0.6642891", "0.66406393", "0.6615035", "0.65897095", "0.6582113", "0.6579271", "0.656715", "0.6547842", "0.6526382...
0.7892474
0
Returns a set of image attachment links based on size.
Возвращает набор ссылок на вложения изображений в зависимости от размера.
function sukelius_get_image_size_links() { /* If not viewing an image attachment page, return. */ if ( !wp_attachment_is_image( get_the_ID() ) ) return; /* Set up an empty array for the links. */ $links = array(); /* Get the intermediate image sizes and add the full size to the array. */ $sizes = g...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function tech_image_links() { \n\tif ( !wp_attachment_is_image( get_the_ID() ) ){\n\t\treturn;\n\t}\n\t$links = array();\n\t$sizes = get_intermediate_image_sizes();\n\t$sizes[] = 'full';\n\tforeach ( $sizes as $size ) {\n\t\t$image = wp_get_attachment_image_src( get_the_ID(), $size );\n\t\tif ( !empty( $ima...
[ "0.72033423", "0.688525", "0.621317", "0.61414975", "0.6134166", "0.607895", "0.6069752", "0.6006498", "0.5978053", "0.59223706", "0.58705986", "0.5837596", "0.58235264", "0.5812742", "0.5782919", "0.57525975", "0.57272303", "0.57242864", "0.5723945", "0.5716565", "0.57146084...
0.77731633
0
Gets the Routing class instance
Получает экземпляр класса Routing
public static function getInstance() : Routing { if (! self::$instance) { self::$instance = new self; } return self::$instance; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static function routeInstance()\n\t{\n\t\treturn Route_MD::getInstance();\n\t}", "public function getRoute() {\n return new Route(new Request());\n }", "private static function routesInstance()\n\t{\n\t\treturn Routes_MD::getInstance();\n\t}", "public function Router() {\n if (self::...
[ "0.78610176", "0.7691485", "0.76564974", "0.7569725", "0.74390686", "0.7388336", "0.7354171", "0.73539996", "0.7344338", "0.7277101", "0.7262398", "0.7215339", "0.71696734", "0.715196", "0.7069883", "0.7037396", "0.70339996", "0.7007085", "0.7007085", "0.7007085", "0.6985111"...
0.823526
0
Gets the description translation keys array
Получает массив ключей перевода описания
public static function descriptionTranslationKeys() : array { return self::getInstance()->getDescriptionTranslationKeys(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDescriptionTranslationKeys() : array\n {\n return $this->descriptionTranslationKeys;\n }", "public function getTranslationKeys()\n {\n return $this->translationKeys;\n }", "protected function getLocalizedStringKeys()\n {\n return $this->localizedStringKeys...
[ "0.86654377", "0.7237773", "0.6967007", "0.6905762", "0.6905762", "0.6905762", "0.6905762", "0.6905762", "0.6905762", "0.6905762", "0.68971586", "0.68614984", "0.68614984", "0.68614984", "0.68104213", "0.68104213", "0.68104213", "0.6740644", "0.67330396", "0.6729397", "0.6659...
0.8902276
0
Gets the description translation keys array
Получает массив ключей перевода описания
public function getDescriptionTranslationKeys() : array { return $this->descriptionTranslationKeys; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function descriptionTranslationKeys() : array\n {\n return self::getInstance()->getDescriptionTranslationKeys();\n }", "public function getTranslationKeys()\n {\n return $this->translationKeys;\n }", "protected function getLocalizedStringKeys()\n {\n return $th...
[ "0.8902276", "0.7237773", "0.6967007", "0.6905762", "0.6905762", "0.6905762", "0.6905762", "0.6905762", "0.6905762", "0.6905762", "0.68971586", "0.68614984", "0.68614984", "0.68614984", "0.68104213", "0.68104213", "0.68104213", "0.6740644", "0.67330396", "0.6729397", "0.66593...
0.86654377
1
Show the form for creating a new resource. GET /lists/create
Показать форму для создания нового ресурса. GET /lists/create
public function create() { return view('lists.create'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create()\n { \n return view('lists.create');\n }", "public function create()\n {\n if (!auth()->user()->can('admin-newsletter-lists-create')) {\n app()->abort(403);\n }\n\n $list = new NewsletterMailingList();\n $form_data = array(\n ...
[ "0.82481366", "0.78520167", "0.77871054", "0.7765418", "0.7690688", "0.7592819", "0.7575757", "0.75358045", "0.74381393", "0.7385967", "0.7346056", "0.73410434", "0.73005027", "0.72928387", "0.71838605", "0.71474105", "0.70643747", "0.70550174", "0.7053955", "0.7017497", "0.7...
0.8536296
0
Store a newly created resource in storage. POST /lists
Хранение только что созданного ресурса в хранилище. POST /lists
public function store(ListCreateFormRequest $request) { $list = new Todolist(array( 'name' => \Input::get('name'), 'description' => \Input::get('description') )); $user = User::find(\Auth::id()); $list = $user->lists()->save($list); return \Redirect::route('lists.show', array($...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store(ListsRequest $request)\n {\n $input = [\n 'name' => $request->name,\n 'description' => $request->description,\n 'client_id' => Auth::user()->id,\n ];\n\n Lists::create($input);\n return redirect('lists');\n }", "public funct...
[ "0.7140687", "0.70581245", "0.7011156", "0.6925975", "0.6913611", "0.6909433", "0.6895495", "0.68780273", "0.6847254", "0.6836967", "0.6832752", "0.681852", "0.67627865", "0.67626876", "0.6749816", "0.6724353", "0.6723472", "0.67139065", "0.6686569", "0.6680983", "0.66754276"...
0.7131877
1
Dynamically select icon in ACF
Динамически выбрать иконку в ACF
function be_acf_dynamic_icons($field) { if (0 !== strpos($field['name'], 'dynamic_icon_')) return $field; $type = str_replace('dynamic_icon_', '', $field['name']); $icons = be_get_theme_icons($type); $field['choices'] = [0 => '(None)']; foreach ($icons as $icon) { $field['choices'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function extra_home_appliances_fields( $tag ) { //check for existing featured ID\n $t_id = $tag->term_id;\n $cat_meta = get_option( \"category_$t_id\");\n?>\n<tr class=\"form-field\">\n<th scope=\"row\" valign=\"top\">\n <label for=\"ser_Icon\"><?php _e('Icon'); ?></label></th>\n<td>\n<input type=\"tex...
[ "0.6749517", "0.6739026", "0.67119545", "0.65815866", "0.6542983", "0.6461334", "0.6448238", "0.64322", "0.63893914", "0.6379959", "0.6375146", "0.6319487", "0.62998986", "0.62998986", "0.62998986", "0.62998986", "0.6294489", "0.62393373", "0.62298983", "0.62273556", "0.62151...
0.71009934
0
Analyzes a given file using getID3 library. Returns an array with information about file.
Анализирует заданный файл с использованием библиотеки getID3. Возвращает массив с информацией о файле.
public function analyzeFile(File $file): array { return $this->getId3->analyze($this->pathingHelper->getPathToFile($file)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function analyzeFile($file)\n {\n $getID3 = GetID3Plugin::getID3Instance();\n return $getID3->analyze($file);\n }", "public function getId3DataFromFile($file) {\n\t\t//Defaults\n\t\t$mp3 = array(\n\t\t\t'length' => null,\n\t\t\t'bitrate' => null,\n\t\t\t'artist' => null,\n\t\t\t...
[ "0.73809546", "0.7140595", "0.6748979", "0.6420382", "0.6232576", "0.6189894", "0.6183988", "0.60073805", "0.58708787", "0.58378816", "0.58260953", "0.5781973", "0.56992894", "0.56911296", "0.5624584", "0.56237155", "0.5582289", "0.5582289", "0.55457765", "0.5503215", "0.5465...
0.73016125
1
Checks if a file with a given info can be previewed.
Проверяет, можно ли предварительно просмотреть файл с заданной информацией.
public function isPreviewable(array $fileInfo): bool { return (isset($fileInfo['mime_type']) && in_array($fileInfo['mime_type'], self::IMAGES_MIME_TYPES)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function fileIsSupported(\\GO\\Files\\Model\\File $file);", "public function is_preview()\n {\n }", "public function is_preview()\n {\n }", "public function is_preview()\n {\n }", "public function hasPreviewFileName()\n {\n return $this->preview_file_name !== null;\n }...
[ "0.6662934", "0.6660922", "0.6660922", "0.6660922", "0.66347617", "0.6512552", "0.64701015", "0.6455323", "0.64196724", "0.6416552", "0.6410931", "0.63949597", "0.634696", "0.6344567", "0.6338486", "0.6281205", "0.6277583", "0.62747157", "0.6253212", "0.62117296", "0.62109643...
0.71162957
0
Checks if a file with a given info is of audio type.
Проверяет, является ли файл с заданной информацией аудиотипа.
public function isAudio(array $fileInfo): bool { return (isset($fileInfo['mime_type']) && in_array($fileInfo['mime_type'], self::AUDIO_MIME_TYPES)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isAudio(): bool\n {\n return substr($this->name, 0, 5) === 'audio';\n }", "public function isAudio() {\n\t\treturn $this->type === self::TYPE_AUDIO;\n\t}", "public static function isAudioFileTypeAvaliable(string $fileType): bool\n {\n return self::verifyFileType('audio', ...
[ "0.75793076", "0.7206507", "0.71711993", "0.6898225", "0.6896285", "0.6799841", "0.65421945", "0.6414182", "0.6413582", "0.64021796", "0.6353545", "0.6173172", "0.61666846", "0.6150572", "0.60755", "0.6074115", "0.60543245", "0.60049206", "0.59784824", "0.5957315", "0.5957218...
0.7401896
1
Number of rows affected by a CRUD statement. NB: Query class result mode must be SQLSRV_CURSOR_FORWARD ('forward').
Количество строк, затронутых CRUD-запросом. Примечание: режим результата класса Query должен быть SQLSRV_CURSOR_FORWARD ('forward').
public function affectedRows() : int { $count = @sqlsrv_rows_affected( $this->statement ); // sqlsrv_rows_affected() moves to first result set. // However doesn't move to next on later call. if ($this->setIndex < 0) { ++$this->setIndex; } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAffectedRows(): int;", "public function getAffectedRows(): int;", "public function affected_rows() : int;", "public function affectedRows(): int;", "public function affectedRows(): int;", "public function getAffectedRows(): int\n {\n return $this->rows;\n }", "public fun...
[ "0.76613796", "0.76613796", "0.7468071", "0.73826456", "0.73826456", "0.7275326", "0.7254452", "0.71561295", "0.71292233", "0.7118342", "0.7078394", "0.70583135", "0.69843304", "0.698043", "0.69672257", "0.6951146", "0.69449276", "0.693239", "0.692702", "0.6925555", "0.692555...
0.77155644
0
Fetch row as columnkeyed object. If nonempty arg $class: Custom (nonstdClass) object gets constructed and populated 'manually', because native Sqlsrv method cannot handle it.
Получить строку как объект с ключами в виде столбцов. Если передан непустой аргумент $class: объект Custom (не stdClass) будет создан и заполнен вручную, так как встроенная Sqlsrv-метод не может обрабатывать это.
public function fetchObject(string $class = null, array $args = null) /*: ?object*/ { if ($class && !class_exists($class)) { $this->closeAndLog(__FUNCTION__); throw new \InvalidArgumentException( $this->query->messagePrefix() . ' - can\'t fetch row as object into non-...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function fetchRowClass($class)\n {\n return $this->stmt->fetch(\\PDO::FETCH_CLASS, $class);\n }", "public function fetchObject($class = \\stdClass::class)\n {\n return $this->getCursor()->fetchObject($class);\n }", "public function fetchObject($class)\n {\n if (!$this...
[ "0.72625923", "0.69841826", "0.6915773", "0.67383987", "0.6619754", "0.65182424", "0.6458928", "0.6441639", "0.64196664", "0.63436866", "0.6314807", "0.63079333", "0.6279277", "0.6277304", "0.62463033", "0.6246206", "0.6192942", "0.6189351", "0.61492", "0.6143929", "0.6138516...
0.71293586
1
Fetch all rows into a list of columnkeyed objects. If nonempty arg $class: Custom (nonstdClass) object gets constructed and populated 'manually', because native Sqlsrv method cannot handle it.
Получить все строки в список объектов с ключами столбцов. Если передан непустой аргумент $class: объект Custom (не stdClass) будет создан и заполнен вручную, так как встроенный метод Sqlsrv не может обрабатывать его.
public function fetchObjectAll(string $class = null, string $list_by_column = null, array $args = null) : array { if ($class && !class_exists($class)) { $this->closeAndLog(__FUNCTION__); throw new \InvalidArgumentException( $this->query->messagePrefix() ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function fetchAllObj(string $class = null): array\n {\n if (!$this->wasExecuted()) {\n $this->exec();\n }\n\n if ($class === null) {\n return $this->getAdapter()->getStatement()->fetchAll(PDO::FETCH_OBJ);\n } else {\n $objects = [];\n ...
[ "0.7487932", "0.7253796", "0.7038462", "0.6991059", "0.6937704", "0.6813671", "0.66986185", "0.668771", "0.66810286", "0.66794854", "0.66045153", "0.65574914", "0.65111065", "0.6420182", "0.64127374", "0.6382324", "0.6375499", "0.6374626", "0.6336335", "0.63153774", "0.627419...
0.7746219
0
Used to update the APC cache
Используется для обновления кэша APC
function updateCache() { if ($this->fullCacheKey) { $cache = array(); $cache[YUI_MODULES] = $this->modules; $cache[YUI_SKIN] = $this->skin; $cache[YUI_ROLLUP] = $this->rollupModules; $cache[YUI_GLOBAL] = $this->globalModules; $cache[YUI_DEP...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateCache() :void;", "protected function updateCache()\n {\n $this->_updateCache = true;\n }", "public function cacheUpdate()\n\t{\n\t\t$this->cacheUpdateReceipts();\n\t}", "public static function update_cache()\n\t{\n\t\t// hent alle aktive og kommende auksjoner\n\t\t$result =...
[ "0.79426044", "0.74676234", "0.7179686", "0.6957338", "0.6846232", "0.6827629", "0.6827378", "0.6707953", "0.6665431", "0.654606", "0.64600515", "0.6458898", "0.6409103", "0.64088565", "0.6397982", "0.6373452", "0.6317537", "0.6277858", "0.62628365", "0.6259729", "0.62476516"...
0.76225376
1
Used to mark a module type as processed
Используется для обозначения типа модуля как обработанного
function setProcessedModuleType($moduleType='ALL') { $this->processedModuleTypes[$moduleType] = true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setType($type) {\n\t\tif (in_array($type,MODULETYPES)) {\n\t\t\t$this->type = $type;\n\t\t}\n\t}", "public function process(AnnotationType $annotationType): void;", "protected function postSetClassType() {\n $classTypeInfo = entity_toolbox_class_type_get_info($this->classType);\n $this->__set('c...
[ "0.5786031", "0.576621", "0.557779", "0.55203426", "0.5465841", "0.5428911", "0.5373311", "0.536484", "0.5362819", "0.5308806", "0.5308806", "0.53083116", "0.52774477", "0.5256349", "0.5255108", "0.52543443", "0.5236296", "0.5176383", "0.51714915", "0.5138657", "0.51043063", ...
0.73766524
0
Used to determine if a module type has been processed
Используется для определения того, был ли обработан тип модуля
function hasProcessedModuleType($moduleType='ALL') { return isset($this->processedModuleTypes[$moduleType]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isModule(): bool;", "public function isModule(): bool;", "public function isInstallable()\n {\n return in_array($this->getType(), ['module', 'extension']);\n }", "static function currentIsModule(): bool\n {\n return $GLOBALS['_index']->type === WebState::MODULE;\n }"...
[ "0.7022656", "0.7022656", "0.6952761", "0.6784519", "0.67720056", "0.6660734", "0.6630697", "0.65912503", "0.65232915", "0.65232915", "0.65232915", "0.65232915", "0.65232915", "0.65232915", "0.65232915", "0.6445086", "0.63861424", "0.63451195", "0.6284824", "0.627439", "0.627...
0.7470261
0
Returns true if the supplied $satisfied module is satisfied by the supplied $satisfier module
Возвращает true, если предоставленный модуль $satisfied удовлетворяется предоставленным модулем $satisfier
function moduleSatisfies($satisfied, $satisfier) { if($satisfied == $satisfier) { return true; } if (isset($this->satisfactionMap[$satisfied])) { $satisfiers = $this->satisfactionMap[$satisfied]; return isset($satisfiers[$satisfier]); } retur...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isSatisfied()\n {\n $storage = $this->getStorage()->read();\n return (isset($storage['is_satisfied']) && true === $storage['is_satisfied']);\n }", "public function isSatisfied()\n {\n return $this->satisfied;\n }", "public function isSatisfied();", "public fun...
[ "0.6957506", "0.6758071", "0.6644579", "0.60941464", "0.60898656", "0.601148", "0.5968172", "0.59112465", "0.5758092", "0.57286394", "0.5714266", "0.55658376", "0.55658376", "0.5434234", "0.5429415", "0.54258907", "0.53764665", "0.536274", "0.5336515", "0.5268324", "0.5214935...
0.84355515
0
Gets the key for the lock variable of the provided key
Получает ключ для переменной блокировки предоставленного ключа
protected function getLockKey($key) { return $key . self::LOCK_SUFFIX; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getLockKey();", "public static function key($key) {\n\t\treturn $key;\n\t}", "protected function generateLockKey ($key)\n {\n return \"{$key}_lock\";\n }", "public function getKey($key){\n return $this->keys[$key];\n }", "public function getKey($key);", "function get_...
[ "0.7569793", "0.69314796", "0.69114095", "0.6861094", "0.6770419", "0.65999895", "0.6418367", "0.6335969", "0.6243234", "0.62309086", "0.6215323", "0.61827844", "0.616149", "0.61558753", "0.6074986", "0.6067643", "0.6063974", "0.605648", "0.604959", "0.60408837", "0.60402834"...
0.7612734
0
Bind events calss if not exists.
Привязать события класса, если они не существуют.
protected function registerEvents() { $this->app->bindIf('events', function () { return new Dispatcher(); }, true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function registerEvents() {\n\t\t$this->app->bindShared('events', function() {\n\t\t\treturn new Dispatcher;\n\t\t});\n\t}", "protected function registerEventBindings()\n {\n $this->singleton('events', function () {\n $this->register(\\Illuminate\\Events\\EventServiceProvider::clas...
[ "0.71027166", "0.68411386", "0.6754411", "0.67187846", "0.65630645", "0.650109", "0.647796", "0.64522845", "0.63683796", "0.6339475", "0.6274121", "0.6211623", "0.6211623", "0.6211623", "0.6211623", "0.6211623", "0.6200602", "0.61977464", "0.61737853", "0.6167482", "0.6152693...
0.7300148
0
Set the value of idreporte1.
Задайте значение idreporte1.
public function setIdreporte1($idreporte1) { $this->idreporte1 = $idreporte1; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getIdreporte1()\n {\n return $this->idreporte1;\n }", "public function setId_reporte($id_reporte)\n {\n $this->id_reporte = $id_reporte;\n\n return $this;\n }", "public function setId($value) {\n\t\treturn $this->set('reportid', $value);\n\t}", "public functio...
[ "0.74939984", "0.70157015", "0.6872656", "0.63352853", "0.6080111", "0.6029676", "0.5898428", "0.58888274", "0.5869972", "0.5705327", "0.56651294", "0.5641669", "0.5621471", "0.55768764", "0.5477945", "0.54638696", "0.54486024", "0.5423273", "0.54225975", "0.5422133", "0.5415...
0.8056482
0
Get the value of idreporte1.
Получите значение idreporte1.
public function getIdreporte1() { return $this->idreporte1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getId_reporte()\n {\n return $this->id_reporte;\n }", "public function getId() {\n\t\treturn $this->get('reportid');\n\t}", "public function getReportId(): string\n {\n return $this->reportId;\n }", "public function getReportId()\n\t{\n\t\treturn $this->report_id;\n\...
[ "0.7441318", "0.69963276", "0.66652644", "0.66315746", "0.6619572", "0.6499911", "0.6092126", "0.6072124", "0.60226566", "0.5881995", "0.58167017", "0.57600284", "0.57278717", "0.5705617", "0.56944424", "0.5666609", "0.5662416", "0.5651177", "0.5604664", "0.559903", "0.558248...
0.8555857
0
Get the value of lugar.
Получите значение lugar.
public function getLugar() { return $this->lugar; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getLugar(){\n return $this->lugar;\n }", "public function getLugar()\n {\n return $this->lugar;\n }", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}", "public functi...
[ "0.78519666", "0.7815926", "0.6444194", "0.6444194", "0.6444194", "0.6444194", "0.6444194", "0.6436923", "0.63152367", "0.6303339", "0.62365294", "0.62365294", "0.62365294", "0.62365294", "0.62365294", "0.62365294", "0.62365294", "0.62365294", "0.62365294", "0.62365294", "0.6...
0.7847371
1
Set the value of tipo_observacion.
Установите значение tipo_observacion.
public function setTipoObservacion($tipo_observacion) { $this->tipo_observacion = $tipo_observacion; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTipoObservacion()\n {\n return $this->tipo_observacion;\n }", "public function setObservacion($observacion)\r\n\t\t{\r\n\t\t\t$this->_observacion = $observacion;\r\n\t\t}", "public function setTipo($tipo){\n\t\t$this->tipo = $tipo;\n\t}", "public function setTipo($tipo)\n {\...
[ "0.72517884", "0.6801111", "0.65686417", "0.6524764", "0.65211165", "0.611623", "0.6108725", "0.60437286", "0.6036724", "0.59443456", "0.5916543", "0.58840585", "0.58367753", "0.57841706", "0.57719606", "0.5723885", "0.5692552", "0.5692552", "0.5677093", "0.560584", "0.560584...
0.76501495
0
Get the value of tipo_observacion.
Получить значение tipo_observacion.
public function getTipoObservacion() { return $this->tipo_observacion; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setTipoObservacion($tipo_observacion)\n {\n $this->tipo_observacion = $tipo_observacion;\n\n return $this;\n }", "function getTipo () {\n \treturn $this -> inciTipo;\n }", "public function getTipo(){\n\t\treturn $this->tipo;\n\t}", "public function getTipo(){\n\t\tre...
[ "0.71762514", "0.66409254", "0.65828884", "0.65828884", "0.65709275", "0.65623325", "0.6558292", "0.6558292", "0.65520114", "0.65511954", "0.65511954", "0.6498189", "0.6498189", "0.6498189", "0.6498189", "0.6498189", "0.6498189", "0.6498189", "0.6498189", "0.6488233", "0.6487...
0.8689828
0
Get the value of fecha.
Получить значение fecha.
public function getFecha() { return $this->fecha; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFecha()\n {\n return $v_fecha;\n }", "public function getDate() {\n return $this->Fecha;\n }", "public function getFecha(){\n\t\tif($this->fecha){\n\t\t\treturn new Date($this->fecha);\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "public function getFecha(){\n ...
[ "0.7998476", "0.7659893", "0.7632997", "0.7621074", "0.76043904", "0.7588971", "0.7561376", "0.75336796", "0.73605794", "0.73105896", "0.7308492", "0.7294521", "0.7294521", "0.72226304", "0.7219505", "0.7179973", "0.71757054", "0.7172624", "0.71397835", "0.71381027", "0.70751...
0.7681434
1
Get the value of hora.
Получите значение hora.
public function getHora() { return $this->hora; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getHora(){\n\t\treturn $this->hora;\n\t}", "public function getDataHora() {\n return $this->data_hora;\n }", "public function getValorHora()\n {\n return $this->valorHora;\n }", "static public function hora() {\r\n\t\treturn date ( \"H:i:s\" );\r\n\t}", "public stati...
[ "0.8399949", "0.77847993", "0.7747876", "0.773569", "0.76671696", "0.73313755", "0.681241", "0.6803307", "0.6733342", "0.6606999", "0.65075743", "0.65063936", "0.6486359", "0.64724755", "0.6386103", "0.63755697", "0.63720316", "0.6356124", "0.62894654", "0.62874484", "0.62789...
0.8269905
1
Get the value of turno.
Получите значение turno.
public function getTurno() { return $this->turno; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getIdturno()\n {\n return $this->idturno;\n }", "public function getTurn()\n {\n return $this->turn;\n }", "public function getTurn()\n {\n return $this->turn;\n }", "public function getTurn() {\n return $this->turn;\n }", "public function getV...
[ "0.6554937", "0.63507193", "0.63507193", "0.6340131", "0.62572175", "0.62326854", "0.6201134", "0.61967075", "0.61967075", "0.61967075", "0.61967075", "0.61967075", "0.6172485", "0.61705303", "0.6167122", "0.6167122", "0.6167122", "0.6167122", "0.6167122", "0.6167122", "0.616...
0.76275355
0
Get the value of observacion.
Получить значение observacion.
public function getObservacion() { return $this->observacion; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getObservacion()\n {\n return $this->observacion;\n }", "public function getObservacion()\r\n\t\t{\r\n\t\t\treturn $this->_observacion;\r\n\t\t}", "public function getObservacao()\n {\n return $this->observacao;\n }", "public function getObservacao()\...
[ "0.822126", "0.81856614", "0.8029206", "0.8029206", "0.77156997", "0.734587", "0.7212874", "0.6942683", "0.6937245", "0.6937245", "0.6871636", "0.6798761", "0.6692977", "0.65761083", "0.6533787", "0.6282372", "0.6282372", "0.62813497", "0.6129677", "0.61258", "0.6105617", "...
0.8259246
0
Get the value of colaborador.
Получить значение colaborador.
public function getColaborador() { return $this->colaborador; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCriado()\n {\n return $this->criado;\n }", "public function getCriado()\n {\n return $this->criado;\n }", "public function getCriado()\n {\n return $this->criado;\n }", "public function getCriado()\n {\n return $this->criado;\n }", "pub...
[ "0.71038413", "0.71038413", "0.71038413", "0.71038413", "0.71038413", "0.71038413", "0.71038413", "0.71038413", "0.71038413", "0.7102809", "0.7085471", "0.7085471", "0.70675045", "0.70309204", "0.6903579", "0.68934464", "0.68497795", "0.68010175", "0.676517", "0.6726487", "0....
0.78470945
0
Get the value of contratista.
Получить значение contratista.
public function getContratista() { return $this->contratista; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getContratoEct()\n {\n return $this->contratoEct;\n }", "public function getContato()\n {\n return $this->contato;\n }", "public function getContato()\n {\n return $this->contato;\n }", "public function getContrasena()\r\n {\r\n return $this->c...
[ "0.7020234", "0.69035316", "0.69035316", "0.6894996", "0.6833576", "0.6833576", "0.68139786", "0.68139786", "0.68139786", "0.68139786", "0.68139786", "0.68139786", "0.68139786", "0.68139786", "0.68139786", "0.6794025", "0.67034775", "0.66846913", "0.66846913", "0.66631395", "...
0.7667886
0
Get the value of visitante.
Получите значение visitante.
public function getVisitante() { return $this->visitante; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getValue(){\n\t\treturn $this->value;\n\t}", "public function getValue()\n {\n return $this->value;\n }", "public function getValue()\n {\n return $this->value;\n }", "public function getValue()\n {\n return $this->getReflector()->getValue();\n }", "public functio...
[ "0.6662437", "0.66199756", "0.6619645", "0.6609289", "0.6608082", "0.66080064", "0.6605166", "0.659934", "0.659934", "0.659934", "0.659934", "0.659934", "0.659934", "0.65930676", "0.65930676", "0.65908206", "0.65908206", "0.657695", "0.657695", "0.6574983", "0.6566771", "0....
0.78913677
0
Get the value of planeada.
Получите значение planeada.
public function getPlaneada() { return $this->planeada; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function ge...
[ "0.64954495", "0.64954495", "0.64954495", "0.64954495", "0.64954495", "0.64954495", "0.64954495", "0.64954495", "0.64954495", "0.64954495", "0.64954495", "0.64954495", "0.64954495", "0.64954495", "0.64954495", "0.64954495", "0.64954495", "0.64954495", "0.64954495", "0.64954495"...
0.75005704
0
Get the value of espontanea.
Получите значение espontanea.
public function getEspontanea() { return $this->espontanea; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getEssaie(){\n return $this->essaie;\n }", "public function getValorEmpenho() {\n return $this->nValorEmpenho;\n }", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}", "p...
[ "0.681933", "0.6661098", "0.65577865", "0.65577865", "0.65577865", "0.65577865", "0.65577865", "0.654741", "0.654741", "0.654741", "0.654741", "0.654741", "0.654741", "0.654741", "0.654741", "0.654741", "0.654741", "0.654741", "0.654741", "0.654741", "0.654741", "0.654741",...
0.7543637
0
Checks if given user role is the same as current user role
Проверяет, совпадает ли заданный пользовательский роль с текущей ролью пользователя
public static function is_user_role( $role = null, $current_role = null ) { if ( in_array( $role, array( 'logedout', 'loggedout', 'visitor' ), true ) ) { $role = 'visitor'; } if ( null === $current_role ) { $current_role = Helper::current_user( true ); } return ( $role === $current_role ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function nkms_has_role($user, $role) {\n\t// $roles = $user->roles;\n\treturn in_array($role, (array) $user->roles);\n}", "public function checkRole()\n\t{\t\t\n\t\t$user = Zend_Auth::getInstance()->getIdentity();\t\t\n\t\t\n\t\t//if user is logged\n\t\tif(!$user)\t\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\t//if i...
[ "0.7076826", "0.6946882", "0.6909018", "0.6880008", "0.68786913", "0.6863089", "0.681381", "0.67588115", "0.6746917", "0.6726945", "0.6677545", "0.6624947", "0.6597269", "0.6594315", "0.6591472", "0.6591472", "0.6591472", "0.6591472", "0.6561144", "0.6557528", "0.65265036", ...
0.72296005
0
Returns User Role's title for the given user slug.
Возвращает заголовок роли пользователя для заданного слэша пользователя.
public static function user_role_title( $slug, $default = false ) { $roles = self::user_roles_lists(); return ( isset( $roles[ $slug ] ) ) ? $roles[ $slug ] : $default; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_title() {\n $title_field = $this->get_meta( 'user_title' );\n if ( $title_field ) {\n return $title_field;\n }\n $role = $this->get_public_role();\n return $role['label'] ?? '';\n }", "public function getRoleSlug()\n {\n return $this-...
[ "0.7342156", "0.68519086", "0.658543", "0.6374309", "0.63182265", "0.6308846", "0.63004726", "0.6284231", "0.6201444", "0.6197932", "0.6125208", "0.606376", "0.6058762", "0.6006129", "0.596144", "0.5925036", "0.5924881", "0.59197223", "0.5901024", "0.5900504", "0.58990943", ...
0.7466031
0
Gets the current WordPress site name. This is helpful for retrieving the actual site name instead of the network name on multisite installations.
Получает текущее имя WordPress-сайта. Это полезно для получения фактического имени сайта вместо имени сети в установках multisite.
public static function get_site_name() { return ( is_multisite() ) ? get_blog_details()->blogname : get_bloginfo( 'name' ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function site_name()\n {\n return get_bloginfo('name');\n }", "public function getSiteName()\n {\n $site = $this->getSite();\n\n return $site['name'];\n }", "public function getSiteName() {\n return $this->settings['site_name'];\n }", "public function GetSite...
[ "0.8509402", "0.84472746", "0.84425753", "0.8311914", "0.8202513", "0.80426735", "0.7971172", "0.7765246", "0.75804114", "0.7556653", "0.7478213", "0.747579", "0.74309003", "0.73656535", "0.7356034", "0.7252458", "0.7247781", "0.7232504", "0.72316754", "0.72239757", "0.719839...
0.88424015
0
Get Draft Rankings This will return a stdClass object with the current preseason draft rankings
Получить ранжирование драфта Это вернет объект stdClass с текущими ранжировками драфта до сезона
public function getDraftRankings($ppr = 0) { $url = $this->baseurl . "draft-rankings/json/" . $this->apiKey . "/" . $ppr; if (!$data = $this->fetch($url)) { return false; } return $data; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getRankingData() {\n if (empty($this->rankingData)) {\n // Build API Url.\n $uri = 'https://delivery.chalk247.com/team_rankings/NFL.json?api_key=';\n $uri .= $this->apiKey;\n // Make the Team Rankings API Call.\n $request = $this->httpClient->request('GET', $uri);\n ...
[ "0.6703287", "0.6009977", "0.59192795", "0.5831641", "0.5797649", "0.57429725", "0.5726378", "0.5705096", "0.5652474", "0.5626283", "0.56208146", "0.5610255", "0.558134", "0.5571888", "0.554803", "0.5526952", "0.5442782", "0.5437746", "0.5432452", "0.54309493", "0.5420399", ...
0.72970945
0
Adds Resources to ACL
Добавляет ресурсы в ACL
protected function addResources($acl) { $whitelist = $acl["whitelist"]; $blacklist = $acl["blacklist"]; foreach ($acl['resources'] as $resource) { if (!$this->hasResource($resource)) { $this->addResource(new Resource($resource)); } } foreac...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addResourceAccess($resourceName, $accessList);", "function __construct() {\n $this->addRole( new Zend_Acl_Role( 'guests' ) );\n $this->addRole( new Zend_Acl_Role( 'auth' ), 'guests' );\n \n // >>>>>>>>>>>> Adding Resources <<<<<<<<<<<<<<<\n \n // **** Resources for module Defaul...
[ "0.70459324", "0.66840094", "0.66315323", "0.6594224", "0.65520686", "0.65322423", "0.6531294", "0.6520657", "0.6477964", "0.6340581", "0.6336049", "0.6309952", "0.63075244", "0.6284206", "0.62432194", "0.6164756", "0.6152372", "0.612188", "0.6018806", "0.5910406", "0.5905171...
0.7272846
0
Gets list of modified templates into aDiskTemplates property.
Получает список измененных шаблонов в свойство aDiskTemplates.
public static function getModifiedTemplates($bForce = false){ if(is_null(self::$aDiskTemplates) || $bForce){ self::$aDiskTemplates = array(); $modId = self::getModId(); $dbTemplates = array(); $oList = AMI::getResourceModel($modId . '/table') ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getTemplates()\n {\n $templatesFiles = array();\n $templates = $this->getServiceManager()->get('playgroundcms_template_service')->getTemplateMapper()->findBy(array('isSystem' => 0));\n foreach ($templates as $template) {\n $templatesFiles[$template->getFile()] ...
[ "0.59667873", "0.58937067", "0.58720887", "0.58720887", "0.58720887", "0.58720887", "0.5858599", "0.5858599", "0.58341897", "0.5782412", "0.577095", "0.57552147", "0.5748548", "0.5699955", "0.5694628", "0.5685383", "0.5669753", "0.5662182", "0.5651299", "0.56278235", "0.56259...
0.73610383
0
Returns template file extension.
Возвращает расширение файла шаблона.
public static function getFileExtension(){ return (self::getModId() == 'modules_templates') ? 'tpl' : 'lng'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getTemplateExtension()\n {\n return $this->container->getParameter('c33s_static_page_content.template_extension');\n }", "public static function get_file_extension($file_name)\n\t{\n\t\t$ext = substr(strrchr($file_name,'.'),1);\n\t\treturn $ext === static::$_tmpl_ext ? 'tmpl' : $e...
[ "0.80889875", "0.7974776", "0.796003", "0.7923137", "0.7923008", "0.7912292", "0.7907325", "0.789518", "0.7872092", "0.7857751", "0.7856655", "0.77421665", "0.7731658", "0.7714262", "0.77062213", "0.7696481", "0.7694845", "0.7694845", "0.7694845", "0.7694845", "0.76758957", ...
0.87147444
0
returns the name of a field in a query
возвращает имя поля в запросе
function field_name($query_id, $columnnum) { if ($this->type == 'mysqli') { return mysqli_fetch_field_direct($query_id, $columnnum)->name; } return mysql_field_name($query_id, $columnnum); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function field_name ($query_id, $columnnum)\n {\n return mysql_field_name($query_id, $columnnum);\n }", "public function getFieldname()\n {\n return $this->fieldName;\n }", "function sql_field_name($res, $offset = 0)\n {\n return mysql_field_name($res, $offset);\n }", "public f...
[ "0.77735615", "0.7704044", "0.76780087", "0.7622356", "0.7609192", "0.7592563", "0.75850713", "0.7551403", "0.75498986", "0.7542702", "0.75273067", "0.75194234", "0.74218625", "0.74178356", "0.73843235", "0.73760295", "0.73746777", "0.73728603", "0.73608285", "0.735536", "0.7...
0.77700293
1
Creates a form to create a User entity.
Создаёт форму для создания сущности User.
private function createCreateForm(User $entity) { $form = $this->createForm(new UserType(), $entity, array( 'action' => $this->generateUrl('user_create'), 'method' => 'POST', )); $form->add('submit', 'submit', array('label' => 'Create')); return $form; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createAction() {\n $entity = new User();\n $request = $this->getRequest();\n $form = $this->createForm(new UserType(), $entity);\n $form->bindRequest($request);\n\n if ($form->isValid()) {\n $em = $this->getDoctrine()->getEntityManager();\n $...
[ "0.8114177", "0.8108347", "0.80740327", "0.8028348", "0.79920334", "0.7875799", "0.7855893", "0.7823202", "0.7810836", "0.77975065", "0.77315456", "0.77245724", "0.7651464", "0.7603485", "0.76011044", "0.7559557", "0.7540344", "0.7509978", "0.750064", "0.74934614", "0.7491962...
0.81201136
0
Creates a form to edit a User entity.
Создает форму для редактирования сущности User.
private function createEditForm(User $entity) { $form = $this->createForm(new UserType(), $entity, array( 'action' => $this->generateUrl('user_update', array('id' => $entity->getId())), 'method' => 'PUT', )); $form->add('submit', 'submit', array('label' => 'Update')); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function createEditForm(User $entity) {\n $form = $this->createForm(new UserType(), $entity, array(\n 'action' => $this->generateUrl('admin_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => 'U...
[ "0.80204755", "0.8018806", "0.7996217", "0.7996217", "0.7996217", "0.7996217", "0.7966691", "0.7958487", "0.79533434", "0.7836403", "0.78121775", "0.7788557", "0.77347875", "0.7648327", "0.75713164", "0.746783", "0.7422211", "0.7385458", "0.73377055", "0.7309622", "0.730803",...
0.8020028
1
Creates a form to delete a User entity by id.
Создает форму для удаления сущности User по идентификатору.
private function createDeleteForm($id) { return $this->createFormBuilder() ->setAction($this->generateUrl('user_delete', array('id' => $id))) ->setMethod('DELETE') ->add('submit', 'submit', array('label' => 'Delete')) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function deleteFormUser($id) {\n $user = $this->UserModel->getRow($id);\n \n include(\"views/user/delete.php\");\n }", "private function createDeleteForm($id) {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('admin...
[ "0.81051147", "0.7808473", "0.776288", "0.7742465", "0.7742465", "0.7742465", "0.7742465", "0.76095223", "0.75969297", "0.7594441", "0.75804836", "0.7572251", "0.7566375", "0.75485516", "0.7547142", "0.7523584", "0.7505224", "0.7502844", "0.74961704", "0.74961704", "0.7496170...
0.7836758
1
Init current request session from cookie
Инициализация текущей сессии запроса из куки
public function initSession() { if (null === $this->session) { $sessionId = $this->request->cookies->get('sessionId'); if (null !== $sessionId) { $this->session = $this->sessionRepository->find($sessionId); } if (null === $this->s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function init_session_cookie()\n {\n }", "private function initSession() {\n\t\t// use cookies to store session IDs\n\t\tini_set('session.use_cookies', 1);\n\t\t// use cookies only (do not send session IDs in URLs)\n\t\tini_set('session.use_only_cookies', 1);\n\t\t// do not send session IDs ...
[ "0.77068776", "0.75072974", "0.7254933", "0.7233456", "0.7220386", "0.71761143", "0.70535356", "0.70031935", "0.7002469", "0.6957749", "0.69126505", "0.68875724", "0.6881868", "0.68540645", "0.6823512", "0.6816115", "0.6768281", "0.67665875", "0.6763543", "0.6762964", "0.6733...
0.7554523
1
Init session on kernel controller
Инициализация сессии на контроллере ядра
public function onKernelController() { $this->initSession(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function initializeSession() {}", "private function initializeSession()\r\n\t {\r\n\t\t//we want the session register shutdown to be initailized before starting any sessions\r\n\t\t//and while the controller is getting constructed.\r\n\t\tsession_register_shutdown();\r\n\t\tsession_start();\r\n\t }", "...
[ "0.7585556", "0.7508249", "0.7357504", "0.73330414", "0.7328989", "0.7265907", "0.72489834", "0.71775043", "0.7165023", "0.71572983", "0.71474403", "0.70480925", "0.7030903", "0.7027974", "0.7026757", "0.70234513", "0.7018638", "0.7005943", "0.69873595", "0.69688904", "0.6927...
0.81571674
0
Create default session data
Создать данные сеанса по умолчанию
private static function createDefaultSessionData() { return (object) array( 'userId' => -1, ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function createSession() {\n $_SESSION['uid'] = $this->uid;\n $_SESSION['sid'] = $this->sid;\n $_SESSION['user'] = $this->user;\n $_SESSION['pass'] = $this->pass;\n $_SESSION['email'] = $this->email;\n $_SESSION['tz'] = $this->tz;\n $_SESSION['admin'] = $thi...
[ "0.75692034", "0.7245334", "0.72221416", "0.711005", "0.7109812", "0.7054902", "0.6857289", "0.68484414", "0.6843984", "0.6835877", "0.6817069", "0.67851084", "0.67849994", "0.6755222", "0.67160237", "0.669181", "0.66052383", "0.65931964", "0.6572084", "0.6565832", "0.6561764...
0.7984327
0
Path to directory image
Путь к каталогу изображений
public function getImageDirPath() { return Mage::getBaseDir('media') . DS . $this->imagePath . DS; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPathToImageFolder()\n {\n return Yii::app()->basePath . $this->owner->partPathFromBase;\n }", "public function getPictureDirectory();", "private function imagesDirPathName()\n\t{\n\t\treturn ($this->pathName() . \"/\". self::$imagesDirName .\"/\");\n\t}", "protected static fun...
[ "0.7800226", "0.77953863", "0.7752201", "0.758076", "0.7472769", "0.7454624", "0.735686", "0.72864676", "0.7282634", "0.7279746", "0.7135008", "0.7100652", "0.70878065", "0.70819074", "0.7075446", "0.7069995", "0.7069995", "0.704608", "0.70064104", "0.700122", "0.6998572", ...
0.7816452
0
Returns whether there's a space at the current offset. If this method returns `true`, it has to set the `$length` parameter to the length of the matched string.
Возвращает, есть ли пробел в текущей позиции смещения. Если этот метод возвращает `true`, ему необходимо установить параметр `$length` в длину совпадающей строки.
protected function isWhitespace(int &$length): bool { $whitespaces = ["\f" => true, "\n" => true, "\r" => true, "\t" => true, ' ' => true]; $length = 1; return isset($whitespaces[$this->substring($length)]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function isSpace() {\n return $this->current == ' ';\n }", "function isSpace()\r\n\t{\r\n\t\t$ch = $this->peekChar();\r\n\t\treturn $ch != '' && $ch <= ' ';\r\n\t}", "public function end() {\n return $this->offset >= strlen(rtrim($this->string));\n }", "function check_no_spaces($stringa...
[ "0.6581048", "0.6563044", "0.5827882", "0.57986647", "0.5757883", "0.57450473", "0.56479883", "0.5620488", "0.5601196", "0.549273", "0.5391368", "0.5391062", "0.53582096", "0.53369933", "0.5315802", "0.5315802", "0.5308911", "0.5260934", "0.5251395", "0.52512914", "0.52245957...
0.7054778
0
Returns whether there's a commentary at the current offset. If these methods return `true`, it has to set the `$length` parameter to the length of the matched string.
Возвращает, есть ли комментарий в текущей позиции. Если эти методы возвращают `true`, необходимо установить параметр `$length` в длину найденной строки.
protected function isComment(int &$length): bool { $comments = ['--' => true, '/*' => true]; $length = 2; if (!isset($comments[$this->substring($length)])) { return false; } $char = $this->substring($length) === '--' ? "\n" : '*/'; $length = $this->index...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function is_commented() {\n\t\tif ( false === $this->last_index ) {\n\t\t\treturn false;\n\t\t}\n\t\t$line = new GString( $this->block[ $this->last_index ] );\n\t\t$comment = new GString( $this->comment_chars );\n\t\treturn $line->trim()->startsWith( $comment->trim()->__toString() ) !== 0;\n\t}", "function is_co...
[ "0.7056586", "0.6542045", "0.6356256", "0.6174874", "0.6105618", "0.6045594", "0.59586155", "0.58046526", "0.5778666", "0.57071835", "0.5674553", "0.5662416", "0.56579226", "0.5648677", "0.5627897", "0.5618706", "0.55770034", "0.55743384", "0.5539228", "0.5450514", "0.5443165...
0.72185975
0
Returns whether there's an operator at the current offset. If these methods return `true`, it has to set the `$length` parameter to the length of the matched string. It may also set `$content` to a string that will be used as a token content.
Возвращает, есть ли оператор в текущем смещении. Если эти методы возвращают `true`, необходимо установить параметр `$length` в длину совпадающей строки. Также можно установить `$content` в строку, которая будет использоваться как содержимое токена.
protected function isOperator(int &$length, string|null &$content): bool { $operators = [ '!=', '%', '&', '(', ')', '*', '+', ',', '-', '.', '/', ';', '...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function continuousOperators(){\r\n\t\tforeach(str_split($this->exp) as $key => $str)\r\n\t\t\tif (in_array($str, $this->specialChars) && in_array(str_split($this->exp)[$key-1], $this->specialChars)) {\r\n\t\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "protected function parseQueryOperator()...
[ "0.5507994", "0.54675937", "0.53820485", "0.5211983", "0.51542175", "0.5098559", "0.5016664", "0.49796662", "0.49514624", "0.49391332", "0.48973373", "0.48698914", "0.4867763", "0.48629603", "0.48484308", "0.48200643", "0.47798416", "0.47749332", "0.47635314", "0.47625557", "...
0.7511723
0
Returns whether there's an identifier at the current offset. If this method returns `true`, it has to set the `$length` parameter to the length of the matched string. It may also set `$content` to a string that will be used as a token content.
Возвращает, есть ли идентификатор в текущем смещении. Если этот метод возвращает `true`, ему необходимо установить параметр `$length` в длину совпадающей строки. Он также может установить `$content` в строку, которая будет использоваться как содержимое токена.
protected function isIdentifier(int &$length, string|null &$content): bool { $identifierDelimiters = ['"' => '"', '[' => ']', '`' => '`']; if (!isset($identifierDelimiters[$this->substring(1)])) { return false; } $delimiter = $identifierDelimiters[$this->substring(1)]; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hasIdentifier()\n {\n return $this->identifier !== null;\n }", "public function offsetExists($offset)\n\t{\n\t\treturn isset($this->tokens[$offset]);\n\t}", "public function isIdentifier()\n {\n return $this->isIdentifier;\n }", "public function offsetExists($offset)...
[ "0.59011734", "0.581489", "0.5784788", "0.5750285", "0.5654006", "0.5614284", "0.5613998", "0.55133206", "0.55127096", "0.5451788", "0.5442749", "0.54162735", "0.5328117", "0.5304954", "0.5302243", "0.5289601", "0.52886504", "0.528855", "0.5248724", "0.5241556", "0.52338475",...
0.7764292
0
Returns whether there's a string literal at the current offset. If this method returns `true`, it has to set the `$length` parameter to the length of the matched string. It may also set `$content` to a string that will be used as a token content.
Возвращает, есть ли строковый литерал в текущем смещении. Если этот метод возвращает `true`, ему необходимо установить параметр `$length` в длину найденной строки. Он также может установить `$content` в строку, которая будет использоваться как содержимое токена.
protected function isStringLiteral(int &$length, string|null &$content): bool { if ($this->substring(1) !== "'") { return false; } $offset = $this->offset; while (true) { $offset = $this->indexAfter("'", $offset + 1); if ($this->substring(1, true...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function HasLiteralContent()\n\t{\n \treturn (strlen(strval($this->LiteralContent)) > 0);\n \t}", "protected function isIdentifier(int &$length, string|null &$content): bool\n {\n $identifierDelimiters = ['\"' => '\"', '[' => ']', '`' => '`'];\n\n if (!isset($identifierDelimiters[$this->subs...
[ "0.6881899", "0.6316912", "0.5470208", "0.5457792", "0.53679925", "0.53470683", "0.53464365", "0.53411716", "0.5323121", "0.525088", "0.522909", "0.5209131", "0.51393926", "0.5137393", "0.5128288", "0.5127386", "0.5121313", "0.5121313", "0.5119777", "0.5117319", "0.51145136",...
0.760479
0
Returns whether the given string is a keyword. The method may set `$content` to a string that will be used as a token content.
Возвращает true, если заданная строка является ключевым словом. Метод может установить `$content` в строку, которая будет использоваться как содержимое токена.
protected function isKeyword(string $string, string|null &$content): bool { $keywords = [ 'ABORT' => true, 'ACTION' => true, 'ADD' => true, 'AFTER' => true, 'ALL' => true, 'ALTER' => true, 'ANALYZE' => true, 'AND...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function isKeyword(string $type): bool\n {\n return array_key_exists(strtolower($type), $this->keywords);\n }", "function isKeyword($name) \n {\n return false;\n }", "function searchKeywordInContent($strKeyword, $strContent) {\r\n\t\treturn preg_match('/\\{'.$strKeyword.'\\}/m...
[ "0.69571245", "0.6678087", "0.6669359", "0.6429524", "0.6205667", "0.613998", "0.613865", "0.5959742", "0.5829707", "0.58256626", "0.58247274", "0.58175397", "0.5702483", "0.5650816", "0.5564724", "0.5531336", "0.55290824", "0.5522903", "0.5448063", "0.5437677", "0.537204", ...
0.7580435
0
Gets the category slug
Получает слаг категории
public static function get_category_slug() { return self::$category_slug; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCategorySlugAttribute()\n {\n $category = Category::find($this->parent_category_id);\n\n if($category == true) {\n $categorySlug = $category->slug;\n }else {\n $categorySlug = \"\";\n }\n return $categorySlug;\n }", "function get_category_slug($id)\n{\n $ci = & ge...
[ "0.76094866", "0.72282016", "0.7213969", "0.7213969", "0.7213969", "0.71631175", "0.715536", "0.71203893", "0.7003736", "0.6981549", "0.6975721", "0.69633365", "0.69633365", "0.6949204", "0.6942366", "0.69372207", "0.6912457", "0.6912457", "0.6912457", "0.6912457", "0.6912457...
0.8662173
0
Sets the default category for a post
Устанавливает дефолтную категорию для поста
public function set_default_category($post_id, $post) { $taxonomy = 'category'; $term = get_term_by('slug', self::$category_slug, $taxonomy); wp_set_object_terms(get_the_ID(), $term->term_id, $taxonomy); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function wp_set_post_cats($blogid = '1', $post_ID = 0, $post_categories = array())\n{\n}", "function wp_set_post_categories($post_ID = 0, $post_categories = array()) {\n\t$post_ID = (int) $post_ID;\n\t// If $post_categories isn't already an array, make it one:\n\tif (!is_array($post_categories) || 0 == count($po...
[ "0.6472238", "0.6303705", "0.63013554", "0.6265696", "0.6116551", "0.6110496", "0.6097785", "0.6097785", "0.59264576", "0.5854775", "0.58413965", "0.5835997", "0.579267", "0.57226205", "0.570987", "0.56928414", "0.5686715", "0.56755674", "0.56727564", "0.5655348", "0.56468874...
0.79292953
0
delete logs for the current project
удалить логи для текущего проекта
public function delete() { try { $project_id = $this->module->getProjectId(); $model = new Logs($this->module); $result = $model->delete($project_id); $response = [ 'message'=>'ok', 'result' => $result, ]; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function deleteLogs()\n {\n if (! isset(self::getInstance()->logger)) return;\n\n // Close hanlders\n array_map(function($handler){\n $handler->close();\n }, self::getInstance()->logger->getHandlers());\n\n // Remove file\n $file = self::getInst...
[ "0.78204495", "0.76115596", "0.7495616", "0.7492893", "0.748858", "0.7297485", "0.72870994", "0.7141528", "0.69525933", "0.69511175", "0.69031286", "0.68635464", "0.68417215", "0.67996573", "0.679278", "0.67505497", "0.67042434", "0.66807646", "0.66298574", "0.660075", "0.658...
0.76843596
1
/ Delete a Book By ID
/ Удалить книгу по ID
function deleteBook($id) { $id = $this->db->sqi_int($id); $this->db->docommand("delete from books where id=$id"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function deleteBook($id)\n {\n return $this->performRequest('DELETE', \"/books/{$id}\");\n }", "function deleteBook_delete()\n {\n\n $id = $this->delete('id');\n\n if(!$id){\n\n $this->response(\"Parameter missing\", 404);\n\n }\n \n if($this->bo...
[ "0.8453444", "0.8381266", "0.8381266", "0.8318356", "0.82432044", "0.80535567", "0.79600185", "0.7908843", "0.78940576", "0.788758", "0.7867276", "0.78305787", "0.78085023", "0.7806051", "0.7790751", "0.77735496", "0.7765262", "0.7750949", "0.7728682", "0.76595104", "0.765852...
0.83924985
1
when place order in prescription images table orderid is updated
когда оформляется заказ в таблице изображений рецептов, обновляется идентификатор заказа
function setorderid_for_prescription($iUserId, $iOrderId) { global $obj; if (!empty($iUserId) && !empty($iOrderId)) { $updateQuery = "UPDATE prescription_images SET order_id = '" . $iOrderId . "' WHERE iUserId='" . $iUserId . "' AND order_id = 0"; //$obj->MySQLSelect("UPDATE prescription_images ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function update_offer_image_order() {\n\t\t $this->load->model('Admin/Special_offers_model');\n\t\t\t\t$imgid = $this->input->post('id');\n\t\t\t\t$order = $this->input->post('order');\n\t\t\t\t$this->Special_offers_model->update_offer_image_order($imgid, $order);\n echo \"1\";\n\t\t}", "p...
[ "0.75634557", "0.71495867", "0.6855242", "0.67047775", "0.6617227", "0.65309924", "0.65238255", "0.64245343", "0.62794095", "0.62794095", "0.61849976", "0.6132951", "0.61107486", "0.60845226", "0.6063538", "0.6056673", "0.6041244", "0.5998748", "0.594345", "0.59191936", "0.59...
0.72578543
1
log("Parsing entire log file $logFilename...");
log("Парсинг всего лог-файла $logFilename...");
function ParseEntireLog ($logFilename) { //$currentParseFile = $logFilename; //$currentParseLine = 0; $logEntries = array(); $entryCount = 0; $errorCount = 0; $fileData = file_get_contents($logFilename); if ($fileData == null) return false; if (strlen($fileData) === 0) return true; $result =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function start_log()\n\t{\n\t\t$this->log = \"Started on \".NOW().\" - \".date(\"Y M d\").\"\\r\\n\\n\";\n\t\t$this->log .= \"Checking File ....\\r\\n\";\n\n\t\t$this->log('File',$this->input_file);\n\t}", "public function log($log);", "public function log();", "abstract function log( $aLogLevel, $aFileName,...
[ "0.68145686", "0.6520232", "0.6498747", "0.64896345", "0.64823943", "0.6413209", "0.6353598", "0.62767833", "0.6240329", "0.6168961", "0.6147904", "0.60572433", "0.60515004", "0.60501343", "0.6049257", "0.60357064", "0.6029982", "0.6010027", "0.60011405", "0.5945959", "0.5927...
0.70403546
0
Sets default toolbar button style
Устанавливает стиль кнопок панели инструментов по умолчанию
function setDefaultTbButtonStyle($style) { $this->default_tb_button_style = $style; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getDefaultTbButtonStyle()\r\n {\r\n return $this->default_tb_button_style;\r\n }", "function setToolbarButtons() {\n\t\t$bar = JToolBar::getInstance('toolbar');\n\t\tswitch(true) {\n\t\t\tcase $this->_task == 'delete' :\n\t\t\t\tJToolBarHelper::custom( 'confirmDelete', 'apply_ai.png', 'apply_ai.pn...
[ "0.7364414", "0.6501103", "0.6496736", "0.6465374", "0.6344037", "0.63313395", "0.6275523", "0.62556285", "0.6234556", "0.62276405", "0.62227744", "0.61312115", "0.6069052", "0.60012645", "0.5989406", "0.5987954", "0.5969982", "0.5953744", "0.5949696", "0.5949696", "0.5937494...
0.7755085
0
Returns default toolbar button style
Возвращает стиль кнопки панели инструментов по умолчанию
function getDefaultTbButtonStyle() { return $this->default_tb_button_style; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_button_style() {\n\n\t\treturn get_option( 'sv_wc_apple_pay_button_style', 'black' );\n\t}", "function getDefaultTbButtonCssClass()\r\n {\r\n return $this->default_tb_button_css_class;\r\n }", "function setDefaultTbButtonStyle($style)\r\n {\r\n $this->default_tb_button_style = $sty...
[ "0.7374916", "0.73279893", "0.6713585", "0.6506546", "0.6355456", "0.63273656", "0.6318418", "0.6304708", "0.6230467", "0.6201475", "0.613196", "0.61253804", "0.61212605", "0.61155736", "0.6068251", "0.6057725", "0.6045417", "0.6017454", "0.59952724", "0.5949078", "0.59166396...
0.8315106
0
Sets default toolbar image style
Устанавливает стиль изображения панели инструментов по умолчанию
function setDefaultTbImageStyle($style) { $this->default_tb_image_style = $style; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getDefaultTbImageStyle()\r\n {\r\n return $this->default_tb_image_style;\r\n }", "function _defaultToolbar()\r\n\t{\r\n\r\n\t}", "function _defaultToolbar()\r\n {\n\r\n }", "function setDefaultTbButtonStyle($style)\r\n {\r\n $this->default_tb_button_style = $style;\r\n }", "functio...
[ "0.6794513", "0.6346515", "0.6297004", "0.619314", "0.5997392", "0.5914874", "0.58829075", "0.5850744", "0.5834531", "0.5808738", "0.57953155", "0.5719521", "0.5716281", "0.5716005", "0.5703163", "0.5690869", "0.5689491", "0.5689031", "0.5617956", "0.55972165", "0.5595751", ...
0.74047214
0
Returns default toolbar image style
Возвращает стиль изображения панели инструментов по умолчанию
function getDefaultTbImageStyle() { return $this->default_tb_image_style; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_default_icon()\n {\n return 'themes/default/images/icons/48x48/menu/_generic_admin/component.png';\n }", "public function get_default_icon()\n {\n return 'themes/default/images_custom/icons/48x48/menu/adminzone/tools/health_check.png';\n }", "function getDefaultTbI...
[ "0.6864855", "0.6833266", "0.6813226", "0.680538", "0.67144424", "0.65859836", "0.6551519", "0.6474719", "0.64562315", "0.64143986", "0.6367705", "0.63374203", "0.63083726", "0.6261033", "0.61749667", "0.61733466", "0.61384463", "0.61158097", "0.60985655", "0.60915846", "0.60...
0.7859334
0
Sets default toolbar dropdown style
Устанавливает стиль выпадающего списка панели инструментов по умолчанию
function setDefaultTbDropdownStyle($style) { $this->default_tb_dropdown_style = $style; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getDefaultTbDropdownStyle()\r\n {\r\n return $this->default_tb_dropdown_style;\r\n }", "function getDefaultTbDropdownCssClass()\r\n {\r\n return $this->default_tb_dropdown_css_class;\r\n }", "function setDefaultTbDropdownCssClass($css_class)\r\n {\r\n $this->default_tb_dropdown_css_class...
[ "0.7189728", "0.66129327", "0.6274318", "0.6156093", "0.613625", "0.6003587", "0.5943851", "0.5932273", "0.57449585", "0.5698585", "0.5638634", "0.56274855", "0.55925584", "0.5574705", "0.5551815", "0.5551815", "0.5518069", "0.54743636", "0.5456839", "0.5447814", "0.5442414",...
0.7477431
0
Returns default toolbar dropdown style
Возвращает стиль выпадающего списка панели инструментов по умолчанию
function getDefaultTbDropdownStyle() { return $this->default_tb_dropdown_style; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getDefaultTbDropdownCssClass()\r\n {\r\n return $this->default_tb_dropdown_css_class;\r\n }", "function getDefaultTbButtonStyle()\r\n {\r\n return $this->default_tb_button_style;\r\n }", "function setDefaultTbDropdownStyle($style)\r\n {\r\n $this->default_tb_dropdown_style = $style;\r\n ...
[ "0.7459579", "0.6642678", "0.6574226", "0.63468194", "0.6248645", "0.6247825", "0.6247825", "0.61603945", "0.6073455", "0.6051", "0.6023845", "0.60204715", "0.59883577", "0.5970714", "0.5970639", "0.59445626", "0.59329444", "0.5909684", "0.5885501", "0.5876315", "0.5876255", ...
0.82122505
0
Sets default toolbar button CSS class
Устанавливает дефолтный CSS-класс кнопки панели инструментов
function setDefaultTbButtonCssClass($css_class) { $this->default_tb_button_css_class = $css_class; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getDefaultTbButtonCssClass()\r\n {\r\n return $this->default_tb_button_css_class;\r\n }", "function setDefaultTbButtonStyle($style)\r\n {\r\n $this->default_tb_button_style = $style;\r\n }", "function getDefaultTbButtonStyle()\r\n {\r\n return $this->default_tb_button_style;\r\n }", "...
[ "0.73189634", "0.6792972", "0.66955125", "0.66556734", "0.6615994", "0.65696156", "0.6539676", "0.6396407", "0.63498926", "0.63242036", "0.6312195", "0.6305752", "0.62597626", "0.62595165", "0.6209671", "0.6141003", "0.6136497", "0.61203694", "0.6100665", "0.6082458", "0.6080...
0.7255201
1
Returns default toolbar button CSS class
Возвращает класс CSS кнопки панели инструментов по умолчанию
function getDefaultTbButtonCssClass() { return $this->default_tb_button_css_class; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getDefaultTbButtonStyle()\r\n {\r\n return $this->default_tb_button_style;\r\n }", "public function getButtonClass(){return $this->classUsed;}", "function mogo_theme_button_class($style) {\n if ($style == 'default') {\n echo 'btn btn-default btnxs';\n } elseif ($style == ...
[ "0.7544535", "0.72177273", "0.67714095", "0.6753176", "0.66036636", "0.65102357", "0.649854", "0.6367604", "0.6277069", "0.62496483", "0.61678284", "0.61648303", "0.6129232", "0.61091846", "0.6108855", "0.609146", "0.6067351", "0.60640544", "0.6060114", "0.6028864", "0.602255...
0.808369
0
Returns default toolbar image CSS class
Возвращает CSS-класс изображения панели инструментов по умолчанию
function getDefaultTbImageCssClass() { return $this->default_tb_image_css_class; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getDefaultTbImageStyle()\r\n {\r\n return $this->default_tb_image_style;\r\n }", "public function get_default_icon()\n {\n return 'themes/default/images/icons/48x48/menu/_generic_admin/component.png';\n }", "public function get_default_icon()\n {\n return 'themes/default/im...
[ "0.7308114", "0.7117614", "0.69919175", "0.68719697", "0.68384486", "0.6797003", "0.6737546", "0.65959644", "0.6538998", "0.6532941", "0.65080065", "0.64921474", "0.64329886", "0.6431416", "0.63841", "0.6364278", "0.63635904", "0.63013566", "0.62994075", "0.6293686", "0.62921...
0.7630833
0
Sets default toolbar dropdown CSS class
Устанавливает дефолтный CSS-класс выпадающего списка панели инструментов
function setDefaultTbDropdownCssClass($css_class) { $this->default_tb_dropdown_css_class = $css_class; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getDefaultTbDropdownCssClass()\r\n {\r\n return $this->default_tb_dropdown_css_class;\r\n }", "function setDefaultTbDropdownStyle($style)\r\n {\r\n $this->default_tb_dropdown_style = $style;\r\n }", "function getDefaultTbDropdownStyle()\r\n {\r\n return $this->default_tb_dropdown_style;\...
[ "0.725621", "0.6607119", "0.65595", "0.59717244", "0.5904239", "0.58441734", "0.5840994", "0.57459146", "0.5734751", "0.57013786", "0.561676", "0.56077385", "0.55570996", "0.5541746", "0.55358386", "0.55278575", "0.5512167", "0.55052316", "0.5459644", "0.54486245", "0.5425278...
0.7136364
1
Returns default toolbar dropdown CSS class
Возвращает класс CSS выпадающего списка панели инструментов по умолчанию
function getDefaultTbDropdownCssClass() { return $this->default_tb_dropdown_css_class; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getDefaultTbDropdownStyle()\r\n {\r\n return $this->default_tb_dropdown_style;\r\n }", "function setDefaultTbDropdownCssClass($css_class)\r\n {\r\n $this->default_tb_dropdown_css_class = $css_class;\r\n }", "public function getDefaultCssClass()\n {\n\t\t$default_css_class = $this->getOwne...
[ "0.7492461", "0.66651654", "0.6659667", "0.6508246", "0.63503045", "0.62691325", "0.6105574", "0.61051095", "0.61051095", "0.60058975", "0.59696144", "0.5915839", "0.59052974", "0.5843474", "0.5832883", "0.57950205", "0.5756088", "0.5752729", "0.5697405", "0.56889766", "0.564...
0.8044273
0
Sets default toolbar button events
Устанавливает события кнопок панели инструментов по умолчанию
function setDefaultTbButtonEvents($events) { $this->default_tb_button_events = $events; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function initDefaultButtons()\n {\n $this->initDefaultButton('view', 'eye-open');\n $this->initDefaultButton('update', 'pencil');\n $this->initDefaultButton('delete', 'trash', [\n 'data-confirm' => Yii::t('yii', 'Are you sure you want to delete this item?'),\n ...
[ "0.7160702", "0.7157247", "0.7121817", "0.70147806", "0.7003751", "0.6916949", "0.6904975", "0.68926585", "0.6835503", "0.682381", "0.67214", "0.6647827", "0.6635473", "0.6626318", "0.6624133", "0.65546966", "0.65546966", "0.6554098", "0.646152", "0.6453753", "0.64437", "0....
0.7628268
0
Returns default toolbar button events
Возвращает события кнопок панели инструментов по умолчанию
function getDefaultTbButtonEvents() { return $this->default_tb_button_events; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getButtons() {}", "public function getButtons() {}", "public function getButtons() {}", "protected function getButtons() {}", "protected function getButtons() {}", "protected function getButtons() {}", "protected function getButtons() {}", "protected function getButtons() {}", "prot...
[ "0.6887328", "0.688668", "0.688668", "0.6851418", "0.68502045", "0.68502045", "0.68502045", "0.68502045", "0.68502045", "0.68502045", "0.68502045", "0.68502045", "0.68502045", "0.68502045", "0.684962", "0.684962", "0.6839014", "0.67916083", "0.67645293", "0.67199075", "0.6703...
0.8329172
0
Sets editor template variable for floating mode
Устанавливает переменную шаблона редактора для режима плавающего окна
function setTemplateFloating($template) { $this->template_floating = $template; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getTemplateFloating()\r\n {\r\n return $this->template_floating;\r\n }", "public function testFloatFormatterWithSettings() {\n \\Drupal::service('theme_installer')->install(['classy']);\n $this->config('system.theme')->set('default', 'classy')->save();\n $this->fieldType = 'float';\n $f...
[ "0.69141895", "0.526945", "0.52220684", "0.5200221", "0.516478", "0.51566607", "0.5152307", "0.5108676", "0.51037836", "0.50993925", "0.5085612", "0.5082527", "0.5067375", "0.505583", "0.5049294", "0.5028505", "0.5012781", "0.4993416", "0.4993084", "0.49849522", "0.49567455",...
0.7883355
0
Sets standard template for dialog header
Устанавливает стандартный шаблон для заголовка диалога
function setTemplateDialogHeader($template) { $this->template_dialog_header = $template; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getTemplateDialogHeader()\r\n {\r\n return $this->template_dialog_header;\r\n }", "public function prepareForDialog()\n\t{\n\t\tif ($this->app->type != 'dialog') {\n\t\t\treturn;\n\t\t}\n\n\t\t$this->header_template = 'dialogs/header';\n\t\t$this->content_template = 'dialogs/content';\n\t\t$this->f...
[ "0.71311325", "0.6818446", "0.645504", "0.6320923", "0.6018604", "0.59105784", "0.58497477", "0.5849168", "0.5816473", "0.57769793", "0.5725659", "0.5691672", "0.5649217", "0.5622967", "0.5597895", "0.5588861", "0.55734533", "0.5562731", "0.555512", "0.5552052", "0.5539351", ...
0.82924056
0
Returns standard template for dialog header
Возвращает стандартный шаблон для заголовка диалога
function getTemplateDialogHeader() { return $this->template_dialog_header; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setTemplateDialogHeader($template)\r\n {\r\n $this->template_dialog_header = $template;\r\n }", "public function getHeaderTemplate()\n {\n return $this->path.$this->fixed[\"header\"];\n }", "function WYSIWYGGenerateHeader()\n\t {\n\t \treturn '';\n\t }", "public function getHeaderText()...
[ "0.736449", "0.70683503", "0.6808715", "0.67951363", "0.6612839", "0.65681595", "0.6485392", "0.6427739", "0.6400104", "0.6339647", "0.62909526", "0.6275332", "0.62488914", "0.6244137", "0.62292594", "0.6222753", "0.62142056", "0.6213791", "0.621138", "0.6207834", "0.6201318"...
0.79293585
0
Sets standard template for dialog footer
Устанавливает стандартный шаблон для подвала диалога
function setTemplateDialogFooter($template) { $this->template_dialog_footer = $template; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getTemplateDialogFooter()\r\n {\r\n return $this->template_dialog_footer;\r\n }", "private function addFooterTemplate() {\n\t\t$this->_registry->getObject('template')->addTemplateBit('footer', 'footer.tpl.html');\n\t}", "function athen_footer() {\n\t$obj = athen_global_obj();\n $header_sty...
[ "0.7522385", "0.7024826", "0.64082783", "0.6399059", "0.6383829", "0.6305159", "0.6158128", "0.6147275", "0.6123927", "0.60749114", "0.60642636", "0.6017012", "0.5987796", "0.5956584", "0.5948229", "0.59447116", "0.5925199", "0.59243417", "0.59215033", "0.59130895", "0.591067...
0.82511646
0
Returns standard template for dialog footer
Возвращает стандартный шаблон для подвала диалога
function getTemplateDialogFooter() { return $this->template_dialog_footer; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setTemplateDialogFooter($template)\r\n {\r\n $this->template_dialog_footer = $template;\r\n }", "public function footer()\n\t{\n\t\treturn $this->render('footer');\n\t}", "public function templateFooter()\n\t{\n\t\techo '\n\t\t</div>\n\n\t\t<footer class=\"footer form-actions\">\n\t\t\t<div class...
[ "0.743747", "0.71915007", "0.7139566", "0.703029", "0.69839317", "0.6976061", "0.69652796", "0.69413614", "0.6872068", "0.67537475", "0.67519695", "0.6745443", "0.6737006", "0.67344797", "0.6723208", "0.6683317", "0.66812336", "0.66431206", "0.66329646", "0.66307014", "0.6605...
0.8203871
0
Return a page with all the available seasons, including total games in each season
Вернуть страницу со всеми доступными сезонами, включая общее количество игр в каждом сезоне
public function allSeasons(): View { $dates = PoolDate::withCount('events')->orderBy('cycle', 'desc')->orderBy('date')->get(); $list = []; $current = ''; foreach ($dates as $date) { if ($date->cycle != $current) { $current = $date->cycle; $...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function displayExistingSeasons()\n {\n $em = $this->getDoctrine()->getManager();\n $seasons = $em->getRepository(\"EventsBundle:Season\")->findAll();\n foreach($seasons as $season){\n $campaignsForSeason = $em->getRepository(\"EventsBundle:Campaign\")->findBySeasonId($sea...
[ "0.7275777", "0.72004485", "0.6986716", "0.6903321", "0.67792493", "0.6777357", "0.6763834", "0.67362076", "0.6607225", "0.6581146", "0.65655935", "0.649289", "0.64691377", "0.64496046", "0.6403653", "0.6338726", "0.63307405", "0.63290733", "0.63279533", "0.62664926", "0.6260...
0.72288316
1
=============================================================== Check DB Settings hook ===============================================================
=============================================================== Проверка настроек БД hook ===============================================================
public function checkDBSettings() { $defaultPermissions = array( 'trs_mytaggedreports_access' => '0,2,5,6', 'trs_mytaggedreports_delete' => '2,', 'trs_report_templates_access' => '2,', 'trs_report_templates_delete' => '2,', ); if ( count( $defaultPermissions ) ) { foreach ( $defaultPermissions a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function checkDBSettings() {\n\t\tglobal $cmsUserMenuItems, $cmsAdminMenuItems, $ftsdb;\n\n\t\t$defaultPermissions = array(// 'clms_appointments_access' => '2,',\n\t\t);\n\n\t\tif ( count( $defaultPermissions ) ) {\n\t\t\tforeach ( $defaultPermissions as $name => $role_ids ) {\n\t\t\t\tif ( ! permision_sett...
[ "0.7567881", "0.73648417", "0.72562134", "0.7233857", "0.7231518", "0.7065038", "0.6997795", "0.6970497", "0.6808437", "0.6763706", "0.65515465", "0.6508032", "0.6504042", "0.6488108", "0.6459486", "0.63829076", "0.63435876", "0.6325884", "0.6313713", "0.63026404", "0.6297633...
0.80243134
0
Returns a new ACF field group object
Возвращает новый объект группы полей ACF
function new_field_group($name) { return new Acf\Groups\Group($name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function _createFieldGroup(): FieldGroup\n {\n $fieldGroups = Craft::$app->fields->getAllGroups();\n $companyFieldGroup = null;\n foreach($fieldGroups as $fieldGroup) {\n if('Company Fields' === $fieldGroup->name) {\n $companyFieldGroup = $fieldGroup;\n ...
[ "0.7310148", "0.7140272", "0.6978136", "0.6889298", "0.67919785", "0.6786132", "0.6737973", "0.6715262", "0.6661406", "0.66339266", "0.6582819", "0.65148824", "0.6508283", "0.64657956", "0.6437302", "0.6375646", "0.6367642", "0.6362716", "0.6359309", "0.63523686", "0.63485557...
0.8166447
0
Returns a new ACF field object
Возвращает новый объект поля ACF
function new_field($name) { return new Acf\Fields\Field($name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function field() {\n static $field;\n if(is_null($field)) {\n get_template_part('functions/hooks/field');\n $field = new jazzweb_field();\n }\n return $field;\n }", "public function get_create_field_instance() {\n\n\t\t// Populate the values (i.e. prope...
[ "0.7183828", "0.6748059", "0.6743812", "0.6610263", "0.6491805", "0.64821684", "0.64452904", "0.64242685", "0.63549215", "0.63425475", "0.6337197", "0.62985665", "0.62974787", "0.6240061", "0.6227767", "0.6226692", "0.6191509", "0.6177753", "0.6170843", "0.6140118", "0.610390...
0.7883915
0
Returns a new ACF SEO field group object
Возвращает новый объект группы полей ACF SEO
function new_seo_field_group() { return new Acf\Groups\Seo('search_engine_optimization'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function new_field_group($name) {\n\n return new Acf\\Groups\\Group($name);\n\n}", "private function _createFieldGroup(): FieldGroup\n {\n $fieldGroups = Craft::$app->fields->getAllGroups();\n $companyFieldGroup = null;\n foreach($fieldGroups as $fieldGroup) {\n if('Company Fi...
[ "0.75020957", "0.7009529", "0.6764198", "0.66949975", "0.6594827", "0.6573447", "0.65072817", "0.64219177", "0.6406722", "0.6391433", "0.63643986", "0.62834996", "0.6283276", "0.62646955", "0.6253229", "0.62420636", "0.6201531", "0.6183219", "0.6130692", "0.6112921", "0.61119...
0.81116194
0
Returns a new ACF field group preset object
Возвращает новый объект предустановки группы полей ACF
function new_field_group_preset($name) { // List of available presets $presets = array( 'featured_image' => 'FeaturedImage', 'seo' => 'Seo' ); // Return new instance if in array if (isset($presets[$name])) { $class = '\\Blueprint\\Acf\\Groups\\' . $presets[$name]; return new $cla...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function new_field_group($name) {\n\n return new Acf\\Groups\\Group($name);\n\n}", "protected function init_local_field_group() {\n\n\t\t$rows = $this->init_acf_fields();\n\n\t\tacf_add_local_field_group(array ( \n\n\t\t\t'key' => 'group_optioncss' . $this->slug,\n\t\t\t'title' => $this->name . ' styles',\n\t\t...
[ "0.6746602", "0.64438885", "0.6211671", "0.61379796", "0.61360216", "0.60608095", "0.5999103", "0.59923583", "0.5972655", "0.592501", "0.58978146", "0.58907145", "0.5880691", "0.5871724", "0.58265585", "0.58228505", "0.58036846", "0.5775985", "0.57327884", "0.5717842", "0.568...
0.77730924
0
Returns a new field group collection
Возвращает новую коллекцию групп полей
function new_field_group_collection($prefix=null) { return new Acf\GroupCollection($prefix); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function new_field_group($name) {\n\n return new Acf\\Groups\\Group($name);\n\n}", "public function groupsManager(): FieldGroupsFactoryInterface;", "private function _createFieldGroup(): FieldGroup\n {\n $fieldGroups = Craft::$app->fields->getAllGroups();\n $companyFieldGroup = null;\n ...
[ "0.74997306", "0.72587585", "0.71718013", "0.707133", "0.7012374", "0.6899952", "0.67932653", "0.6776926", "0.6677261", "0.6669613", "0.66562253", "0.66510266", "0.6611233", "0.6611233", "0.65744084", "0.6562363", "0.6550721", "0.6548859", "0.65374273", "0.6530702", "0.652494...
0.80729777
0
deleteNoPictureImages will delete all default image created for the language id_language
deleteNoPictureImages удалит все изображения по умолчанию, созданные для языка id_language
protected function deleteNoPictureImages($idLanguage) { $language = Language::getIsoById($idLanguage); $imageTypes = ImageType::getImagesTypes('products'); $dirs = [_EPH_PROD_IMG_DIR_, _EPH_CAT_IMG_DIR_, _EPH_MANU_IMG_DIR_, _EPH_SUPP_IMG_DIR_, _EPH_MANU_IMG_DIR_]; foreach ($dirs as $di...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function erase_all_selected_images()\r\n\t{\r\n\t\t// FIXME: img_box wird nie gesetzt\r\n\t\tforeach($this->checked->img_box as $img) {\r\n\t\t\t$sql = \"SELECT `image_name` FROM \" . $this->cms->tbname['papoo_images'] . \" WHERE image_id=$img\";\r\n\t\t\t$result = $this->db->get_var($sql);\r\n\t\t\tunlink(PAPOO_A...
[ "0.6358872", "0.63484657", "0.6290764", "0.629039", "0.619853", "0.5978182", "0.5970994", "0.5963463", "0.5962458", "0.591555", "0.58644724", "0.58597934", "0.5848439", "0.58393896", "0.5820101", "0.5815704", "0.57979167", "0.579789", "0.5771487", "0.5756969", "0.5745678", ...
0.74185705
0
Ajax process check language pack
Проверка языкового пакета Ajax процесса
public function ajaxProcessCheckLangPack() { $this->errors[] = $this->l('Our apologies. Language packs aren\'t in the first few ephenyx releases.'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function ajax_change_language()\r\n {\r\n try\r\n {\r\n // Check if language exists in the available languages.\r\n $found = FALSE;\r\n foreach ($this->config->item('available_languages') as $lang)\r\n {\r\n if ($lang == $this->inpu...
[ "0.6811366", "0.67759436", "0.6642754", "0.66231406", "0.6363815", "0.63491464", "0.6215177", "0.62133634", "0.6194687", "0.6183006", "0.6137964", "0.613146", "0.61187947", "0.61014485", "0.6095199", "0.60822284", "0.6077924", "0.6046461", "0.59750134", "0.5948211", "0.592695...
0.81141925
0
Process bulk disable selection
Операция массового отключения выборки
protected function processBulkDisableSelection() { if (is_array($this->boxes) && !empty($this->boxes)) { foreach ($this->boxes as $idLang) { $object = new Language((int) $idLang); if (!$this->checkDisableStatus($object)) { return false; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function disableAll();", "public function allDisabled();", "function disable() ;", "public function massDisableAction()\n { \n $reviewIds = $this->getRequest()->getParam('reviewids');\n if (!is_array($reviewIds)) {\n $msg = Mage::helper('webwinkelconnect')->__('Please se...
[ "0.64832246", "0.6362691", "0.63246757", "0.6082178", "0.60033894", "0.60033894", "0.60033894", "0.60033894", "0.59885323", "0.59383804", "0.5897762", "0.58185345", "0.58035713", "0.57734203", "0.57713526", "0.5757629", "0.572158", "0.5717256", "0.57094896", "0.564513", "0.56...
0.7182207
0
Parse update file and return array.
Парсить файл обновления и вернуть массив.
private function parseUpdateFile($filename) { $result = array(); // make sure file exists if (!file_exists($filename)) return $result; // open update file $handle = fopen($filename, 'r'); if ($handle) { while (($row = fgetcsv($handle)) !== false) $result[] = $row; fclose($handle); } re...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function parse_dat_file($file_path, &$last_version)\n\t{\n\t\t$last_version = null;\n\n\t\tif (!file_exists($file_path))\n\t\t\treturn array();\n\n\t\t$contents = file_get_contents($file_path);\n\n\t\t// Normalize line-endings and split the file content\n\t\t//\n\n\t\t$contents = str_replace(\"\\r\\n...
[ "0.7446622", "0.5986996", "0.5986293", "0.5929479", "0.5921213", "0.5918777", "0.58797973", "0.58561", "0.583264", "0.57816535", "0.5715723", "0.5694813", "0.5693032", "0.5633781", "0.56031364", "0.5581761", "0.5579101", "0.55387765", "0.55375713", "0.5536224", "0.5525022", ...
0.7199348
1
Funcion que lista las opciones del campo enum de una tabla
Функция, которая перечисляет варианты поля enum таблицы
public function getEnumOptions($table, $field) { $finalResult = array(); if (strlen(trim($table)) < 1) return false; $query = $this->db->select("show columns from $table"); foreach ($query as $row) { if ($field != $row["Field"]) continue; //check i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function enumOptions($model, $field) {\n $cacheKey = $model->alias . '_' . $field . '_enum_options';\n $options = Cache::read($cacheKey);\n\n if (!$options) {\n $sql = \"SHOW COLUMNS FROM `{$model->useTable}` LIKE '{$field}'\";\n $enumData = $model->query($sql);\n\n $options = false;\n ...
[ "0.69565773", "0.68465567", "0.6778439", "0.67777073", "0.6728054", "0.67067516", "0.65739185", "0.6566226", "0.6556102", "0.65531415", "0.6546166", "0.65377474", "0.6487519", "0.64780104", "0.64755213", "0.64672554", "0.6430858", "0.6429893", "0.64240706", "0.6397688", "0.63...
0.71897125
0
Escapes text for SQL LIKE special characters % and _.
Экранирует текст для специальных символов SQL LIKE % и _.
public static function escSqlLike($text) { return str_replace(array("%", "_"), array("\\%", "\\_"), $text); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function sql_like_escape($string) {\n\treturn str_replace(array(\"%\", \"_\"), array(\"\\\\%\", \"\\\\_\"), $string);\n}", "public function escapeLike( $like );", "public static function escapeSqlWildcards(string $text): string {\n\t\tstatic $s_from = [\"%\", \"_\"];\n\t\tstatic $s_to = [\"\\\\%\", \"\\\\_\"];...
[ "0.76104826", "0.737795", "0.7355705", "0.731441", "0.7195076", "0.7173961", "0.71629316", "0.7000769", "0.67422855", "0.67150277", "0.6697905", "0.6657808", "0.6627534", "0.6586658", "0.65450424", "0.65108603", "0.6481978", "0.6390812", "0.63783956", "0.6348132", "0.63355184...
0.80686766
0
Strips unescaped unicode characters (e.g. u00a0).
Удаляет неэкранированные унікод-символи (напр. u00a0).
public static function stripInvalidUnicode($str) { if (static::mb()) { $encoding = mb_detect_encoding($str); if ('UTF-8' !== $encoding && 'ASCII' !== $encoding) { // temporarily unset mb substitute character and convert $mb_sub = ini_set('mbstring.substitute_character', "none"); $str = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function str_clean_unicode($str) {\n\tstatic $mb;\n\tisset($mb) OR $mb = extension_loaded('mbstring');\n\t\n\tif ($mb) {\t\t\n\t\t$encoding = mb_detect_encoding($str);\n\t\tif ('UTF-8' !== $encoding && 'ASCII' !== $encoding) {\n\t\t\t// temporarily unset mb substitute character and convert\n\t\t\t$mbsub = ini_set(...
[ "0.7213144", "0.6907799", "0.68280953", "0.6787834", "0.6515654", "0.6495519", "0.64866513", "0.6413866", "0.6401545", "0.6401545", "0.6357473", "0.6314297", "0.6303431", "0.62678474", "0.62388414", "0.6238589", "0.6212046", "0.6179758", "0.61697817", "0.6166937", "0.6164174"...
0.73270476
0