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
Show Devices by Site ID
Показать устройства по идентификатору сайта
public function showDeviceBySiteId(Request $request,$id) { if ($request->ajax()) { $results = DeviceSite::where('site_id',$id)->get(); return view('admin::sites.device-sites',compact('results')); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show(Site $site)\n {\n //\n }", "public function show(Site $site)\n {\n //\n }", "public function show($id)\n {\n $devices = Device::all();\n $user = User::find($id);\n $userDevices = $user->devices;\n $devices = $devices->pluck('name', '...
[ "0.615408", "0.615408", "0.6031217", "0.60052186", "0.60039437", "0.599986", "0.59005696", "0.5880219", "0.58760303", "0.58738685", "0.58738685", "0.58738685", "0.58721524", "0.58606946", "0.58577704", "0.57881343", "0.5701316", "0.55794376", "0.55430174", "0.55428094", "0.54...
0.7684554
0
Gets the groups this user is a member of.
Получает группы, в которых состоит этот пользователь.
public function groups() { $return = ['everyone']; $groups = GroupMember::where('user_id', $this->id()) ->sort('`group` ASC') ->all(); foreach ($groups as $group) { $return[] = $group->group; } return $return; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getUserGroups()\n\t{\n\t\t\n\t\t$groups = array();\n\t\t$db \t= $this->getUserDbTable();\n\t\t$id \t= $this->getUserId();\n\t\t\n\t\tif ($id)\n\t\t{\t\n\t\t\t$groups \t= $db->getAdapter()->select()->from(array('gmt'=>'groups_members_table'))\n\t\t\t\t\t\t\t\t\t\t ->joinInner(array('gt'=>'groups_t...
[ "0.79191273", "0.77802896", "0.7761671", "0.75694394", "0.7554897", "0.7506751", "0.7502249", "0.7477684", "0.7460359", "0.7455597", "0.7444235", "0.7432532", "0.73641896", "0.7239706", "0.7162546", "0.7143406", "0.71295285", "0.7111747", "0.7003287", "0.7000231", "0.6942885"...
0.77837163
1
Checks if this user is a super user.
Проверяет, является ли этот пользователь суперпользователем.
public function isSuperUser() { return $this->superUser; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isSuperUser()\n\t{\n\t\treturn $this->hasPermission('superuser');\n\t}", "public function isSuper(): bool\n {\n return $this->hasRole('super');\n }", "public function isSuper() {\n\t\treturn ($this->isAdmin() || $this->Session->read('Acl.isSuper'));\n\t}", "public static function...
[ "0.8656607", "0.8067006", "0.7806444", "0.7735465", "0.7717412", "0.7711298", "0.7690409", "0.7686475", "0.76703", "0.7548985", "0.7546685", "0.75208914", "0.7514398", "0.7484136", "0.74354565", "0.74181664", "0.7391688", "0.7342893", "0.73301756", "0.72911024", "0.7204467", ...
0.8446523
1
///////////////////////////////// Registration ///////////////////////////////// Sets the temporary link attached to the user.
///////////////////////////////// Регистрация ///////////////////////////////// Устанавливает временной ссылку, привязанную к пользователю.
function setTemporaryLink(UserLink $link) { $this->_temporaryLink = $link; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getTemporaryLink()\n {\n return $this->_temporaryLink;\n }", "public function registration_link():string{\n\t\treturn 'finspot:FingerspotReg;'.base64_encode(REGISTRATION_PATH.$this->id);\n\t}", "public function uploadlink() {\n $defaults = array();\n\n $defaults[\"straat\"] ...
[ "0.6377997", "0.5984485", "0.5952041", "0.5725836", "0.5650684", "0.5540842", "0.5490224", "0.54593796", "0.54348767", "0.54314286", "0.53844345", "0.5360663", "0.5346193", "0.5344653", "0.53431016", "0.53301203", "0.5314621", "0.5307288", "0.5291185", "0.5272707", "0.5272270...
0.7245877
0
Clears the temporary link attached to the user.
Очищает временной ссылку, привязанную к пользователю.
function clearTemporaryLink() { $this->_temporaryLink = null; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setTemporaryLink(UserLink $link)\n {\n $this->_temporaryLink = $link;\n return $this;\n }", "public function unlink() {\n $this->credential->setAccessToken(null);\n $this->credential->setTokenType(null);\n }", "protected function clearCachedUserData()\n {\n ...
[ "0.6479358", "0.63353336", "0.60632753", "0.60345715", "0.60232234", "0.5948072", "0.58667064", "0.5866026", "0.5856409", "0.58261806", "0.5790806", "0.57888466", "0.57888466", "0.5779552", "0.57674336", "0.5752255", "0.5721877", "0.5716556", "0.5706657", "0.5636891", "0.5618...
0.71915627
0
Gets the temporary link from user registration.
Получает временной ссылку из регистрации пользователя.
function getTemporaryLink() { return $this->_temporaryLink; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function registration_link():string{\n\t\treturn 'finspot:FingerspotReg;'.base64_encode(REGISTRATION_PATH.$this->id);\n\t}", "public function getTempLink()\n {\n return $this->temp_loc;\n }", "public function link() {\n return isset($this->_adaptee->user_info['user_username']) ? \"profil...
[ "0.66361535", "0.6517011", "0.6459022", "0.62687826", "0.62031275", "0.61700606", "0.61397725", "0.6110055", "0.6071891", "0.6024001", "0.59574497", "0.59408706", "0.5908403", "0.58708066", "0.5862238", "0.58469903", "0.58068836", "0.5785397", "0.5782469", "0.5757268", "0.575...
0.7446525
0
///////////////////////////////// Utilities ///////////////////////////////// Gets the mailer parameters when sending email to this user.
///////////////////////////////// Средства ///////////////////////////////// Получает параметры почтового отправителя при отправке электронной почты этому пользователю.
protected function getMailerParams() { $app = $this->getApp(); return [ 'base_url' => $app['base_url'], 'siteEmail' => $app['config']->get('app.email'), 'email' => $this->email, 'username' => $this->name(true), 'to' => [ [ ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function prepareAndGetMailParams()\n {\n $sendParam['title'] = strip_tags($this->notification->post->title);\n $sendParam['subject'] = \"[{$this->config->site->name}] \" . strip_tags($this->notification->post->title);\n $sendParam['post_url'] = $this->notificationService->getRelat...
[ "0.66469073", "0.5935871", "0.59236914", "0.58808434", "0.58651364", "0.5838087", "0.58282256", "0.5778842", "0.576199", "0.5737972", "0.57207555", "0.5699138", "0.5698846", "0.56985754", "0.5648554", "0.56373966", "0.5615381", "0.5610425", "0.55992424", "0.5593945", "0.55396...
0.7699981
0
Get an empty query for this model.
Получить пустой запрос для этого модели.
public function emptyQuery() { return Content::query(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDefaultQuery()\n {\n return $this->model->newQuery()->where(function ($q) {\n $q->whereNull('team_id');\n $q->orWhere('team_id', app(ActiveTeam::class)->get()->id);\n });\n }", "public function newQueryWithoutScopes()\n {\n $builder = $this->...
[ "0.76495457", "0.76254785", "0.7282372", "0.7181244", "0.70589983", "0.6870792", "0.6868853", "0.6846359", "0.68052167", "0.679631", "0.67434055", "0.67417955", "0.67417955", "0.66920865", "0.6679704", "0.6657223", "0.6643897", "0.6548368", "0.6538156", "0.65365356", "0.65291...
0.8157269
0
$migrate_jquery_path = drupal_get_path('theme', 'zurpal') .'/javascripts/foundation/jquerymigrate1.2.1.js';
$migrate_jquery_path = drupal_get_path('theme', 'zurpal') .'/javascripts/foundation/jquerymigrate1.2.1.js';
function zurpal_preprocess_page(&$variables) { //drupal_add_js($migrate_jquery_path,array('scope'=>'header','weight'=>-20)); $app_path = drupal_get_path('theme', 'zurpal') . '/javascripts/foundation/app.js'; $topbar_path = drupal_get_path('theme', 'zurpal') . '/javascripts/foundation/jquery.foundation.topb...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function zurpal_js_alter(&$javascript)\n{\n// Swap out jQuery to use an updated version of the library.\n $javascript['misc/jquery.js']['data'] = drupal_get_path('theme', 'zurpal') . '/javascripts/foundation/jquery.js';\n $javascript['misc/jquery.js']['version'] = '1.9.0';\n //drupal_static_reset('drupal_...
[ "0.7491919", "0.66155326", "0.64506966", "0.63435155", "0.63203275", "0.61494094", "0.6082915", "0.60221577", "0.6000548", "0.59756213", "0.59429735", "0.5939543", "0.59253275", "0.5906793", "0.5877728", "0.5873013", "0.5860365", "0.5848788", "0.5805668", "0.57959795", "0.577...
0.7486024
1
Gets all the sharer occupations. Retrieves all the sharer occupations, encapsulates them in individual Model_Insurance_TenantsContentsPlus_SharerOccupation objects, and returns them in an array.
Получает все занятия совладельцев. Получает все занятия совладельцев, оборачивает их в отдельные объекты Model_Insurance_TenantsContentsPlus_SharerOccupation и возвращает их в массиве.
public function getOccupations() { $select = $this->select(); $occupationTypesArray = $this->fetchAll($select); if (count($occupationTypesArray) > 0) { $returnArray = array(); foreach($occupationTypesArray as $currentOccupationType) { $sharerOcc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function sharings() {\n return $this->hasMany('Rockit\\Models\\Sharing');\n }", "public function GetOwedShirts()\n {\n $dbTalker = new DbTalker();\n return $dbTalker->GetOwedShirts();\n }", "public function getScorers()\n\t{\n\t\t$data = array();\n\t\t// get the match score...
[ "0.48722792", "0.46658", "0.46150953", "0.45550534", "0.45131707", "0.44591275", "0.44442242", "0.44346818", "0.44301885", "0.43728068", "0.4333932", "0.4326525", "0.43250144", "0.43225452", "0.4315065", "0.4313812", "0.43009678", "0.42977285", "0.42977285", "0.42892334", "0....
0.79673994
0
Method tests insertBasicFields method
Метод тестирования метода insertBasicFields
public function testInsertBasicFields(): void { // setup $connection = new PdoCrudMock(); $model = new CrudServiceModel(); $model->setConnection($connection); // test body $result = $model->insertBasicFields([ 'title' => 'title' ]); // as...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testAddFields()\n\t{\n\t\t$entity = new Entity;\n\n\t\t$entity->addFields($this->getTestFields());\n\n\t\t$entity->bind($this->getTestData());\n\n\t\t$this->assertNull($entity->params);\n\t\t$this->assertEquals('Sakura', $entity->title);\n\t}", "public function insertTest()\n {\n $this-...
[ "0.7188045", "0.67224455", "0.6683838", "0.66360605", "0.6591263", "0.6531837", "0.6491127", "0.64433825", "0.63571703", "0.6332511", "0.63292843", "0.6325749", "0.6325749", "0.6294873", "0.62896013", "0.6263086", "0.6215676", "0.6193762", "0.61888945", "0.6188588", "0.617930...
0.7977314
0
Make sure Orchestra is started.
Убедитесь, что Orchestra запущен.
public function __construct() { Bundle::start('orchestra'); if (false === Orchestra\Installer::installed()) { throw new RuntimeException("Orchestra need to be install first."); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function start() {\n\n // TODO: Maybe sometimes\n\n }", "public function start()\n {\n // Este módulo requiere a un usuario logueado\n $this -> setRequireUser( true );\n }", "public function start()\n {\n // For example you can check Auth\n }", "public functi...
[ "0.5725793", "0.5621714", "0.5621693", "0.54500204", "0.5418137", "0.5398228", "0.5357811", "0.5356517", "0.53394306", "0.53394306", "0.53387874", "0.53379965", "0.53379965", "0.53379965", "0.53379965", "0.53379965", "0.53379965", "0.53373814", "0.5330977", "0.53188014", "0.5...
0.70848686
0
Returns available tab options.
Возвращает доступные варианты вкладок.
protected function getTabOptions() { $options = [ 'members' => $this->t('Members'), 'admins' => $this->t('Administrators'), ]; if (($this->currentUser->hasPermission('manage circle spaces') && $this->moduleHandler->moduleExists('living_spaces_circles')) || $this->moduleHandler->modul...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static function options_page_tabs() {\n $tabs = array(\n 'general' => __('Allgemein', 'fau-cris'),\n 'layout' => __('Darstellung', 'fau-cris'),\n 'sync' => __('Synchronisierung', 'fau-cris')\n );\n return $tabs;\n }", "private function get_tabs() {...
[ "0.72532773", "0.6955908", "0.68708473", "0.6848745", "0.6848745", "0.6848745", "0.6848745", "0.6848745", "0.6848745", "0.6848745", "0.6848745", "0.6848745", "0.6848745", "0.6848745", "0.6848745", "0.6848745", "0.6848745", "0.6848745", "0.6848745", "0.6821523", "0.681229", ...
0.8225386
0
Returns render array for contact actions on a space group.
Возвращает массив для отображения действий по связям в группе пространств.
protected function getContactActionsRender(GroupInterface $group) { $output = [ '#type' => 'container', 'title' => [ '#type' => 'html_tag', '#tag' => 'h4', '#value' => t('Contact'), '#attributes' => ['class' => ['living-space-contact-action-title']], ], ]; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getExportActionsViewRender(GroupInterface $group) {\n $output = [\n '#type' => 'container',\n 'title' => [\n '#type' => 'html_tag',\n '#tag' => 'h4',\n '#value' => t('Export'),\n '#attributes' => ['class' => ['living-space-export-action-title']],\n ]...
[ "0.5938471", "0.5854643", "0.5725198", "0.55975497", "0.55420315", "0.55420315", "0.55420315", "0.55306005", "0.550286", "0.54723805", "0.546748", "0.54247445", "0.54011554", "0.53890795", "0.53735965", "0.53732735", "0.53732735", "0.5345275", "0.5338938", "0.53061503", "0.52...
0.76027656
0
Returns render array for export actions on a space group.
Возвращает массив для отображения действий экспорта в пространственной группе.
protected function getExportActionsViewRender(GroupInterface $group) { $output = [ '#type' => 'container', 'title' => [ '#type' => 'html_tag', '#tag' => 'h4', '#value' => t('Export'), '#attributes' => ['class' => ['living-space-export-action-title']], ], ]; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getContactActionsRender(GroupInterface $group) {\n $output = [\n '#type' => 'container',\n 'title' => [\n '#type' => 'html_tag',\n '#tag' => 'h4',\n '#value' => t('Contact'),\n '#attributes' => ['class' => ['living-space-contact-action-title']],\n ],...
[ "0.64288974", "0.6256333", "0.60034233", "0.5817994", "0.5810293", "0.5797827", "0.57573223", "0.5743704", "0.57402873", "0.5727694", "0.565833", "0.5654961", "0.56274325", "0.562369", "0.56142485", "0.56063426", "0.5563493", "0.5540996", "0.55381507", "0.5538053", "0.5535479...
0.82140887
0
genera el contenido para insertar en codigo QR
создайте содержимое для вставки в код QR
private function MakeContentQR(){ $content = "{$this->Nombre} {$this->Apellidos}\n{$this->email}\n{$this->Carrera}\n {$this->Semestre}\n{$this->ncontrol}\n{$this->FolioPago}\n{$this->F_Examen}"; return $content; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function generate(Request $request){ \n $data = $request->all();\n QRCode::text($data['code'])->png(); \n }", "public static function getGenerateQrCode(Request $request){\n $title = \"Generate Qr Code\";\n $projectDetailObj = new \\App\\Project;\n $input = $request->all();\n ...
[ "0.6209538", "0.59599036", "0.58564454", "0.57883894", "0.57696843", "0.5765846", "0.5729959", "0.5686736", "0.5596861", "0.5547655", "0.55446106", "0.5522725", "0.5508945", "0.5497635", "0.5485846", "0.5479005", "0.5470509", "0.5469289", "0.54313016", "0.537364", "0.5369415"...
0.71873707
0
/ Load all of the config files in $dir in ascending alphabetical order. The config files must return an associative array of config values. This function returns the final config data after all of the individual files have been processed.
Загрузите все файлы конфигурации в $dir в порядке возрастания алфавитного порядка. Файлы конфигурации должны возвращать ассоциативный массив значений конфигурации. Эта функция возвращает окончательные данные конфигурации после обработки всех отдельных файлов.
function load_config_array(string $dir) { $tmp = []; $files = scandir($dir, SCANDIR_SORT_ASCENDING); if ($files !== FALSE) { foreach (array_diff($files, ['.', '..']) as $f) { $inc = include($dir.'/'.$f); if (gettype($inc) === 'array') { $tmp = array_merge($tmp, $inc); } else { throw new E...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function loadConfig()\n {\n $files = scandir($this->configPath());\n $configs = [];\n\n foreach ($files as $file) {\n $filePath = $this->configPath() . DIRECTORY_SEPARATOR . $file;\n\n if (is_file($filePath)) {\n $config = [basename($file, '.php'...
[ "0.6625902", "0.64870507", "0.6368991", "0.6287424", "0.62823313", "0.62162024", "0.6165398", "0.6092302", "0.58190835", "0.58100176", "0.58020794", "0.5790474", "0.5781771", "0.57182914", "0.5700125", "0.5699668", "0.563929", "0.5620406", "0.559804", "0.55779284", "0.5550268...
0.74778056
0
Checks if a negotiation configuration node is valid.
Проверяет, является ли узел конфигурации переговоров допустимым.
protected function isValidNegotiationNode($node) { return isset($node['name']) && isset($node['values']); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function checkConfig();", "public function checkIfEssentialConfigurationExists() {}", "public function validate() {\n\n if (empty($this->config['default_pool_read'])) {\n throw new neoform\\config\\exception('\"default_pool_read\" must be set');\n }\n\n if...
[ "0.5878896", "0.5770419", "0.57083994", "0.56578624", "0.56207883", "0.56018627", "0.55906296", "0.5585302", "0.5505117", "0.5476201", "0.54346174", "0.5431089", "0.540532", "0.5344221", "0.5335364", "0.5329896", "0.53082013", "0.5284131", "0.5270382", "0.5237624", "0.5231939...
0.7306595
0
END function load() FUNCTION: var_is_int()
ФУНКЦИЯ load() ФУНКЦИЯ: var_is_int()
private function var_is_int($value) { // Returns TRUE if $value is an integer. // Returns FALSE otherwise. // This function will take any data type as input. return ((string) $value) === ((string)(int) $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function my_is_int($var) {\n\treturn (is_numeric($var)&&(intval($var)==floatval($var)));\n}", "function df_is_int($v):bool {return is_numeric($v) && ($v == (int)$v);}", "function int_check($var) {\n\tif ( is_numeric($var) )\n\t\treturn $var;\n\treturn null;\n}", "function o_isInt($value) {\n\t\t\treturn Obj:...
[ "0.7424979", "0.73620176", "0.72833264", "0.72404426", "0.70803565", "0.7033291", "0.6913651", "0.68194425", "0.6781262", "0.6713603", "0.6697197", "0.66883296", "0.6679003", "0.66752994", "0.66226435", "0.661969", "0.6568804", "0.65596884", "0.6539455", "0.6516973", "0.64887...
0.7431175
0
/ Get pejabat by idpejabat
/ Получить pejabat по idpejabat
function get_pejabat($idpejabat) { return $this->db->get_where('pejabat',array('idpejabat'=>$idpejabat))->row_array(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getClanek($id){\n $sth = $this->db->prepare(\"SELECT * FROM PRISPEVKY\n WHERE id_prispevku = :id\");\n $sth->bindParam(':id', $id);\n $sth->execute();\n $data = $sth->fetch();\n return $data;\n }", "public function selectById($id) {\n $co...
[ "0.7301212", "0.7216508", "0.7182426", "0.71363527", "0.7055486", "0.70145357", "0.7007298", "0.69727194", "0.6953885", "0.69471395", "0.6904584", "0.6896306", "0.68918747", "0.6874952", "0.68428946", "0.68396425", "0.682469", "0.67933637", "0.6779113", "0.6764388", "0.673918...
0.81246346
0
/ Get all pejabat
/ Получить всех должностных лиц
function get_all_pejabat() { $result = $this->db->query("SELECT `pejabat`.*, `struktural`.`nm_struktural`, `pegawai`.`Nama` FROM `pejabat` LEFT JOIN `pegawai` ON `pejabat`.`idpegawai` = `pegawai`.`idpegawai` LEFT JOIN `struktura...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function all_pemesan(){\r\n\r\n $all = $this->db->get(\"pemesan\")->result();\r\n $response['status']=200;\r\n $response['error']=false;\r\n $response['person']=$all;\r\n return $response;\r\n\r\n }", "public function selectAll() {\n $conn = $this->conex->connectDatabase();\n ...
[ "0.720695", "0.7148643", "0.71315914", "0.7056797", "0.7040648", "0.7035885", "0.70065653", "0.6960054", "0.692627", "0.6913165", "0.6913136", "0.6896919", "0.68780184", "0.685709", "0.68477863", "0.68319815", "0.68293214", "0.6803032", "0.67976135", "0.67862356", "0.6776726"...
0.7749476
0
/ function to delete pejabat
Функция для удаления pejabat
function delete_pejabat($idpejabat) { return $this->db->delete('pejabat',array('idpejabat'=>$idpejabat)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function delete() ;", "function delete() ;", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function d...
[ "0.73884976", "0.73884976", "0.7257584", "0.7257584", "0.7257584", "0.7257584", "0.7257584", "0.7257584", "0.7257584", "0.7257584", "0.7257584", "0.7257584", "0.7257584", "0.7257584", "0.7257584", "0.7257584", "0.7257584", "0.6948544", "0.69392365", "0.6925347", "0.6925347", ...
0.7658528
0
Add tagBeep's panel to the wp admin panel admin_menu action
Добавить панель tagBeep в панель wp admin admin_menu действия
function tb_addTagBeepToWpAdmin() { //add in /settings manu add_options_page("tagBeep uptime", "tagBeep uptime", 8, "tagBeepUptimeMonitor", "tb_load_tagBeepAdmin"); //add in the /plugins menu add_plugins_page("tagBeep uptime", "tagBeep uptime", 8, "tagBeepUptimeMonitorPlugin", "tb_load_tagBeepAdm...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function admin_actions() {\n\t\t$menutitle = '<img src=\"' . get_bloginfo('url') . '/wp-content/plugins/paywithafacebookpost/img/paywithfb.png\" alt=\"\" />' ;\n\t\tadd_options_page($menutitle . \" Pay With A Facebook Post\", $menutitle . \" Pay With A Facebook Post\", 8, basename(__FILE__), array(\"plgPay...
[ "0.7011635", "0.6940231", "0.68914056", "0.687653", "0.6766032", "0.67465866", "0.6713363", "0.6699646", "0.66678065", "0.6623464", "0.6600367", "0.6585066", "0.6566238", "0.6527503", "0.6513445", "0.6494724", "0.64945096", "0.64941704", "0.64812464", "0.6476937", "0.6474341"...
0.814
0
On activate event set the option tagBeep_redirect_to_plugin to redirect
На событие активации установите опцию тега Beep_redirect_to_plugin для перенаправления
function tb_onPluginActivate() { add_option('tagBeep_redirect_to_plugin', 'true'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function tb_tagBeep_plugin_redirect() {\r\n if (get_option('tagBeep_redirect_to_plugin') == 'true') {\r\n //we have the key tagBeep_redirect_to_plugin, we have to redirect to the plugin page\r\n update_option('tagBeep_redirect_to_plugin', 'false'); //set the key to false to not redirect each time\...
[ "0.7170224", "0.71066463", "0.656983", "0.6524379", "0.65230954", "0.64989483", "0.6357853", "0.6248893", "0.6221345", "0.6124907", "0.60982805", "0.6097742", "0.60708517", "0.60234416", "0.60038537", "0.5995095", "0.5951577", "0.5896945", "0.58967584", "0.58636487", "0.58061...
0.8776905
0
La fonction getID retourne l'ID du post
Функция getID возвращает ID поста
public function getID(){ return $this->id_post; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_id() {\n\t\treturn $this->_post->ID;\n\t}", "public function id() { return $this->post->ID; }", "public function getIdPost()\n {\n return $this->id_post;\n }", "public function getIdPost()\n {\n return $this->idPost;\n }", "public function getIdPost(): int\n ...
[ "0.8281698", "0.79640985", "0.785352", "0.78039145", "0.76513124", "0.7552922", "0.75360054", "0.7522283", "0.7509603", "0.7485022", "0.7454128", "0.74435425", "0.74435425", "0.7416648", "0.7396076", "0.7393025", "0.73314124", "0.73260266", "0.72828233", "0.7266522", "0.72665...
0.84069896
0
La fonction afficherPost affiche le post sur la page en remplacant les valeurs dans template.post.html par celles de la classe
Функция afficherPost отображает пост на странице, заменяя значения в template.post.html на значения из класса
public function afficherPost(){ $gab = new Template("./"); $gab->set_filenames(array("body" => "template.post.html")); $gab->assign_vars(array("user" => $this->user)); $gab->assign_vars(array("title" => $this->title_post)); $gab->assign_vars(array("text" => $this->text_post)); $gab->assign_vars...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function postPage(){\n require_once \"controller/Post.php\";\n $post = new Post();\n require_once \"controller/Comment.php\";\n $comment = new Comment();\n //gets the post id in URL\n $idPost = $this->_url[1];\n //adds post info\n $html_post = $post->g...
[ "0.6882526", "0.6864509", "0.65965664", "0.6531523", "0.646463", "0.64543164", "0.6367002", "0.63137335", "0.63123596", "0.63002473", "0.6288412", "0.6261182", "0.6255973", "0.6255973", "0.62263983", "0.6142176", "0.61405116", "0.6139373", "0.6137133", "0.613517", "0.613013",...
0.85225886
0
Listens for a Paynow IPN requests and then sends to the processing function
Слушает Paynow IPN-запросы и отправляет их в обработочную функцию
function edd_listen_for_paynow_ipn() { global $edd_options; // Regular Paynow IPN if ( isset( $_GET['edd-paynow-listener'] ) && $_GET['edd-paynow-listener'] == 'IPN' ) { do_action( 'edd_verify_paynow_ipn' ); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function ipnAction() {\n $paymentService = $this->get('e2w_payment_service');\n $paymentService->ipnRequest($this->get('request')->request);\n die();\n }", "private function processIPN()\n\t{\n\t\t$log = e107::getLog();\n\t\t$db = e107::getDb();\n\t\t$tp = e107::getParser();\n\n\t\...
[ "0.68548805", "0.67803526", "0.66869235", "0.6686835", "0.66722584", "0.6596693", "0.64150566", "0.62891674", "0.6204293", "0.617671", "0.6143743", "0.6069307", "0.5930139", "0.59246874", "0.59234166", "0.59175444", "0.58607924", "0.5856941", "0.5854594", "0.5852827", "0.5826...
0.71464956
0
adds the settings to the Payment Gateways section
добавляет настройки в раздел "Платежные шлюзы"
function pn_edd_add_settings( $settings ) { $paynow_gateway_settings = array( array( 'id' => 'paynow_gateway_settings', 'name' => '<strong>' . __( 'Paynow Gateway Settings', 'pw_edd' ) . '</strong>', 'desc' => __( 'Configure the gateway settings', 'pw_edd' ), 'type' => 'header' ), array( 'id' => ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function admin_update_payment_gateways()\n {\n $admin = true;\n include GEO_BASE_DIR . 'get_common_vars.php';\n //whether allowed to enable this type or not\n $can_enable = true;\n $is_enabled = (isset($_POST['enabled_gateways'][self::gateway_name]) && $_POST['enabled_g...
[ "0.6881864", "0.68433183", "0.6687855", "0.66803366", "0.6608726", "0.6338715", "0.6320049", "0.6305798", "0.62467486", "0.617476", "0.6163742", "0.61316097", "0.60536873", "0.60492176", "0.60489947", "0.6018525", "0.6011749", "0.5989323", "0.5943869", "0.59336823", "0.592298...
0.7122651
0
Sets up up the RuntimeStepTester. The specified container should have a self::CONFIG_TIMEOUT and a self::CONFIG_RETRY_INTERVAL parameter.
Настройка RuntimeStepTester. Указанный контейнер должен иметь параметр self::CONFIG_TIMEOUT и self::CONFIG_RETRY_INTERVAL.
private function loadRuntimeStepTester(ContainerBuilder $container) { RuntimeStepTester::$timeout = $container->getParameter(self::CONFIG_TIMEOUT); RuntimeStepTester::$interval = $container->getParameter(self::CONFIG_RETRY_INTERVAL); RuntimeStepTester::$strictKeywords = $container->getParame...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function setUpFromConfig()\n\t{\n\t\t$timeLimit = 4 * 60 * 60;\n\n\t\t$parameters = $this->container->getParameters();\n\t\tif (is_array($parameters) and array_key_exists(\"taskManager\", $parameters)) {\n\t\t\t/// ***** TIMELIMIT ****** //\n\t\t\tif (isset($parameters[\"taskManager\"][\"timeLimit\"])) {...
[ "0.5324337", "0.5171487", "0.5152415", "0.50935286", "0.50864893", "0.5072108", "0.5022258", "0.49559757", "0.49261847", "0.49105906", "0.49076244", "0.48853153", "0.48548472", "0.48278746", "0.48096687", "0.47865194", "0.47707707", "0.47438115", "0.4732802", "0.47180116", "0...
0.73059136
0
Download images and replaces urls in the styles
Скачивайте изображения и заменяйте URLs в стилях
function style_url_replace( $match ) { global $snoopy, $download_path, $downloaded_files; $relative = $match[1]; $image = convertLink( $match[1] ); if ( in_array( $image, array_keys( $downloaded_files ) ) ) { $filename = $downloaded_files[$image]; } else { $ext = end( ex...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function getImageIntoCss(): void\n {\n preg_match_all(self::REGEX_IMAGE_FORMAT, $this->sContents, $aHit, PREG_PATTERN_ORDER);\n\n for ($i = 0, $iCountHit = count($aHit[0]); $i < $iCountHit; $i++) {\n $sImgPath = PH7_PATH_ROOT . $this->sBaseUrl . $aHit[1][$i] . $aHit[2][$i];\n ...
[ "0.688141", "0.6373753", "0.6367579", "0.6001647", "0.5999664", "0.58871716", "0.5839635", "0.5802336", "0.57954395", "0.5688069", "0.5661476", "0.56460226", "0.56087995", "0.5605742", "0.5588823", "0.5578539", "0.556012", "0.5555235", "0.5543404", "0.5517085", "0.5490574", ...
0.71879554
0
Creates a new Follow model. If creation is successful, the browser will be redirected to the 'view' page.
Создает новый объект Follow. Если создание успешно, браузер будет перенаправлен на страницу 'view'.
public function actionCreate() { $model = new Follow (); if ($model->load ( Yii::$app->request->post () ) && $model->save ()) { return $this->redirect ( [ 'view', 'id' => $model->followID ] ); } else { return $this->render ( 'create', [ 'model' => $model ] ); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function actionCreate()\n {\n $model = new Users();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->uid]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n...
[ "0.6710494", "0.6690616", "0.66585654", "0.66585654", "0.66585654", "0.66585654", "0.65761834", "0.6552931", "0.65009594", "0.6480906", "0.64251155", "0.64168197", "0.63638544", "0.6357716", "0.6357716", "0.62716305", "0.6268399", "0.6243951", "0.62140715", "0.6200901", "0.61...
0.8833359
0
Updates an existing Follow model. If update is successful, the browser will be redirected to the 'view' page.
Обновляет существующую модель Follow. Если обновление успешно, браузер будет перенаправлен на страницу 'view'.
public function actionUpdate($id) { $model = $this->findModel ( $id ); if ($model->load ( Yii::$app->request->post () ) && $model->save ()) { return $this->redirect ( [ 'view', 'id' => $model->followID ] ); } else { return $this->render ( 'update', [ 'model' => $model ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function actionUpdate()\n {\n if (!$model = $this->findModel()) {\n Yii::$app->session->setFlash(\"error\", Yii::t('modules/user', \"You are not logged in.\"));\n $this->goHome();\n } else if ($model->load(Yii::$app->request->post()) && $model->save()) {\n Y...
[ "0.6590642", "0.64405555", "0.643507", "0.633781", "0.6060133", "0.6056863", "0.60505575", "0.5966403", "0.5953536", "0.5914776", "0.5910345", "0.58988976", "0.58863664", "0.58778346", "0.58663815", "0.5860015", "0.5860015", "0.5850847", "0.5842669", "0.5830864", "0.58302057"...
0.7714606
0
Finds the Follow model based on its primary key value. If the model is not found, a 404 HTTP exception will be thrown.
Находит модель Follow по её значению первичного ключа. Если модель не найдена, будет выброшено исключение 404 HTTP.
protected function findModel($id) { if (($model = Follow::findOne ( $id )) !== null) { return $model; } else { throw new NotFoundHttpException ( 'The requested page does not exist.' ); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function find($id)\n {\n return $this->model->with(['followers','following'])->find($id);\n }", "private function findModel($key)\n {\n if (null === $key) {\n throw new BadRequestHttpException('Key parameter is not defined in findModel method.');\n }\n\n $mo...
[ "0.615055", "0.6102527", "0.6024297", "0.59946686", "0.5903707", "0.5823651", "0.5813569", "0.5784466", "0.5740782", "0.5696516", "0.56860465", "0.5678777", "0.5674011", "0.565186", "0.56242853", "0.56193435", "0.56193435", "0.55957085", "0.55911", "0.55882806", "0.5578549", ...
0.7197453
0
20060602 Renamed function from st_add_st_link() to st_add_feed_link()
20060602 Переименованная функция из st_add_st_link() в st_add_feed_link()
function st_add_feed_link($content) { if (is_feed()) { $content .= st_link(); } return $content; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function the_feed_link($anchor, $feed = '')\n {\n }", "function automatic_feed_links($add = \\true)\n {\n }", "function addFeed($feed,$url,$return=true);", "function comments_link_feed()\n {\n }", "public function feed_link() {\n\t\t$post_title = self::feed_title();\n\t\t$feed_link = Liv...
[ "0.6778361", "0.67182124", "0.64651215", "0.6393721", "0.6378318", "0.6240546", "0.62273055", "0.6194639", "0.61402667", "0.61052424", "0.608226", "0.6079509", "0.59695506", "0.5967263", "0.59559053", "0.5943738", "0.594368", "0.5939042", "0.5911689", "0.5880697", "0.5873591"...
0.7680712
0
///////// Accessors ///////// Service title.
///////// Accessors ///////// Заголовок сервиса.
public function title() { if ($this->contributor_service && $this->contributor_service->title) { return $this->contributor_service->title; } return $this->service->title; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getServiceTitle() {}", "public function get_title()\n {\n }", "public function get_title()\n {\n }", "public function get_title() {\n return __( 'APR Heading', 'apr-core' );\n }", "function title() {\n ?>\n <h2><?php _e(SCLNG_PUBLIC_PRODUC...
[ "0.89144415", "0.70879215", "0.7087731", "0.70124865", "0.699948", "0.6954333", "0.6936192", "0.69320995", "0.6925719", "0.6925719", "0.6925719", "0.6925719", "0.6925719", "0.6925719", "0.6925719", "0.6925719", "0.6925719", "0.6925719", "0.6925719", "0.6925719", "0.692495", ...
0.7713792
1
set multiple values to be replaced
установить несколько значений для замены
public function set_many($replaces) { foreach ($replaces as $key => $value) { $this->values[$this->block][$key] = $value; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setValues($values = []);", "public function setValues($values);", "public function replace(array $values = []): void\n {\n\t\t$this->values = $values;\n\t}", "public function assignValues($values=[]) {\n }", "public function setValues($values)\n {\n foreach ($this->entities ...
[ "0.67728907", "0.6759351", "0.6603161", "0.64762175", "0.64360225", "0.63805115", "0.6378056", "0.6340752", "0.63164806", "0.62891155", "0.62593466", "0.6239974", "0.6231123", "0.62022156", "0.6181872", "0.6173142", "0.61052203", "0.6094056", "0.60896146", "0.6050574", "0.602...
0.7323282
0
this will replace the tags in the current block
это заменит теги в текущем блоке
public function do_tags() { foreach ($this->values as $id => $block) { foreach ($block as $name => $replace) { $find = "{:$name}"; $this->merged[$id] = str_replace($find, $replace, $this->merged[$id]); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function replaceBlockDocumentElements($content){\n\t\t//regular expression indiicating what a document block looks like\n\t\t$document_block_string = \"/\\{arch:document\\}(.*?)\\{\\/arch:document\\}/s\";\n\t\t\n\t\t//array to hold blocks that need to be replaced\n\t\t$document_array = array();\n\t\t\n\t\t/...
[ "0.645628", "0.6428538", "0.62610906", "0.6064476", "0.5979072", "0.5914047", "0.5882833", "0.5852715", "0.57815", "0.57423013", "0.57420915", "0.5726671", "0.5646644", "0.5646053", "0.56335765", "0.56334096", "0.5617191", "0.56067884", "0.559265", "0.5555665", "0.5551675", ...
0.7523821
0
/ Get inscripcion_materia by id
/ Получить inscripcion_materia по id
function get_inscripcion_materia($id) { return $this->db->get_where('inscripcion_materia',array('id'=>$id))->row_array(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_materia($materia_id)\n {\n $materia = $this->db->query(\"\n SELECT\n *\n\n FROM\n `materia`\n\n WHERE\n `materia_id` = ?\n \",array($materia_id))->row_array();\n\n return $materia;\n }", "public ...
[ "0.7759912", "0.70723164", "0.6887433", "0.6764801", "0.67504174", "0.66065264", "0.6471261", "0.64213836", "0.6419327", "0.64173734", "0.640201", "0.63936853", "0.6374128", "0.63737464", "0.63533664", "0.6288632", "0.62690294", "0.626051", "0.6246982", "0.6238707", "0.618833...
0.85556287
0
/ function to add new inscripcion_materia
Функция для добавления новой записи inscripcion_materia
function add_inscripcion_materia($params) { $this->db->insert('inscripcion_materia',$params); return $this->db->insert_id(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addmateria(materia $object)\n {\n $this->materias[] = $object;\n }", "function add_materia($params)\n {\n $this->db->insert('materia',$params);\n return $this->db->insert_id();\n }", "function delete_inscripcion_materia($id)\r\n {\r\n return $this->db->delet...
[ "0.6804768", "0.6535714", "0.61981285", "0.61285955", "0.6113647", "0.6075961", "0.59873056", "0.59225047", "0.5922358", "0.5894869", "0.58535343", "0.5846425", "0.58097756", "0.57601804", "0.57496643", "0.5739368", "0.5729696", "0.57204163", "0.56664705", "0.5662113", "0.565...
0.72243047
0
/ function to update inscripcion_materia
/ функция для обновления inscripcion_materia
function update_inscripcion_materia($id,$params) { $this->db->where('id',$id); return $this->db->update('inscripcion_materia',$params); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function update_materia($materia_id,$params)\n {\n $this->db->where('materia_id',$materia_id);\n return $this->db->update('materia',$params);\n }", "function modificar_material($id_material,$titulo,$descripcion,$objetivos,$estado,$autores,$ac,$dirigido,$edad,$nivel,$saa,$tipo,$archivos,$id_li...
[ "0.64743924", "0.63942826", "0.62906104", "0.61918455", "0.6173816", "0.61702365", "0.61407834", "0.6055277", "0.60484153", "0.589866", "0.5897071", "0.5888249", "0.5888249", "0.58809376", "0.5860471", "0.5855349", "0.5839724", "0.5834041", "0.5831495", "0.58230895", "0.58229...
0.7046177
0
/ function to delete inscripcion_materia
Функция для удаления inscripcion_materia
function delete_inscripcion_materia($id) { return $this->db->delete('inscripcion_materia',array('id'=>$id)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function delete($id_materi);", "function delete_materia($materia_id)\n {\n return $this->db->delete('materia',array('materia_id'=>$materia_id));\n }", "public function delete()\n {\n //recuperation des informations pour la suppression d'une matière\n $data = $this->request-...
[ "0.79497266", "0.7891689", "0.6674915", "0.662337", "0.660278", "0.6595085", "0.65855104", "0.65684426", "0.6567179", "0.6505929", "0.6486011", "0.64351887", "0.6427628", "0.6361658", "0.63563305", "0.63341814", "0.6287984", "0.6270539", "0.62647367", "0.62555665", "0.6245771...
0.84023994
0
Test case for making sure that XML_RSS extends from XML_Parser
Тестовый случай для обеспечения того, чтобы XML_RSS наследовался от XML_Parser
function testIsXML_Parser() { $rss = new XML_RSS(); $this->assertTrue(is_a($rss, "XML_Parser")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function html_type_rss()\n {\n }", "function testBug2310() {\n $rss = new XML_RSS(\"\", null, \"utf-8\");\n $this->assertEquals($rss->tgtenc, \"utf-8\");\n\n $rss = new XML_RSS(\"\", \"utf-8\", \"iso-8859-1\");\n $this->assertEquals($rss->srcenc, \"utf-8\");\n $this->asse...
[ "0.6420601", "0.6220844", "0.61872935", "0.61256105", "0.6060497", "0.6049352", "0.6001759", "0.5883809", "0.5866639", "0.58597237", "0.5825549", "0.5824453", "0.581698", "0.5805962", "0.57808346", "0.5771245", "0.5729607", "0.5678873", "0.5668966", "0.56379014", "0.56379014"...
0.79881847
0
Default component settings. Supported types: subscribe, newsletter Supported themes: light, medium, dark
Режим настроек компонента по умолчанию. Поддерживаемые типы: subscribe, newsletter Поддерживаемые темы: light, medium, dark
public function default_settings() : array { return [ 'layout' => 'block', 'newsletter' => '', 'theme' => 'light', 'type' => 'subscribe', ]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setChannelTemplates(){\n if ($this->channel == self::$WTSORDER_SOURCE_SITE_MOBILE){\n $this->defaultStepTemplates = $this->mobileDefaultStepTemplates;\n } elseif($this->customerIsPro()){\n $this->defaultStepTemplates = $this->proDefaultStepTemplates;\n } \n }", "function simpl...
[ "0.6433837", "0.60070544", "0.6003427", "0.5977585", "0.5955388", "0.5907726", "0.5903883", "0.58484674", "0.5843911", "0.58338296", "0.58061206", "0.57994074", "0.57885665", "0.5757142", "0.5728515", "0.57258457", "0.5705115", "0.5659023", "0.5658147", "0.5649024", "0.564381...
0.7264607
0
Return an array of Call to Action type options.
Вернуть массив вариантов типа Call to Action.
public function get_type_options() : array { /** * Filters Call to Action type options. * * @param array Type options to be filtered. */ return apply_filters( 'cta_type_options', // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound [ 'subscribe' => __( 'Subs...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function get_action_options() {\n return array(\n 'c' => get_string('create', 'logstore_database'),\n 'r' => get_string('read', 'logstore_database'),\n 'u' => get_string('update', 'logstore_database'),\n 'd' => get_string('delete')\n );\n }...
[ "0.67643094", "0.6639785", "0.6434818", "0.62135303", "0.6212376", "0.6212376", "0.6212376", "0.6212376", "0.6212376", "0.6212376", "0.6212376", "0.618919", "0.61701673", "0.61453754", "0.61074096", "0.6103989", "0.6098876", "0.6053197", "0.6031527", "0.6031157", "0.60117716"...
0.7321445
0
Return an array of Mailchimp newsletter options.
Верните массив параметров рассылки Mailchimp.
public function get_newsletter_options() : array { $newsletters = []; $newsletter_lists = (array) $this->get_option( 'newsroom-settings', 'newsletter', 'mailchimp_lists', 'lists' ); // Loop through lists and build array. foreach ( $newsletter_lists as $list ) { $list = wp_parse_args( $list, [ ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function mailchimpOptions()\n {\n if (!$this->mailchimpOptions) {\n return $this->defaultOptions();\n }\n\n return $this->mailchimpOptions;\n }", "public function get_newsletter_options_for_gutenberg() {\n\n\t\t// Format newsletters for Gutenberg.\n\t\t$newsletters...
[ "0.7125456", "0.70712036", "0.6891936", "0.6391974", "0.6320785", "0.6318037", "0.62442356", "0.6193153", "0.6085702", "0.6072265", "0.6070981", "0.60334027", "0.60334027", "0.60334027", "0.60334027", "0.60334027", "0.60334027", "0.60334027", "0.6006714", "0.6006714", "0.6006...
0.7950536
0
Get a newsletter list id by the slugified name.
Получите идентификатор списка новостей по слэшевому имени.
public function get_newsletter_list_id_by_slug( string $slug = '' ) : string { $newsletter_lists = (array) $this->get_option( 'newsroom-settings', 'newsletter', 'mailchimp_lists', 'lists' ); // Return the list id that corresponds to this slug. foreach ( $newsletter_lists as $list ) { if ( sanitize_title( $lis...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_id_from_blogname($slug)\n {\n }", "public function getListId();", "protected function getListId($strList)\n\t{\n\n\t\t$arrLists = $this->api->lists();\n\t\tforeach($arrLists['data'] as $list)\n\t\t{\n\t\t\tif ($list['name']==$strList)\n\t\t\t\treturn $list['id'];\n\t\t}\n\t\treturn null;\n\n...
[ "0.63937783", "0.6365867", "0.6194987", "0.60476315", "0.6009202", "0.6006033", "0.59316283", "0.58851385", "0.5818528", "0.5762376", "0.5753282", "0.5641002", "0.5600172", "0.5552371", "0.54814565", "0.5470993", "0.53987837", "0.53985", "0.53564936", "0.5345052", "0.52916986...
0.7455327
0
Expose newsletter options for CTA block
Отображать опции рассылки для блока CTA
public function provide_newsletter_options() { wp_add_inline_script( 'civil-first-fleet-admin-js', sprintf( 'var civilNewsletterOptions = %1$s;', wp_json_encode( $this->get_newsletter_options_for_gutenberg() ) ) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function optinpanda_subscription_services_options( $options ) {\r\n \r\n // mailchimp\r\n \r\n $options[] = array(\r\n 'type' => 'div',\r\n 'id' => 'opanda-mailchimp-options',\r\n 'class' => 'opanda-mail-service-options opanda-hidden',\r\n 'items' => ...
[ "0.6402801", "0.59012383", "0.5846641", "0.58366555", "0.58024496", "0.57236177", "0.56400645", "0.5636054", "0.5607285", "0.5558025", "0.5546646", "0.5521867", "0.5508108", "0.5482793", "0.54770607", "0.5475041", "0.5465809", "0.5464011", "0.5455378", "0.5450994", "0.5410267...
0.7374673
0
Test if the current user is assigned to review current post
Проверить, назначено ли текущее лицо на обзор текущего поста
function eman_can_review( $post, $user_id=false ) { // Get the post if an id was provide if ( is_numeric($post) ) { $post = get_post($post); } // If no post then nothing to review if ( ! is_object($post) ) { return false; } // Get current user if no user provided if ( ! $user_id ) $user_id = get_current_user_id(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isReviewed() {\n\t\t$this->getReviewed();\n\t}", "function eman_post_reviewable( $post )\n{\n\t// Get current post status\n\t$status = emanager_post::status($post, 'slug');\n\tif ( $status && ! in_array($status, array('void','approved','approve','draft','revise','executed')) ) {\n\t\treturn true;...
[ "0.69660896", "0.67894876", "0.6661757", "0.6377939", "0.6295337", "0.6227289", "0.61742353", "0.6137929", "0.6101535", "0.6080368", "0.6060328", "0.6013452", "0.59922814", "0.59704626", "0.5955485", "0.5945179", "0.59166694", "0.59101945", "0.58834374", "0.5868263", "0.58632...
0.72695756
0
Set API data on an object or a list of objects.
Установить данные API на объект или список объектов.
protected function setApiData($object) { return $this->get('os2display.api_data')->setApiData($object); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setApiData( array $data );", "public function setData(&$object, &$dataObject = null)\n {\n if ($dataObject === null)\n {\n $dataObject = $this->getApiRequest();\n }\n\n if (is_array($dataObject))\n {\n throw new \\Exception('array_not_su...
[ "0.72501975", "0.69637233", "0.6734153", "0.6463909", "0.6454353", "0.63867646", "0.6334855", "0.6256978", "0.6226091", "0.6226091", "0.6226091", "0.6226091", "0.6226091", "0.61937344", "0.6146082", "0.61171454", "0.61154133", "0.6111498", "0.6109041", "0.61022186", "0.608351...
0.7065436
1
Whether the property is protected.
Является ли свойство защищённым.
public function isProtected() : bool { return (bool) ($this->flags & Class_::MODIFIER_PROTECTED); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function isProtected()\n {\n return $this->protected;\n }", "public function isProtected(): bool\n {\n return $this->node->isProtected();\n }", "public function isProtected(): bool\n {\n return $this->node->isProtected();\n }", "public function isProtected() {}", "pub...
[ "0.8379755", "0.7851283", "0.7851283", "0.782681", "0.7824568", "0.7734371", "0.7584322", "0.7429981", "0.7399157", "0.7112716", "0.7024482", "0.6962618", "0.6873163", "0.6830594", "0.6767726", "0.6733903", "0.6676794", "0.666128", "0.66601443", "0.6638949", "0.66339713", "...
0.81763554
1
Whether the property is static.
Является ли свойство статическим.
public function isStatic() : bool { return (bool) ($this->flags & Class_::MODIFIER_STATIC); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getIsStatic() {\n return $this->isStatic;\n }", "public function isStatic(): bool\n {\n return $this->node->isStatic();\n }", "public function isStatic(): bool\n {\n return $this->node->isStatic();\n }", "public function isStaticTheme(): bool\n {\n retur...
[ "0.8042929", "0.7673979", "0.7673979", "0.6878788", "0.6853044", "0.66025376", "0.6580997", "0.64821136", "0.6453732", "0.64506346", "0.6399567", "0.6348692", "0.6344331", "0.63267165", "0.6313184", "0.6196214", "0.6001549", "0.59658587", "0.5951252", "0.5930301", "0.58975476...
0.8106914
0
Add a static Observer object to the class
Добавьте статический объект Observer в класс
public static function attachStaticObserver(TA_Model_Observer_Interface $o) { array_push(self::$_observers, $o); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function observers();", "function addObserver(Observer $observer_in) {\n $this->observers[] = $observer_in;\n }", "public function attach(\\SplObserver $observer) {}", "public function attach(\\SplObserver $observer) {}", "public function attach(\\SplObserver $observer) {}", "public functi...
[ "0.6833247", "0.67054194", "0.6472937", "0.6472937", "0.6472937", "0.64722073", "0.64722073", "0.64722073", "0.6366079", "0.619584", "0.61669123", "0.61455566", "0.6084249", "0.60706794", "0.5959561", "0.5883357", "0.5873043", "0.57347405", "0.5712314", "0.5692079", "0.563918...
0.7133692
0
test decide w all options: DISABLE_DECISION_EVENT, ENABLED_FLAGS_ONLY, IGNORE_USER_PROFILE_SERVICE, INCLUDE_REASONS, EXCLUDE_VARIABLES (will need to add variables)
тестировать принятие решения с учетом всех вариантов: DISABLE_DECISION_EVENT, ENABLED_FLAGS_ONLY, IGNORE_USER_PROFILE_SERVICE, INCLUDE_REASONS, EXCLUDE_VARIABLES (необходимо добавить переменные)
public function testWithVariationsOfDecideOptions(): void { $options = [ OptimizelyDecideOption::INCLUDE_REASONS, // OptimizelyDecideOption::DISABLE_DECISION_EVENT, // OptimizelyDecideOption::ENABLED_FLAGS_ONLY, // ⬅️ Disable some of your flags // Optimizel...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testWithVariationsOfDecideOptions(): void\n {\n $options = [\n OptimizelyDecideOption::INCLUDE_REASONS,\n // OptimizelyDecideOption::DISABLE_DECISION_EVENT,\n // OptimizelyDecideOption::ENABLED_FLAGS_ONLY, // ⬅️ Disable some of your flags\n /...
[ "0.7441389", "0.54870343", "0.53214437", "0.5320809", "0.5290275", "0.52787566", "0.52784187", "0.5264936", "0.52579516", "0.52253395", "0.521929", "0.51509714", "0.5128793", "0.5097066", "0.50656307", "0.5056115", "0.50507647", "0.5033698", "0.4955682", "0.4951509", "0.49355...
0.70403206
1
verify in logs that impression event of this decision was dispatched
проверьте в логах, что событие впечатления этого решения было отправлено
public function verifyLogsImpressionsEventsDispatched(): void { // 💡️ Be sure that your FLAG_KEYS array above includes A/B Test eg "product_version" $logger = new DefaultLogger(Logger::DEBUG); $localOptimizelyClient = new Optimizely(datafile: null, logger: $logger, sdkKey: SDK_KEY); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function verifyLogsImpressionsEventsDispatched(): void\n {\n // 💡️ Create a new flag with an A/B Test eg \"product_version\"\n $featureFlagKey = 'product_version';\n $logger = new DefaultLogger(Logger::DEBUG);\n $localOptimizelyClient = new Optimizely(datafile: null, logger: ...
[ "0.7668425", "0.6778277", "0.6778277", "0.6554328", "0.6554328", "0.6009658", "0.55407953", "0.55402875", "0.5365371", "0.5317638", "0.5304101", "0.5304101", "0.5301933", "0.5125348", "0.5078407", "0.5042903", "0.50420034", "0.5029171", "0.5015953", "0.5008906", "0.49963698",...
0.7510679
1
verify on Results page that impression even was created
проверьте на странице Результатов, что впечатление было создано
public function verifyResultsPageInYourProjectShowsImpressionEvent(): void { print "Go to your project's results page and verify decisions events are showing (5 min delay)"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function verifyLogsImpressionsEventsDispatched(): void\n {\n // 💡️ Create a new flag with an A/B Test eg \"product_version\"\n $featureFlagKey = 'product_version';\n $logger = new DefaultLogger(Logger::DEBUG);\n $localOptimizelyClient = new Optimizely(datafile: null, logger: ...
[ "0.6249699", "0.6068109", "0.60492015", "0.5945385", "0.56744397", "0.56206983", "0.52456534", "0.52308804", "0.51702756", "0.5156005", "0.502122", "0.49999642", "0.4976467", "0.497505", "0.49684155", "0.496407", "0.49478167", "0.49362057", "0.4935828", "0.49255764", "0.49190...
0.70249856
1
verify that decision listener contains correct information
проверьте, что слушатель решений содержит корректную информацию
public function verifyDecisionListenerWasCalled(): void { // Check that this was called during the... $onDecision = function ($type, $userId, $attributes, $decisionInfo) { print ">>> [$this->outputTag] OnDecision: type: $type, userId: $userId, attribut...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function verifyDecisionProperties(): void\n {\n $decision = $this->userContext->decide(FLAG_KEY);\n\n $this->printDecision($decision, \"Check that the following decision properties are expected for user $this->userId\");\n }", "public function verifyDecisionProperties(): void\n {\n ...
[ "0.65480614", "0.62806135", "0.5491631", "0.5322595", "0.523217", "0.5229661", "0.52165985", "0.51994663", "0.5197485", "0.51791364", "0.51481986", "0.51348776", "0.5130494", "0.51180595", "0.5099238", "0.50958705", "0.50893104", "0.50893104", "0.50893104", "0.50893104", "0.5...
0.7961968
1
verify that invalid flag key is handled correctly
проверьте, что некорректный ключ флага обрабатывается правильно
public function verifyAnInvalidFlagKeyIsHandledCorrectly(): void { $logger = new DefaultLogger(Logger::ERROR); $localOptimizelyClient = new Optimizely(datafile: null, logger: $logger, sdkKey: SDK_KEY); $userId = 'user-' . mt_rand(10, 99); $localUserContext = $localOptimizelyClient->c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testIsValidKeyWithInvalidKey() \n {\n $result = $this->fileCache->isValidKey('');\n $expected = FALSE;\n\n $this->assertEquals($expected, $result);\n }", "function check_element_validity($key,$opt){\n\n if (preg_match(STARTCHARRGX, $key) === 1 ) { //check first ...
[ "0.67659914", "0.640581", "0.6379434", "0.63693994", "0.6341779", "0.6326382", "0.6140762", "0.6140514", "0.6055783", "0.59930325", "0.5917794", "0.59130347", "0.5889435", "0.5886992", "0.5781108", "0.57391214", "0.5704403", "0.5701161", "0.5697768", "0.5682411", "0.56671363"...
0.7583321
1
Handle multi_entry_category_update. There is no hook in EE so we only trigger this if the $_POST is correct. Thanks to Mark Croxton for contributing this.
Обработка multi_entry_category_update. В EE нет хука, поэтому мы запускаем это только в случае, если $_POST корректен. Спасибо Mark Croxton за вклад в этот функционал.
public function multi_entry_category_update() { // Does the user have permission? if ( !ee()->publisher_helper->allowed_group('can_access_content')) { show_error(lang('unauthorized_access')); } $entries = ee()->input->post('entry_ids', TRUE); $cat_ids ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function multi_entry_category_update()\n\t{\n\t\tif ( ! $this->cp->allowed_group('can_access_content'))\n\t\t{\n\t\t\tshow_error($this->lang->line('unauthorized_access'));\n\t\t}\n\n\t\tif ($this->input->get_post('entry_ids') === FALSE OR $this->input->get_post('type') === FALSE)\n\t\t{\n\t\t\treturn $this->dsp->n...
[ "0.8170923", "0.6424623", "0.6291664", "0.62079436", "0.61742085", "0.6161012", "0.6133668", "0.61207837", "0.60949314", "0.6066736", "0.605513", "0.6037569", "0.5997986", "0.59850764", "0.5982726", "0.5980113", "0.5979108", "0.59551746", "0.5931074", "0.5929418", "0.589933",...
0.7950188
1
Grab specific category group, and optionally return only the group ID
Захват конкретной группы категорий, и необязательно вернуть только идентификатор группы
public function get_group($group_id = FALSE, $return_id = FALSE) { // If no category group was specified, get the first one found. // This is used in the CP Category management landing page. if (is_numeric($group_id)) { $qry = ee()->db->where('group_id', $group_id) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_category_group()\n\t{\n\t\t// get variables\n\t\t$vars = $this->_get_vars('get', array('group_id'));\n\t\t\n\t\t// start hook\n\t\t$vars = $this->_hook('get_category_group_start', $vars);\n\n\t\t// load channel data library\n\t\t$this->_load_library('channel_data');\n\n\t\t$data = $this->EE->channel_d...
[ "0.76983947", "0.7062646", "0.70292354", "0.695643", "0.66145825", "0.65348166", "0.64825004", "0.64241004", "0.63876474", "0.63750595", "0.63022715", "0.6279023", "0.62195444", "0.6212036", "0.6205768", "0.6111761", "0.6104808", "0.60837454", "0.6052708", "0.6052708", "0.605...
0.7079017
1
Grab all category groups for the current site
Получить все группы категорий для текущего сайта
public function get_groups() { $qry = ee()->db->where('site_id', ee()->publisher_lib->site_id) ->order_by('group_name', 'asc') ->get('category_groups'); $groups = array(); if ($qry->num_rows()) { foreach ($qry->result() as $...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_categories_by_group()\n\t{\n\t\t// get variables\n\t\t$vars = $this->_get_vars('get', array('group_id'));\n\n\t\t// start hook\n\t\t$vars = $this->_hook('get_categories_by_group_start', $vars);\n\n\t\t// load channel data library\n\t\t$this->_load_library('channel_data');\n\n\t\t$data = $this->EE->cha...
[ "0.7119901", "0.6809501", "0.6809501", "0.67347866", "0.67156607", "0.666446", "0.66382635", "0.65982777", "0.6537011", "0.6509248", "0.64859027", "0.64859027", "0.634545", "0.6305408", "0.6305408", "0.6297586", "0.6297586", "0.62926996", "0.625669", "0.6234821", "0.62307227"...
0.71832263
0
MCP ONLY Get all the translations for a category, and optionally return only a specific lang_id.
MCP ТОЛЬКО получите все переводы для категории и, по желанию, верните только конкретный lang_id.
public function get_translations($cat_id = FALSE, $group_id = FALSE, $status = PUBLISHER_STATUS_OPEN, $lang_id = FALSE) { if ( !$cat_id) { show_error('$cat_id is required. publisher_category.php->get_translations()'); } if ( !$group_id) { show_error('...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAllTranslationByLanguage();", "public function getLanguages($category_id = NULL, $language_name = NULL)\n {\n global $conn;\n if (!isset($conn))\n {\n $this->connect();\n }\n\n if (is_null($language_name) && is_null($category_id))\n {\n ...
[ "0.687502", "0.6645714", "0.65657455", "0.6527444", "0.63609296", "0.60629493", "0.6013262", "0.5933166", "0.5875027", "0.57991856", "0.57625335", "0.575892", "0.57574594", "0.5754433", "0.5742737", "0.57411486", "0.57222575", "0.5719788", "0.5713194", "0.57118034", "0.570499...
0.71551293
0
Get first category group
Получить первую группу категорий
public function get_first_group() { return ee()->db->select('MIN(group_id) AS group_id') ->get('category_groups') ->row('group_id'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getFirstCategory() {\r\n\t\treturn $this->newsItem->getFirstCategory()->getTitle();\r\n\t}", "private function _getFirstCategoryLevel()\n\t{\n\t\tif (!$this->_firstCategoryLevel) {\n\t\t\t$this->_firstCategoryLevel = intval($this->getVar('category_first_level', 1));\n\t\t}\n\t\treturn $this->_...
[ "0.6992908", "0.65998644", "0.6392275", "0.6311134", "0.62993157", "0.6292467", "0.6182475", "0.6125688", "0.60287684", "0.60007143", "0.5900196", "0.58980006", "0.5866777", "0.5863748", "0.5858644", "0.58394516", "0.58335835", "0.58314127", "0.58232695", "0.57744443", "0.576...
0.8117068
0
Grab all the custom fields for a category
Получить все пользовательские поля для категории
public function get_custom_fields($group_id = FALSE) { // Default fields $fields = array( // Return the Image field first so we can float it in the view. 'cat_image' => (object) array( 'field_name' => 'cat_image', 'field_label' => 'Image' ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAllCustomFields()\n\t{\n\t\t$fields = $this->CustomFields->indexBy('field_name');\n\n\t\t$cache_key = \"ChannelFieldGroups/{$this->getId()}/\";\n\t\tif (($field_groups = ee()->session->cache(__CLASS__, $cache_key, FALSE)) == FALSE)\n\t\t{\n\t\t\t$field_groups = $this->FieldGroups;\n\t\t}\n\n\t\t...
[ "0.68171626", "0.66885823", "0.6568583", "0.6500657", "0.64871895", "0.6476785", "0.643758", "0.6403181", "0.6403181", "0.6352187", "0.6352187", "0.63201135", "0.6286337", "0.62459534", "0.6243046", "0.6232388", "0.6188691", "0.61799073", "0.6174262", "0.6167261", "0.6121792"...
0.70938337
0
Retorna o hash de $str de acordo com o algortimo definido na configura??o
Возвращает хэш строки $str в соответствии с алгоритмом, определенным в настройках
public function _hash($str) { switch ($this->config['algoritmo_criptografia']) { case 'sha1': return ($str == '') ? '' : sha1($str); break; case 'crypt': return crypt($str); break; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function hash($str)\n\t{\n\t\treturn hash($this->config['hash_method'], $str);\n\t}", "public function hash($str)\n\t{\n\t\treturn hash($this->_config['hash_method'], $str);\n\t}", "function getHash($str)\n{\n\treturn hash('sha256', $str);\n}", "public function hash($str)\n\t{\n\t\t// on some serve...
[ "0.71996737", "0.7061308", "0.6919904", "0.67925525", "0.6655747", "0.65481097", "0.6514853", "0.64912003", "0.6231753", "0.62079966", "0.6176047", "0.61236596", "0.6118815", "0.60848767", "0.6081343", "0.6071801", "0.6018405", "0.59719974", "0.59462076", "0.59116787", "0.590...
0.7244635
0
Informa se as restri??es definidas possuem alguma dos prefixos
Уведомлять о том, что определенные ограничения имеют один из этих префиксов
public function restricoes_possuem_rotas_prefixadas() { $routes = Configure::read('Routing.prefixes'); foreach ($this->restricoes as $restriction) { if (in_array($restriction, $routes)) { return true; } } return false; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getPrefixes();", "public function getPrefix() {}", "abstract public function getPrefix(): string;", "public function getPrefix();", "public function getPrefix();", "function rest_get_url_prefix()\n {\n }", "function getPrefixes() {\n return array(\"from\" => \"froms\", \"subject\"...
[ "0.70628846", "0.7056692", "0.69820374", "0.69389015", "0.69389015", "0.69381607", "0.6771489", "0.67323786", "0.67189294", "0.66852945", "0.664125", "0.65949154", "0.65881336", "0.6540308", "0.65234166", "0.6521488", "0.6470314", "0.64640635", "0.6428032", "0.64152956", "0.6...
0.7110509
0
Get key type (applies for maps).
Получить тип ключа (применяется для карт).
public function getKeyType() { return $this->keyType; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_key_type() {\n return 0;\n }", "public function getKeyType();", "public function keyType(): ?string;", "public function getKeyType(): string\n {\n return 'string';\n }", "public function getKeyType()\n {\n return 'string';\n }", "public function getKeyTyp...
[ "0.81791925", "0.7667091", "0.7639854", "0.71320474", "0.6989893", "0.6989893", "0.6989893", "0.67017", "0.6682409", "0.66455775", "0.6620695", "0.65567243", "0.65567243", "0.65567243", "0.65567243", "0.65567243", "0.65567243", "0.65567243", "0.65567243", "0.65567243", "0.655...
0.81701165
1
User Account Info Page [logged in?]
Страница информации о пользователе [авторизован?]]
public function info() { $data = array(); if ($this->user->is_logged_in()) { $this->user->get_user($this->user->getMyId()); $data['user'] = $this->user; } $this->load->view('account/account_info', $data); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function loggedin() {\n $this->checkAccess('user',false,false);\n\n $template = new Template;\n $user = new User($this->db);\n\n //get user details\n $user->getByEmail($this->f3->get('SESSION.email'));\n $this->f3->set('user', $user);\n\n //get user followers\n ...
[ "0.73454934", "0.71608096", "0.7129549", "0.71237254", "0.69842905", "0.696578", "0.6953128", "0.6926733", "0.687448", "0.67931473", "0.675132", "0.6699616", "0.6661584", "0.6658045", "0.6650993", "0.66439354", "0.6643903", "0.66413444", "0.66325027", "0.66321415", "0.6631127...
0.78777677
0
Displays the current progress and Steps done/ to be done.
Показывает текущий прогресс и выполненные/оставшиеся шаги.
public function progress() { $data = array(); if (!$this->user->is_logged_in()) { redirect("/account/info"); } $this->user->get_user($this->user->getMyId()); $data['user'] = $this->user; $data['current'] = str_replace('overview', 'play', $this->user->get_next...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function showProgress()\n {\n $allQuestions = $this->questionRepository->list(['id', 'question']);\n $this->transformProgressList($allQuestions);\n\n $this->console->info( ' ************ Your progress is ************');\n\n foreach ($this->progress as $option) {\n ...
[ "0.75575596", "0.7044762", "0.6753969", "0.64469326", "0.64225984", "0.640198", "0.63812846", "0.6318462", "0.6296183", "0.6282982", "0.62557954", "0.62289554", "0.61976266", "0.61645347", "0.61196804", "0.61053854", "0.60718536", "0.60505325", "0.6045323", "0.60347486", "0.5...
0.70732975
1
Get array of Labels.
Получить массив меток.
public function getLabels(): array { return $this->labels; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getLabels(): array;", "public function labels()\n {\n return array();\n }", "public function labels(): array\n {\n return [];\n }", "public function getLabels()\n {\n $headers = $this->getDefaultHeaders();\n $response = $this->client->request...
[ "0.8889515", "0.8322369", "0.8316176", "0.82619953", "0.80908847", "0.80908847", "0.80908847", "0.7871494", "0.7871494", "0.7871494", "0.7871494", "0.7871494", "0.7871494", "0.7871494", "0.7871494", "0.7871494", "0.7871494", "0.7871494", "0.7871494", "0.7871494", "0.7871494",...
0.8456396
1
Check if a field has a replacement pattern.
Проверьте, есть ли в поле замещающий шаблон.
public function hasFieldReplacement(string $field): bool { return isset($this->field_replacements[$field]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function hasPregReplace() {\n\t\treturn isset($this->replaces);\n\t}", "public static function isFieldValid(Field $field): bool\n {\n return $field instanceof PatternField;\n }", "public function hasReplacement( string $name ) : bool;", "public function canResolveField($field)\n {\n ...
[ "0.62857735", "0.5981456", "0.58648974", "0.58528006", "0.55580354", "0.54394835", "0.5431845", "0.5411922", "0.5316236", "0.52655107", "0.52470887", "0.5219204", "0.52190346", "0.52129245", "0.5200667", "0.52000356", "0.5194565", "0.5190763", "0.51823705", "0.51764005", "0.5...
0.7110213
0
Get array of Field Replacements.
Получить массив замен полей.
public function getFieldReplacements(): array { return $this->field_replacements; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getReplacements()\n {\n if (isset($this->raw->replacements)) {\n return (array) $this->raw->replacements;\n }\n\n return array();\n }", "public function getPatternedFields(): array;", "public function getReplaces(): array {\n return [];\n }", "public ...
[ "0.67094177", "0.6581179", "0.632138", "0.62687904", "0.61752635", "0.6167777", "0.61544096", "0.6133821", "0.60789096", "0.6060479", "0.60374373", "0.603728", "0.5987658", "0.5983393", "0.5976312", "0.5976312", "0.5957291", "0.5942206", "0.5910858", "0.5910759", "0.5908768",...
0.8786153
0
Make a view and extend $extends in $section, $blade_data is the data array to pass to View::make().
Создайте представление и расширьте $extends в $section, $blade_data — это массив данных, который нужно передать в View::make().
public function makeView(array $blade_data = [], string $extends = '', string $section = ''): \Illuminate\View\View { $blade_data['Table'] = $this; $blade_data['extends'] = $extends; $blade_data['section'] = $section; $this->Theme->prepareTableView($this); $template = ($ext...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function makeView($blade_data, $extends='', $section=''){\n\t\t$blade_data['Form'] = $this;\n\t\t$blade_data['extends'] = $extends;\n\t\t$blade_data['section'] = $section;\n\t\t\n\t\treturn View::make('form-maker::form', $blade_data);\n\t}", "public function make($view, $data = array());", "private stat...
[ "0.7832069", "0.5986022", "0.59177226", "0.57994395", "0.5615787", "0.55639905", "0.55493045", "0.55291384", "0.5512683", "0.546915", "0.5448926", "0.54399824", "0.5438336", "0.5435707", "0.5410121", "0.5407713", "0.5380427", "0.5364797", "0.5354264", "0.5347256", "0.5334332"...
0.74060684
1
/ |========================================================== | Return defensive methods |========================================================== |
|========================================================== | Возвращаемые защитные методы |========================================================== |
public function getdefensiveMethods() { $queryString="SELECT * FROM corruption_defensive_methods ORDER BY value ASC"; $query = $this->db->query($queryString); $result=$query->result_array(); return $result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function method_no_specs() {}", "public function getOffensiveMethods()\n {\n $queryString=\"SELECT *\n FROM corruption_offensive_methods\n ORDER BY value ASC\";\n $query = $this->db->query($queryString);\n $result=$query->result_array();\n\n ...
[ "0.6971257", "0.66801876", "0.6151427", "0.59392697", "0.59383243", "0.58445126", "0.57827723", "0.5713528", "0.5693863", "0.56596094", "0.5632309", "0.5613476", "0.55612034", "0.5524399", "0.5521699", "0.5521699", "0.5521699", "0.5495727", "0.5495727", "0.5479577", "0.547834...
0.7193832
0
Clear filter of visited Resources
Очистка фильтра по посещенным ресурсам
public function clearVisited() { $this->getFilter()->clear($this->getProject() . 'visited'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function removeAllFilters();", "public function resetFilters() {\n $this->filters = array();\n }", "public function removeFilters();", "public function reset()\n\t{\n\t\tupdate_option($this->filterName, array());\n\t}", "public function reset() : void\n {\n\n // load the filters ...
[ "0.71913314", "0.71107495", "0.6940135", "0.6519467", "0.6508074", "0.6449197", "0.64328986", "0.638552", "0.63595414", "0.6312196", "0.62840015", "0.62813926", "0.6274459", "0.6237364", "0.62206644", "0.6212543", "0.616541", "0.6156031", "0.6141826", "0.6118417", "0.6109679"...
0.77535236
0
Clear filter of scheduled Resources
Очистка фильтра запланированных ресурсов
public function clearScheduled() { $this->getFilter()->clear($this->getProject() . 'scheduled'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function removeFilters();", "public function resetFilters()\n {\n unset($this->options['AmazonOrderId']);\n unset($this->options['FinancialEventGroupId']);\n $this->resetTimeLimits();\n }", "public function removeAllFilters();", "public function resetFilters() {\n $th...
[ "0.6856936", "0.67182255", "0.6621482", "0.6518339", "0.6444722", "0.63463163", "0.62133527", "0.6200486", "0.6138635", "0.60996115", "0.602172", "0.59422934", "0.59174", "0.59133786", "0.582702", "0.5820791", "0.57783026", "0.5776156", "0.57720166", "0.57356787", "0.57250774...
0.80476165
0
Register all rest API routes
Зарегистрировать все маршруты REST API
public static function register_rest_routes() { foreach (static::$apis as $api) { $api->register_rest_route(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function register_routes() {\n $namespace = 'junglehunter/v1';\n register_rest_route(\n $namespace,\n '/all',\n array(\n 'methods' => 'GET',\n 'callback' => array($this, 'junglehunter_get_all')\n )\n );\n }", ...
[ "0.84524643", "0.8186029", "0.81378144", "0.8137637", "0.81153286", "0.80908096", "0.8053311", "0.80347514", "0.79807097", "0.7979295", "0.79330146", "0.79285026", "0.79153883", "0.7875627", "0.78228325", "0.77830195", "0.7780726", "0.7765854", "0.77462834", "0.77395916", "0....
0.9180096
0
Create the migration file.
Создайте файл миграции.
private function create_migration(){ $file = $this->path('migrations') . date('Y_m_d_His') . '_create_slender_table.php'; $this->write_file($file, static::$migrationCode); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function createMigrationFile()\n {\n $fieldObjects = $this->getFields();\n\n if (@$fieldObjects['id']) {\n unset($fieldObjects['id']);\n }\n\n if (@$fieldObjects['created_at'] && @$fieldObjects['updated_at']) {\n $this->addGenericCall((new Base())->tim...
[ "0.8154367", "0.78457505", "0.7308281", "0.73058426", "0.7291852", "0.7275333", "0.7198678", "0.71922076", "0.7006299", "0.69888926", "0.6978014", "0.6830445", "0.66938156", "0.66419494", "0.6626336", "0.6571437", "0.6570803", "0.6546038", "0.6533373", "0.6480715", "0.6476664...
0.8150878
1
Console output sub header message.
Подзаголовок сообщения вывода в консоль.
private function _subheader($text){ echo '[-] ' . $text . PHP_EOL; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function subheader($title)\n\t{\n\t\tstatic::stdout\n\t\t\t(\n\t\t\t\t' === '.$title.' '.\\str_repeat('=', \n\t\t\t\tstatic::$screenwidth-6-\\strlen($title)).PHP_EOL.PHP_EOL\n\t\t\t);\n\t}", "private function printHeader()\n {\n $this->printer->println('Test-Flight %s', Constants::VERSION...
[ "0.6983904", "0.69063276", "0.678193", "0.67444533", "0.6739505", "0.67330635", "0.66642505", "0.6622341", "0.6617553", "0.6534072", "0.64677656", "0.64366525", "0.6414801", "0.63901216", "0.6290614", "0.6288626", "0.62877136", "0.6283677", "0.627967", "0.62146926", "0.619945...
0.7573624
0
Console output warning message. (You don't want to see these!)
Предупреждающее сообщение вывода в консоль. (Вы не хотите видеть эти!)
private function _warning($text){ echo '[# WARNING] ' . $text . PHP_EOL; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function warning()\n {\n return $this->warn(\"You have no commands to run !\");\n }", "public static function warning()\n {\n static::returnCode(static::CODE_WARNING);\n }", "public function showWarnings(): void\n {\n $this->executeLog('show warnings');\n }", "functio...
[ "0.7784434", "0.77052283", "0.7610558", "0.7465206", "0.7375183", "0.732393", "0.7212717", "0.7126498", "0.70685446", "0.7015538", "0.69874", "0.6972942", "0.6902763", "0.6889078", "0.6865816", "0.6825296", "0.6824176", "0.67983", "0.6726387", "0.67246574", "0.67184603", "0...
0.77359724
1
Parses yaml file with caching. Uses if available
Парсит файл yaml с кэшированием. Использует, если доступно
public static function parse ( $file ) { $file_path = XT_PROJECT_DIR .'/'. $file; $cached_path = XT_PROJECT_DIR .'/cache/'. $file; // Check if YAML file was updated since the last caching if ( !file_exists ( $cached_path ) || filemtime ( $file_path ) > filemtime ( $c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function load()\n {\n if ($this->sites) {\n return;\n }\n $data = Yaml::parse(file_get_contents($this->file));\n $this->sites = $data['sites'];\n }", "protected function pull()\n {\n $this->definition = array();\n \n if (file_exists(\\s...
[ "0.663372", "0.6606961", "0.65717536", "0.6263219", "0.6199485", "0.6124811", "0.6055848", "0.593784", "0.5917581", "0.5903929", "0.5881257", "0.58606184", "0.58503187", "0.58020586", "0.57767034", "0.5773183", "0.5748266", "0.57258004", "0.5694039", "0.5685027", "0.5669432",...
0.7357435
0
Save an entity to repository.
Сохранить сущность в репозиторий.
public function save($entity);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function saveEntity($entity)\n\t{\n\t\t$entityManager = $this->getDoctrine()->getManager();\n\t $entityManager->persist($entity);\n\t $entityManager->flush();\n\t}", "protected function saveEntity($entity)\n {\n $this->om->persist($entity);\n $this->om->flush($entity);\n }", "p...
[ "0.7579266", "0.73962927", "0.727839", "0.7157777", "0.71353596", "0.7115545", "0.70606893", "0.70390826", "0.70053864", "0.6863863", "0.6776856", "0.67650044", "0.673296", "0.6628384", "0.65823925", "0.6521103", "0.65112805", "0.6454482", "0.6411596", "0.640052", "0.63952583...
0.7868986
1
return field from the author
вернуть поле из автора
function hc_get_author_field($field , $gravatarSize = ''){ $info = hc_get_the_author($gravatarSize, $field); $author = $info[0]; $field = $author->$field; return $field; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAuthor() {}", "public function getAuthor();", "public function getAuthor();", "public function getAuthor();", "public function getAuthor() \r\n { \r\n return $this->_author; \r\n }", "public function getAuthor(): string\n {\n return $this->_author;\n ...
[ "0.7781827", "0.77806413", "0.77806413", "0.77806413", "0.7651809", "0.7600425", "0.75850916", "0.75850916", "0.75850916", "0.75850916", "0.75850916", "0.75850916", "0.75850916", "0.75850916", "0.7561902", "0.75602776", "0.75276774", "0.7515637", "0.7515637", "0.7515637", "0....
0.8280632
0
display field from the author
поле отображения от автора
function hc_author_field($field , $gravatarSize = ''){ $info = hc_get_author_field($field , $gravatarSize); echo $info; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAuthorname() {}", "public function getAuthor() {}", "public function getAuthor();", "public function getAuthor();", "public function getAuthor();", "public function get_author()\n\t{\n\t\treturn '';\n\t}", "function hc_get_author_field($field , $gravatarSize = ''){\n\t\t$info = hc_ge...
[ "0.76121664", "0.74682343", "0.7414243", "0.7414243", "0.7414243", "0.7344687", "0.72971785", "0.7285783", "0.7276654", "0.7276654", "0.7262898", "0.7222383", "0.718863", "0.718863", "0.718863", "0.718863", "0.718863", "0.718863", "0.71846473", "0.7177265", "0.71614164", "0...
0.77923477
0
Display field name for a field
Отображать имя поля для поля
function hc_field_name($field){ echo hc_get_field_name($field); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_field_name();", "public function get_field_label() {\n\t\treturn $this->get_field_attr( 'name' );\n\t}", "public function getFieldName() {}", "public function name($field) {\n\t\treturn $field;\n\t}", "public function getFieldName($field) {\n return $field['name'];\n }", "pu...
[ "0.85888934", "0.8006008", "0.7874715", "0.7757387", "0.7756327", "0.7720972", "0.7611952", "0.7594246", "0.75942224", "0.75537986", "0.7534981", "0.7510652", "0.74924153", "0.7444177", "0.7436201", "0.7436201", "0.7436201", "0.73844594", "0.73829764", "0.7267953", "0.7223586...
0.815123
1
Get the object to request.
Получите объект для запроса.
private function getObject() { return $this->object; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getObject() {}", "public function getObject() {}", "public function getObject();", "public function getObject();", "public function getObject() {\n return $this->object;\n }", "public function getObject(): object;", "public function getObject()\n {\n return $this->object;\...
[ "0.73799545", "0.73799545", "0.73257434", "0.73257434", "0.719861", "0.7152944", "0.71492344", "0.71492344", "0.7092992", "0.6953768", "0.6926222", "0.69201267", "0.68532425", "0.68305796", "0.67796487", "0.6763178", "0.6754883", "0.67487836", "0.674861", "0.6742828", "0.6742...
0.7435714
0
Get _function variable. This is to set the function to call.
Получить переменную _function. Это для установки вызываемой функции.
private function getFuction() { return $this->_function; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFunction()\n {\n return $this->function;\n }", "public function get_function() {\n\t\tif ( ! $this->is_function_set ) {\n\t\t\t$this->set_function( $this->derive_function() );\n\t\t}\n\t\treturn $this->function;\n\t}", "private function setFuction($function) {\n $this->_f...
[ "0.7382957", "0.72181535", "0.7177902", "0.6936956", "0.6734655", "0.6726698", "0.6678767", "0.6674748", "0.6649321", "0.6415708", "0.64097846", "0.60925364", "0.6068881", "0.6007994", "0.5961791", "0.5899766", "0.580004", "0.57506675", "0.5744072", "0.5679977", "0.5663876", ...
0.7324036
1
Set _function variable. This is to set the function to call.
Установить переменную _function. Это для установки функции, которую вызывать.
private function setFuction($function) { $this->_function = $function; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function set_function( $function ) {\n\t\t$this->function = $function;\n\t\t$this->is_function_set = true;\n\t}", "function setFunction(string $function)\n {\n $this->function = $function;\n return $this;\n }", "public function setFunction($function)\n {\n $this->...
[ "0.82132185", "0.73930293", "0.71710855", "0.71512157", "0.6802688", "0.6759857", "0.673544", "0.65446764", "0.64444196", "0.64161927", "0.63199854", "0.6224588", "0.620609", "0.61369747", "0.6000557", "0.59729016", "0.59697825", "0.59564114", "0.5947657", "0.58996874", "0.58...
0.82827353
0
Send query by curl.
Отправить запрос с помощью curl.
private function sendQueryByCurl() { $this->curl = curl_init(); // JSON data request $jsonData = $this->getJsonData(); // some params $urlParams = $this->getParamsUrlFormat(); $this->setCurlOpts($this->curl, $jsonData, $urlParams); $this->setResult(curl_exec($t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function sendCurl() {\n\t\t$this->curlResponse = $this->curl->exec();\n\t}", "public function execQuery()\n{\n\n $url = $this->getURL();\n // create curl resource \n $ch = curl_init(); \n\n //return the transfer as a string \n curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); \...
[ "0.6474419", "0.6389883", "0.62338114", "0.61014014", "0.6081204", "0.59998935", "0.59769356", "0.5898234", "0.58894", "0.58357185", "0.5740103", "0.5735197", "0.56887364", "0.5680275", "0.5678873", "0.56678957", "0.56444895", "0.5614562", "0.5563711", "0.54918087", "0.548816...
0.82177544
0
ParseMsg() End / RecvCancelMsg Parsing
ParseMsg() End / RecvCancelMsg Parsing
function ParseCancelMsg() { $this->log->WriteLog( INFO, "Parse Cancel Msg Start" ); if( strcmp( $this->REQUEST["AuthTy"], "card" ) == 0 ) { if( strcmp( $this->REQUEST["SubTy"], "isp" ) == 0 ) { /* [1-1] 안전결제ISP 처리 */ $this->RESULT["rStoreId"] = $this->RecvValArray[0]; $this->RESULT["rApp...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function readMessageEnd();", "public static function decomposeMsg (string $msg) : array {\n\t\tif (($pos = strpos ($msg, ':')) === false || ($command = \\DataLib::isInt (substr ($msg, 0, $pos))) === false || !Command::isCommand ($command)) {\n\t\t\treturn [ Command::INVALID ];\n\t\t}\n\t\treturn ...
[ "0.62496626", "0.5553664", "0.55003005", "0.5401865", "0.53614014", "0.53351736", "0.52289736", "0.51861334", "0.51696557", "0.51074755", "0.5017843", "0.50105345", "0.50105345", "0.50105345", "0.50105345", "0.4986406", "0.49645597", "0.49479386", "0.49140695", "0.49042082", ...
0.74872094
0
Get name of column
Получить имя столбца
public function getName() { return $this['column_name']; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected static function column_name(): mixed\n\t{\n\t\treturn self::$query->column_name;\n\t}", "public function getColumnName();", "public function getNameColumn()\n {\n return $this->nameColumn;\n }", "public function getColumn(): string\n {\n return $this->column;\n }", "publ...
[ "0.87750936", "0.8556205", "0.85281396", "0.84585154", "0.84172577", "0.84102434", "0.8409938", "0.8364791", "0.8170897", "0.7926157", "0.7836915", "0.7834179", "0.77914774", "0.77914774", "0.7765352", "0.7706178", "0.765601", "0.75924397", "0.7591639", "0.758055", "0.7504396...
0.85707176
1
Split a 64bit integer to two 32bit integers.
Разделить 64-битное целое число на два 32-битных целых числа.
protected function int64Split($value) { // gmp if (is_resource($value) || $value instanceof \GMP) { $hex = str_pad(gmp_strval($value, 16), 16, '0', STR_PAD_LEFT); $high = $this->gmpConvert(substr($hex, 0, 8), 16, 10); $low = $this->gmpConvert(substr(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function snmp_dewrap32bit($value)\n{\n if (is_numeric($value) && $value < 0)\n {\n return ($value + 4294967296);\n } else {\n return $value;\n }\n}", "public static function leftShift32($x, $y) {\n $n = $x << $y;\n if (PHP_INT_MAX != 0x80000000) {\n $n = -(~($n & 0x00000000FFFFFFFF) + 1);\...
[ "0.6214209", "0.6066999", "0.5998854", "0.5849224", "0.58448803", "0.5796384", "0.57775843", "0.5649391", "0.5552255", "0.55408096", "0.5500989", "0.5476111", "0.5473092", "0.538279", "0.538074", "0.5332792", "0.52913016", "0.5266705", "0.5251856", "0.52393824", "0.51899266",...
0.7171849
0
Adds Zip64 end of central directory record.
Добавляет запись Zip64 конца центрального каталога.
private function addCdrEofZip64() { $num = count($this->files); list($num_low, $num_high) = $this->int64Split($num); list($cdr_len_low, $cdr_len_high) = $this->int64Split($this->cdr_len); list($cdr_ofs_low, $cdr_ofs_high) = $this->int64Split($this->cdr_ofs); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function addCdrEofLocatorZip64()\n {\n list($cdr_ofs_low, $cdr_ofs_high) = $this->int64Split($this->cdr_len + $this->cdr_ofs);\n \n $fields = [ // (from V,F of APPNOTE.TXT)\n ['V', 0x07064b50], // zip64 end of central dir locator signature\n ...
[ "0.6524506", "0.62684804", "0.60399675", "0.60191613", "0.601667", "0.5660585", "0.5282199", "0.51426977", "0.5123915", "0.5112667", "0.4920884", "0.49105012", "0.48958436", "0.4831791", "0.48160124", "0.4786769", "0.47780445", "0.4774469", "0.4756552", "0.47549218", "0.47482...
0.7426264
0
Constructor method for ArrayOfBurglaryExcludedDiscountFactor
Конструкторский метод для ArrayOfBurglaryExcludedDiscountFactor
public function __construct(array $burglaryExcludedDiscountFactor = array()) { $this ->setBurglaryExcludedDiscountFactor($burglaryExcludedDiscountFactor); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setBurglaryExcludedDiscountFactor(array $burglaryExcludedDiscountFactor = array())\n {\n foreach ($burglaryExcludedDiscountFactor as $arrayOfBurglaryExcludedDiscountFactorBurglaryExcludedDiscountFactorItem) {\n // validation for constraint: itemType\n if (!$arrayOfBu...
[ "0.6607878", "0.6542491", "0.64514095", "0.5913188", "0.57401437", "0.56704056", "0.56264037", "0.5550084", "0.5540131", "0.5419293", "0.53886443", "0.53261036", "0.5248413", "0.52325684", "0.52010983", "0.51948416", "0.5170309", "0.5155475", "0.5146486", "0.5142307", "0.5132...
0.818553
0
Get BurglaryExcludedDiscountFactor value An additional test has been added (isset) before returning the property value as this property may have been unset before, due to the fact that this property is removable from the request (nillable=true+minOccurs=0)
Получить значение BurglaryExcludedDiscountFactor. Дополнительный тест был добавлен (isset) перед возвращением значения свойства, так как это свойство может быть unset'ed ранее, поскольку это свойство может быть удалено из запроса (nillable=true+minOccurs=0)
public function getBurglaryExcludedDiscountFactor() { return isset($this->BurglaryExcludedDiscountFactor) ? $this->BurglaryExcludedDiscountFactor : null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getNoDiscount() {\n return $this->item->getNoDiscount();\n }", "public function getAttributeName()\n {\n return 'BurglaryExcludedDiscountFactor';\n }", "public function getDiscountConditions()\n {\n return isset($this->DiscountConditions) ? $this->DiscountCondit...
[ "0.6445477", "0.6307113", "0.625749", "0.62265867", "0.6158091", "0.6082559", "0.601071", "0.5984825", "0.59839815", "0.5975843", "0.5974094", "0.5954664", "0.5940398", "0.5940398", "0.5940398", "0.5940398", "0.5940398", "0.5940398", "0.5914922", "0.5910009", "0.5782612", "...
0.8349522
0
Add item to BurglaryExcludedDiscountFactor value
Добавить элемент в значение BurglaryExcludedDiscountFactor
public function addToBurglaryExcludedDiscountFactor(\Mu4ddi3\Compensa\Webservice\StructType\BurglaryExcludedDiscountFactor $item) { // validation for constraint: itemType if (!$item instanceof \Mu4ddi3\Compensa\Webservice\StructType\BurglaryExcludedDiscountFactor) { throw new \InvalidArg...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setBurglaryExcludedDiscountFactor(array $burglaryExcludedDiscountFactor = array())\n {\n foreach ($burglaryExcludedDiscountFactor as $arrayOfBurglaryExcludedDiscountFactorBurglaryExcludedDiscountFactorItem) {\n // validation for constraint: itemType\n if (!$arrayOfBu...
[ "0.6371696", "0.63480055", "0.62901795", "0.60273093", "0.6026336", "0.5838916", "0.5708942", "0.5593888", "0.55592257", "0.55023235", "0.54956406", "0.54891443", "0.5449712", "0.54480624", "0.5423988", "0.53848", "0.5372779", "0.53662604", "0.53316665", "0.5255153", "0.52466...
0.72386545
0
Tests an action group with mismatching args.
Проверяет действие группы с несоответствующими аргументами.
public function testExceptionOnMissingActions() { $actionGroupUnderTest = (new ActionGroupObjectBuilder()) ->withArguments([new ArgumentObject('arg1', null, 'entity')]) ->build(); $this->expectException(TestReferenceException::class); $this->expectExceptionMessageReg...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testExceptionOnMissingArguments()\n {\n $actionGroupUnderTest = (new ActionGroupObjectBuilder())\n ->withArguments([new ArgumentObject('arg1', null, 'entity')])\n ->build();\n\n $this->expectException(TestReferenceException::class);\n $this->expectExcep...
[ "0.6711915", "0.5943424", "0.5873942", "0.58558935", "0.58453363", "0.56876296", "0.56719136", "0.56472015", "0.5643773", "0.5631943", "0.55989444", "0.5559942", "0.5527703", "0.5479974", "0.5437495", "0.5410346", "0.5408815", "0.5405819", "0.54036486", "0.53920025", "0.53726...
0.7050148
0
Tests the stepKey replacement with "stepKey + invocationKey" process filter Specific to actions that make it past a "require stepKey replacement" filter
Тестирует замену stepKey с помощью процесса фильтра "stepKey + invocationKey" Специфичен для действий, прошедших фильтр "требуется замена stepKey"
public function testStepKeyReplacementFilteredIn() { $createStepKey = "createDataStepKey"; $updateStepKey = "updateDataStepKey"; $actionGroupUnderTest = (new ActionGroupObjectBuilder()) ->withActionObjects([ new ActionObject( $updateStepKey, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testStepKeyReplacementFilteredOut()\n {\n $clickStepKey = \"clickStepKey\";\n $fillFieldStepKey = \"fillFieldStepKey\";\n $clickAction = \"click\";\n $fillFieldAction =\"fillField\";\n\n $actionGroupUnderTest = (new ActionGroupObjectBuilder())\n ->wi...
[ "0.72146386", "0.5390567", "0.5371273", "0.5311302", "0.53003556", "0.5131763", "0.49525613", "0.48656347", "0.4828903", "0.47970685", "0.4785259", "0.47845724", "0.4775462", "0.47712243", "0.47585717", "0.47413877", "0.4722941", "0.47062543", "0.46786904", "0.46491084", "0.4...
0.7201753
1
Tests the stepKey replacement with "stepKey + invocationKey" process filter Specific to actions that make are removed by a "require stepKey replacement" filter
Проверяет замену stepKey на процесс фильтра "stepKey + invocationKey" Специфичный для действий, которые удаляются фильтром "требуется замена stepKey"
public function testStepKeyReplacementFilteredOut() { $clickStepKey = "clickStepKey"; $fillFieldStepKey = "fillFieldStepKey"; $clickAction = "click"; $fillFieldAction ="fillField"; $actionGroupUnderTest = (new ActionGroupObjectBuilder()) ->withActionObjects([ ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testStepKeyReplacementFilteredIn()\n {\n $createStepKey = \"createDataStepKey\";\n $updateStepKey = \"updateDataStepKey\";\n\n $actionGroupUnderTest = (new ActionGroupObjectBuilder())\n ->withActionObjects([\n new ActionObject(\n ...
[ "0.71910894", "0.5436694", "0.5326946", "0.51743805", "0.5116195", "0.49828285", "0.49818963", "0.49506244", "0.48371398", "0.48229936", "0.48151606", "0.4800575", "0.47229818", "0.4705595", "0.46993807", "0.46828488", "0.46654025", "0.46615893", "0.46502796", "0.46337062", "...
0.74772835
0
Listar todos los roles ordernados por nombre. Selecciona el id y nombre de cada uno de los roles guardados.
Перечислить все роли, отсортированные по имени. Выбрать id и имя каждого из сохраненных ролей.
public static function listarRoles(): array { $consulta = "SELECT * FROM rol ORDER BY nombre"; return Conexion::getInstancia()->seleccionar($consulta); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function listarRoles(){\n\t\t\t$sql = \"SELECT CodRole,Nombre,Estado FROM role WHERE Estado='1' ORDER BY Nombre\";\n\t\t\treturn ejecutarConsulta($sql);\n\t\t}", "public function listarRoles()\n {\n //return AutorizadorRol::all();\n\n $roles = AutorizadorRolAccion::join('autorizador_roles...
[ "0.7626586", "0.68903637", "0.6789378", "0.67386603", "0.67336816", "0.66068685", "0.65842694", "0.65399075", "0.6528065", "0.6501007", "0.64997554", "0.64497507", "0.64450026", "0.64397794", "0.643844", "0.643844", "0.643844", "0.643844", "0.6404932", "0.639373", "0.63833874...
0.73717165
1
Listar un resumen limitado de roles. Selecciona el id, nombre, cantidad de usuarios asociados y cantidad de permisos asociados para uno de los roles segun el limite establecido.
Вывести ограниченный обзор ролей. Выбрать id, имя, количество связанных пользователей и количество связанных разрешений для одной из ролей в соответствии с установленным лимитом.
public static function listarResumenRoles($limite): array { if ($limite > 0) { $consulta = "SELECT * FROM vw_rol ORDER BY id DESC LIMIT {$limite}"; return Conexion::getInstancia()->seleccionar($consulta); } return array(0, "No se estableció un limite válido"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function listarRoles(){\n\t\t\t$sql = \"SELECT CodRole,Nombre,Estado FROM role WHERE Estado='1' ORDER BY Nombre\";\n\t\t\treturn ejecutarConsulta($sql);\n\t\t}", "public function roles()\n {\n $this->roles = $this->Role->list($_SESSION['guild_id']);\n }", "public function indexRoles()\n ...
[ "0.7244106", "0.717365", "0.7018752", "0.70109254", "0.6955933", "0.693262", "0.693262", "0.693262", "0.693262", "0.69078493", "0.68993795", "0.6840279", "0.6819489", "0.67942625", "0.67924464", "0.678074", "0.6780577", "0.6772386", "0.6747796", "0.6741106", "0.67353255", "...
0.7205636
1