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
Return's the filesystem loader instance.
Возвращает экземпляр загрузчика файловой системы.
protected function getFilesystemLoader() : PregMatchFilteredLoaderInterface { return $this->filesystemLoader; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function getLoader(): FilesystemLoader\n {\n if (null == $this->loader) {\n $this->loader = new FilesystemLoader(\n $this->locations\n );\n }\n return $this->loader;\n }", "public function get_loader()\n {\n return $this->loader;\n...
[ "0.859123", "0.7657542", "0.76328915", "0.76328915", "0.76328915", "0.76328915", "0.76328915", "0.76328915", "0.76328915", "0.76328915", "0.76328915", "0.74714756", "0.7384957", "0.73273575", "0.7257109", "0.7207278", "0.7182712", "0.7156419", "0.71191376", "0.7105702", "0.71...
0.80012155
1
Returns the actual source directory to load the files from.
Возвращает фактическую директорию источника для загрузки файлов.
protected function getSourceDir() : string { return $this->sourceDir; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getSourceDir()\n {\n return $this->sourceDir;\n }", "public function getSourceFilePath(): string\n {\n $basePath = 'app/DataTransferObjects';\n if ($this->getDir()) {\n $basePath = $basePath.'/'.$this->getDir();\n }\n return base_path($bas...
[ "0.79713845", "0.6926534", "0.6879751", "0.6842505", "0.6821658", "0.6794021", "0.67778206", "0.67483914", "0.67125213", "0.6659845", "0.6636471", "0.6623489", "0.6602566", "0.660144", "0.6580139", "0.65612924", "0.6551398", "0.65415794", "0.6538652", "0.6533079", "0.65104556...
0.7754143
1
Returns the file resolver configuration instance.
Возвращает экземпляр конфигурации разрешателя файлов.
protected function getFileResolverConfiguration() : FileResolverConfigurationInterface { return $this->getSubjectConfiguration()->getFileResolver(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getConfigResolver()\n {\n if (is_null($this->configResolver) === false) {\n return $this->configResolver;\n }\n\n $resolver = new AttributesResolver();\n $resolver->setDefault('host', '0.0.0.0', 'string', true)\n ->setDefault('port', 4000, 'in...
[ "0.71630996", "0.6863718", "0.63414097", "0.62508947", "0.60970813", "0.5994549", "0.59700733", "0.59700733", "0.58949935", "0.5868069", "0.5853029", "0.58406526", "0.58174735", "0.58078015", "0.579564", "0.57773346", "0.57560986", "0.57287294", "0.5684952", "0.566876", "0.56...
0.82566285
0
Returns the subject configuration instance.
Возвращает экземпляр конфигурации субъекта.
public function getSubjectConfiguration() : SubjectConfigurationInterface { return $this->subjectConfiguration; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function getSubjectConfiguration() : SubjectConfigurationInterface\n {\n return $this->subjectConfiguration;\n }", "public function get() {\n return new ConfigurationObject($this->config);\n }", "public function get() {\n return $this->_configuration;\n }", "public function...
[ "0.86213255", "0.6559838", "0.6434438", "0.63619727", "0.63538975", "0.63099855", "0.630556", "0.6282761", "0.6190531", "0.6182285", "0.61647856", "0.61322844", "0.61268604", "0.6118763", "0.6010781", "0.60080487", "0.5992336", "0.59439254", "0.59439254", "0.5934246", "0.5919...
0.85318345
1
Set's the filesystem adapter instance.
Устанавливает экземпляр адаптера файловой системы.
public function setFilesystemAdapter(FilesystemAdapterInterface $filesystemAdapter) : void { $this->filesystemAdapter = $filesystemAdapter; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAdapter(): Filesystem\n {\n return $this->adapter;\n }", "public function getFilesystemAdapter() : FilesystemAdapterInterface\n {\n return $this->filesystemAdapter;\n }", "public function __construct(Adapter $filesystemInterface, $path){\n $this->driver = $fi...
[ "0.7158414", "0.698378", "0.66995996", "0.6520112", "0.6494655", "0.6301408", "0.628619", "0.62648326", "0.62648326", "0.62648326", "0.6139775", "0.60703754", "0.60586244", "0.60362536", "0.6027831", "0.59975505", "0.5977276", "0.5974382", "0.59672505", "0.59498084", "0.59437...
0.733069
0
Return's the filesystem adapter instance.
Возвращает экземпляр адаптера файловой системы.
public function getFilesystemAdapter() : FilesystemAdapterInterface { return $this->filesystemAdapter; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAdapter(): Filesystem\n {\n return $this->adapter;\n }", "public function storage(): FilesystemAdapter\n {\n return Storage::disk($this->getDiskName());\n }", "protected function getFilesystemService()\n {\n return $this->services['filesystem'] = new \\php...
[ "0.87980074", "0.81327057", "0.717036", "0.70775425", "0.70775425", "0.69888157", "0.6838848", "0.6798851", "0.6765025", "0.6748843", "0.6747465", "0.6736595", "0.6722655", "0.668343", "0.6603441", "0.6514897", "0.6514532", "0.64998615", "0.6471535", "0.64500654", "0.64500654...
0.86282265
1
Esta funcion aplica el filtro de Gauss a los valores
Эта функция применяет фильтр Гаусса к значениям
function FiltroGauss($var, $num) { //Variables para aplicar el filtro $aux = array(); //Variables propias del filtro $a = 0.383; $b = 0.242; $c = 0.061; $d = 0.006; //Cogemos la dimension del vector $lon = count($var); //Aplicamos el filtrado de Gauss $num veces for($k = 0...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function filtering();", "public function getFiltred(array &$data);", "public function filter();", "function PreciosFilter( $Filter )\n {\n $Field = PreciosField( $Filter );\n \n $where = \"\";\n if( !empty($Filter->precMin) ) $where = 'AND '.$Field.'>='.$Filter->precMin.' ';\n if( !empty($Fil...
[ "0.5493301", "0.51687455", "0.5132805", "0.5093881", "0.50421673", "0.49674004", "0.4937106", "0.48493773", "0.48127425", "0.4776622", "0.47586274", "0.47340673", "0.47205204", "0.46902508", "0.46889266", "0.46863028", "0.46787897", "0.46643865", "0.4650334", "0.46444246", "0...
0.772804
0
We list all heroes in hots>heroes
Мы перечисляем всех героев в hots>heroes
public function listHero() { //Echo table and tr with th. echo ' <table> <tr><th>#</th><th>Name</th><th>Role</th><th>Spells</th><th></th><tr> '; //We find all documents in heroes "Heroes" $heroes = $this->heroes->find([], [ 'sort' => ['name' => +1] // Sort by : name ; - 1 to DESC ; +1 to AS...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getHotels(): Collection;", "public function actionIndex()\n\t{\n\t\t$heroes = Heroes::model()->findAll();\t\n\t\t$this->render('index', array('heroes'=>$heroes));\n\t}", "public function getSplitableHeroes()\n {\n return $this->get(self::_SPLITABLE_HEROES);\n }", "public function...
[ "0.5977202", "0.5843433", "0.5799328", "0.5776161", "0.5747042", "0.57273626", "0.5630887", "0.5630887", "0.5630887", "0.5630887", "0.5630887", "0.5630887", "0.5630887", "0.5630887", "0.5630887", "0.5623159", "0.5593735", "0.5563766", "0.55354017", "0.5511837", "0.5472105", ...
0.70743483
0
remove field where type==$type from list
удалить поле, где тип==$type из списка
public function removeType($type) { foreach ($this->fields as $fieldname => $field) { if ($field->type == $type) { unset($this->fields[$fieldname]); } } return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function apply(Type $type)\n {\n foreach ($this->blacklistedFields as $blacklistedField) {\n if (isset($type->$blacklistedField)) {\n unset($type->$blacklistedField);\n }\n }\n\n return $type;\n }", "function remove_product_types( $types ){\n...
[ "0.6946074", "0.6546621", "0.64440435", "0.6435696", "0.64247215", "0.64055204", "0.63133293", "0.6065113", "0.5973382", "0.5934801", "0.5907904", "0.5901065", "0.58969593", "0.5861503", "0.5852212", "0.58486265", "0.58139586", "0.57858884", "0.57855433", "0.5768919", "0.5744...
0.71590334
0
Get any sortable option.
Получите любой сортируемый вариант.
function ui_sortable_get_option($selector,$option){ return jquery_support($selector,'sortable', "'option' , '$option'"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSortable()\n {\n return $this->sortable;\n }", "public function getSelectSortType()\n {\n return $this->_rootElement->find(\"#sorter\")->getElements('option[selected]')[0]->getText();\n }", "public function get_sorting_options() {\n\n $instance = Envira_Galle...
[ "0.65913445", "0.63388073", "0.6214337", "0.608021", "0.59725475", "0.58111876", "0.5787637", "0.57584524", "0.57315344", "0.57268786", "0.57258266", "0.57245123", "0.56677234", "0.5647504", "0.5580155", "0.55399084", "0.5534234", "0.5521743", "0.55206203", "0.55171674", "0.5...
0.73631203
0
/ TEMPLATE TAGS Returns the embed code needed to display the Urtak widget for a particular set of arguments. The arguments are as follows: post_id the id of the post that you want to show the Urtak for defaults to current global post if available
/ Шаблонные теги Возвращает код встраивания, необходимый для отображения виджета Urtak для определенного набора аргументов. Аргументы следующие: post_id идентификатор поста, который вы хотите показать Urtak, по умолчанию используется текущий глобальный пост, если он доступен
public static function get_embeddable_widget($args = array()) { $args = shortcode_atts(array('post_id' => 0, 'force' => false), $args); extract($args); if(empty($post_id)) { $post_id = get_the_ID(); } if(empty($post_id)) { return ''; } $should_show = $force || ('yes' !== get_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_post_embed_url($post = \\null)\n {\n }", "function get_post_embed_html($width, $height, $post = \\null)\n {\n }", "function widget($args)\n {\n // Variables\n $aData = get_option( 'ultimosPostPorAutor' );\n $aUsuarios = null;\n $aUsuario = null;\n ...
[ "0.64503855", "0.6358699", "0.6264849", "0.59959316", "0.59904504", "0.5985374", "0.5929305", "0.5920219", "0.58916444", "0.58798957", "0.5873147", "0.5860818", "0.5858964", "0.58401847", "0.5830627", "0.58244246", "0.58241516", "0.581558", "0.58142406", "0.5802882", "0.58014...
0.7174039
0
Register the password broker instance.
Зарегистрируйте экземпляр посредника паролей.
protected function registerPasswordBroker() { $this->app->singleton('auth.password', function($app) { // The password token repository is responsible for storing the email addresses // and password reset tokens. It will be used to verify the tokens are valid // for the given e-mail addresses. We will reso...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function getPasswordBroker()\n {\n return Password::broker();\n }", "public function broker(): PasswordBroker\n {\n return Password::broker('admins');\n }", "public function broker()\n {\n return Password::broker('users');\n }", "protected function registerPassw...
[ "0.6865259", "0.6672334", "0.6507678", "0.64716655", "0.63600457", "0.63494265", "0.6324595", "0.6270334", "0.6231044", "0.6073573", "0.59710586", "0.58468515", "0.5835732", "0.57147944", "0.5698387", "0.56650674", "0.56103003", "0.55955094", "0.55685496", "0.5561503", "0.555...
0.832123
0
Register the token repository implementation.
Зарегистрируйте реализацию репозитория токенов.
protected function registerTokenRepository() { $this->app->singleton('auth.password.tokens', function($app) { $connection = $app['db']->connection(); // The database token repository is an implementation of the token repository // interface, and is responsible for the actual storing of auth tokens and ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function register()\n {\n $files = $this->app->make(Filesystem::class);\n $provider = app_path(\n 'Providers' . DIRECTORY_SEPARATOR . RepositoryMakeCommand::$providerName . '.php'\n );\n\n // Register repository provider if created\n if ($files->exists($provi...
[ "0.6463557", "0.6364074", "0.6260137", "0.61066806", "0.6106307", "0.610542", "0.60437554", "0.6037714", "0.59924316", "0.59726036", "0.5951542", "0.59284973", "0.5905749", "0.5883721", "0.5851695", "0.5821718", "0.5817131", "0.5765104", "0.5742501", "0.57305086", "0.57292056...
0.77043974
0
Show unused constants on terminal
Показать неиспользуемые константы на терминале
public function showUnusedConstants($unused) { $this->out('Find unused Language Constants - Results!'); if (count($unused) == 0) { $this->out('No unused constants were found in the file(s).'); } else { $this->out('The following constants appear to be unused. It is recommended that you check manually...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function undefConstants()\n {\n echo PHP_OS . \"\\n\";\n echo UNDEFINED_CONSTANT . \"\\n\";\n echo \"Program Continues ... \\n\";\n }", "public function quash_unused() {\n\t\t// Don't put any code in here.\n\t}", "function output_defined_constant()\n{\n echo \"Define...
[ "0.60429025", "0.5860811", "0.5590818", "0.54714566", "0.530076", "0.52512765", "0.52235216", "0.518704", "0.516918", "0.5156369", "0.50794125", "0.50711346", "0.506024", "0.5040378", "0.5019937", "0.49911782", "0.49909586", "0.49882478", "0.4957948", "0.49465182", "0.4943928...
0.7284634
0
Creates the VatRate of "23%"
Создает ставку НДС "23%"
public static function VAT23(): VatRate { return self::fromCode('23'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function VAT22(): VatRate\n {\n return self::fromCode('22');\n }", "function vatAmount($value = 0, $vat_percent = 20)\n{\n return ($vat_percent / 100) * $value;\n}", "public static function VAT8(): VatRate\n {\n return self::fromCode('8');\n }", "public static funct...
[ "0.6904227", "0.6707432", "0.65498716", "0.63773185", "0.63438", "0.6328239", "0.6189906", "0.6104434", "0.5985564", "0.5887911", "0.57468665", "0.57297355", "0.56631184", "0.56490195", "0.5623499", "0.5602934", "0.5543669", "0.5488203", "0.548782", "0.54696834", "0.5467809",...
0.73143953
0
Creates the VatRate of "8%"
Создает ставку НДС "8%"
public static function VAT8(): VatRate { return self::fromCode('8'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function VAT23(): VatRate\n {\n return self::fromCode('23');\n }", "public static function VAT22(): VatRate\n {\n return self::fromCode('22');\n }", "public static function VAT5(): VatRate\n {\n return self::fromCode('5');\n }", "public static function VAT...
[ "0.63720626", "0.6227603", "0.6147549", "0.60895723", "0.60603166", "0.60598713", "0.5947075", "0.59282124", "0.5619765", "0.561213", "0.5593664", "0.55115503", "0.54375106", "0.5396995", "0.53849447", "0.5331915", "0.5291809", "0.52892476", "0.52761734", "0.52532476", "0.524...
0.75157946
0
Creates the VatRate of "5%"
Создает ставку НДС "5%"
public static function VAT5(): VatRate { return self::fromCode('5'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function vatAmount($value = 0, $vat_percent = 20)\n{\n return ($vat_percent / 100) * $value;\n}", "function vatIncluded($value = 0, $vat_percent = 20)\n{\n return $value * (1 + $vat_percent / 100);\n}", "public static function VAT8(): VatRate\n {\n return self::fromCode('8');\n }", "public...
[ "0.6463275", "0.6225947", "0.61242115", "0.6120628", "0.5954731", "0.5831712", "0.58233404", "0.5798332", "0.5736175", "0.56294876", "0.5528626", "0.54186195", "0.53521556", "0.531487", "0.5301036", "0.52945805", "0.52922875", "0.5274143", "0.5248202", "0.52029973", "0.519042...
0.73792195
0
Creates the VatRate of "22%"
Создает ставку НДС "22%"
public static function VAT22(): VatRate { return self::fromCode('22'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function VAT23(): VatRate\n {\n return self::fromCode('23');\n }", "function vatAmount($value = 0, $vat_percent = 20)\n{\n return ($vat_percent / 100) * $value;\n}", "public static function VAT8(): VatRate\n {\n return self::fromCode('8');\n }", "function vatInclude...
[ "0.70461696", "0.6799312", "0.66211325", "0.6399289", "0.62344295", "0.62177175", "0.6181991", "0.6129431", "0.60276103", "0.59923923", "0.59446794", "0.58886844", "0.5744391", "0.5723855", "0.5707857", "0.5677436", "0.56529766", "0.5631289", "0.5610739", "0.5607381", "0.5570...
0.7243016
0
Creates the VatRate of "7%"
Создает ставку НДС "7%"
public static function VAT7(): VatRate { return self::fromCode('7'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function VAT8(): VatRate\n {\n return self::fromCode('8');\n }", "public static function VAT23(): VatRate\n {\n return self::fromCode('23');\n }", "public static function VAT5(): VatRate\n {\n return self::fromCode('5');\n }", "public static function VAT22...
[ "0.6712735", "0.6372682", "0.6245048", "0.6191467", "0.61862403", "0.60610616", "0.6007972", "0.58639437", "0.583024", "0.5759483", "0.56831145", "0.56297994", "0.5529968", "0.55047363", "0.54597306", "0.5406465", "0.538466", "0.5343358", "0.5326334", "0.5266879", "0.52358747...
0.71198136
0
Creates the VatRate of "3%"
Создает ставку НДС "3%"
public static function VAT3(): VatRate { return self::fromCode('3'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function VAT23(): VatRate\n {\n return self::fromCode('23');\n }", "function vatAmount($value = 0, $vat_percent = 20)\n{\n return ($vat_percent / 100) * $value;\n}", "function vatIncluded($value = 0, $vat_percent = 20)\n{\n return $value * (1 + $vat_percent / 100);\n}", "publ...
[ "0.6313483", "0.630893", "0.61271685", "0.5963268", "0.59585387", "0.58887804", "0.5879399", "0.58653057", "0.5620695", "0.5435205", "0.5430759", "0.53963804", "0.53810555", "0.53565705", "0.5348312", "0.53476113", "0.5336025", "0.53154194", "0.5312162", "0.52519524", "0.5249...
0.7299356
0
Creates the VatRate of "0% WDT"
Создает ставку НДС "0% WDT"
public static function WDT(): VatRate { return self::fromCode('WDT'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function VAT8(): VatRate\n {\n return self::fromCode('8');\n }", "public static function VAT23(): VatRate\n {\n return self::fromCode('23');\n }", "public function getSmallVClock() {}", "function NSNrate($SFR){ return 0.156*($SFR/(12.26*Msun)); }", "public static fun...
[ "0.5493253", "0.54343975", "0.5432539", "0.53151226", "0.5286722", "0.5285758", "0.5208981", "0.51801705", "0.51588964", "0.5144454", "0.5071457", "0.50470275", "0.5041602", "0.49963936", "0.49570024", "0.49317396", "0.48708227", "0.48379546", "0.48256096", "0.47932214", "0.4...
0.7752416
0
Creates the VatRate of "0% Exp."
Создает ставку НДС "0% Exp."
public static function EXP(): VatRate { return self::fromCode('EXP'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function vatAmount($value = 0, $vat_percent = 20)\n{\n return ($vat_percent / 100) * $value;\n}", "public static function VAT23(): VatRate\n {\n return self::fromCode('23');\n }", "function vatIncluded($value = 0, $vat_percent = 20)\n{\n return $value * (1 + $vat_percent / 100);\n}", "publ...
[ "0.6213041", "0.59301966", "0.58685094", "0.5814833", "0.581284", "0.57294875", "0.57196933", "0.55673385", "0.5477718", "0.5455747", "0.54292446", "0.5382291", "0.5330482", "0.5319129", "0.53072166", "0.5275971", "0.5267988", "0.52479404", "0.52444583", "0.51497376", "0.5128...
0.70573634
0
Creates the VatRate of "nie podl. UE"
Создает ставку НДС "nie podl. UE"
public static function NPUE(): VatRate { return self::fromCode('NPUE'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function VAT23(): VatRate\n {\n return self::fromCode('23');\n }", "public static function VAT8(): VatRate\n {\n return self::fromCode('8');\n }", "public static function VAT_BUYER(): VatRate\n {\n return self::fromCode('VAT_BUYER');\n }", "public static f...
[ "0.6338609", "0.6222102", "0.62001467", "0.6140305", "0.6087255", "0.59119844", "0.58833325", "0.58608633", "0.57504785", "0.5681599", "0.5665413", "0.55731565", "0.54767853", "0.5452283", "0.53809613", "0.5362374", "0.5346913", "0.53091675", "0.5286024", "0.52613837", "0.525...
0.7157008
0
Creates the VatRate of "zw."
Создает ставку НДС "zw."
public static function ZW(): VatRate { return self::fromCode('ZW'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function VAT8(): VatRate\n {\n return self::fromCode('8');\n }", "public static function VAT23(): VatRate\n {\n return self::fromCode('23');\n }", "public static function VAT_BUYER(): VatRate\n {\n return self::fromCode('VAT_BUYER');\n }", "public static f...
[ "0.6155761", "0.5934997", "0.5801416", "0.5690143", "0.5665742", "0.5447004", "0.5415991", "0.53558505", "0.52002007", "0.51937354", "0.5016625", "0.49757457", "0.48912433", "0.48639092", "0.48518986", "0.48454463", "0.48378852", "0.48039955", "0.476231", "0.47544664", "0.472...
0.769618
0
Register the optionsrelated routes.
Зарегистрируйте маршруты, связанные с опциями.
public function register_routes() { register_rest_route( $this->namespace, $this->route, [ [ 'methods' => WP_REST_Server::READABLE, 'callback' => [$this, 'get_options'] ], [ 'methods' => WP_REST_Server::EDITABLE, 'callback' => [$this, 'update_opti...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function routeOptions();", "public function registerRouters () {\n\t\tif ( !current_user_can( 'manage_options' ) )\n\t\t\treturn;\n\n\t\tforeach ( $this->classes as $class ) {\n\t\t\t\\Maven\\Core\\HookManager::instance()->addFilter( 'json_endpoints', array( $class, 'registerRoutes' ) );\n\t\t}\n\t}", "...
[ "0.729244", "0.72525066", "0.7048635", "0.6852337", "0.6852337", "0.6852337", "0.6852337", "0.6852337", "0.6852337", "0.6852337", "0.6852337", "0.6852337", "0.6852337", "0.6852337", "0.6852337", "0.6852337", "0.6852337", "0.6852337", "0.6852337", "0.6852337", "0.6852337", "...
0.7958152
0
Get option types capabilities.
Получить возможности типов опций.
protected function get_option_types_capabilities() { $capabilities = []; $option_types = papi_get_all_entry_types( [ 'type' => 'option' ] ); foreach ( $option_types as $option_type ) { $capabilities[] = empty( $option_type->capability ) || ! is_string( $option_type->capability ) ? 'manage_options' : $opt...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_capabilities() {\n\t\treturn array( WPML_Manage_Translations_Role::CAPABILITY, 'manage_options' );\n\t}", "protected function get_all_capabilities(): array {\n\t\treturn array_merge(\n\t\t\tTaxonomy_Base::DEFAULT_CAPABILITIES,\n\t\t\t$this->story_post_type->get_caps(),\n\t\t);\n\t}", "publi...
[ "0.67138684", "0.65427923", "0.65178543", "0.6516373", "0.65055287", "0.6490513", "0.64798635", "0.64366025", "0.6435065", "0.6435065", "0.63831717", "0.6372842", "0.6367148", "0.62828505", "0.6230309", "0.6221611", "0.6201927", "0.607791", "0.60630834", "0.60587835", "0.6046...
0.84125113
0
Convert the given value to a string.
Преобразуйте заданное значение в строку.
public function toString(mixed $value): string;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function valueToString($value): string\n {\n if (\\is_string($value)) {\n return $value;\n }\n if (\\is_int($value)) {\n return (string) $value;\n }\n if (\\is_float($value)) {\n return (string) $value;\n }\n return \\ge...
[ "0.8239556", "0.7996996", "0.7805389", "0.7720096", "0.75486946", "0.75426424", "0.7540966", "0.745068", "0.74357134", "0.7433528", "0.7362947", "0.73554754", "0.7316517", "0.7297475", "0.7276625", "0.7232971", "0.7197727", "0.71688396", "0.7148528", "0.7115734", "0.7084191",...
0.8129562
1
Get Layout view entity
Получить сущность представления Layout view
public function getLayout() { if ($this->__layout) { return $this->__layout; } $this->__layout = new ViewEntity(); $layoutName = 'layout/layout'; $layoutPath = $this->__defaultScriptPath; $yaceConfig = $this->__config->get('yace'); if ($yaceConf...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getLayout();", "public function getLayout() {}", "public function getViewEntity()\n {\n if (!$this->__viewEntity) {\n $this->__viewEntity = new ViewEntity();\n $this->__viewEntity->setScriptPath($this->__defaultScriptPath);\n }\n\n return $this->__v...
[ "0.7287352", "0.7178834", "0.70948035", "0.6755215", "0.6747627", "0.6714571", "0.6681559", "0.6644217", "0.6618803", "0.6618337", "0.6618337", "0.661738", "0.661738", "0.661738", "0.65960974", "0.65878487", "0.6574423", "0.65370524", "0.65342736", "0.6509042", "0.64997625", ...
0.7926967
0
Get current request view entity
Получить текущий объект представления запроса
public function getViewEntity() { if (!$this->__viewEntity) { $this->__viewEntity = new ViewEntity(); $this->__viewEntity->setScriptPath($this->__defaultScriptPath); } return $this->__viewEntity; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function &getCurrentView()\n {\n return $this->_view;\n }", "protected function _getCurrentView()\n {\n return db_get_row(\"SELECT * FROM ?:views WHERE user_id = ?i AND object = ?s\", $this->_auth['user_id'], 'lv_' . $this->_controller);\n }", "private function get_current_enti...
[ "0.70510954", "0.69400424", "0.6815852", "0.66634625", "0.6583462", "0.6571879", "0.64919496", "0.6491652", "0.6491652", "0.6491652", "0.64142054", "0.64142054", "0.63824755", "0.6377862", "0.6364647", "0.6358217", "0.63351417", "0.63301283", "0.6317121", "0.6317121", "0.6317...
0.7150292
0
Implement \Yaf_View_Interface::getScriptPath Get script path of the current request view entity
Реализовать \Yaf_View_Interface::getScriptPath Получить путь к скрипту текущего представления запроса
public function getScriptPath() { return $this->getViewEntity()->getScriptPath(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getScriptPath()\n {\n return $this->layout->getView()->getScriptPath();\n }", "public function getViewScriptPath()\n {\n return realpath($this->getViewPath() . DIRECTORY_SEPARATOR . 'scripts');\n }", "protected static function getPathThisScript() {}", "public functio...
[ "0.77242225", "0.72954804", "0.71735907", "0.6976842", "0.6903697", "0.6878792", "0.6820097", "0.67699885", "0.67621225", "0.6747379", "0.66836107", "0.66093785", "0.66093785", "0.66093785", "0.66093785", "0.66093785", "0.66093785", "0.66093785", "0.66093785", "0.6548949", "0...
0.81368446
0
Get one page checkout model
Получить модель оформления заказа на одной странице
public function getOnepage(){ return Mage::getSingleton('checkout/type_onepage'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getOnePage()\n {\n return Mage::getSingleton('checkout/type_onepage');\n }", "public function getOnepage()\n {\n return Mage::getSingleton('checkout/type_onepage');\n }", "public function getOnepage()\r\n {\r\n return Mage::getSingleton('checkout/type_onep...
[ "0.77434933", "0.7645229", "0.7600823", "0.7487105", "0.7289891", "0.7289891", "0.7059678", "0.6645471", "0.657901", "0.65101844", "0.6507223", "0.6507223", "0.64892215", "0.64845145", "0.64764184", "0.64764184", "0.6474713", "0.6474713", "0.6275083", "0.62203676", "0.6172302...
0.770703
1
updating and storing categories
обновление и хранение категорий
public function updateCategory() { Category::findOrFail($this->category_id)->update([ 'category_name' => $this->categoryName, 'slug' => Str::slug($this->categoryName), 'class' => $this->class, ]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateCategories()\n {\n $this->updateCategoriesByType();\n $this->updateCategoriesByParent();\n $this->updateCategoriesByID();\n }", "function lm_save_category() {\n\t@copy(LM_CDATA, LM_CBACKUP);\n\t$id = isset($_POST['category-id']) ? intval($_POST['category-id']) : n...
[ "0.75961965", "0.7395624", "0.72375715", "0.6923376", "0.68733615", "0.68730843", "0.6867652", "0.6839971", "0.6810276", "0.6794771", "0.6760802", "0.67285544", "0.67024684", "0.6681018", "0.6673065", "0.66658247", "0.6665423", "0.66429585", "0.66356075", "0.66273046", "0.661...
0.7421498
1
/ return datatables()>query( DB::table('contrato') >join('empresas','empresas.id','=','empresa_id') >join('clientes','clientes.id','=','cliente_id') >select('contrato.','empresas.nombre_comercial','clientes.nombre') >where('contrato.estado','ACTIVO') >orderBy('contrato.id', 'desc') )>toJson();
>return datatables()>query( DB::table('contrato') >join('empresas','empresas.id','=','empresa_id') >join('clientes','clientes.id','=','cliente_id') >select('contrato.','empresas.nombre_comercial','clientes.nombre') >where('contrato.estado','ACTIVO') >orderBy('contrato.id', 'desc') )>toJson();
public function getTable() { $contratos=Contrato::where('estado','activo')->get(); $coleccion= collect([]); foreach($contratos as $contrato) { if($contrato->empresa_id==0) { $cliente=DB::table('clientes')...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function datatable()\n {\n $reportes=Reporte::join('ilustraciones','reportes.id_ilustracion','=','ilustraciones.id_ilustracion')\n ->join('users','reportes.id_user','=','users.id')\n ->select(array('users.name','ilustraciones.name_draw','ilustr...
[ "0.7474593", "0.7443017", "0.743956", "0.7363679", "0.7246084", "0.71464926", "0.71307945", "0.7062828", "0.7050792", "0.7041704", "0.70012265", "0.6942978", "0.6920305", "0.69159186", "0.69020385", "0.6892322", "0.68647605", "0.68640524", "0.6856534", "0.68484944", "0.684804...
0.7583944
0
Get the tab width as passed to PHPCS from the commandline or the ruleset.
Получите ширину табуляции, переданную PHPCS из командной строки или правила.
public static function get_tab_width(\Dekode\GravityForms\Vendor\PHP_CodeSniffer\Files\File $phpcsFile) { $tab_width = 4; if (isset($phpcsFile->config->tabWidth) && $phpcsFile->config->tabWidth > 0) { $tab_width = $phpcsFile->config->tabWidth; } return $tab_width; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected static function tabSpaces(string $string, int $tabSize = 4): int\n {\n return strlen($string) + $tabSize;\n }", "static function SmartLen($str)\n\t{\n\t\treturn strlen($str) + substr_count($str, \"\\t\") * 3; // 4-space tab\n\t}", "public function getTabSize(): ?int {\n return $th...
[ "0.60108715", "0.59229696", "0.59229577", "0.5916297", "0.5803946", "0.5788995", "0.5727002", "0.5681151", "0.567091", "0.5638508", "0.5627327", "0.56210935", "0.56039095", "0.55347675", "0.54832643", "0.54780185", "0.54685885", "0.54572195", "0.5416817", "0.53863376", "0.538...
0.7243976
0
Lists all Stakeholder models.
Список всех моделей заинтересованных сторон.
public function actionIndex() { $searchModel = new StakeholderSearch(); $dataProvider = $searchModel->search(Yii::$app->request->queryParams); return $this->render('index', [ 'searchModel' => $searchModel, 'dataProvider' => $dataProvider, ]); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function fetch_all_models() {\n global $pdo;\n\n $query = $pdo->prepare(\"SELECT * FROM talents\");\n $query -> execute();\n return $query->fetchAll(\\PDO::FETCH_ASSOC);\n }", "public function getModels();", "public function getModels();", "public function index()\n {\n ...
[ "0.60850054", "0.5979223", "0.5979223", "0.59590214", "0.5953062", "0.59277266", "0.58559054", "0.5836491", "0.58042294", "0.57969505", "0.57943785", "0.57667017", "0.57635885", "0.57328665", "0.5726305", "0.56929344", "0.5689809", "0.5689523", "0.56665176", "0.56559616", "0....
0.72713906
0
Creates a new Stakeholder model. If creation is successful, the browser will be redirected to the 'view' page.
Создает новый модель Stakeholder. Если создание успешно, браузер будет перенаправлен на страницу 'view'.
public function actionCreate() { $model = new Stakeholder(); if ($model->load(Yii::$app->request->post())) { $model->datecreated = Date('Y-m-d h:i:sa'); if ($model->save()) { return $this->redirect(['view', 'id' => $model->id]); } } else { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create()\n {\n return view('accounts.stakeholders.create');\n }", "public function actionCreate()\n {\n $model = new Rents();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n ...
[ "0.6849072", "0.68425715", "0.67807287", "0.67285013", "0.65972143", "0.65321845", "0.6515218", "0.6506014", "0.6500889", "0.64847904", "0.6471915", "0.6471339", "0.6468157", "0.6463646", "0.6452338", "0.6450646", "0.64426017", "0.64415544", "0.643747", "0.6430506", "0.642211...
0.83768564
0
Compare time results by time
Сравнить результаты по времени
private function compareTimeResults(TimeResult $a, TimeResult $b) { return $a->getDate() > $b->getDate() ? -1 : 1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function compareDates($date1, $time1, $date2, $time2) {\n\t\t//Get individual values\n\t\t$d1arr = explode(\"/\",$date1);\n\t\t$t1arr = explode(\"/\",$time1);\n\t\t$d2arr = explode(\"/\",$date2);\n\t\t$t2arr = explode(\"/\",$time2);\n\t\t//Get time in seconds\n\t\t$start = mktime($t1arr[0],$t1arr[1],0,$d1arr[1],$d...
[ "0.69135046", "0.68174237", "0.6779345", "0.66978616", "0.6695172", "0.6581465", "0.6500299", "0.6490865", "0.63842016", "0.6335272", "0.628094", "0.6273513", "0.6270595", "0.61642647", "0.6109474", "0.5953136", "0.5950966", "0.5923626", "0.58833784", "0.5873236", "0.57675546...
0.7461137
0
Gets the log directory.
Получает директорию логов.
public function getLogDir();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getLogDir()\n {\n return $this->rootDir . '/../logs';\n }", "public function getLogDir()\n {\n return dirname(__DIR__) . '/var/log';\n }", "public function getLogDir()\n {\n return __DIR__ . '/../var/log';\n }", "public function getLogDir(): string\n ...
[ "0.86351514", "0.82988083", "0.81985974", "0.8165346", "0.80030346", "0.7933532", "0.7864418", "0.7776473", "0.76849604", "0.7676999", "0.7611731", "0.7555428", "0.7460764", "0.7445802", "0.73739696", "0.7310343", "0.72112966", "0.7200088", "0.71129704", "0.6978368", "0.69752...
0.83682084
1
Get Previous Appointment Code
Получить код предыдущей записи
public static function getPreviousAppointmentCode($data) { $connection = \Yii::$app->db; $model = $connection ->createCommand("SELECT appointment_code FROM appointment WHERE user_id = ".yii::$...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getPreviousAppointmentCodeForGuest($client_name, $contact_number, $email_address)\n {\n $connection = \\Yii::$app->db;\n $model = $connection\n ->createCommand(\"SELECT appointment_code \n FROM appointment \n ...
[ "0.6746389", "0.6734752", "0.6064452", "0.59609675", "0.59182495", "0.58571017", "0.5799401", "0.57769614", "0.57679945", "0.57679945", "0.57215506", "0.5698216", "0.56878644", "0.5686991", "0.5677652", "0.5664399", "0.56620276", "0.5656018", "0.565554", "0.5655002", "0.56355...
0.7873723
0
Get Previous Appointment Code For Guest
Получить код предыдущей записи для гостя
public static function getPreviousAppointmentCodeForGuest($client_name, $contact_number, $email_address) { $connection = \Yii::$app->db; $model = $connection ->createCommand("SELECT appointment_code FROM appointment ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getPreviousAppointmentCode($data)\n {\n $connection = \\Yii::$app->db;\n $model = $connection\n ->createCommand(\"SELECT appointment_code\n FROM appointment\n WHERE user_...
[ "0.75977874", "0.646499", "0.58108884", "0.5707004", "0.5470673", "0.54647297", "0.54316235", "0.5401035", "0.5339629", "0.5338055", "0.5309478", "0.52661824", "0.5261002", "0.52551055", "0.52517563", "0.52364427", "0.51994044", "0.5187965", "0.5184698", "0.5178699", "0.51650...
0.7104127
1
Hydrates the product form from a loaded product.
Гидратирует форму продукта из загруженного продукта.
public function hydrate_product_form() { $em = EntityManagerSingleton::getInstance(); $this->create_update_form->get('name')->setValue($this->product->getName()); $this->create_update_form->get('product_id')->setValue($this->product->getId()); $this->create_update_form->get('base_p...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function form()\n {\n $form = new Form(new Product());\n\n $form->text('product_id', __('产品'));\n $form->hasMany('saleProperty', '销售属性', function (Form\\NestedForm $form){\n $form->text('name','销售属性名称')->rules('required');\n $form->hasMany('salePropertyValues...
[ "0.64188665", "0.6316221", "0.61560345", "0.6063965", "0.6062199", "0.60493034", "0.60056686", "0.5976982", "0.5926621", "0.5908843", "0.58483535", "0.58461267", "0.58414495", "0.58207935", "0.5814461", "0.5788501", "0.5757183", "0.5709042", "0.5693913", "0.56937605", "0.5689...
0.7779444
0
Get images to popuplate the additional image fields
Получить изображения для заполнения дополнительных полей изображений
public function hydrate_additional_image_form() { $additional_image_info = []; $product_image_relationships = $this->product->getProductImages(); if (count($product_image_relationships) > 0) { foreach ($product_image_relationships as $product_image_relationship) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function images()\n {\n return get_field('images');\n }", "function get_images() \t{\n \t\treturn $this->getImages();\n \t}", "public function additional_images() {\n\t\t$image_list = array();\n\t\t\n\t\tif (is_single () || is_page ()) {\n\t\t\t$fb_image1 = get_post_meta ( get_the_ID(), 'essb_...
[ "0.7049641", "0.67112935", "0.67084605", "0.6623776", "0.66177976", "0.6597302", "0.6433951", "0.64123183", "0.6410726", "0.6371828", "0.63646287", "0.63606596", "0.6349883", "0.63447326", "0.6331935", "0.6331444", "0.632618", "0.6285102", "0.6276233", "0.6263916", "0.6215026...
0.7072412
0
Get summary data collections.
Получить коллекции данных сведения.
public function getSummaryData();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSummariesList() {\n return $this->_get(1);\n }", "public function getSummariesList() {\n return $this->_get(1);\n }", "public function getSummariesList() {\n return $this->_get(1);\n }", "public function getSummary();", "public function getDataCollectionEventSumma...
[ "0.7396997", "0.7396997", "0.7396997", "0.69731724", "0.6889876", "0.6660993", "0.6643137", "0.6562218", "0.65367186", "0.65367186", "0.65365106", "0.65365106", "0.65365106", "0.65365106", "0.65365106", "0.65365106", "0.65365106", "0.64772785", "0.6469869", "0.64379805", "0.6...
0.81254435
0
Import order fee items
Импорт позиций платы за порядок
protected function _import_fee_items() { $fees = $this->getValue('fees'); if (!empty($fees)) { foreach ($fees as $feeIndex => $fee) { if (empty($fee['name'])) { continue; } $fee_item = new \PMXI_Post_Record(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function import(\\RealtimeDespatch\\OrderFlow\\Model\\Request $request);", "private function importSales()\n {\n $sales = new Sales();\n $userid = Auth::user()->id;\n\n if (($handle = fopen($_FILES['import_file']['tmp_name'], \"r\")) !== FALSE) {\n $i = 0;\n w...
[ "0.5763592", "0.5719172", "0.56353724", "0.5576684", "0.5558701", "0.5546432", "0.5527526", "0.54053295", "0.5373019", "0.5369939", "0.5369833", "0.5254788", "0.52385604", "0.5215064", "0.52084595", "0.5202698", "0.5186361", "0.5185435", "0.5180538", "0.5179491", "0.51779795"...
0.8122576
0
Save admin user preferences from session
Сохранить предпочтения администратора из сессии
public function saveGridPreferences($observer) { // Get admin session $session = Mage::getSingleton('adminhtml/session'); // Get current data from admin user /** @var C3_RememberSettings_Model_Admin_User $adminUser */ $adminUser = Mage::getSingleton('admin/session')->getUser...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function saveUserSession(){\n\t\t$_SESSION['user']=self::$_leuser;\n\t}", "function saveSettings()\n {\n\t if ( wfReadOnly() ) {\n\t\treturn;\n\t }\n\t if ( 0 == $this->mCedarId ) {\n\t\treturn;\n\t }\n\t \n\t $dbw =& wfGetDB( DB_MASTER );\n\t $dbw->update( 'cedar_user_info'...
[ "0.71104527", "0.68238163", "0.67532134", "0.6694401", "0.66901726", "0.66622657", "0.6632444", "0.6554699", "0.64717895", "0.64276356", "0.6400526", "0.6367921", "0.63416845", "0.63069993", "0.6298472", "0.62573695", "0.62433505", "0.62369305", "0.62281805", "0.6203093", "0....
0.704503
1
Get extra data from adminuser
Получите дополнительные данные от adminuser
protected function _getUserExtra($adminUser) { $extra = $adminUser->getExtra(); if (!is_array($extra)) { if (empty($extra)) { return array(); } else { $extra = unserialize($extra); } } return $extra; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function userAdmin( )\n {\n return $this->UserAdmin ;\n }", "public function getAdminAttribute()\n {\n return User::whereId($this->accountId)->first();\n }", "public function getUserAdmin()\n {\n if ($this->user->isOnline()) {\n return '<div class=\"user-block\">\n\t\t\t\...
[ "0.6860807", "0.670166", "0.6467797", "0.64346457", "0.64098084", "0.63547385", "0.63252735", "0.6319192", "0.6298692", "0.62536895", "0.62493294", "0.6247076", "0.62206745", "0.62178606", "0.6199169", "0.61910254", "0.612874", "0.61232483", "0.6118821", "0.6118365", "0.61183...
0.70501846
0
Current menu item is the KapostAdmin
Текущий элемент меню — KapostAdmin
public function MenuCurrentItem() { return $this->MainMenu()->find('Code', 'KapostAdmin'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function admin_menu()\n {\n }", "function admin_menu()\n {\n }", "function admin_menu()\n {\n }", "public function onWpAdminMenu() {\n\t}", "protected function getCurrentDashbaordItem() {\n\t\t\n\t\treturn \"home\";\n\t}", "public function adminMenu() {\n\t\t$cap = is_multisite() ? '...
[ "0.69585353", "0.69585353", "0.69585353", "0.6811257", "0.6769403", "0.66638833", "0.66591454", "0.6647014", "0.6552882", "0.6498884", "0.6495422", "0.6474376", "0.6474376", "0.6473779", "0.6468966", "0.6434306", "0.6410805", "0.6410434", "0.6384731", "0.63810706", "0.6351857...
0.800141
0
Renders a panel containing the logs available
Отображает панель, содержащую доступные журналы
public function LogsPanel() { return $this->renderWith('KapostBridgeLogViewer_Logs'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPanel()\n {\n $html = '<h4>Log Information</h4>';\n \n $events = $this -> _log -> getEvents();\n \n foreach ($events as $event) {\n\t $html .= sprintf('<div class=\"pre\"><pre><div title=\"%s\">%s</div></pre><hr /></div>', htmlspecialchars($event['lab...
[ "0.75641364", "0.6878157", "0.6849645", "0.6634816", "0.6599189", "0.65297246", "0.649863", "0.64863473", "0.6445292", "0.6440132", "0.6403732", "0.63751125", "0.63606715", "0.6356966", "0.6329913", "0.6251768", "0.6217059", "0.62075543", "0.6201402", "0.61966926", "0.617248"...
0.79593366
0
Gets the pjax response negotiator for this controller
Получает pjax-респонс-неготиатор для этого контроллера
public function getResponseNegotiator() { if(!$this->responseNegotiator) { parent::getResponseNegotiator(); $controller=$this; $this->responseNegotiator->setCallback('LogEntries', function() use(&$controller) { re...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getResponse()\n {\n return self::$acceptedResponse;\n }", "public function getResponse()\n {\n return $this->get('Response');\n }", "public function getResponse()\n {\n return $this->get('Response');\n }", "public function getResponse()\n {\n r...
[ "0.5557218", "0.536649", "0.536649", "0.536649", "0.536649", "0.536649", "0.536649", "0.536649", "0.536649", "0.536649", "0.536649", "0.536649", "0.536649", "0.536649", "0.536649", "0.536649", "0.536649", "0.5366484", "0.5366484", "0.5366484", "0.5366484", "0.5366484", "0...
0.7004735
0
Determine whether the user can restore the order.
Определите, может ли пользователь восстановить порядок.
public function restore(User $user, Order $order) { return $user->hasPermission('order.restore'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function can_restore() {\n return isset( $_POST[ self::NAME ] ) &&\n $_POST[ self::NAME ] === 'restore' &&\n $this->backupFileExists() &&\n current_user_can( 'manage_options' );\n\n }", "protected function isRestoring()\n {\n return $this->option...
[ "0.8034081", "0.68126476", "0.6778144", "0.66863686", "0.6511743", "0.64865935", "0.6435309", "0.6395474", "0.6326254", "0.62558043", "0.62420833", "0.623778", "0.6231882", "0.6224064", "0.62122136", "0.6199069", "0.617555", "0.6148971", "0.6137788", "0.6116932", "0.60638136"...
0.7279792
1
setDatas this method will set $data array as attributes for the specified node
этот метод setDatas установит массив $data как атрибуты для указанного узла
public function setDatas() { $this->data["skeleton"] = $this->getSkeleton(); $this->data["css"] = $this->getCss(); $this->data["javascript"] = $this->getJavascript(); $this->data["module"] = $this->getModule(); $this->data["site"] = $this->getSite(); $this->_nodeName = $this->getNodeName(); $this-...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setDatas(array $datas){\n\t\tforeach($datas as $k=>$v)\n\t\t\t$this->__set($k,$v);\n\t\treturn $this;\n\t}", "public function setData(array $data)\n\t{\n\t\t$this->data = $data;\n\n\t\t$this->elements->setData($data);\n\t}", "public static function setData($data) {}", "public function setData($data ...
[ "0.67022544", "0.656145", "0.64804053", "0.64481", "0.6429023", "0.6429023", "0.6429023", "0.6413463", "0.639738", "0.63873625", "0.6384646", "0.6380433", "0.6380337", "0.637604", "0.6364995", "0.63425654", "0.63339967", "0.63339967", "0.6327357", "0.62897056", "0.6266635", ...
0.7270507
0
Save a media object.
Сохраните медиа-объект.
function save($media) { if ($media->id) { return $this->update($media); } else { return $this->add($media); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function save(MediaDocument $media)\n {\n $this->repository->save($media);\n }", "public function saveAction()\n {\n $form = MediaForm::create($this->get('form.context'), 'media');\n $media = ($this->get('request')->get('media_id', null)) ? $this->get('media_mana...
[ "0.7323137", "0.6904087", "0.66948426", "0.6604166", "0.65251213", "0.6385023", "0.62978154", "0.62320614", "0.6208354", "0.6196309", "0.610912", "0.6055857", "0.6046182", "0.6039368", "0.59264606", "0.5916911", "0.58693826", "0.58531284", "0.58108056", "0.58108056", "0.58108...
0.73205817
1
Resolve a relative URI to an absolute URI in the current context.
Разрешить относительный URI в абсолютный URI в текущем контексте.
public function resolveRelativeUri(string $uri): string { $parts = parse_url($uri); // absolute URI, no need to combine with baseURI if (isset($parts['scheme'])) { if (isset($parts['path'])) { $parts['path'] = $this->reduceDots($parts['path']); } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function resolveRelativeUriOn(Uri $uri) {\n return $uri->baseOn($this);\n }", "function resolveURL($uri);", "public function resolveUri($uri) {}", "function resolve_href ($base, $href) {\n if (!$href) {\n return $base;\n }\n\n // href=\"http://...\" ==> href isn't relative\n $re...
[ "0.7523347", "0.7192811", "0.7161312", "0.6423921", "0.63331544", "0.62842816", "0.6245141", "0.6184433", "0.61657745", "0.6151696", "0.6089702", "0.6083885", "0.60748965", "0.60640776", "0.6031774", "0.60155576", "0.59843147", "0.59726137", "0.5948403", "0.5939062", "0.59242...
0.73193973
1
Fetch referenced file by URI. The current context will cache files by URI, so they are only loaded once.
Загрузите ссылающийся файл по URI. Текущий контекст будет кэшировать файлы по URI, поэтому они загружаются только один раз.
public function fetchReferencedFile($uri) { if ($this->_cache->has('FILE_CONTENT://' . $uri, 'FILE_CONTENT')) { return $this->_cache->get('FILE_CONTENT://' . $uri, 'FILE_CONTENT'); } $content = file_get_contents($uri); if ($content === false) { $e = new IOExc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get($filepath);", "public function get($uri);", "public function get($filename);", "public function fetchFile($liveURL = \"\", $cacheExpiryTime = -1, $liveFetchFunction = null) {\n\n\t\t// First, check if a local copy exists in the cache\n\t\t$fileContents = null;\n\t\t$localFilepath = $this-...
[ "0.65654445", "0.6311365", "0.6278657", "0.6125095", "0.60494953", "0.59569305", "0.5945604", "0.5806386", "0.577065", "0.5750588", "0.57392067", "0.57243156", "0.56047386", "0.56047386", "0.55848217", "0.5576678", "0.554414", "0.5508865", "0.5498882", "0.54848397", "0.548361...
0.7324507
0
Updates the current post likes count
Обновляет текущее количество лайков поста
public function updateLikesCount() { $totals = Db::table('rainlab_forum_likes as r') ->select(Db::raw('sum(r.like) as likes, sum(r.unlike) as unlikes')) ->wherePostId($this->id) ->first(); $this->count_likes = $totals->likes...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function like()\n {\n $this->likes += 1;\n $this->save();\n }", "function update_likecount() {\n\n\t$sql = 'SELECT wp_postmeta.meta_value, wp_postmeta.post_ID, wp_posts.likecount_old\n \t\tFROM wp_postmeta, wp_posts\n \t\tWHERE wp_postmeta.post_ID=wp_posts.ID\n \t\tAN...
[ "0.79434544", "0.7551235", "0.7453445", "0.7433724", "0.7414804", "0.71184975", "0.709658", "0.67070454", "0.6699064", "0.6695283", "0.66842103", "0.6683452", "0.66517764", "0.6614075", "0.6608584", "0.6588362", "0.65751624", "0.6561269", "0.6531293", "0.65185046", "0.6514802...
0.86511743
0
Lists all Transaksi models.
Список всех моделей Transaksi.
public function actionIndex() { $searchModel = new TransaksiSearch(); $dataProvider = $searchModel->search(Yii::$app->request->queryParams); return $this->render('index', [ 'searchModel' => $searchModel, 'dataProvider' => $dataProvider, ]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function index()\n {\n return Transactions::all();\n }", "public function actionIndex()\n {\n $searchModel = new SearchTransInfo();\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams);\n\n return $this->render('index', [\n 'searchModel' =...
[ "0.71250165", "0.7049926", "0.6757297", "0.6640153", "0.661124", "0.6584724", "0.65339977", "0.64706415", "0.6444442", "0.63911355", "0.637926", "0.63300896", "0.6304777", "0.6289855", "0.6278281", "0.62651175", "0.6250605", "0.6214151", "0.61994004", "0.6194787", "0.6191905"...
0.7260651
0
Creates a new Transaksi model. For ajax request will return json object and for nonajax request if creation is successful, the browser will be redirected to the 'view' page.
Создает новый объект модели Transaksi. Для запроса AJAX будет возвращен JSON-объект, а для не-AJAX-запроса, если создание успешно, браузер будет перенаправлен на страницу 'view'.
public function actionCreate() { $request = Yii::$app->request; $model = new Transaksi(); $model->tanggal = date('d-m-Y'); if($request->isAjax){ /* * Process for ajax request */ Yii::$app->response->format = Response::FORMAT_JSON; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function actionCreate()\n\t{\n\t\t$model=new MasterTransaksi;\n\n\t\t// Uncomment the following line if AJAX validation is needed\n\t\t$this->performAjaxValidation($model);\n\n\t\tif(isset($_POST['MasterTransaksi']))\n\t\t{\t\t\n\t\t\t$model->attributes=$_POST['MasterTransaksi'];\n\t\t\t$model->created_at =...
[ "0.7655672", "0.74663144", "0.7313881", "0.7296533", "0.72243625", "0.7159547", "0.71368104", "0.708991", "0.708375", "0.70583755", "0.705767", "0.70489377", "0.7004009", "0.6975911", "0.6968198", "0.69619954", "0.6953593", "0.695336", "0.6953011", "0.6950796", "0.6930808", ...
0.7499227
1
Updates an existing Transaksi model. For ajax request will return json object and for nonajax request if update is successful, the browser will be redirected to the 'view' page.
Обновляет существующую модель Transaksi. Для запроса ajax будет возвращен json-объект, а для не-ajax-запроса, если обновление успешно, браузер будет перенаправлен на страницу 'view'.
public function actionUpdate($id) { $request = Yii::$app->request; //$model = $this->findModel($id); $model = Transaksi::find() ->where(['no_ref'=>$id]) ->orderBy(['id'=>SORT_ASC]) ->one(); $m...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function actionUpdate($id)\n {\n $request = Yii::$app->request;\n $model = $this->findModel($id); \n\n if($request->isAjax){\n /*\n * Process for ajax request\n */\n Yii::$app->response->format = Response::FORMAT_JSON;\n ...
[ "0.7312386", "0.71759325", "0.71349174", "0.707956", "0.70399994", "0.69169766", "0.6887686", "0.68591803", "0.68533736", "0.68478656", "0.6811714", "0.6806262", "0.6797414", "0.6794943", "0.6776585", "0.6767943", "0.6759488", "0.6751614", "0.6736668", "0.6732668", "0.672289"...
0.7472542
0
Delete an existing Transaksi model. For ajax request will return json object and for nonajax request if deletion is successful, the browser will be redirected to the 'index' page.
Удалить существующую модель Transaksi. Для ajax-запроса будет возвращен json-объект, а для не-ajax-запроса, если удаление успешно, браузер будет перенаправлен на страницу 'index'.
public function actionDelete($id) { $request = Yii::$app->request; for($i=0; $i<2; $i++){ $model = Transaksi::find()->where(['no_ref'=>$id])->one(); $model->delete(); } //$this->findModelNoref($id)->delete(); if($request->isAjax){ /* ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function actionDelete()\n {\n if(Yii::$app->request->isAjax) {\n $id=Yii::$app->request->post('id');\n $bool =$this->findModel($id)->delete();\n\n $result=$bool ? ['status' => '0', 'msg' => 'OK'] :['status' => '1', 'msg' => 'Error'];\n return Json::encod...
[ "0.7526761", "0.73683554", "0.73644906", "0.73206353", "0.7304446", "0.7239898", "0.7223809", "0.7222164", "0.7177881", "0.71724397", "0.7155118", "0.71467876", "0.7106855", "0.709992", "0.70563954", "0.70522046", "0.7045674", "0.69963807", "0.69928277", "0.6989045", "0.69890...
0.7458522
1
Returns array of subscriber records
Возвращает массив записей подписчиков
public function getSubscriberRecords() { if($stmt = $this->pdo->query("SELECT * FROM subscribers;")){ $subscribers = []; while ($row = $stmt->fetch(\PDO::FETCH_ASSOC)) { $subscribers[] = $row; } return $subscribers; }else{ retur...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function GetSubscriptionsRecords()\n {\n \t$output = array();\n \n \t$rs = mysql_query(\"SELECT * FROM subscriptions ORDER BY \" . $this->lang_name_field . \" ASC\");\n \n \tif(mysql_num_rows($rs)==0)\n \t{\n \t\t$output = 0;\n \t}\n \telse\n \t{\n \t\twhile($row=mysql_f...
[ "0.7544923", "0.6878641", "0.67857623", "0.66949284", "0.66949284", "0.6593116", "0.6580357", "0.65381205", "0.65199524", "0.6488749", "0.64724237", "0.6465238", "0.6465238", "0.64617276", "0.6435355", "0.6419975", "0.6401779", "0.63484585", "0.62907535", "0.62653536", "0.626...
0.82381594
0
Function that takes zone uri, request type, parameters, and token. Returns the decoded result
Функция, которая принимает URI зоны, тип запроса, параметры и токен. Возвращает декодированный результат
function api_request($zone_uri, $req_type, $api_params, $token) { $ch = curl_init(); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); # TRUE to return the transfer as a string of the return value of curl_exec() instead of outputting it out directly. curl_setopt($ch, CURLOPT_FAILONERROR, false); # Do not fail silentl...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function infoGetTimezoneRequest()\n {\n\n $resourcePath = '/info/timezones';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n\n // body params\n $_tempBody = null;\n\n if ($multip...
[ "0.57052535", "0.54701114", "0.5113767", "0.50826275", "0.5035277", "0.5026562", "0.49910885", "0.4987121", "0.49763453", "0.48902917", "0.48662817", "0.48399895", "0.48276561", "0.48264837", "0.48241845", "0.48174086", "0.47973648", "0.47672495", "0.47325084", "0.47272536", ...
0.7314971
0
/ show all trails in trails Table return mix
Показать все трейлы в таблице trails вернуть смесь
public function showTrails() { return $this->load->model('Trail')->fetchTrails(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show(Tramites $tramites)\n {\n //\n }", "public function index()\n {\n $result=termin::join('treners','termins.trener_id','=','treners.id')\n ->get(['termins.*','treners.ime','treners.prezime']);\n \n return $result;\n }", "public function display...
[ "0.6365888", "0.63048756", "0.62175214", "0.6185306", "0.61639684", "0.607121", "0.60437953", "0.6027498", "0.59634167", "0.59282625", "0.5927147", "0.5852871", "0.5849545", "0.5835865", "0.5817218", "0.5805377", "0.57981825", "0.57941276", "0.5781003", "0.57794666", "0.57771...
0.77350986
0
The review form action. It shows a form to enter a review.
Форма действия для отзывов. Показывает форму для ввода отзыва.
function reviewformAction() { if (!$this->config->isPhaseOpen(Config::REVIEWING_PHASE)) { $this->view->content = $this->texts->reviewer->review_phase_is_closed; echo $this->view->render("layout"); return; } $reviewTbl = new Review(); $this->view->setFile("content", "revie...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function actionReview()\n\t{\n\t\t$review = new Review();\n\t\t$review->attributes = $_POST['Review'];\n\t\tif ($review->validate())\n\t\t{\n\t\t\t$noteId = $_POST['note_id'];\n\t\t\t$model = $this->loadModel($noteId);\n\n\t\t\t$model->addReview($review, Yii::app()->user->id);\n\n\t\t\techo $this->renderPar...
[ "0.7541991", "0.69417715", "0.69392973", "0.6693763", "0.66737026", "0.6663736", "0.6661156", "0.66494197", "0.6630907", "0.6630907", "0.6630907", "0.6630907", "0.65353584", "0.64906204", "0.6478722", "0.64620477", "0.6459063", "0.64086324", "0.6402406", "0.6315131", "0.62744...
0.8110082
0
Action that processes a review after submission
Действие, обрабатывающее отзыв после отправки
function processreviewAction() { if (!$this->config->isPhaseOpen(Config::REVIEWING_PHASE)) { $this->view->content = $this->texts->reviewer->review_phase_is_closed; echo $this->view->render("layout"); return; } $this->view->setFile("content", "processreview.xml"); $this->vie...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function employer_review_action() {\n global $user_ID, $current_user;\n $args = $_POST;\n \n if (!isset($args['project_id'])) {\n wp_send_json(array(\n 'success' => false,\n 'msg' => __('Invalid project id.', ET_DOMAIN)\n ));\n ...
[ "0.7513178", "0.7306633", "0.7129437", "0.69839007", "0.68820137", "0.67859197", "0.67063934", "0.6704008", "0.6668781", "0.6618379", "0.648538", "0.64583987", "0.6425158", "0.638535", "0.6322178", "0.6321706", "0.63004965", "0.62976724", "0.6278447", "0.62770957", "0.6229136...
0.7809286
0
don't show in admin grid
не отображать в административной сетке
public function getAdminGrid(){ return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show_in_admin_bar()\n\t{\n\t\treturn !( self::const_value( 'DEVDEBUG_NO_ADMIN_BAR' ) );\n\t}", "public function adminOnly();", "public function adminOnly();", "public function displayAdminPanel() {}", "public function show_in_panel() {\n\t\treturn false;\n\t}", "function my_acf_settings_s...
[ "0.66537243", "0.6588556", "0.6588556", "0.65619427", "0.63629615", "0.63556695", "0.6325839", "0.6307837", "0.6254943", "0.62468356", "0.62459326", "0.6234651", "0.62335837", "0.6207982", "0.6176343", "0.6175309", "0.61666226", "0.61433977", "0.612821", "0.61086226", "0.6101...
0.77910626
0
check if attribute is multiple select
проверить, является ли атрибут множественным выбором
public function getIsMultipleSelect(){ return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isMultiSelect() {}", "function is_multiple($name)\n\t{\n\t\treturn $this->allow_multiple_values && in_array($this->customfields[$name]['type'],array('select','select-account')) &&\n\t\t\t$this->customfields[$name]['rows'] > 1;\n\t}", "public function isMultiSelection()\n {\n if ($this...
[ "0.80685467", "0.7144198", "0.69242525", "0.6902372", "0.67375207", "0.6702471", "0.6574828", "0.64882714", "0.6466247", "0.64259285", "0.63743925", "0.62567884", "0.6199537", "0.6147076", "0.61454284", "0.60407645", "0.6038562", "0.5897948", "0.5779119", "0.577014", "0.57369...
0.7704244
1
get the setup type of the dropdown
получить тип настройки выпадающего списка
public function getSetupType(){ return $this->_setupType; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function type()\n {\n return $this->options['type'];\n }", "public function getDropDown() {}", "public function getDropDown() {}", "function selectDBType()\n\t{\n\t\t$this->checkDisplayMode(\"create_new_client\");\n\n\nif (true)\n{\n\t\t$this->initDBSelectionForm();\n\t\t$this->tpl->se...
[ "0.67710364", "0.67134356", "0.67134356", "0.6601268", "0.6501821", "0.6363892", "0.6317009", "0.6168509", "0.6150157", "0.6148621", "0.61224157", "0.60930437", "0.60625833", "0.60625833", "0.6060941", "0.6060941", "0.6060941", "0.6060838", "0.6060838", "0.6060838", "0.606083...
0.7491217
0
Get number of rooms.
Получить количество комнат.
public function getNumberOfRooms() { return $this->numberOfRooms; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getNumberOfRooms()\n {\n return Yii::t('app', '{n, plural, =1{# комната} =2{# комнаты} =3{# комнаты} =4{# комнаты} other{# комнат}}',\n ['n' => (int)$this->number_of_rooms]);\n }", "public function getLivingroomCount()\n {\n return $this->livingroomCount;\n }"...
[ "0.75274384", "0.72640383", "0.6957844", "0.66970086", "0.669059", "0.64676875", "0.63347906", "0.63242674", "0.63128054", "0.6265883", "0.61700714", "0.6154678", "0.6145205", "0.61386096", "0.6135596", "0.61225003", "0.6118104", "0.61158407", "0.6100338", "0.6089475", "0.608...
0.85533994
1
/ SELECT FROM dropbox_content JOIN dropbox_assignments ON dropbox_assignments.id = dropbox_content.assignment_id WHERE dropbox_content.id = $content_id AND dropbox_assignments.class_id = $class_id /
/ SELECT FROM dropbox_content JOIN dropbox_assignments ON dropbox_assignments.id = dropbox_content.assignment_id WHERE dropbox_content.id = $content_id AND dropbox_assignments.class_id = $class_id /
function dropbox_allow_load($content_id, $class_id) { $content = good_query_table("SELECT * FROM dropbox_content JOIN dropbox_assignments ON dropbox_assignments.id = dropbox_content.assignment_id WHERE dropbox_content.id = $content_id AND dropbox_assignments.class_id = $class_id"); if(count($content) == 0) retu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function dropbox_assignments()\n{\n global $class_id;\n /*/\n * SELECT *\n * FROM dropbox_assignments\n * WHERE class_id = $class_id\n /*/\n return good_query_table(\"SELECT * FROM dropbox_assignments WHERE class_id = $class_id\");\n}", "function dropbox_contents($assignment_id,$student_id)\n{\n gl...
[ "0.7182069", "0.69273925", "0.58583677", "0.5278293", "0.5214393", "0.5185167", "0.51636904", "0.51168615", "0.4970405", "0.49674693", "0.49035478", "0.4887195", "0.48588228", "0.48146403", "0.47525764", "0.47224998", "0.47091082", "0.46891934", "0.46684644", "0.4657004", "0....
0.7056206
1
Exceptionally override the execute method, so, based in the activity_included setting, we are able to skip the execution of one task completely
Непосредственно переопределяйте метод execute, чтобы, исходя из настройки activity_included, можно было полностью пропустить выполнение одной задачи
public function execute() { // Find activity_included_setting if (!$this->get_setting_value('included')) { $this->log('activity skipped by _included setting', backup::LOG_DEBUG, $this->name); $this->plan->set_excluding_activities(); // Inform plan we are excluding actvities ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function executeTasks() {}", "protected function willExecute() {\n return;\n }", "public function executeDisabled()\n {\n }", "protected abstract function onExecute();", "public function needsExecution() {}", "public function needsExecution() {}", "public function needsExecution() {}", ...
[ "0.63553095", "0.6110798", "0.59254485", "0.58651286", "0.5783506", "0.5783506", "0.5781737", "0.5781737", "0.5781737", "0.57607293", "0.57482255", "0.56667995", "0.5660633", "0.56314313", "0.5596661", "0.5579678", "0.55297655", "0.5486129", "0.546683", "0.5437182", "0.534769...
0.75042075
0
Given a commment area, return the itemname that contains the itemid mappings By default both are the same (commentarea = itemname), so return it. If some module uses a different approach, this method can be overriden in its taks
Дано поле комментариев, верните имя элемента, содержащее отображения идентификаторов элементов. По умолчанию оба значения одинаковы (commentarea = itemname), поэтому верните его. Если какой-либо модуль использует другой подход, этот метод может быть переопределен в его задаче.
public function get_comment_mapping_itemname($commentarea) { return $commentarea; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function column_post_name( $item ) {\r\n\t\treturn $this->_handle_primary_column( $item, 'post_name', esc_attr( $item->post_name ) );\r\n\t}", "protected function _getDefaultModuleName($area = 'default')\n {\n if (isset($this->_defaultModules[$area])) {\n return $this->_defaultModules[$area]...
[ "0.5526055", "0.5407872", "0.5371354", "0.5360493", "0.5325375", "0.5252364", "0.5252343", "0.5244603", "0.52443457", "0.517853", "0.5147895", "0.5084874", "0.5041049", "0.4997787", "0.4987803", "0.495511", "0.49288124", "0.49042317", "0.49011913", "0.48987573", "0.48707187",...
0.80669516
0
Define (add) particular steps that each activity can have
Определите (добавьте) конкретные шаги, которые может иметь каждая активность
abstract protected function define_my_steps();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function define_my_steps() {\n // Choice only has one structure step\n $this->add_step(new restore_pagemenu_activity_structure_step('pagemenu_structure', 'pagemenu.xml'));\n }", "protected function define_my_steps() {\n $this->add_step(new restore_linkset_activity_structure_step...
[ "0.67527795", "0.6730925", "0.6698035", "0.6083653", "0.6061922", "0.59864235", "0.5904953", "0.58478653", "0.5729559", "0.56695056", "0.56644857", "0.5628062", "0.5623931", "0.56220794", "0.55809414", "0.5563486", "0.5482836", "0.54793787", "0.545522", "0.5449707", "0.544056...
0.7300791
0
Function to display per book in cart in HTML
Функция для отображения информации о книге в корзине в HTML
function displayBook($book, $bookQty, $bookTotalPrice, $id){ $available = $book["quantity"] - $bookQty; echo' <div class="card mb-3"> <div class="row no-gutters"> <div class="col-md-2 align-self-center"> <a href="book_info.php...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function show_cart(){\n \t$output = '';\n \t$no = 0;\n \tforeach ($this->cart->contents() as $items) {\n \t\t$no++;\n \t\t$output .='\n \t\t<tr>\n \t\t<td>'.$items['name'].'</td>\n \t\t<td>'.number_format($items['price']).'</td>\n \t\t<td>'.$items['qty'].'</td>\n \t\t<td>'.number_form...
[ "0.6299157", "0.6222481", "0.6181168", "0.6161069", "0.6154303", "0.61092776", "0.6078316", "0.6023197", "0.59404135", "0.5938757", "0.5867526", "0.58661896", "0.5829975", "0.5796922", "0.57712567", "0.57711357", "0.5766925", "0.57374835", "0.570886", "0.57011706", "0.5677001...
0.70737046
0
downloadFiles?gid= &path= &filenames= &targetname=
downloadFiles?gid= &path= &filenames= &targetname=
public function downloadFiles() { // check permission $this->_check_group_permission(); $access_full_path = $this->_get_access_full_path(); $filenames = $this->input->get_post('filenames'); $filenames_arr = json_decode($filenames); $targetname ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function download_zone_files($urls, $working_directory){\n\n # The zone files will be saved in a sub-directory\n $output_directory = $working_directory . \"/zonefiles\";\n\n if(!is_dir($output_directory)){\n mkdir($output_directory, 0777, true);\n }\n\n # Download the zone files one by one\n ...
[ "0.6550956", "0.6416952", "0.64021546", "0.6362357", "0.6127691", "0.60956186", "0.60525846", "0.60391164", "0.60346806", "0.594707", "0.5893866", "0.58876544", "0.5875418", "0.58752143", "0.5871519", "0.5848398", "0.58423537", "0.5819329", "0.58021814", "0.5745181", "0.57398...
0.7180313
0
unpin Files unpinFiles?fid[]= &fid[]= &fid[]=
unpin Files unpinFiles?fid[]= &fid[]= &fid[]=
public function unpinFiles() { // check permission $gid = $this->input->get_post('gid') ?: '-1'; if ( ! $this->_is_group_owner($gid)) { $this->_outputPermissionDeniedJSON(); return; } $crumb = $this->input->get_post('crumb'); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function removeAll() {\r\n for ($i = 0; $i < $this->zip->numFiles; $i++) {\r\n $this->zip->deleteIndex($i);\r\n }\r\n }", "public function removeIssuesForFiles(array $files): void\n {\n $file_set = \\array_flip($files);\n foreach ($this->issues as $key => $issue) {\n ...
[ "0.55172276", "0.5474739", "0.5390641", "0.5315685", "0.5264389", "0.523355", "0.5190727", "0.5184138", "0.5120235", "0.50783765", "0.506421", "0.50163984", "0.49786893", "0.49571854", "0.4954421", "0.49398527", "0.49271455", "0.49223423", "0.49199745", "0.49167806", "0.49099...
0.8120573
0
Setup helpful feedback table
Настройка таблицы с полезными отзывами
public static function setupHelpfulFeedbackTable() { global $wpdb; $table_name = $wpdb->prefix . self::$table_feedback; $charset_collate = $wpdb->get_charset_collate(); $sql = "CREATE TABLE $table_name ( id mediumint(9) NOT NULL AUTO_INCREMENT, time datetime DEFAULT '0000-00-00 00:00:00', ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function setupHelpfulFeedbackTable()\n\t{\n\t\tglobal $wpdb;\n\n\t\t$table_name = $wpdb->prefix . self::$table_feedback;\n\t\t$charset_collate = $wpdb->get_charset_collate();\n\t\t$sql = \"CREATE TABLE $table_name (\n\t\tid mediumint(9) NOT NULL AUTO_INCREMENT,\n\t\ttime datetime DEF...
[ "0.7560997", "0.6629235", "0.6157302", "0.5861995", "0.580158", "0.5740473", "0.5710584", "0.56613505", "0.5656389", "0.5655624", "0.56548697", "0.5640583", "0.564028", "0.5601133", "0.55669326", "0.55479723", "0.5547189", "0.55044794", "0.55021775", "0.54957604", "0.5479256"...
0.7526791
1
This function permit to filter with the field and level the right badges that we want.
Эта функция позволяет отфильтровать нужные значки по полю и уровню.
public static function getFiltered($fieldId = "", $levelId = "") { $allBadges = get_posts(array( 'post_type' => Admin::POST_TYPE_BADGES, 'orderby' => 'name', 'order' => 'ASC', 'numberposts' => -1 )); if ($fieldId == "" && $levelId == "") { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function filterFields() {\n\n // Initialize an associate array of our field name and value pairs.\n $values = array();\n\n // Initialize an associate array of our field name and filters pairs.\n $filters = array();\n\n // Populate the arrays.\n foreach ($this->fiel...
[ "0.5626924", "0.55790836", "0.55657274", "0.5521454", "0.54112935", "0.5311595", "0.53064436", "0.5281063", "0.5261947", "0.52475446", "0.5243163", "0.5192032", "0.51508105", "0.513751", "0.51257986", "0.5099294", "0.5055764", "0.50407505", "0.5027699", "0.5025572", "0.502242...
0.70387626
0
Initialize cookie Cookie constructor.
Инициализировать куки Cookie конструктор.
public function __construct() { foreach ($_COOKIE as $name => $value) { $this->cookies_array[$name] = $value; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __construct(\\Laravel\\Cookie $cookie)\n\t{\n\t\t$this->cookie = $cookie;\n\t}", "public function __construct()\n\t{\n\t\t$this->cookieDomain = $this->getRootDomain();\n\t}", "public function __construct()\n {\n $this->cookieFile = tempnam(sys_get_temp_dir(), 'http-client-cookies-');\...
[ "0.7370743", "0.7367566", "0.71937126", "0.7190496", "0.7172386", "0.70280266", "0.6985114", "0.6954829", "0.69514287", "0.68519896", "0.6825607", "0.68255544", "0.6807028", "0.67861485", "0.67552507", "0.6713239", "0.66917014", "0.65868235", "0.6438752", "0.6409306", "0.6402...
0.74999833
0
provideModmanFileNames array( array($filename, $mappingscount) )
provideModmanFileNames массив( массив($filename, $mappingscount) )
public function provideCorrectModmanFileNames() { return array( array('correct', 1), array('ignoredlines', 2) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function provideFileAnExpectedNames()\n {\n return [\n [__FILE__, pathinfo(__FILE__, PATHINFO_FILENAME)],\n ['.htaccess', ''],\n ['name', 'name'],\n ['a.combined.filename.with.multiple.ext.separator', 'a.combined.filename.with.multiple.ext']\n ];\...
[ "0.56983036", "0.56829894", "0.538574", "0.5249456", "0.51663756", "0.51265824", "0.5102071", "0.5099209", "0.5091468", "0.50912964", "0.507382", "0.50565547", "0.50520945", "0.5025797", "0.5014042", "0.5004648", "0.49466333", "0.49369258", "0.4920949", "0.48513913", "0.48273...
0.7044554
0
Returns a String with the ICU unknown time zone.
Возвращает строку с неизвестным временным поясом ICU.
public static function getUnknownTimeZone() { return static::UNKNOWN_TIMEZONE; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getTimezoneText($tz=null) {}", "public function get_timezone_string(){\n\n\t\t$string = get_option( 'timezone_string' );\n\n\t\tif ( ! isset( $string ) || empty( $string ) ){\n\t\t\t$string = 'UTC';\n\t\t}\n\n\t\treturn $string;\n\n\t}", "public function toISOLocalTime() : string\n {\...
[ "0.6999038", "0.64958686", "0.61598265", "0.59775674", "0.59606993", "0.5744365", "0.5725194", "0.57095194", "0.5611612", "0.56099033", "0.5588224", "0.55581397", "0.55085486", "0.5503051", "0.5487416", "0.54838514", "0.54231197", "0.5349027", "0.5341241", "0.53348786", "0.53...
0.7145015
0
Returns a list of time zones to which a geocodable phone number belongs.
Возвращает список часовых поясов, к которым относится геокодируемый телефонный номер.
protected function getTimeZonesForGeocodableNumber(PhoneNumber $number) { $timezones = $this->prefixTimeZonesMap->lookupTimeZonesForNumber($number); return (\count($timezones) == 0) ? $this->unknownTimeZoneList : $timezones; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getTimezones()\n {\n $list = timezone_identifiers_list();\n $zones = array();\n\n foreach ($list as $zone) {\n $zones[$zone] = $zone;\n }\n\n return $zones;\n }", "public function listTimeZones()\n {\n ...
[ "0.71100086", "0.70594484", "0.7028249", "0.6990733", "0.6924052", "0.69195265", "0.66932666", "0.6623754", "0.6531562", "0.6447929", "0.6298738", "0.6214987", "0.6206448", "0.611909", "0.6116624", "0.6103856", "0.6074993", "0.60164046", "0.60163367", "0.58714914", "0.5849247...
0.7378675
0
Method to invalidate the instance pool of all tables related to tbprofessor by a foreign key with ON DELETE CASCADE
Метод для аннулирования экземпляра пула всех таблиц, связанных с tbprofessor по иностранным ключам с ON DELETE CASCADE
public static function clearRelatedInstancePool() { // invalidate objects in TbturmaProfessorPeer instance pool, since one or more of them may be deleted by ON DELETE CASCADE rule. TbturmaProfessorPeer::clearInstancePool(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function clearRelatedInstancePool()\n {\n // Invalidate objects in \".$this->getClassNameFromBuilder($joinedTableTableMapBuilder).\" instance pool,\n // since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule.\n EmailManagerHistoryEmailTableMap::clea...
[ "0.65939516", "0.64417434", "0.63895285", "0.6093597", "0.6076841", "0.605407", "0.6035801", "0.60292417", "0.59825003", "0.5905838", "0.5893613", "0.5872807", "0.5865784", "0.5865784", "0.5865784", "0.5865784", "0.5865784", "0.5865784", "0.5865784", "0.58577013", "0.58558655...
0.7122394
0
Create request for operation 'shopAdd'
Создать запрос для операции 'shopAdd'
protected function shopAddRequest($data) { // verify the required parameter 'data' is set if ($data === null || (is_array($data) && count($data) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $data when calling shopAdd' ); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addShop(Request $request){\n \n \n // check params \n if(!$this->requiredParams($request, ['key','name','logo','open_time','close_time','shop_status_id','mall_id',])){\n return response()->json(['status' => 'error' , 'message' => 'missing params' ] , 400);\n ...
[ "0.71423984", "0.6467231", "0.64646935", "0.6428306", "0.6414504", "0.6380432", "0.63708276", "0.634574", "0.6302563", "0.6283311", "0.6252621", "0.6231772", "0.62283325", "0.61837196", "0.6165866", "0.6160656", "0.61515903", "0.6126316", "0.6121327", "0.6106925", "0.6094466"...
0.7041918
1
Create request for operation 'shopGet'
Создать запрос для операции 'shopGet'
protected function shopGetRequest($data) { // verify the required parameter 'data' is set if ($data === null || (is_array($data) && count($data) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $data when calling shopGet' ); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getShopRequest()\n {\n $resourcePath = '/shop';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n // body params\n $_tempBody = null;\n if ($multipart) {\n $heade...
[ "0.767178", "0.69887286", "0.6937162", "0.6926243", "0.69201803", "0.68076205", "0.667033", "0.6416607", "0.63833433", "0.62581146", "0.6096173", "0.6010904", "0.5993023", "0.5957025", "0.594219", "0.5941703", "0.5941703", "0.59249115", "0.5858459", "0.5822369", "0.5815628", ...
0.7039636
1
Test case for createQueue create a new queue
Тест-кейс для createQueue создания нового очереди
public function test_createQueue() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createQueue();", "public function testGetQueueUrlQueueCreated()\n {\n $queueUrl = 'my-invoice-queue-message-url';\n $results = [\n new Result(['QueueUrl' => $queueUrl])\n ];\n $sqsQueue = $this->getSqsQueueInstance($results);\n $this->assertEquals...
[ "0.8509035", "0.7857295", "0.77704513", "0.76268053", "0.7341943", "0.7207707", "0.69913", "0.6864939", "0.6809088", "0.6731289", "0.6718103", "0.6702143", "0.6694575", "0.666847", "0.666847", "0.66636705", "0.6631877", "0.66208315", "0.6551339", "0.65487784", "0.64792883", ...
0.8381272
1
Test case for deleteQueue delete a queue
Тест-кейс для deleteQueue удаления очереди
public function test_deleteQueue() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function deleteQueue();", "public function delete()\n {\n $this->queue->delete($this);\n }", "public function test_createQueue() {\n\n }", "public function delete($queue, $id)\n {\n $this->db->createCommand()->delete($this->table, ['id' => $id])->execute();\n }", "public...
[ "0.84235156", "0.6901602", "0.6873026", "0.6859526", "0.68384945", "0.67987984", "0.6640778", "0.6566243", "0.6564508", "0.64938223", "0.64323175", "0.64176524", "0.63941395", "0.63892025", "0.6377403", "0.6306066", "0.6296829", "0.6296262", "0.6248372", "0.61841965", "0.6168...
0.85115534
0
Test case for getAllQueues get all queues
Тестовый случай для getAllQueues получения всех очередей
public function test_getAllQueues() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testGetWebhookQueues()\n {\n $container = [];\n $sw = $this->createMockedSmartwaiver($container, APISuccessResponses::webhookQueues());\n\n $webhook = $sw->getWebhookQueues();\n $this->assertInstanceOf(SmartwaiverWebhookQueues::class, $webhook);\n\n $this->chec...
[ "0.7121685", "0.70818084", "0.70626056", "0.69138163", "0.690853", "0.68139905", "0.68014693", "0.68014693", "0.6686531", "0.66498905", "0.6553352", "0.6553352", "0.64384514", "0.641437", "0.6397386", "0.6336405", "0.6301098", "0.62859774", "0.6274094", "0.6241556", "0.622642...
0.75887144
0
Test case for peekMessage peek messages in queue without removing them
Тест-кейс для peekMessage peek сообщений в очереди без их удаления
public function test_peekMessage() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function benchLpopInternal()\n {\n $messageList = $this->queue->consume(self::CONSUME_SIZE);\n }", "function queue_peek(&$queue) { \n // Return a copy of the value found in front of queue \n // (at the beginning of the array) \n return $queue[0]; \n}", "public function peek();...
[ "0.66680545", "0.6617591", "0.6512348", "0.64801747", "0.6418544", "0.6368768", "0.6366148", "0.6287917", "0.61850524", "0.60695535", "0.60516447", "0.60066944", "0.5965222", "0.59569496", "0.5910181", "0.5764177", "0.5764177", "0.5746299", "0.5740072", "0.5739", "0.57100034"...
0.727773
0
Test case for refreshMessageTimeout refresh timeout of a message in this queue
Тестовый случай для обновления тайм-аута сообщения в этом очереди
public function test_refreshMessageTimeout() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testConnectionBelowRedeliverTimeout()\n {\n $connection = Connection::fromDsn(getenv('MESSENGER_REDIS_DSN'), ['sentinel_master' => getenv('MESSENGER_REDIS_SENTINEL_MASTER') ?: null], $this->redis);\n\n $connection->cleanup();\n $connection->setup();\n\n $body = '{\"me...
[ "0.6198272", "0.58678406", "0.5716132", "0.5388494", "0.5353056", "0.52762777", "0.52762777", "0.52762777", "0.52762777", "0.52762777", "0.52762777", "0.5170229", "0.5157593", "0.5122254", "0.51084375", "0.5087708", "0.50856405", "0.5077872", "0.50621384", "0.50055885", "0.50...
0.7901856
0
Test case for updateMessage push message to queue
Тестовый случай для отправки сообщения updateMessage в очередь
public function test_updateMessage() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function test_updateQueue() {\n\n }", "public function testQueue() {\n $node = $this->node;\n $message = Message::create([\n 'template' => 'foo',\n ]);\n\n $subscribe_options = [];\n $subscribe_options['save message'] = FALSE;\n\n try {\n $this->messageSubscribers->sendMessa...
[ "0.7489896", "0.66556376", "0.65780306", "0.6464996", "0.6436596", "0.6391921", "0.628778", "0.62760866", "0.622105", "0.622105", "0.6101313", "0.6080749", "0.60724366", "0.60398495", "0.59988236", "0.59802204", "0.5956973", "0.59107643", "0.59037256", "0.58676004", "0.585572...
0.72388047
1
Test case for updateQueue update queue
Тестовый случай для обновления очереди обновления очереди
public function test_updateQueue() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testConsumesUpdateQueues()\n {\n $rabbit = $this->getModelMock('messenger/transport_rabbitmq', array('_getChannel', '_close'));\n $channel = $this->_getChannelMock();\n $rabbit->expects($this->any())->method('_getChannel')->will($this->returnValue($channel));\n $rabbi...
[ "0.6557166", "0.6380329", "0.6356497", "0.62986153", "0.62311083", "0.6188949", "0.61682904", "0.6150742", "0.6143067", "0.6130056", "0.59987515", "0.59810495", "0.59586304", "0.5919547", "0.59194434", "0.5917903", "0.5910549", "0.5892931", "0.5875102", "0.58216697", "0.58099...
0.8655509
0
Set the element's tab index
Установить индекс элемента для фокусировки
public function setTabIndex(int $index): void { $this->tabIndex = $index; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function set_last_tab_index( $index = 1 ) {\n\t\t\n\t\t$this->last_tab_index = $index;\n\t\t\n\t}", "public function setTabOrder($tabOrder) {}", "function testTabindexIncrement() {\n\t\t$this->assertEqual($this->helper->tabindex(), 1);\n\t\t$this->assertEqual($this->helper->tabindex(), 2);\n\t\t$this->a...
[ "0.69504404", "0.69144946", "0.6861656", "0.67468584", "0.65217876", "0.6217513", "0.6158564", "0.595075", "0.5949447", "0.5779083", "0.5713264", "0.56967247", "0.5677046", "0.55174446", "0.55077344", "0.5460639", "0.5429345", "0.5416281", "0.53203225", "0.5302518", "0.529775...
0.73582447
0
Remove form element label.
Удалить метку элемента формы.
public function removeLabel(): void { $this->labelName = null; $this->label = false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __unset($label) {\n\t\t$this->remove($label);\n\t}", "public function remove($label) {\n\t\tif ($this->_has($label)) {\n\t\t\tunset($this->_register[$label]);\n\t\t}\n\t}", "public function remove(LabelTemplate $labelTemplate);", "function testInputRemoveLabel() {\n\t\t$result = $this->helper...
[ "0.75046474", "0.7075656", "0.69768244", "0.6956601", "0.6055897", "0.59561837", "0.5938222", "0.5892539", "0.58880186", "0.58864474", "0.58751625", "0.58317727", "0.57879394", "0.5782139", "0.5755911", "0.57043993", "0.5659387", "0.56545025", "0.5625233", "0.5610875", "0.560...
0.81424314
0
Save datetime when a user marked as featured
Сохранить дату и время, когда пользователь помечен как выделенный
public function save_date( $user_id ) { update_user_meta( $user_id, '_bpfm_featured_at_time', time() ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function _sf_set_spot_expiry_date_featured_new($post) {\n\t\t\n\t\t//// LETS GET THE EXPIRY DATE AND MAKE SURE IT'S IN THE FUTURE\n\t\tif(is_object($post)) { if($post->post_type == 'spot') {\t\t\t\n\t\t\t\n\t\t\t$exp_date = get_post_meta($post->ID, 'featured_payment_expire', true);\n\t\t\t$now = time();\n\t\t\t\n\...
[ "0.6089806", "0.6006295", "0.5908573", "0.58263296", "0.5658691", "0.5648857", "0.5624159", "0.5618133", "0.5545342", "0.55367696", "0.55262756", "0.54642427", "0.5458034", "0.5438234", "0.54362327", "0.5412263", "0.5411651", "0.5411167", "0.53820556", "0.5374422", "0.5368503...
0.7753435
0
A fieldset is polymorphic.
Филдсет полиморфен.
public function fieldsettable() { return $this->morphTo(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_fieldset() {\n\t\treturn $this->fieldset;\n\t}", "public function getFieldSet() {\n\t\treturn $this->fieldset;\n\t}", "public function modify(Fieldset $fieldset);", "public function addFieldSet($fieldset) {\n\t\t$this->fieldsets[] = $fieldset;\n\t}", "function set_fieldset( $fieldset_id...
[ "0.65748554", "0.6397929", "0.6240424", "0.6113666", "0.6100132", "0.6096482", "0.60423535", "0.60266536", "0.5988048", "0.59339136", "0.576862", "0.5763527", "0.57491714", "0.5747161", "0.5731639", "0.56876636", "0.5654112", "0.5648388", "0.563824", "0.5613402", "0.55764216"...
0.7017434
0
Get all of the fields from sections.
Получить все поля из разделов.
public function fields() { return $this->hasManyThrough(Field::class, Section::class); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function _getSectionsFields()\n {\n $arr = array(\n 'general' => array( // This is a section. See `getSectionId()` for how it gets transformed into an actual section name.\n 'label' => $this->__('General Settings'),\n 'header' ...
[ "0.7157646", "0.6875978", "0.6875978", "0.6875978", "0.6875978", "0.6875978", "0.6875978", "0.68564284", "0.68564284", "0.68564284", "0.6724173", "0.6722429", "0.6720348", "0.67074746", "0.66716546", "0.65950614", "0.655093", "0.655093", "0.65476763", "0.65278107", "0.649688"...
0.7317198
0
Return the fields that define relationships.
Верните поля, которые определяют отношения.
public function relationships() { return $this->fields->reject(function($field) { return is_null($field->type()->getRelationship()); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function fields()\n {\n return $this->hasManyThrough(Field::class, Section::class);\n }", "public function getReferencingFields() {\n $refs = [];\n foreach ($this->fields as $field) {\n if ($field->getReferencedFields()) {\n foreach ($fi...
[ "0.69631", "0.68128294", "0.67473567", "0.66776913", "0.66398984", "0.66061664", "0.66061664", "0.66059566", "0.65862054", "0.65838754", "0.6580282", "0.65731907", "0.65621346", "0.65400136", "0.6477832", "0.64753485", "0.6474544", "0.6473144", "0.64213616", "0.6362036", "0.6...
0.75837076
0
Sets the airPrintExceptionAction property value. Determine whether AirPrint service will be exempt from the alwayson VPN connection. Possible values are: forceTrafficViaVPN, allowTrafficOutside, dropTraffic.
Устанавливает значение свойства airPrintExceptionAction. Определяет, будет ли служба AirPrint исключена из постоянного соединения с виртуальной частной сетью (VPN). Возможные значения: forceTrafficViaVPN, allowTrafficOutside, dropTraffic.
public function setAirPrintExceptionAction(?VpnServiceExceptionAction $value): void { $this->getBackingStore()->set('airPrintExceptionAction', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setVoicemailExceptionAction(?VpnServiceExceptionAction $value): void {\n $this->getBackingStore()->set('voicemailExceptionAction', $value);\n }", "public function setCellularExceptionAction(?VpnServiceExceptionAction $value): void {\n $this->getBackingStore()->set('cellularExcept...
[ "0.5553352", "0.5133501", "0.48615867", "0.47807628", "0.44756296", "0.43976057", "0.438075", "0.438075", "0.43477383", "0.43382725", "0.4334849", "0.42875937", "0.42759907", "0.4263927", "0.4247924", "0.4232045", "0.42289555", "0.4205385", "0.4203079", "0.4190007", "0.414898...
0.7089877
0
Sets the allowAllCaptiveNetworkPlugins property value. Specifies whether traffic from all captive network plugins should be allowed outside the vpn
Устанавливает значение свойства allowAllCaptiveNetworkPlugins. Определяет, должна ли трансляция из всех плагинов захваченных сетей быть разрешена вне виртуальной частной сети.
public function setAllowAllCaptiveNetworkPlugins(?bool $value): void { $this->getBackingStore()->set('allowAllCaptiveNetworkPlugins', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setAllowedCaptiveNetworkPlugins(?SpecifiedCaptiveNetworkPlugins $value): void {\n $this->getBackingStore()->set('allowedCaptiveNetworkPlugins', $value);\n }", "public function getAllowAllCaptiveNetworkPlugins(): ?bool {\n $val = $this->getBackingStore()->get('allowAllCaptiveNetwo...
[ "0.71614546", "0.5487209", "0.49163428", "0.47904962", "0.4732431", "0.47214097", "0.4689519", "0.4611531", "0.46031794", "0.45753855", "0.4562621", "0.45201018", "0.44991645", "0.44743207", "0.44006568", "0.43476203", "0.43472773", "0.43298167", "0.42991653", "0.42977387", "...
0.7931411
0
Sets the allowCaptiveWebSheet property value. Determines whether traffic from the Websheet app is allowed outside of the VPN
Устанавливает значение свойства allowCaptiveWebSheet. Определяет, разрешается ли трафик из приложения Websheet за пределами VPN
public function setAllowCaptiveWebSheet(?bool $value): void { $this->getBackingStore()->set('allowCaptiveWebSheet', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setAllow($value) {\r\n $this->allow = $value;\r\n }", "public function setAllowAllCaptiveNetworkPlugins(?bool $value): void {\n $this->getBackingStore()->set('allowAllCaptiveNetworkPlugins', $value);\n }", "public function getAllowCaptiveWebSheet(): ?bool {\n $val = $...
[ "0.60599834", "0.56330675", "0.56064135", "0.5544383", "0.5484195", "0.5416389", "0.5271468", "0.526523", "0.5245673", "0.5209755", "0.51815", "0.5150512", "0.51373136", "0.50951856", "0.5072099", "0.50654763", "0.50245434", "0.50096226", "0.49881747", "0.49618235", "0.495778...
0.758391
0