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
Save Access Token to a text file
Сохраните Access Token в текстовый файл
public function saveAccessToken($accessToken) { file_put_contents($_SERVER['DOCUMENT_ROOT'].$this->tokenFile, serialize($accessToken)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function WriteTokenFile()\n {\n if ($this->getTokenUsePickupFile()) {\n $fname = $this->getTokenPickupFile();\n $fh = fopen($fname, \"w+\");\n fwrite($fh, $this->_props['RequestToken']);\n fclose($fh);\n }\n }", "public function saveAccessToken($accessToken);", "private function sav...
[ "0.773946", "0.6335817", "0.6212518", "0.6045753", "0.5930729", "0.58840746", "0.58693653", "0.58662856", "0.58635217", "0.5844006", "0.58256173", "0.5773556", "0.5768012", "0.5749106", "0.57348484", "0.5732757", "0.5728807", "0.57190937", "0.5716746", "0.56892526", "0.563992...
0.7467016
1
Provides you the available banner links. To obtain specific banner links, you can filter this request using these parameters: MID, Category, Size, Start Date, and End Date.
Предоставляет доступ к имеющимся баннерным ссылкам. Чтобы получить конкретные баннерные ссылки, вы можете отфильтровать этот запрос с помощью следующих параметров: MID, Категория, Размер, Начальная дата и Конечная дата.
public function bannerLinks( $merchantId = -1, $categoryId = -1, $startDate = null, $endDate = null, $size = -1, $campaignId = -1, $page = 1 ) { $startD = (isset($startDate)) ? str_replace('-', '', $startDate) : null; $endD = (isset($endDate)) ? str_replace('-', '', $endDate) : null; $this->setParameter(0, $merchantId); $this->setParameter(1, $categoryId); $this->setParameter(2, $startD); $this->setParameter(3, $endD); $this->setParameter(4, $size); $this->setParameter(5, $campaignId); $this->setParameter(6, $page); $this->setHeader(self::HEADER_TYPE_BEARER); $this->setLink(self::BANNER_LINKS.'/'.$this->getParameter()); $curl = new Curl; $response = $curl->get($this->getLink(), '', $this->getHeader()); $xmlData = new SimpleXMLElement(XMLHelper::tidy($response)); return $xmlData; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getLinksList()\n {\n $sql = 'SELECT bwl.*, bwll.`title`, bwll.`url`\n FROM `'._DB_PREFIX_.'bwcatbanner_link` bwl\n LEFT JOIN `'._DB_PREFIX_.'bwcatbanner_link_lang` bwll\n ON (bwl.`id_item` = bwll.`id_item`)\n WHERE bwl.`id_shop` ...
[ "0.64956653", "0.60217077", "0.5885171", "0.585809", "0.57196116", "0.56638443", "0.56369996", "0.5607769", "0.5594403", "0.5577562", "0.5576287", "0.55581164", "0.5554815", "0.5552081", "0.55503386", "0.5505732", "0.54941005", "0.54884547", "0.5484968", "0.5431221", "0.54280...
0.70739037
0
Provides you the available advanced reports. To obtain specific reports, you can filter this by add $nid & $mid.
Предоставляет доступ к доступным продвинутым отчетам. Чтобы получить конкретные отчеты, вы можете отфильтровать их с помощью $nid & $mid.
public function advancedReports( $reportId, $startDate, $endDate, $nid = null, $mid = null ) { $startD = (isset($startDate)) ? str_replace('-', '', $startDate) : null; $endD = (isset($endDate)) ? str_replace('-', '', $endDate) : null; $this->setHeader(self::HEADER_TYPE_BEARER); $this->setParameter(0, 'token='.self::SECURITY_TOKEN); $this->setParameter(1, 'reportid='.$reportId); $this->setParameter(2, 'bdate='.$startD); $this->setParameter(3, 'edate='.$endD); $params = implode('&', $this->params); $this->setLink('?'.$params, self::API_NAME_ADVANCED_REPORT); $curl = new Curl; $response = $curl->get($this->getLink(), '', $this->getHeader()); $xmlData = new SimpleXMLElement(XMLHelper::tidy($response)); return $xmlData; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected function get_reports( $args = array() );", "function getReport() ;", "public function getReport() {}", "public function getReport() {}", "public function reportListing()\n {\n\t$strsql = \"SELECT r.*,rs.* FROM \" . TBL_REPORTS . \" r inner join \" . TBL_REPORTS_SUBMISSION . \" rs on r.r...
[ "0.57960796", "0.56453884", "0.55919605", "0.55919605", "0.55478764", "0.546281", "0.54500854", "0.5443246", "0.54071546", "0.5309802", "0.53067887", "0.53067887", "0.5281823", "0.5250932", "0.52440524", "0.521269", "0.5179699", "0.5157947", "0.51575637", "0.51534766", "0.515...
0.7193118
0
Create instance of Headers object from instance of Environment object
Создать экземпляр объекта Headers из экземпляра объекта Environment
public function create(Environment $environment) { return new Headers($this->resolveHeaders($environment->getServer())); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function _initHeaders()\n {\n $headers = new DataHolder();\n\n foreach ($_SERVER as $key => $value)\n {\n if (strpos($key, 'HTTP_') === 0)\n {\n $headers->set(substr($key, 5), $value);\n }\n elseif (in_array($key, array('CONTENT_LENGTH', 'CONTENT_TYPE')))\n {\n ...
[ "0.64663017", "0.61760974", "0.6117139", "0.60135657", "0.5932401", "0.588565", "0.5863152", "0.5843509", "0.57841384", "0.5782216", "0.576597", "0.5727603", "0.57211536", "0.57118666", "0.5711274", "0.5647395", "0.56083405", "0.56083405", "0.56082624", "0.55858845", "0.55788...
0.77983695
0
Get columns from table use Zend_Db_Adapter
Получить столбцы из таблицы с использованием Zend_Db_Adapter
public function getColumnsFromTable() { return Zend_Db_Table::getDefaultAdapter()->describeTable($this->_tableName); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract function get_columns($table);", "public function get_columns()\n {\n }", "public function get_columns()\n {\n }", "public function get_columns()\n {\n }", "public function get_columns()\n {\n }", "public function get_columns()\n ...
[ "0.7227525", "0.7048627", "0.7048627", "0.7048627", "0.7048627", "0.7046267", "0.7046267", "0.6980839", "0.6975782", "0.6954283", "0.6954283", "0.6954283", "0.6954283", "0.6954283", "0.6954283", "0.6954283", "0.6910914", "0.6861104", "0.6846852", "0.6839846", "0.68080914", ...
0.78532004
0
Compare function NOTE: In theory only $object1 has to implement the Comparable interface but as you cannot know in which order the parameters come i.e. from a sorting algorithm, both are checked. Also it is assumed that $object1>compareTo($object2) == (1) $object2>compareTo($object1) otherwise ComparatorTools may not work properly
Функция сравнения ЗАМЕТКА: По теории только $object1 должна реализовывать интерфейс Comparable, но так как невозможно знать в каком порядке приходят параметры, например, от алгоритма сортировки, проверяются оба объекта. Также предполагается, что $object1>compareTo($object2) == (1) $object2>compareTo($object1), иначе ComparatorTools может работать некорректно.
public function compare($object1, $object2) { if (! $object1 instanceof Comparable) { throw new ComparatorException('$object1 (type: ' . gettype($object1) . ') does not implement the Comparable interface.'); } if (! $object2 instanceof Comparable) { throw new ComparatorException('$object2 (type: ' . gettype($object2) . ') does not implement the Comparable interface.'); } return $object1->compareTo($object2); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function comparator($object1, $object2) {\n\t\t\treturn $object1->amount < $object2->amount; \n\t\t}", "public function compareTo($object) : int;", "public /*int*/ function compareTo(/*mixed*/ $object)\n\t{\n\t\tif($this->equals($object))\n\t\t\treturn 0;\n\t\treturn -1;\n\t}", "public function compare(\\mor...
[ "0.7869542", "0.73873293", "0.6969621", "0.6778731", "0.6716064", "0.65809304", "0.6570545", "0.6551522", "0.64861166", "0.6469694", "0.639923", "0.6388334", "0.6379284", "0.62946475", "0.6271855", "0.6217345", "0.62134933", "0.62018955", "0.62018955", "0.61652607", "0.611706...
0.78664535
1
views the tax edit page
просматривает страницу редактирования налога
public function postEdit(){ $tax = Tax::find(Input::get('id') ); return View::make('tax.edit') ->with('id', $tax->id) ->with('name', $tax->name) ->with('rate', $tax->rate); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function taxupdate() {\n $arr['page'] = 'taxdetail';\n\t\t$arr['active'] = 'other';\n\t\t$arr['productTax'] = $this->setting->getTax('product');\n\t\t$arr['shippingTax'] = $this->setting->getTax('shipping');\n\t\t$this->load->view('vwSettingTax',$arr);\n\t}", "function tax()\n {\n ...
[ "0.76382494", "0.7034002", "0.70160884", "0.69389576", "0.67746663", "0.66096514", "0.64846355", "0.6437889", "0.6419488", "0.641871", "0.63995886", "0.63995886", "0.6371156", "0.6371156", "0.63658327", "0.63194865", "0.6287405", "0.6282806", "0.62676173", "0.62562585", "0.62...
0.77472943
0
Get all bundles defined by this model bundle
Получить все пакеты, определенные этим модельным пакетом
public static function allBundles(): Collection;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getBundles()\n {\n return $this->bundles;\n }", "public function getBundles() {\n return $this->getConfig(\"bundles\");\n }", "public function getBundles()\n {\n return array();\n }", "public function registerBundles()\n {\n return $this->getBundl...
[ "0.7814292", "0.7424124", "0.72127044", "0.70319444", "0.6873059", "0.67700356", "0.65892583", "0.615498", "0.6125429", "0.605545", "0.60269505", "0.6019808", "0.5954503", "0.5900245", "0.5826973", "0.58258647", "0.5781311", "0.57634705", "0.56828266", "0.5678196", "0.5676123...
0.7471644
1
Retrieve the currencyName property
Получить свойство currencyName
public function getCurrencyName() { return $this->currencyName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function currencyName()\n {\n \treturn $this->currencyName = Currency::getCurrencyCode($this->sellPrices->CurrencyNo)->CurrencyName;\n }", "public function getCurrency() : string\n {\n return $this->currency;\n }", "public function getCurrency() : string\n {\n return $thi...
[ "0.8412517", "0.7305462", "0.7305462", "0.72835076", "0.72835076", "0.6910954", "0.6910597", "0.69101375", "0.69101375", "0.679487", "0.67792076", "0.67726", "0.67726", "0.67726", "0.67726", "0.67726", "0.67726", "0.67726", "0.67726", "0.67703825", "0.67687756", "0.67664695...
0.8499477
0
Handle the remove issue command.
Обработка команды удаления проблемы.
public function handle(RemoveIssueCommand $command) { $issue = $command->issue; event(new IssueWasRemovedEvent($issue)); $issue->delete(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function deleteIssue($args, $request) {\n\t\t$issueId = (int) $request->getUserVar('issueId');\n\t\t$journal = $request->getJournal();\n\t\t$issueDao = DAORegistry::getDAO('IssueDAO');\n\t\t$issue = $issueDao->getById($issueId, $journal->getId());\n\t\tif (!$issue) fatalError('Invalid issue ID!');\n\n\t\t$isBackIs...
[ "0.63412756", "0.6070603", "0.60372996", "0.5984083", "0.5983521", "0.59507513", "0.59356076", "0.59081984", "0.5843781", "0.5820493", "0.58113396", "0.58065546", "0.57392687", "0.57363456", "0.57363456", "0.57363456", "0.5726919", "0.56949914", "0.56949914", "0.56949914", "0...
0.7258914
0
Returns whether $code appears in the OrigCurrency element of the XML.
Возвращает значение, указывающее, появляется ли $code в элементе OrigCurrency XML.
public function isOriginalCurrency($code) { return $this->getOriginalCurrency() === strtoupper($code); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function isInISO($code) {\n $xml = simplexml_load_file('http://www.currency-iso.org/dam/downloads/lists/list_one.xml');\n $result = $xml -> xpath(\"//CcyNtry[Ccy='{$code}']\");\n if($result != null) {\n return true;\n } else {\n return false;\n }\n }", "public function has($code) {\n\t...
[ "0.7249582", "0.6548625", "0.63530695", "0.616148", "0.613512", "0.581938", "0.581938", "0.5816914", "0.5813855", "0.580396", "0.5651243", "0.56309867", "0.56309867", "0.55289704", "0.55249566", "0.55030996", "0.5494372", "0.5493275", "0.5476785", "0.54743254", "0.5421173", ...
0.7188052
1
Get the console command options.
Получить параметры командной строки.
protected function getOptions() { return [ ['command', null, InputOption::VALUE_OPTIONAL, 'The terminal command that should be assigned', 'command:name'], ]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getOptions() {\n return [\n ['env', null, InputOption::VALUE_OPTIONAL, 'The environment the command should run under.', null],\n ];\n }", "protected function getOptions()\n\t{\n\t\treturn [\n\t\t\t['testMode', null, InputOption::VALUE_OPTIONAL, 'Runs the command in ...
[ "0.7800682", "0.751765", "0.7345173", "0.73404354", "0.7306238", "0.72790045", "0.7268271", "0.7237944", "0.71917665", "0.715652", "0.7155546", "0.7137", "0.71122515", "0.710945", "0.710945", "0.710945", "0.710945", "0.710945", "0.710945", "0.710945", "0.710945", "0.710945"...
0.77591324
1
Get popup background url
Получить URL фона всплывающего окна
public function getBgImage(){ return $this->scopeConfigInterface->getValue(self::XML_PATH_POPUP_BG_IMAGE,ScopeInterface::SCOPE_WEBSITE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_url_background_pion(){ return $this->_url_background_pion;}", "public function get_url_background_card(){ return $this->_url_background_card;}", "function get_background_image()\n {\n }", "public function getPopup() {}", "function getBackground() {return $this->readBackground()...
[ "0.7662499", "0.65181", "0.63692915", "0.62914294", "0.60900795", "0.5884704", "0.58233964", "0.57780117", "0.5726911", "0.5686214", "0.5676823", "0.5669619", "0.56365454", "0.55923164", "0.5589073", "0.55470103", "0.55421066", "0.54672974", "0.5455209", "0.5407353", "0.53895...
0.72030306
1
Get popup static block id
Получить идентификатор статического блока попапа
public function getStaticBlockId(){ return $this->scopeConfigInterface->getValue(self::XML_PATH_POPUP_STATIC_BLOCK,ScopeInterface::SCOPE_WEBSITE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_ID()\n {\n return $this->blockId;\n }", "public function getBlockId($name='')\n\t{\n\t\tif (!$name)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\t$this->_db->setQuery( \"SELECT id FROM $this->_tbl WHERE block=\" . $this->_db->quote($name) . \" LIMIT 1\" );\n\t\treturn $this->_db->load...
[ "0.6915995", "0.6216904", "0.6204871", "0.60660446", "0.6021487", "0.60035217", "0.5912662", "0.58703965", "0.5808187", "0.5794352", "0.57913446", "0.57251763", "0.5600986", "0.5600986", "0.5586825", "0.5564948", "0.5546049", "0.55442536", "0.554154", "0.5524439", "0.5505612"...
0.8631903
0
Get popup cookie time
Получить время попап-куки
public function getCookieTime(){ return $this->scopeConfigInterface->getValue(self::XML_PATH_POPUP_COOKIE_TIME,ScopeInterface::SCOPE_WEBSITE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getLastTime(){\n\t \t if (!empty($_COOKIE['lastVisit'])) {\n\t\techo \"你上次登陆的时间是:\".$_COOKIE['lastVisit'];\n\t}else{\n\t\techo \"你是第一次登陆\";\n\t}\n\t\tsetCookie(\"lastVisit\",date(\"Y-m-d : H:i:s\"),time()+24*3600*30);\n }", "private static function cookieLifetime()\n {\n return time() + (self:...
[ "0.6724043", "0.6605812", "0.6433711", "0.64166373", "0.6311801", "0.6257696", "0.6249962", "0.622519", "0.6133038", "0.6073651", "0.6008927", "0.6008927", "0.60028315", "0.5937981", "0.5823877", "0.58137786", "0.58137786", "0.58137786", "0.58137786", "0.5795732", "0.5792176"...
0.8568498
0
Publishes the Configuration File.
Публикует файл конфигурации.
protected function publishConfigurationFile() { // Determine the Local Configuration Path $source = $this->getLocalConfigurationPath(); // Determine the Application Configuration Path $destination = $this->getApplicationConfigPath(); // Publish the Configuration File $this->publishes([$source => $destination], 'config'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function publishConfig()\n {\n $this->publishes([\n $this->basePath('config/flare/config.php') => config_path('flare/config.php'),\n ]);\n }", "private function publishConfig()\n\t{\n\t\t$config = __DIR__ . '/config/workflow.php';\n\n\t\t$this->publishes([$config => confi...
[ "0.82678056", "0.8150707", "0.8066025", "0.80007505", "0.77923054", "0.7743851", "0.75718474", "0.74415666", "0.73615843", "0.72795933", "0.72750515", "0.72675", "0.71052104", "0.7055335", "0.69835", "0.6956444", "0.68562484", "0.681237", "0.6802941", "0.6791647", "0.6775968"...
0.8816268
0
Get the calendar from this event.
Получите календарь из этого события.
public function getCalendar() { return $this->calendar; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCalendar()\r\n {\r\n if (!$this->_calendar && $this->getCalendarId()) {\r\n $this->_calendar = Mage::getModel('google/calendar')->load($this->getCalendarId());\r\n }\r\n\r\n return $this->_calendar;\r\n }", "public function getCalendar()\n {\n re...
[ "0.7920089", "0.7573589", "0.73638797", "0.72971344", "0.7145896", "0.7012212", "0.6862772", "0.6771605", "0.6688989", "0.64592737", "0.64512366", "0.64512366", "0.6415997", "0.64020973", "0.6395439", "0.63549966", "0.6231698", "0.6060423", "0.59474295", "0.5864934", "0.58567...
0.80141985
0
Get the organiser from this event.
Получите организатора этого события.
public function getOrganiser() { return $this->organiser; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getOrganisation()\n {\n return $this->organisation;\n }", "public function organizer()\n {\n return $this->belongsTo(User::class, 'organizer_id');\n }", "public function getOrganisation()\n\t{\n\t\treturn $this->_organisation;\n\t}", "public function getOrganization(...
[ "0.6697686", "0.6507971", "0.64969254", "0.648617", "0.648617", "0.648617", "0.6372064", "0.61768335", "0.6144404", "0.6089184", "0.60589164", "0.60294944", "0.5977343", "0.59507185", "0.5903315", "0.5806831", "0.5783075", "0.5752315", "0.57308006", "0.57056224", "0.56900215"...
0.79483306
0
Get the contact info from this event.
Получите информацию о контакте из этого события.
public function getContactInfo() { return $this->contactInfo; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getContact()\n\t{\n\t\treturn $this->Info['Contact'];\n\t}", "public function getContact()\n {\n return $this->contact;\n }", "public function getContact()\n {\n return $this->contact;\n }", "public function getContact()\n {\n return $this->contact;\n }", "pu...
[ "0.77773935", "0.729121", "0.729121", "0.729121", "0.72665775", "0.7256344", "0.7149975", "0.71452886", "0.6844479", "0.6794244", "0.658297", "0.65391105", "0.6429791", "0.64087987", "0.6387042", "0.630271", "0.62434536", "0.62045443", "0.6178928", "0.6142353", "0.61272514", ...
0.7819706
0
Get the maximum amount of participants.
Получить максимальное количество участников.
public function getMaxParticipants() { return $this->maxParticipants; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getMaxParticipants()\n {\n return $this->max_participants;\n }", "public function limitPerParticipant()\n {\n if ($this->acceptsGuestEntries()) {\n return;\n }\n\n $limit = $this->settings['limit-per-participant'] ?? 1;\n\n return $limit !== ...
[ "0.83796704", "0.73337865", "0.7174557", "0.71393937", "0.7088084", "0.6965768", "0.6949374", "0.6934905", "0.6926936", "0.6925162", "0.68878186", "0.6872525", "0.67364603", "0.67028195", "0.66730255", "0.665985", "0.66541666", "0.6636262", "0.66084987", "0.6601371", "0.66003...
0.8278022
1
Get the booking period.
Получить период бронирования.
public function getBookingPeriod() { return $this->bookingPeriod; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPeriod() {}", "public function getPeriod();", "public function getPeriod()\n {\n return $this->period;\n }", "public function getPeriod()\n {\n return $this->period;\n }", "public function getPeriod()\n {\n return $this->period;\n }", "public func...
[ "0.7230923", "0.71676385", "0.6909265", "0.6909265", "0.6909265", "0.6909265", "0.67613584", "0.65692484", "0.6470812", "0.64168024", "0.63482606", "0.6346187", "0.6337608", "0.6302562", "0.6266849", "0.62030804", "0.6163268", "0.6121682", "0.61178577", "0.6074483", "0.605462...
0.85103947
0
Set the calendar data for the event.
Задайте данные календаря для события.
public function setCalendar(CultureFeed_Cdb_Data_Calendar $calendar) { $this->calendar = $calendar; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setData($data)\n {\n $this->date=$data;\n }", "function setEvent($year,$month,$day,$id=false,$url=false){\n$eventTime=$this->mkActiveTime(0,0,1,$month,$day,$year);\n\tif (!$id) $id=$this->cssEvent;\n$this->calEvents[$eventTime]=$id;\n$this->calEventsUrl[$eventTime]=$url;\n}", "public func...
[ "0.6326102", "0.62080693", "0.59551716", "0.5905344", "0.58078855", "0.5721358", "0.5721358", "0.57208437", "0.57203865", "0.57196915", "0.5718755", "0.5718755", "0.5718755", "0.5718755", "0.56782216", "0.5675194", "0.5636373", "0.5578467", "0.55449253", "0.55270684", "0.5507...
0.70743966
0
Set the organiser from this event.
Установите организатора этого события.
public function setOrganiser(CultureFeed_Cdb_Data_Organiser $organiser) { $this->organiser = $organiser; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getOrganiser() {\n return $this->organiser;\n }", "protected function setOrganization() {}", "public function set_organizer_key($organizer_key) {\n\t\t$_SESSION['citrix_organizer_key'] = $organizer_key;\n\t\t$this->organizer_key = $organizer_key;\n\t}", "public function organizer()\n {...
[ "0.6622959", "0.61169004", "0.59210384", "0.5665311", "0.5624373", "0.56112605", "0.5436014", "0.5255994", "0.51777697", "0.5140903", "0.5056154", "0.50486976", "0.50321203", "0.5020482", "0.5020482", "0.5020482", "0.5015321", "0.49897176", "0.4970243", "0.49462056", "0.49192...
0.72573936
0
Delete the organiser from this event.
Удалить организатора из этого события.
public function deleteOrganiser() { $this->organiser = NULL; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function destroy(Organizator $organizator)\n {\n //\n }", "public function remove_organiser($memberid){\n $sql = \"DELETE FROM tournamentOrganisers WHERE tournamentID=$this->id AND organiserID=$memberid\";\n $result = self::$database->query($sql);\n }", "public function delete()\n ...
[ "0.69003993", "0.631365", "0.59371656", "0.5741597", "0.57172453", "0.5633651", "0.55949855", "0.5469599", "0.54365337", "0.5415219", "0.5362119", "0.53501904", "0.53059244", "0.53002864", "0.52841663", "0.5278787", "0.5266372", "0.5265326", "0.5262433", "0.5243839", "0.52348...
0.79746175
0
Set the maximum amount of participants.
Установите максимальное количество участников.
public function setMaxParticipants($maxParticipants) { $this->maxParticipants = $maxParticipants; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setMaxParticipants($max_participants)\n {\n $this->max_participants = $max_participants;\n }", "public function setMaxParticipants(int $maxParticipants): self\n {\n $this->options['maxParticipants'] = $maxParticipants;\n return $this;\n }", "public function set_...
[ "0.78886503", "0.77239615", "0.6783981", "0.67523926", "0.6752334", "0.67200416", "0.66341704", "0.66165245", "0.6608612", "0.660743", "0.6554045", "0.65503496", "0.6531691", "0.6506651", "0.648476", "0.6442044", "0.6442044", "0.6341335", "0.6337405", "0.6337405", "0.6337405"...
0.8105075
0
Select Random Question for create random quizz
Выберите случайный вопрос для создания случайного теста
public function randomQuestion() { return $this->createQueryBuilder('qb') ->orderBy('RAND()') ->setMaxResults($this->maxResult) ->getQuery() ->getResult() ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function generateQuestion()\n\t{\n\t\t//get random question type\n\t\t$type = $this->questionTypes[array_rand($this->questionTypes)];\n\n\t\t//get random section\n\t\t$section = $this->getRandomSection();\n\n\t\t//get random function (within the above section)\n\t\t$function = $this->getRandomFunction($sect...
[ "0.71189064", "0.6902919", "0.68481266", "0.6843635", "0.6796101", "0.67782533", "0.6649818", "0.66162694", "0.656714", "0.6566387", "0.65618706", "0.6390598", "0.63462085", "0.62936205", "0.62838244", "0.6251915", "0.62392616", "0.6157968", "0.6123096", "0.6100483", "0.60967...
0.71238166
0
INSERT INTO TWO TABLES
ВСТАВКА В ДВЕ ТАБЛИЦЫ
function insertTwoTables($table1, $data1, $table2, $data2) { $this->db->trans_start(); $this->db->insert($table1, $data1); $this->db->insert($table2, $data2); $this->db->trans_complete(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function fromOneToTheOther($db1, $table1, $db2, $table2){\n\n\t$firstRecs = dbMassData(\"SELECT * FROM \".$db1.\".\".$table1.\" WHERE Package = 'Local' OR Package IS NULL\");\n\t$secRecs = dbMassData(\"SELECT * FROM \".$db2.\".\".$table2.\" WHERE Package = 'Local' OR Package IS NULL\");\n\t\n\t\n\n\t//print_r($fir...
[ "0.62865627", "0.6264757", "0.6251418", "0.6082616", "0.6032613", "0.6028603", "0.6028603", "0.6028603", "0.6021217", "0.60015815", "0.59932166", "0.5974147", "0.59570485", "0.59310013", "0.5905858", "0.5857635", "0.58183163", "0.58095086", "0.5785111", "0.57785124", "0.57755...
0.7591835
0
Test case for listPastWebinarFiles List Past Webinar Files.
Тест-кейс для listPastWebinarFiles Список прошлых вебинаров.
public function testListPastWebinarFiles() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_test_file_uploads()\n {\n }", "public function testListPastWebinarPollResults()\n {\n }", "public function testGetFilesList()\n {\n $remoteFolder = \"TestData/In\";\n\n $localName = \"Book1.xlsx\";\n $remoteName = \"Book1.xlsx\";\n\n CellsA...
[ "0.58834845", "0.5769307", "0.5767245", "0.57574075", "0.572067", "0.56012434", "0.5557108", "0.5524374", "0.5524374", "0.5524374", "0.54968965", "0.54968965", "0.54968965", "0.54705936", "0.5462373", "0.5406382", "0.5346848", "0.5325001", "0.531251", "0.5304454", "0.5276892"...
0.82050633
0
Test case for listPastWebinarPollResults List Past Webinar Poll Results.
Тестовый случай для listPastWebinarPollResults Список прошедших опросов вебинара.
public function testListPastWebinarPollResults() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testListPastWebinarQA()\n {\n }", "public function testPastEvents()\n {\n // otherwise test will fail.\n // Other approach is to use fake data or mock it.\n \n $response = $this->json('GET', '/events/expired');\n \n $response\n ...
[ "0.6463519", "0.5745448", "0.54532343", "0.5325194", "0.52149856", "0.5209032", "0.51816463", "0.51735336", "0.51557595", "0.5139043", "0.51316184", "0.5059295", "0.5046634", "0.5028113", "0.501984", "0.4969596", "0.491994", "0.491994", "0.49058336", "0.48983213", "0.4859388"...
0.79743946
0
Test case for listPastWebinarQA List Q&A of Past Webinar.
Тест-кейс для списка List Q&A прошлого вебинара.
public function testListPastWebinarQA() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testListPastWebinarPollResults()\n {\n }", "public function testPastWebinars()\n {\n }", "public function testWebinarPanelists()\n {\n }", "public function testListPastWebinarFiles()\n {\n }", "public function testWebinarPolls()\n {\n }", "public function tes...
[ "0.6955456", "0.59452575", "0.58298326", "0.5821201", "0.5732911", "0.56243193", "0.54987425", "0.54416364", "0.5420459", "0.5414977", "0.54115117", "0.53685975", "0.5187622", "0.5177601", "0.5177601", "0.5174332", "0.51445574", "0.5130628", "0.5130628", "0.51046103", "0.5099...
0.7940479
0
Test case for webinarAbsentees Get Webinar Absentees.
Тест-кейс для получения списка участников вебинара, которые не присутствовали.
public function testWebinarAbsentees() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testListPastWebinarPollResults()\n {\n }", "public function testListPastWebinarQA()\n {\n }", "public function testListEnrollmentRequests()\n {\n }", "public function testGetEventsIdSchedulesOut()\n {\n $eventId = '1';\n\n $result = $this->visit('events/' . $eventId ....
[ "0.6012117", "0.5984477", "0.5918694", "0.5873598", "0.58436704", "0.58301497", "0.58196026", "0.5788358", "0.5774703", "0.57724416", "0.5754003", "0.57515645", "0.570997", "0.5703932", "0.5624342", "0.5612756", "0.560048", "0.5572901", "0.5554806", "0.55531824", "0.5505148",...
0.7858616
0
Test case for webinarCreate Create a Webinar.
Тест-кейс для вебинара Create Create a Webinar.
public function testWebinarCreate() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testWebinarRegistrantCreate()\n {\n }", "public function testWebinarPollCreate()\n {\n }", "public function testWebinar()\n {\n }", "public function testWebinarRegistrants()\n {\n }", "public function testWebinarPanelistCreate()\n {\n }", "public function tes...
[ "0.7855212", "0.7379238", "0.69512796", "0.6878894", "0.6584363", "0.6553019", "0.64912003", "0.6440262", "0.6421352", "0.64194024", "0.6349812", "0.63445705", "0.62597454", "0.62102824", "0.61887443", "0.6174561", "0.61369574", "0.6054688", "0.601544", "0.5883184", "0.587968...
0.8172204
0
Test case for webinarDelete Delete a Webinar.
Тест-кейс для webinarDelete Удаление вебинара.
public function testWebinarDelete() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testWebinarPollDelete()\n {\n }", "public function testWebinarPanelistDelete()\n {\n }", "public function testWebinarPanelistsDelete()\n {\n }", "public function deleteSportsVenue($venue);", "public function testDeleteSurvey()\n {\n $survey = Survey::factory()->c...
[ "0.7386751", "0.7297796", "0.71680236", "0.66529924", "0.6622835", "0.6563354", "0.65136284", "0.6496925", "0.6489714", "0.64357275", "0.64357275", "0.637083", "0.63620377", "0.6346963", "0.6310489", "0.6308891", "0.6300885", "0.6295698", "0.6273204", "0.62324136", "0.6232029...
0.8196134
0
Test case for webinarPanelistCreate Add Panelists.
Тест-кейс для webinarPanelistCreate Добавление панелетов.
public function testWebinarPanelistCreate() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testWebinarPanelists()\n {\n }", "public function testWebinarPanelistsDelete()\n {\n }", "public function testWebinarPanelistDelete()\n {\n }", "public function set_panelist() {\n\t\tif (!isset($this->args[0]) || empty($this->args[0])) {\n\t\t\t$this->out('Provide MV user_id...
[ "0.7211089", "0.65043837", "0.6392804", "0.5913536", "0.5587062", "0.5463761", "0.5356804", "0.5312291", "0.5305108", "0.5288998", "0.5263735", "0.5252212", "0.52127165", "0.5202787", "0.52021176", "0.52019876", "0.5184639", "0.51807183", "0.5171748", "0.5163554", "0.51232785...
0.81021476
0
Test case for webinarPanelistDelete Remove a Panelist.
Тест-кейс для webinarPanelistDelete Удаление панельного участника.
public function testWebinarPanelistDelete() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testWebinarPanelistsDelete()\n {\n }", "public function testWebinarPanelistCreate()\n {\n }", "public function testRemoveListSuccessfully(): void\n {\n $this->createMailchimpList($list);\n\n $this->delete(\\sprintf('/mailchimp/lists/%s', $list['list_id']));\n\n ...
[ "0.795948", "0.58884895", "0.5749253", "0.5748073", "0.573655", "0.5675471", "0.5661825", "0.5626825", "0.55920637", "0.5565379", "0.5538664", "0.5531006", "0.5487608", "0.5451873", "0.5446417", "0.54163927", "0.5416242", "0.54077244", "0.54077244", "0.54077244", "0.54077244"...
0.7986915
0
Test case for webinarPanelists List Panelists.
Тест-кейс для списка участников вебинара Panelists.
public function testWebinarPanelists() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testWebinarPanelistCreate()\n {\n }", "public function testWebinarPanelistsDelete()\n {\n }", "public function testWebinarPanelistDelete()\n {\n }", "public function testListPastWebinarQA()\n {\n }", "public function testListPastWebinarPollResults()\n {\n }", ...
[ "0.8041716", "0.69889045", "0.68276155", "0.6213921", "0.61039495", "0.60195667", "0.5794682", "0.5651228", "0.563803", "0.5618443", "0.55301744", "0.5524846", "0.5513889", "0.54806244", "0.5478555", "0.5473747", "0.53977513", "0.5363002", "0.5349754", "0.5313243", "0.5302042...
0.8328777
0
Test case for webinarPanelistsDelete Remove Panelists.
Тестовый случай для webinarPanelistsDelete Удаление панелетов.
public function testWebinarPanelistsDelete() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testWebinarPanelistDelete()\n {\n }", "public function testWebinarPanelists()\n {\n }", "public function testWebinarPanelistCreate()\n {\n }", "function action_remove() {\n\t\t\t$data = UTIL::get_post('data');\n\t\t\t$id = (int)$data['rem_id'];\n\t\t\t$table = $data['rem_...
[ "0.80611134", "0.6175651", "0.6084192", "0.5854993", "0.5779039", "0.56939197", "0.5672255", "0.5665499", "0.5657381", "0.56455123", "0.5625484", "0.5580941", "0.5545405", "0.55362356", "0.55231667", "0.5510384", "0.54702806", "0.5467625", "0.5467625", "0.5467625", "0.5467625...
0.83671415
0
Test case for webinarPollCreate Create a Webinar's Poll.
Тест-кейс для webinarPollCreate Создание опроса вебинара.
public function testWebinarPollCreate() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testWebinarPollGet()\n {\n }", "public function testWebinarPollUpdate()\n {\n }", "public function createpollAction(Request $request)\n {\n $poll = new PollImpl();\n $form = $this->createForm(new NewPoll(), $poll);\n\n $form->handleRequest($request);\n ...
[ "0.645826", "0.64233947", "0.6303108", "0.62919855", "0.6287759", "0.6279859", "0.61923283", "0.59656316", "0.59515786", "0.59352744", "0.5929518", "0.59017617", "0.589709", "0.5864389", "0.5771486", "0.5754985", "0.5707631", "0.5687261", "0.5679037", "0.56305504", "0.5621797...
0.7899342
0
Test case for webinarPollDelete Delete a Webinar Poll.
Тест-кейс для webinarPollDelete Удаление опроса вебинара.
public function testWebinarPollDelete() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function deletepoll(){\n \tSiteController::loggedInCheck();\n\n\t\t$pollid = $_POST['pollid'];\n\t\t$poll = Poll::loadById($pollid);\n\t\t$pollAuthorId = $poll->get('userId');\n\t\t$pollAuthor = User::loadById($pollAuthorId);\n\n\t\t//user is the author of the poll, allow delete\n\t\tif($pollAuthor->get(...
[ "0.71641266", "0.66191196", "0.6587096", "0.6559964", "0.64290196", "0.6392854", "0.63748217", "0.6316476", "0.61818117", "0.60412574", "0.59323484", "0.5928612", "0.58898", "0.5859758", "0.5821917", "0.5783073", "0.5772443", "0.57544917", "0.5753902", "0.5753902", "0.5738498...
0.8047244
0
Test case for webinarPollGet Get a Webinar Poll.
Тест-кейс для webinarPollGet Получение опроса вебинара.
public function testWebinarPollGet() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testListPastWebinarPollResults()\n {\n }", "public function testWebinarPollUpdate()\n {\n }", "public function polls_get($pollId = NULL){\n $this->load->model(\"poll\");\n\n if (isset($pollId)) {\n try {\n $poll = $this->poll->getPoll($pollId)...
[ "0.6517212", "0.63763607", "0.63285667", "0.61603045", "0.61146563", "0.5927292", "0.58602315", "0.56228215", "0.54828477", "0.54216975", "0.53326815", "0.5261555", "0.5261327", "0.5234743", "0.5209806", "0.51862484", "0.5137796", "0.51247567", "0.5106876", "0.50816756", "0.5...
0.761019
0
Test case for webinarPollUpdate Update a Webinar Poll.
Тест-кейс для webinarPollUpdate Обновление опроса в вебинаре.
public function testWebinarPollUpdate() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function update_poll()\n {\n //var_dump::display($_POST);\n @session::init();\n $v_website_id = session::get('session_website_id');\n $v_poll_id = get_post_var('hdn_item_id','');\n $v_poll_name = get_post_var('txt_poll_name');\n $v_p...
[ "0.67058426", "0.6567143", "0.6510409", "0.5973442", "0.59719884", "0.5864462", "0.5863904", "0.58290815", "0.57604766", "0.5751709", "0.57137495", "0.5650021", "0.5637855", "0.56267464", "0.5623237", "0.56209123", "0.56080276", "0.5605678", "0.55975664", "0.5576203", "0.5551...
0.79205805
0
Test case for webinarPolls List a Webinar's Polls.
Тест-кейс для вебинараPolls Перечисление опросов вебинара.
public function testWebinarPolls() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testListPastWebinarPollResults()\n {\n }", "public function testGetAllPolls()\n {\n Passport::actingAs(\n factory(\"App\\User\")->create(),\n ['*']\n );\n $polls= factory(\"App\\Poll\",5)->create();\n $response = $this->get('/polls');\n ...
[ "0.7220611", "0.67623955", "0.64286876", "0.6334028", "0.61761254", "0.5999231", "0.58641374", "0.58622104", "0.5815001", "0.5744109", "0.562562", "0.5541564", "0.5434194", "0.54106075", "0.5409291", "0.5376", "0.53354937", "0.53315526", "0.53140426", "0.53073347", "0.5287145...
0.7082206
1
Test case for webinarRegistrantCreate Add a Webinar Registrant.
Тест-кейс для webinarRegistrantCreate Добавление участника в вебинар.
public function testWebinarRegistrantCreate() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testWebinarRegistrants()\n {\n }", "function citrixonline_create_registrant_of_webinar($webinar_id=false, $data = array(), $all_fields_chk = false) \n {\n\t\tif($webinar_id and isset($data['first_name']) and isset($data['last_name']) and isset($data['email']))\n\t\t{\n\t\t\t$params = arr...
[ "0.68164665", "0.68048227", "0.65093935", "0.64443994", "0.6280504", "0.6259114", "0.6228451", "0.6091112", "0.59748995", "0.5923236", "0.58715576", "0.58711356", "0.586229", "0.58319163", "0.58306944", "0.5823281", "0.58220184", "0.5764362", "0.57226545", "0.57079804", "0.56...
0.7710731
0
Test case for webinarRegistrantGet Get a Webinar Registrant.
Тест-кейс для webinarRegistrantGet Получение участника вебинара.
public function testWebinarRegistrantGet() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_registrants_of_webinars($webinar_id=false) \n {\n\t\tif($webinar_id)\n\t\t{\n\t\t\tif(!$this->organizer_key or !$this->access_token)\n\t\t\t\treturn false;\n\t\t\t\t\n\t\t\t$return_array = array();\n\t\t\t\n\t\t\t$return_array = json_decode($this->make_request(\"https://api.citrixonline.com/G2W/res...
[ "0.68977153", "0.6843426", "0.6761253", "0.6463811", "0.64311665", "0.6392972", "0.63280797", "0.62443304", "0.60247093", "0.5908627", "0.57308906", "0.55995554", "0.5596293", "0.558569", "0.5451014", "0.54231215", "0.53971064", "0.53788775", "0.53557867", "0.5348735", "0.533...
0.7519076
0
Test case for webinarRegistrantQuestionUpdate Update Registration Questions.
Тест-кейс для вебинара RegistrantQuestionUpdate Обновление регистрационных вопросов.
public function testWebinarRegistrantQuestionUpdate() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testUpdateSurveyQuestion0()\n {\n }", "public function testUpdateSurveyQuestion0()\n {\n }", "public function testWebinarRegistrantsQuestionsGet()\n {\n }", "public function testUpdateVendorComplianceSurvey()\n {\n }", "public function testUpdateSurveyQuestionChoice0...
[ "0.6326959", "0.6326959", "0.6215054", "0.6106913", "0.5868318", "0.5868318", "0.5843494", "0.58333194", "0.5764647", "0.5714424", "0.5704338", "0.570071", "0.570071", "0.56935734", "0.5648956", "0.5614041", "0.5593699", "0.5581167", "0.558031", "0.5559604", "0.5554796", "0...
0.81059843
0
Test case for webinarRegistrantStatus Update Webinar Registrant Status.
Тест-кейс для обновления статуса участника вебинара.
public function testWebinarRegistrantStatus() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function update_organiser_status(){\r\n\t\t$this->organiser_model->update_organiser_status($_POST['status'],$_POST['organiser_id']);\r\n\t\t$this->send_status_email($_POST['status'],$_POST['organiser_id']);\r\n\t\techo \"1\";exit;\r\n\t}", "public function testWebinarUpdate()\n {\n }", "public function t...
[ "0.61954045", "0.596753", "0.5939235", "0.59271204", "0.58863634", "0.58448845", "0.5814457", "0.5804797", "0.573674", "0.55866015", "0.5571828", "0.554309", "0.5540145", "0.55377865", "0.5517234", "0.5506369", "0.54942244", "0.5482305", "0.5469329", "0.5466056", "0.54422605"...
0.7310263
0
Test case for webinarRegistrants List Webinar Registrants.
Тест-кейс для списка участников вебинара.
public function testWebinarRegistrants() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_registrants_of_webinars($webinar_id=false) \n {\n\t\tif($webinar_id)\n\t\t{\n\t\t\tif(!$this->organizer_key or !$this->access_token)\n\t\t\t\treturn false;\n\t\t\t\t\n\t\t\t$return_array = array();\n\t\t\t\n\t\t\t$return_array = json_decode($this->make_request(\"https://api.citrixonline.com/G2W/res...
[ "0.712533", "0.6706353", "0.65471625", "0.63244635", "0.60663444", "0.59959614", "0.5994309", "0.5917624", "0.5810444", "0.57461953", "0.5665831", "0.5652421", "0.56106544", "0.5591197", "0.5565672", "0.5482361", "0.54760706", "0.5439773", "0.54333013", "0.543098", "0.5406093...
0.72998947
0
Test case for webinarRegistrantsQuestionsGet List Registration Questions.
Тест-кейс для получения списка вопросов регистрации в вебинаре.
public function testWebinarRegistrantsQuestionsGet() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function registration_questions() {\n\t\t// return $this->get_registration_token_list();\n\t\t$category = Category::with('questions')->where('name', 'registration')->first();\n\n\t\tif($this->categoryHasLessThanFiveQuestions($category)) {\n\t\t\treturn response()->json(['status' => false, 'code' => 200, 'me...
[ "0.7154707", "0.60555196", "0.60346353", "0.5704522", "0.5638833", "0.5632243", "0.5621794", "0.5526942", "0.5455713", "0.54485816", "0.5391416", "0.53890324", "0.53485394", "0.53445524", "0.53413343", "0.53380704", "0.5323038", "0.5306515", "0.5293291", "0.5253302", "0.52309...
0.7223803
0
Test case for webinarStatus Update Webinar Status.
Тест-кейс для обновления статуса вебинара.
public function testWebinarStatus() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testWebinarUpdate()\n {\n }", "public function testWebinarPollUpdate()\n {\n }", "public function testWebinarRegistrantStatus()\n {\n }", "public function update_status();", "function update_status()\n\t{\n\t\t$data = filter_forwarded_data($this);\n\t\t\n\t\tif(!empty($dat...
[ "0.7402796", "0.7066509", "0.6592195", "0.65656424", "0.614286", "0.6069463", "0.6058696", "0.59344006", "0.5911069", "0.5883186", "0.5882107", "0.58265615", "0.5811445", "0.5768166", "0.5738013", "0.5712161", "0.569947", "0.568407", "0.56723994", "0.56482786", "0.5633261", ...
0.7082255
1
Test case for webinarUpdate Update a Webinar.
Тест-кейс для webinarUpdate Обновление вебинара.
public function testWebinarUpdate() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testWebinarPollUpdate()\n {\n }", "public function testWebinarRegistrantQuestionUpdate()\n {\n }", "public function update($meeting)\n {\n\n }", "public function test_update() {\n global $DB;\n\n self::setAdminUser();\n $this->resetAfterTest(true);\n\n ...
[ "0.73612994", "0.6821884", "0.6562233", "0.6452065", "0.64265007", "0.6362201", "0.6313415", "0.6226509", "0.6219833", "0.60943675", "0.6045985", "0.6031974", "0.6031974", "0.6027522", "0.5991147", "0.5972692", "0.59578246", "0.59480345", "0.59453034", "0.59413856", "0.592457...
0.8108941
0
Test case for webinars List Webinars.
Тест-кейс для вебинаров Список вебинаров.
public function testWebinars() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testWebinarPanelists()\n {\n }", "public function testListPastWebinarQA()\n {\n }", "public function list_wilayah()\n\t{\n\t\tif($this->is_login){\n\t\t\t$products = $this->M_region->getAll();\n\t\t\t// Set Response\n\t\t\t$this->response_code = 200;\n\t\t\t$this->response['status']...
[ "0.635775", "0.6300158", "0.6266826", "0.61853427", "0.6053846", "0.5991229", "0.59525377", "0.59223324", "0.5878913", "0.5813563", "0.5790048", "0.57246953", "0.5714969", "0.5712513", "0.56930894", "0.5674928", "0.5632804", "0.5627633", "0.5627321", "0.56119186", "0.559497",...
0.7002258
0
Test for Directory::factory() The directory doesn't exist. Throws Kaili\DirectoryException because the provided directory doesn't exist.
Тест для Directory::factory() Директория не существует. Выбрасывается исключение Kaili\DirectoryException, поскольку предоставленная директория не существует.
public function test_factory_not_exist() { Directory::factory(ROOT.DS.'test_dir'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function should_throw_if_trying_to_build_on_non_existing_directory(): void\n {\n $this->expectException(\\InvalidArgumentException::class);\n new DirectorySnapshot(__DIR__ . '/not-existing');\n }", "private function ensureDirectory() {\n\t\tif (!is_dir($this -> directory)) {\n\t\t\tif ...
[ "0.7088399", "0.6924278", "0.6888639", "0.68042946", "0.6631374", "0.6572095", "0.6568139", "0.6549179", "0.64917636", "0.6464703", "0.64470893", "0.64444333", "0.6375025", "0.63464355", "0.63353115", "0.63278794", "0.6325423", "0.6319147", "0.6303984", "0.6292826", "0.626997...
0.82290375
0
Test for Directory::create() The Directory already exist. Throws Exception because provided path is an already existent Directory
Тест для Directory::create() Директория уже существует. Выбрасывается исключение, поскольку предоставленный путь представляет собой уже существующую директорию
public function test_create_exists() { Directory::create(ROOT.DS.'application'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function createDirectoryIfNonExistent() {\n if (! file_exists($this->path)) {\n mkdir($this->path);\n }\n }", "public function testExists() {\n $testDirName = self::TEST_DIR . '/testExists';\n\n $handle = (new Directory($testDirName));\n\n mkdir($t...
[ "0.803957", "0.738031", "0.7285328", "0.7276571", "0.7262561", "0.7183224", "0.71716", "0.705012", "0.70488226", "0.70256615", "0.69991064", "0.69938815", "0.6983108", "0.6961843", "0.69514316", "0.6939701", "0.6902881", "0.68776363", "0.6841167", "0.68147177", "0.68039656", ...
0.74785715
1
Test for Directory::rename() Create a new directory named test_dir and renames it as test_new_dir. At the end of the test, remove the created directory.
Тест для Directory::rename() Создайте новый каталог с именем test_dir и переименуйте его в test_new_dir. В конце теста удалите созданный каталог.
public function test_rename() { $object = Directory::create(ROOT.DS.'test_dir'); $object->rename('test_new_dir'); $this->assertEquals($object->get_base_name(), 'test_new_dir'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function test_rename_same_name()\n {\n $object = Directory::create(ROOT.DS.'test_dir');\n $object->rename('test_dir');\n $this->assertEquals($object->get_base_name(), 'test_dir');\n }", "public function testMoveDirectoryMovesEntireDirectoryAndOverwrites()\n {\n mkdir(s...
[ "0.7675573", "0.6942143", "0.6803566", "0.66557056", "0.6410179", "0.63514674", "0.63316065", "0.6303983", "0.62753636", "0.6271949", "0.6264431", "0.6144328", "0.6107304", "0.6092823", "0.60601956", "0.6049897", "0.6024232", "0.60035455", "0.59846485", "0.59535265", "0.59388...
0.8054311
0
Test for Directory::rename() Create a new Directory named test_dir and renames it with the same name. At the end of the test, remove the created directory.
Тест для Directory::rename() Создать новый Directory с именем test_dir и переименовать его в то же имя. В конце теста удалить созданный каталог.
public function test_rename_same_name() { $object = Directory::create(ROOT.DS.'test_dir'); $object->rename('test_dir'); $this->assertEquals($object->get_base_name(), 'test_dir'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function test_rename()\n {\n $object = Directory::create(ROOT.DS.'test_dir');\n $object->rename('test_new_dir');\n $this->assertEquals($object->get_base_name(), 'test_new_dir');\n }", "public function testMoveDirectoryMovesEntireDirectoryAndOverwrites()\n {\n mkdir(sel...
[ "0.8073711", "0.69530237", "0.6793304", "0.67131215", "0.66003954", "0.63539195", "0.6330553", "0.62984866", "0.6267685", "0.6255804", "0.6138651", "0.61358964", "0.61334026", "0.609102", "0.6087658", "0.597927", "0.59581673", "0.5946811", "0.59413356", "0.59262115", "0.59253...
0.78430563
1
Test for Directory::move() Create the Directory test_dir in [ROOT] and moves it to [SYSTEM] At the end of the test, remove the moved directory.
Тест для Directory::move() Создать Directory test_dir в [ROOT] и переместить его в [SYSTEM] В конце теста удалить перемещенный каталог.
public function test_move() { $object = Directory::create(ROOT.DS.'test_dir'); $object->move(SYSTEM); $this->assertTrue(is_dir(SYSTEM.DS.'test_dir')); $this->assertFalse(is_dir(ROOT.DS.'test_dir')); $this->assertEquals($object->get_path(), SYSTEM.DS.'test_dir'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function test_move_directory_exists()\n {\n $object = Directory::create(ROOT.DS.'test_dir');\n $object->move(ROOT, false);\n }", "public function testMoveDirectoryMovesEntireDirectory()\n {\n mkdir(self::$temp.DS.'tmp2', 0777, true);\n file_put_contents(self::$temp.DS....
[ "0.80949366", "0.7867393", "0.76190865", "0.7546802", "0.73030376", "0.7230169", "0.7162468", "0.6590736", "0.6350258", "0.6209349", "0.6183593", "0.6081983", "0.60330856", "0.5999443", "0.59931886", "0.5987112", "0.5961271", "0.59227955", "0.59041375", "0.5877521", "0.584598...
0.84177864
0
Test for Directory::move() Attempts to move [ROOT]/test.txt to [ROOT] with overwriting disabled Throws \Kaili\DirectoryException because Directory alredy exists
Тест для Directory::move() Попытка переместить [ROOT]/test.txt в [ROOT] с отключенным перезаписыванием Выбрасывает \Kaili\DirectoryException, так как директория уже существует
public function test_move_directory_exists() { $object = Directory::create(ROOT.DS.'test_dir'); $object->move(ROOT, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function test_move_not_exists_dir()\n {\n $object = Directory::create(ROOT.DS.'test_dir');\n $object->move(ROOT.DS.'not_exist');\n }", "public function test_move()\n {\n $object = Directory::create(ROOT.DS.'test_dir');\n $object->move(SYSTEM);\n $this->assertTru...
[ "0.8364826", "0.8341061", "0.8054002", "0.80286586", "0.78115845", "0.7408394", "0.7035016", "0.6758503", "0.66618764", "0.6528062", "0.6508351", "0.6483764", "0.6476313", "0.64304525", "0.6402691", "0.640205", "0.62653875", "0.62580246", "0.6214017", "0.6189024", "0.615714",...
0.84916425
0
Test for Directory::move() Attempts to move [ROOT]/index.php to [ROOT]/not_exist Throws \InvalidArgumentException because provided path doesn't exist
Тест для Directory::move() Попытка переместить [ROOT]/index.php в [ROOT]/not_exist Вызывает \InvalidArgumentException, так как предоставленный путь не существует
public function test_move_not_exists_dir() { $object = Directory::create(ROOT.DS.'test_dir'); $object->move(ROOT.DS.'not_exist'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function test_move_directory_exists()\n {\n $object = Directory::create(ROOT.DS.'test_dir');\n $object->move(ROOT, false);\n }", "public function test_move()\n {\n $object = Directory::create(ROOT.DS.'test_dir');\n $object->move(SYSTEM);\n $this->assertTrue(is_d...
[ "0.77261436", "0.7507489", "0.7113042", "0.6941977", "0.6908604", "0.67369854", "0.6474342", "0.6204443", "0.6170524", "0.6140496", "0.6086301", "0.6080597", "0.6074179", "0.60411793", "0.5988749", "0.5920087", "0.59006655", "0.58893067", "0.58556426", "0.58260906", "0.581966...
0.798785
0
Test for Directory::remove() Create and remove [ROOT]/test_dir
Тест для Directory::remove() Создать и удалить [ROOT]/test_dir
public function test_remove() { $path = ROOT.DS.'test_dir'; $object = Directory::create($path); $object->remove($path); $this->assertFalse(is_dir($path)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testRemoveDirectory()\n {\n $directory = vfsStream::url('foo');\n $method = $this->makeMethodPublic('empty_directory');\n $method->invokeArgs($this->testModel, [$directory, true]);\n\n $this->assertFileNotExists(vfsStream::url('foo'));\n }", "public function test...
[ "0.7788672", "0.76651603", "0.7491406", "0.73429984", "0.73013794", "0.71828717", "0.715201", "0.6991792", "0.69013095", "0.6786815", "0.6779039", "0.6778822", "0.66575205", "0.66531", "0.65665174", "0.65494186", "0.6527012", "0.6483709", "0.6471884", "0.6419089", "0.6408338"...
0.8669114
0
Test for Directory::scan() Scan the content of ROOT directory
Тест для Directory::scan() Сканирование содержимого директории ROOT
public function test_scan() { $content = array('.','..','application','.git','.gitignore','.htaccess','index.php','nbproject','README','system'); $object = Directory::factory(ROOT); $res = $object->scan(Directory::SORT_ASC); $output = array(); foreach($res as $f) $output[] = $f->get_base_name(); $this->assertEquals($content, $output); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function test_scan_directories()\n {\n $content = array('.','..','application','.git','nbproject','system');\n $object = Directory::factory(ROOT);\n $res = $object->scan(Directory::SORT_ASC, Directory::SCAN_DIRS);\n \n $this->assertEquals(count($content), count($res));\...
[ "0.7979879", "0.77180135", "0.7239821", "0.71102506", "0.68057096", "0.676981", "0.65207386", "0.64884", "0.6479395", "0.639054", "0.6378024", "0.6366621", "0.63291353", "0.62446964", "0.61983824", "0.61747074", "0.6162355", "0.6128189", "0.6079859", "0.6079535", "0.6075999",...
0.77456445
1
Test for Directory::scan() Scan only the directories inside ROOT directory
Тест для Directory::scan() Сканирование только директорий внутри корневой директории
public function test_scan_directories() { $content = array('.','..','application','.git','nbproject','system'); $object = Directory::factory(ROOT); $res = $object->scan(Directory::SORT_ASC, Directory::SCAN_DIRS); $this->assertEquals(count($content), count($res)); foreach($res as $path=>$dir){ $this->assertTrue(in_array($dir->get_base_name(), $content)); $this->assertInstanceOf('\Kaili\Directory', $dir); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function scanFolder()\n {\n return scandir($this->currentPath);\n }", "function rScanDir($scanMe) {\r\n\t\tglobal $path, $tmpPath, $cur_folder, $tags2;\r\n\t\tforeach($scanMe as $folder)\r\n\t\t{\r\n\t\t\tif(is_dir($path.$tmpPath.$folder) && $folder !=\".\" && $folder !=\"..\")\r\n\t\t\t{\r\...
[ "0.7312299", "0.7297761", "0.7171603", "0.71259856", "0.7107098", "0.70851773", "0.6768123", "0.65986484", "0.6514543", "0.63404167", "0.63298833", "0.63052875", "0.6296188", "0.62949747", "0.6283482", "0.6276984", "0.6272302", "0.6215177", "0.6211419", "0.61895525", "0.61505...
0.7933779
0
Test for Directory::scan() Scan only the files inside ROOT directory
Тест для Directory::scan() Сканирование только файлов внутри корневой директории
public function test_scan_files() { $content = array('.gitignore','.htaccess','index.php','README'); $object = Directory::factory(ROOT); $res = $object->scan(Directory::SORT_ASC, Directory::SCAN_FILES); $this->assertEquals(count($content), count($res)); foreach($res as $path=>$dir){ $this->assertTrue(in_array($dir->get_base_name(), $content)); $this->assertInstanceOf('\Kaili\File', $dir); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function test_scan_directories()\n {\n $content = array('.','..','application','.git','nbproject','system');\n $object = Directory::factory(ROOT);\n $res = $object->scan(Directory::SORT_ASC, Directory::SCAN_DIRS);\n \n $this->assertEquals(count($content), count($res));\...
[ "0.7491994", "0.7418604", "0.7250043", "0.71842724", "0.7012226", "0.688901", "0.6712443", "0.66900235", "0.6572419", "0.65611196", "0.6556684", "0.6530685", "0.65249497", "0.64954686", "0.6491414", "0.64674044", "0.64471996", "0.6423127", "0.64098424", "0.6407863", "0.634250...
0.7820266
0
Test for Directory::search() Search file 'index.php' inside the ROOT directory
Тест для Directory::search() Поиск файла 'index.php' внутри корневой директории
public function test_search() { $object = Directory::factory(ROOT); $res = $object->search('/(index.php|.htaccess)/'); $this->assertArrayHasKey(ROOT.DS.'index.php', $res); $this->assertArrayHasKey(ROOT.DS.'.htaccess', $res); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function test_search_by_name()\n {\n $object = Directory::factory(ROOT);\n $res = $object->search_by_name('index.php');\n \n $this->assertArrayHasKey(ROOT.DS.'index.php', $res);\n }", "public function test_search_by_extension()\n {\n $object = Directory::factory...
[ "0.7856435", "0.7526942", "0.6122159", "0.61114746", "0.60262454", "0.59891254", "0.58569324", "0.5847987", "0.582122", "0.58177185", "0.58087236", "0.5745908", "0.57202494", "0.5702491", "0.5669456", "0.5634786", "0.56143713", "0.5592482", "0.55711865", "0.5551054", "0.55406...
0.8318728
0
Test for Directory::search_by_name() Search file 'index.php' inside the ROOT directory
Тест для Directory::search_by_name() Поиск файла 'index.php' внутри корневой директории
public function test_search_by_name() { $object = Directory::factory(ROOT); $res = $object->search_by_name('index.php'); $this->assertArrayHasKey(ROOT.DS.'index.php', $res); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function test_search()\n {\n $object = Directory::factory(ROOT);\n $res = $object->search('/(index.php|.htaccess)/');\n \n $this->assertArrayHasKey(ROOT.DS.'index.php', $res);\n $this->assertArrayHasKey(ROOT.DS.'.htaccess', $res);\n }", "public function test_search...
[ "0.7803914", "0.74054193", "0.6096329", "0.59778947", "0.59626746", "0.5898367", "0.58588976", "0.5772092", "0.57219416", "0.56567097", "0.56024987", "0.55696607", "0.5523678", "0.55153424", "0.54849744", "0.5467967", "0.5423201", "0.5414956", "0.53814286", "0.5311357", "0.52...
0.8326893
0
Test for Directory::search_by_extension() Search files with 'php' extension inside the ROOT directory
Тест для Directory::search_by_extension() Поиск файлов с расширением 'php' внутри директории ROOT
public function test_search_by_extension() { $object = Directory::factory(ROOT); $res = $object->search_by_extension(array('php')); $this->assertArrayHasKey(ROOT.DS.'index.php', $res); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function _findExtensionFiles() {\r\n\t\r\n\t\t\tif (empty($this->_extensionsPath)) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\r\n\t\t\t//make sure we only get the package files in that directory\r\n\t\t\t$zipFiles = JFolder::files($this->_extensionsPath, '\\.zip$', false, false);\r\n\t\t\t$gzFiles = JFolder::file...
[ "0.6378908", "0.62099826", "0.61495525", "0.6130767", "0.6104926", "0.6008885", "0.59576637", "0.5952251", "0.593186", "0.59039265", "0.58814347", "0.58732206", "0.5866185", "0.5841527", "0.584152", "0.58406514", "0.57603306", "0.5739005", "0.57352954", "0.572393", "0.5692", ...
0.84767115
0
Set a row attribute
Установить атрибут строки
public function set_row_attr($row, $attr_name, $attr_val) { $row = (int)$row; $attr_name = (string)$attr_name; $attr_val = (string)$attr_val; if ($attr_name == '' || $attr_val == '') { return false; } if (isset($this->row_attrs[$row][$attr_name])) { $this->row_attrs[$row][$attr_name] .= ' ' . $attr_val; } else { $this->row_attrs[$row][$attr_name] = $attr_val; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setTrTdAttr ($attr, $row=null) {\n if (is_numeric ($row))\n $this->_setAttr ($attr, $this->trtdAttr[$row]);\n else\n $this->_setAttr ($attr, $this->trtdAttr[]);\n }", "public function setRow($row)\n {\n $this->row = $row;\n }", "pu...
[ "0.7184818", "0.69530857", "0.6781479", "0.67430913", "0.65449625", "0.6439724", "0.64035505", "0.6400028", "0.6385595", "0.6361818", "0.6347521", "0.63459355", "0.63459355", "0.634324", "0.6320215", "0.6309764", "0.62964934", "0.6223196", "0.6202105", "0.6145299", "0.6120304...
0.71445227
1
End a fieldset in the form
Завершить поле набора в форме
public function end_fieldset() { $fs_attrs = array('marker' => 'end'); $fieldset = new GenElement('fieldset', '', $fs_attrs); array_push($this->form_elements, array($fieldset->render(1), 0, 'fieldset')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function end_fieldset()\n\t{\n\t\tif( $this->has_fieldset )\n\t\t\t$this->buffer.= '</fieldset>';\n\t\t$this->has_fieldset = false;\n\t}", "public static function fieldset_close() {\n\t\t\treturn '</fieldset>';\n\t\t}", "static function closeFieldset()\n {\n echo '</ul>';\n echo '</fiel...
[ "0.8683747", "0.7981708", "0.79485416", "0.7723414", "0.72680134", "0.7240373", "0.7168367", "0.7066881", "0.6913539", "0.6906262", "0.66773194", "0.66431904", "0.66132414", "0.65945315", "0.65435416", "0.651934", "0.6514329", "0.6514329", "0.65118724", "0.6454397", "0.640488...
0.88671374
0
Set alternating row class "alt"
Установить альтернативный класс строки "alt"
public function set_alt_rows() { $this->alt_rows = true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function fancy_altrows($rows) {\r\n\tif(is_array($rows)) {\r\n\t\t$i = 0;\r\n\t\tforeach($rows as $text) { $i++; ?>\r\n\t\t\t\t\t<li class=\"<?php tablealt($i); ?>\"><?php echo $text; ?></li>\r\n<?php\r\n\t\t}\r\n\t}\r\n}", "function boxGetAltRowStyle($i, $classonly = false) {\n\t\tif ($i % 2 == 0)\n\t\t\t$ret =...
[ "0.65590525", "0.64634025", "0.6176579", "0.60998696", "0.5913443", "0.591332", "0.5154975", "0.51529646", "0.514892", "0.51306105", "0.50625557", "0.49814966", "0.4877604", "0.48713368", "0.48532298", "0.48380193", "0.47815675", "0.47287244", "0.4720446", "0.46988484", "0.46...
0.75887257
0
Turn off xsl transformation
Отключить преобразование XSL
public function no_xsl() { $this->xsl_template = ''; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function transformToXmlReturnsTransformedXml(): void\n {\n $this->baseXsltProcessor->returns(['transformToXml' => '<foo>']);\n assertThat($this->xslProcessor->toXML(), equals('<foo>'));\n }", "public function doXHTML_cleaning() {}", "protected function transform()\n {\n // ...
[ "0.58941406", "0.56895256", "0.5678719", "0.5654335", "0.55474824", "0.5529772", "0.552298", "0.5462376", "0.54589814", "0.5355058", "0.5347424", "0.53075933", "0.5186075", "0.511506", "0.5105281", "0.50885534", "0.50488853", "0.5037611", "0.5032306", "0.5014301", "0.49986935...
0.7720259
0
Creates a new Uptime check configuration. (uptimeCheckConfigs.create)
Создает новую конфигурацию проверки доступности. (uptimeCheckConfigs.create)
public function create($parent, UptimeCheckConfig $postBody, $optParams = []) { $params = ['parent' => $parent, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('create', [$params], UptimeCheckConfig::class); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function CreateUptimeCheckConfig(\\Google\\Cloud\\Monitoring\\V3\\CreateUptimeCheckConfigRequest $argument,\n $metadata = [], $options = []) {\n return $this->_simpleRequest('/google.monitoring.v3.UptimeCheckService/CreateUptimeCheckConfig',\n $argument,\n ['\\Google\\Cloud\\Monito...
[ "0.7086295", "0.66852397", "0.5832289", "0.58181393", "0.5645919", "0.5617374", "0.55739444", "0.53473675", "0.51100296", "0.5091077", "0.49437207", "0.47102794", "0.46942794", "0.45402044", "0.44555312", "0.44000417", "0.43998283", "0.4356518", "0.43465766", "0.43297982", "0...
0.80216384
0
Gets a single Uptime check configuration. (uptimeCheckConfigs.get)
Получает одну конфигурацию проверки времени работы. (uptimeCheckConfigs.get)
public function get($name, $optParams = []) { $params = ['name' => $name]; $params = array_merge($params, $optParams); return $this->call('get', [$params], UptimeCheckConfig::class); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getUptimeCheckConfig()\n {\n return $this->uptime_check_config;\n }", "public function GetUptimeCheckConfig(\\Google\\Cloud\\Monitoring\\V3\\GetUptimeCheckConfigRequest $argument,\n $metadata = [], $options = []) {\n return $this->_simpleRequest('/google.monitoring.v3.Upt...
[ "0.78731394", "0.6626676", "0.5898211", "0.5777897", "0.5675747", "0.56366116", "0.55743366", "0.5553726", "0.5539036", "0.5508878", "0.54915833", "0.54881966", "0.5483576", "0.5481618", "0.54761094", "0.5475268", "0.545728", "0.5454844", "0.5446216", "0.54440486", "0.5430929...
0.79686177
0
Lists the existing valid Uptime check configurations for the project (leaving out any invalid configurations). (uptimeCheckConfigs.listProjectsUptimeCheckConfigs)
Перечисляет существующие действительные конфигурации проверок доступности для проекта (исключая любые недействительные конфигурации). (uptimeCheckConfigs.listProjectsUptimeCheckConfigs)
public function listProjectsUptimeCheckConfigs($parent, $optParams = []) { $params = ['parent' => $parent]; $params = array_merge($params, $optParams); return $this->call('list', [$params], ListUptimeCheckConfigsResponse::class); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function ListUptimeCheckConfigs(\\Google\\Cloud\\Monitoring\\V3\\ListUptimeCheckConfigsRequest $argument,\n $metadata = [], $options = []) {\n return $this->_simpleRequest('/google.monitoring.v3.UptimeCheckService/ListUptimeCheckConfigs',\n $argument,\n ['\\Google\\Cloud\\Monitorin...
[ "0.6722513", "0.5504905", "0.53350157", "0.52022237", "0.5178261", "0.49790195", "0.49472752", "0.47796518", "0.4686594", "0.4643526", "0.46052107", "0.4591228", "0.45873624", "0.4557695", "0.4524556", "0.45164093", "0.44967884", "0.4488663", "0.44674298", "0.44586378", "0.44...
0.7945477
0
Updates an Uptime check configuration. You can either replace the entire configuration with a new one or replace only certain fields in the current configuration by specifying the fields to be updated via updateMask. Returns the updated configuration. (uptimeCheckConfigs.patch)
Обновляет конфигурацию проверки времени работы. Вы можете либо полностью заменить конфигурацию новой, либо обновить только определенные поля текущей конфигурации, указав поля для обновления через updateMask. Возвращает обновленную конфигурацию. (uptimeCheckConfigs.patch)
public function patch($name, UptimeCheckConfig $postBody, $optParams = []) { $params = ['name' => $name, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('patch', [$params], UptimeCheckConfig::class); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function UpdateUptimeCheckConfig(\\Google\\Cloud\\Monitoring\\V3\\UpdateUptimeCheckConfigRequest $argument,\n $metadata = [], $options = []) {\n return $this->_simpleRequest('/google.monitoring.v3.UptimeCheckService/UpdateUptimeCheckConfig',\n $argument,\n ['\\Google\\Cloud\\Monito...
[ "0.6711495", "0.66990566", "0.5914926", "0.582598", "0.5785443", "0.56012374", "0.5382435", "0.49926636", "0.49801952", "0.48861706", "0.48679906", "0.48537675", "0.48073092", "0.47214732", "0.47213593", "0.46373323", "0.46329278", "0.46152425", "0.45887405", "0.45285544", "0...
0.77980983
0
test getting WP profile no relation
тест получения профиля WP без отношения
public function testGetProfileWPNoRel() { $url = "http://127.0.0.1/app_test.php/profile/view/natasha-romanov"; $username = 'profileBucky@gmail.com'; $password = 'password'; $response = \Httpful\Request::get($url)->basicAuth($username, $password)->send(); $this->assertEquals('success', $response->body->status); $this->assertEquals('Natasha Romanov', $response->body->data->user->name); $this->assertNotEquals(0, $response->body->data->user->isWellnessPro); $this->assertEquals(0, $response->body->data->relationships->isSupporter); $this->assertEquals(0, $response->body->data->relationships->isSupportee); $this->assertEquals(0, $response->body->data->relationships->isWellnessProRel); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testWPGetProfileOtherUserNoRel()\r\n {\r\n $url = \"http://127.0.0.1/app_test.php/profile/view/bucky-barnes\";\r\n\r\n $username = 'profileNatasha@gmail.com';\r\n $password = 'password';\r\n\r\n $response = \\Httpful\\Request::get($url)->basicAuth($username, $password...
[ "0.7313183", "0.67644936", "0.6726738", "0.6717151", "0.6700389", "0.6694808", "0.65982246", "0.6515449", "0.6451861", "0.64039105", "0.63828796", "0.6347496", "0.633259", "0.62712973", "0.6269025", "0.6254397", "0.62381446", "0.62373203", "0.62109494", "0.6209512", "0.618217...
0.7236867
1
tests WP getting other user profile
тестирование получения профиля другого пользователя
public function testWPGetProfileOtherUserNoRel() { $url = "http://127.0.0.1/app_test.php/profile/view/bucky-barnes"; $username = 'profileNatasha@gmail.com'; $password = 'password'; $response = \Httpful\Request::get($url)->basicAuth($username, $password)->send(); $this->assertEquals('success', $response->body->status); $this->assertEquals('Bucky Barnes', $response->body->data->user->name); $this->assertEquals(0, $response->body->data->user->isWellnessPro); $this->assertEquals(0, $response->body->data->relationships->isSupporter); $this->assertEquals(0, $response->body->data->relationships->isSupportee); $this->assertEquals(0, $response->body->data->relationships->isWellnessProRel); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testDestiny2GetProfile()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "abstract protected function getUserProfile();", "public function testWPGetProfileOtherUserPatientRel()\r\n {\r\n $url = \"http://127.0.0.1/app_test.php/profile/...
[ "0.7305726", "0.71837515", "0.7180283", "0.6933108", "0.68574077", "0.68501556", "0.677595", "0.6709536", "0.6694701", "0.6604053", "0.65933204", "0.6558116", "0.6557394", "0.65279", "0.63662887", "0.6222691", "0.62009585", "0.61989343", "0.61876166", "0.6178911", "0.61762846...
0.77301717
0
test WP getting patient profile
тестирование получения профиля пациента WP
public function testWPGetProfileOtherUserPatientRel() { $url = "http://127.0.0.1/app_test.php/profile/view/bucky-barnes"; $username = 'profileVision@gmail.com'; $password = 'password'; $response = \Httpful\Request::get($url)->basicAuth($username, $password)->send(); $this->assertEquals('success', $response->body->status); $this->assertEquals('Bucky Barnes', $response->body->data->user->name); $this->assertEquals(0, $response->body->data->user->isWellnessPro); $this->assertEquals(0, $response->body->data->relationships->isSupporter); $this->assertEquals(0, $response->body->data->relationships->isSupportee); $this->assertEquals(1, $response->body->data->relationships->isWellnessProRel); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testProfilePersonalInfo()\n {\n // Create a user with the username 'johndoe'\n $user = factory(User::class)->create(['username'=>'johndoe']);\n // Add a profile record to the user\n $profile = factory(Profile::class)->make(['country_id'=>4]);\n // Save the user...
[ "0.66872036", "0.6682553", "0.66458416", "0.6529471", "0.6407498", "0.640187", "0.6374029", "0.636708", "0.63409925", "0.625468", "0.6236356", "0.62344956", "0.62273055", "0.622525", "0.62183315", "0.6185998", "0.61758316", "0.60946333", "0.6046463", "0.59812826", "0.59422874...
0.7107858
0
sg_map_meta_cap function to add Meta Capability Handling.
Функция sg_map_meta_cap для добавления обработки мета-возможностей.
public function sg_map_meta_cap( $caps, $cap, $user_id, $args ) { $capability_type = 'small_group'; if ( 'edit_' . $capability_type == $cap || 'delete_' . $capability_type == $cap || 'read_' . $capability_type == $cap ) { $post = get_post( $args[0] ); $post_type = get_post_type_object( $post->post_type ); /* Set an empty array for the caps. */ $caps = array( ); } /* If editing a help note, assign the required capability. */ if ( "edit_{$capability_type}" == $cap ) { if( $user_id == $post->post_author ) $caps[] = $post_type->cap->edit_posts; else $caps[] = $post_type->cap->edit_others_posts; } /* If deleting a help note, assign the required capability. */ elseif( "delete_{$capability_type}" == $cap ) { if( isset( $post->post_author ) && $user_id == $post->post_author && isset( $post_type->cap->delete_posts ) ) $caps[] = $post_type->cap->delete_posts; elseif ( isset( $post_type->cap->delete_others_posts ) ) $caps[] = $post_type->cap->delete_others_posts; } /* If reading a private help note, assign the required capability. */ elseif( "read_{$capability_type}" == $cap ) { if( 'private' != $post->post_status ) $caps[] = 'read'; elseif ( $user_id == $post->post_author ) $caps[] = 'read'; else $caps[] = $post_type->cap->read_private_posts; } /* Return the capabilities required by the user. */ return $caps; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setMapMetaCap($metaCap = true){\n\t\t$this->mapMetaCap = $metaCap;\n\t}", "function map_meta_cap($cap, $user_id, ...$args)\n {\n }", "function erp_map_meta_caps( $caps = array(), $cap = '', $user_id = 0, $args = array() ) {\n return apply_filters( 'erp_map_meta_caps', $caps, $cap, $use...
[ "0.7113233", "0.68950325", "0.68331647", "0.6664682", "0.6118787", "0.6091864", "0.5811714", "0.58066976", "0.5763529", "0.56482375", "0.56384635", "0.55844116", "0.5581189", "0.55544406", "0.55460584", "0.5411758", "0.5384209", "0.5345685", "0.51998556", "0.5140477", "0.5113...
0.7116632
0
Creates a demand object from settings
Создает объект спроса из настроек
public function createFromSettings(array $settings) { /** @var ReservationDemand $demand */ $demand = $this->objectManager->get(static::DEMAND_CLASS); if ($demand instanceof PeriodAwareDemandInterface) { $this->setPeriodConstraints($demand, $settings); } $this->applySettings($demand, $settings); return $demand; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createDemandFromSettings ($settings) {\n\t\t/** @var PlaceDemand $demand */\n\t\t$demand = $this->objectManager->get('DWenzel\\\\Ajaxmap\\\\Domain\\\\Model\\\\Dto\\\\PlaceDemand');\n\t\tif (isset($settings['orderBy']) && isset($settings['orderDirection'])) {\n\t\t\t$demand->setOrder($settings['orde...
[ "0.7201751", "0.7110685", "0.6074803", "0.5508471", "0.53642505", "0.535256", "0.535256", "0.535256", "0.5309225", "0.5165147", "0.5156386", "0.5149077", "0.5134196", "0.5104301", "0.5065539", "0.50389946", "0.50341195", "0.502032", "0.49730998", "0.49667892", "0.4958916", ...
0.714715
1
TODO: Implement deleteStatement() method.
TODO: Реализовать метод deleteStatement().
public function deleteStatement() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract function getDeleteStatement();", "public function walkDeleteStatement(AST\\DeleteStatement $deleteStatement): void;", "public function testDeleteStmt()\n {\n $delete = $this->getConnection()\n ->delete()\n ('dummy_posts')\n ('blog_id = :id');\n ...
[ "0.8400239", "0.70125234", "0.6945524", "0.6887968", "0.6805836", "0.67936546", "0.6769431", "0.67364323", "0.66977626", "0.66763014", "0.6607683", "0.6605072", "0.65323144", "0.65315753", "0.64970666", "0.6473081", "0.64414334", "0.6420754", "0.64002836", "0.63570464", "0.63...
0.8804365
0
bridges Get form bridge instance for ADT
bridges Получает экземпляр моста для ADT
public function getFormBridgeForInstance(ilADT $a_adt) { $class = $this->initTypeClass($a_adt->getType(), "FormBridge"); return new $class($a_adt); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function _getBridge() {}", "private function get_bridge()\n\t{\n\t\treturn $this->m_bridge;\n\t}", "function getBridgeModel() {\n return $this->bridgeModel;\n }", "public function getDBBridgeForInstance(ilADT $a_adt)\r\n\t{\r\n\t\t$class = $this->initTypeClass($a_adt->getType(), \"DBBridg...
[ "0.6226911", "0.6221184", "0.60709274", "0.5868567", "0.5578884", "0.5485785", "0.5461808", "0.5460027", "0.5388528", "0.53154093", "0.52404904", "0.5183814", "0.5161728", "0.5161465", "0.5150575", "0.5140566", "0.5127729", "0.509111", "0.50733495", "0.5071981", "0.50525117",...
0.7022916
0
Get DB bridge instance for ADT
Получить экземпляр моста БД для ADT
public function getDBBridgeForInstance(ilADT $a_adt) { $class = $this->initTypeClass($a_adt->getType(), "DBBridge"); return new $class($a_adt); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getActiveRecordBridgeForInstance(ilADT $a_adt)\r\n\t{\r\n\t\t$class = $this->initTypeClass($a_adt->getType(), \"ActiveRecordBridge\");\t\t\r\n\t\treturn new $class($a_adt);\r\n\t}", "private function getDBA() {\n\t\tif ( $this->dba != null ) {\n\t\t\treturn $this->dba;\n\t\t}\n\t\tswitch ( $this-...
[ "0.7011467", "0.66538334", "0.6570967", "0.6403578", "0.63902646", "0.6369858", "0.6368706", "0.62863606", "0.625861", "0.62197703", "0.61985743", "0.619759", "0.61788714", "0.61603236", "0.61416847", "0.61349", "0.6133471", "0.61327225", "0.61229753", "0.6114849", "0.6108568...
0.79595876
0
Get presentation bridge instance for ADT
Получить экземпляр представления моста для ADT
public function getPresentationBridgeForInstance(ilADT $a_adt) { $class = $this->initTypeClass($a_adt->getType(), "PresentationBridge"); return new $class($a_adt); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getActiveRecordBridgeForInstance(ilADT $a_adt)\r\n\t{\r\n\t\t$class = $this->initTypeClass($a_adt->getType(), \"ActiveRecordBridge\");\t\t\r\n\t\treturn new $class($a_adt);\r\n\t}", "public function getDBBridgeForInstance(ilADT $a_adt)\r\n\t{\r\n\t\t$class = $this->initTypeClass($a_adt->getType()...
[ "0.6440561", "0.6297715", "0.6102629", "0.6033755", "0.5811633", "0.57800436", "0.5729517", "0.56088495", "0.52797216", "0.5263347", "0.5245963", "0.51340455", "0.5122018", "0.51195294", "0.5107162", "0.51070225", "0.5100116", "0.50740755", "0.5073153", "0.5071852", "0.507106...
0.78331214
0
Init active record by type
Инициализация активного записи по типу
public static function initActiveRecordByType() { require_once "Services/ADT/classes/ActiveRecord/class.ilADTActiveRecordByType.php"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function __init(string $type = \"PDO\") {\n $this -> __createAdapter($type, static::$table);\n }", "public function __construct(){\n\n\t\t$this->types_model = new Types();\n\t}", "protected function initDatabaseRecord() {}", "private function init() {\r\n settype($this->id, \"int\"...
[ "0.71986485", "0.6576926", "0.6419527", "0.62899625", "0.62655044", "0.6261549", "0.62429035", "0.6198593", "0.6197844", "0.61652935", "0.6157843", "0.6111789", "0.6106766", "0.60818005", "0.6047299", "0.60472363", "0.6037188", "0.60242766", "0.6020157", "0.6000934", "0.59628...
0.75186765
0
Test that pagination parameters are passed to the endpoint.
Тестирование передачи параметров пагинации на эндпоинт.
public function testGetWithPagination() { $expected_count = 2; $results_1 = self::$api->getAll([], 0, $expected_count); usleep(AUTH0_PHP_TEST_INTEGRATION_SLEEP); $this->assertCount($expected_count, $results_1); $expected_page = 1; $results_2 = self::$api->getAll([], $expected_page, 1); usleep(AUTH0_PHP_TEST_INTEGRATION_SLEEP); $this->assertCount(1, $results_2); $this->assertEquals($results_1[$expected_page]['client_id'], $results_2[0]['client_id']); $this->assertEquals($results_1[$expected_page]['audience'], $results_2[0]['audience']); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testPagination()\n {\n\n // Set public page length to 2.\n set_option('per_page_public', 2);\n\n $item1 = $this->_item(true, 'Item 1');\n $item2 = $this->_item(true, 'Item 2');\n $item3 = $this->_item(true, 'Item 3');\n $item4 = $this->_item(true, 'Item ...
[ "0.70548224", "0.67531145", "0.67249376", "0.6706914", "0.6686927", "0.66857654", "0.6682336", "0.6552432", "0.6549364", "0.6505953", "0.64882123", "0.64774555", "0.6447404", "0.6440942", "0.64331806", "0.641788", "0.64111185", "0.63885736", "0.6384449", "0.63785315", "0.6356...
0.7644956
0
Test that the "include_totals" parameter works.
Тестирование работы параметра "include_totals".
public function testGetAllIncludeTotals() { $expected_page = 0; $expected_count = 2; $results = self::$api->getAll(['include_totals' => true], $expected_page, $expected_count); usleep(AUTH0_PHP_TEST_INTEGRATION_SLEEP); $this->assertArrayHasKey('total', $results); $this->assertEquals($expected_page * $expected_count, $results['start']); $this->assertEquals($expected_count, $results['limit']); $this->assertNotEmpty($results['client_grants']); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testTotal()\n {\n\n \t$data = [\n \t\t'base_price' => 10,\n \t\t'spacing_cost' => 10,\n \t\t'work_level_cost' => 50,\n \t\t'urgency_cost' => 20,\n \t\t'number_of_pages' => 5,\n \t\t'total_additional_services_cost' => 10\n \t\t// 'vat' => 100\n \t];\n\n $foo = se...
[ "0.6468725", "0.61584353", "0.61541104", "0.61541104", "0.61541104", "0.61541104", "0.61541104", "0.6009728", "0.59305", "0.5900423", "0.5868993", "0.58609045", "0.5784935", "0.5773006", "0.57543004", "0.57496685", "0.57306576", "0.5725652", "0.5710329", "0.5680534", "0.56702...
0.7849056
0
Test that we can create, update, and delete a Client Grant.
Тестирование возможности создания, обновления и удаления клиентского разрешения.
public function testCreateUpdateDeleteGrant() { $client_id = self::$env['APP_CLIENT_ID']; $audience = self::$apiIdentifier; // Create a Client Grant with just one of the testing scopes. $create_result = self::$api->create($client_id, $audience, [self::$scopes[0]]); usleep(AUTH0_PHP_TEST_INTEGRATION_SLEEP); $this->assertArrayHasKey('id', $create_result); $this->assertEquals($client_id, $create_result['client_id']); $this->assertEquals($audience, $create_result['audience']); $this->assertEquals([self::$scopes[0]], $create_result['scope']); $grant_id = $create_result['id']; // Test patching the created Client Grant. $update_result = self::$api->update($grant_id, self::$scopes); usleep(AUTH0_PHP_TEST_INTEGRATION_SLEEP); $this->assertEquals(self::$scopes, $update_result['scope']); // Test deleting the created Client Grant. $delete_result = self::$api->delete($grant_id); usleep(AUTH0_PHP_TEST_INTEGRATION_SLEEP); $this->assertNull($delete_result); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function test_machine_user_can_perform_client_credentials_grant() {\n\n $user = factory(User::class)->create();\n\n $createdClientResponse = $this->log_in_and_create_client_for_user($user);\n\n // so you can logout for client credentials grant!\n auth()->logout();\n\n $res...
[ "0.6682855", "0.664292", "0.66278887", "0.6474675", "0.63155806", "0.619589", "0.6142597", "0.6067689", "0.6056032", "0.6029367", "0.60248876", "0.5914911", "0.5910681", "0.5909496", "0.5839494", "0.5836691", "0.58031607", "0.5800475", "0.58004636", "0.579917", "0.57944465", ...
0.7718429
0
/$query = $this>db>get('tb_collection'); return $query>result_array();
/$query = $this>db>get('tb_collection'); return $query>result_array();
public function getAllCollection() { return $this->db->get('tb_collection')->result_array(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function collection() {\n \t$db = $this->db;\n\t\t$sql = $this->sql();\n\t\t$rows = $db::execute($sql);\n\t\t$model = $this->model;\n\t\treturn new \\Collection($model::arrayFactoryFromRows($rows));\n\t}", "public function getCollection($table)\n {\n $sql = 'SELECT * FROM '.$table;\n ...
[ "0.7017653", "0.6901569", "0.67929614", "0.67762166", "0.6691817", "0.6596962", "0.65945613", "0.656072", "0.65531754", "0.6491643", "0.64909357", "0.64734757", "0.6461831", "0.64484036", "0.64322704", "0.64143544", "0.6387219", "0.6387219", "0.6370071", "0.6370071", "0.63700...
0.7420564
0
Builds tabs of the Wizard.
Создает вкладки мастера.
function buildTabs() { $this->_formBuilt = true; // Here we get all page names in the controller $pages = array(); $myName = $current = $this->getAttribute('id'); while (null !== ($current = $this->controller->getPrevName($current))) { $pages[] = $current; } $pages = array_reverse($pages); $pages[] = $current = $myName; while (null !== ($current = $this->controller->getNextName($current))) { $pages[] = $current; } // Here we display buttons for all pages, the current one's is disabled foreach ($pages as $pageName) { $disabled = ($pageName == $myName ? array('disabled' => 'disabled') : array()); $tabs[] = $this->createElement('submit', $this->getButtonName($pageName), ucfirst($pageName), array('class' => 'flat') + $disabled); } $this->addGroup($tabs, 'tabs', null, '&nbsp;', false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function createTabs() {}", "private function createTab()\n {\n try {\n if (LengowMain::compareVersion()) {\n $tabParent = new Tab();\n $tabParent->name[Configuration::get('PS_LANG_DEFAULT')] = 'Lengow';\n $tabParent->module = 'lengow';\n...
[ "0.7487054", "0.6603563", "0.6448827", "0.63951415", "0.6376598", "0.6342076", "0.63246083", "0.6316735", "0.62946516", "0.6253495", "0.6227628", "0.62228113", "0.61793476", "0.6155166", "0.61530346", "0.6118265", "0.6103463", "0.6070469", "0.6066338", "0.6050339", "0.5984342...
0.795176
0
Builds the form that define the main properties of your progress bar
Создает форму, определяющую основные свойства вашей прогресс-бара
function buildForm() { $this->buildTabs(); // tab caption $this->addElement('header', null, 'Progress2 Generator - Control Panel: main properties'); $shape[] =& $this->createElement('radio', null, null, 'Horizontal', '1'); $shape[] =& $this->createElement('radio', null, null, 'Vertical', '2'); $this->addGroup($shape, 'shape', 'Shape:'); $way[] =& $this->createElement('radio', null, null, 'Natural', 'natural'); $way[] =& $this->createElement('radio', null, null, 'Reverse', 'reverse'); $this->addGroup($way, 'way', 'Direction:'); $autosize[] =& $this->createElement('radio', null, null, 'Yes', true); $autosize[] =& $this->createElement('radio', null, null, 'No', false); $this->addGroup($autosize, 'autosize', 'Best size:'); $psize['width'] =& $this->createElement('text', 'width', 'width', array('size' => 4)); $psize['height'] =& $this->createElement('text', 'height', 'height', array('size' => 4)); $psize['left'] =& $this->createElement('text', 'left', 'left', array('size' => 4)); $psize['top'] =& $this->createElement('text', 'top', 'top', array('size' => 4)); $psize['position'] =& $this->createElement('text', 'position', 'position', array('disabled' => 'true')); $psize['bgcolor'] =& $this->createElement('text', 'bgcolor', 'bgcolor', array('size' => 7)); $this->addGroup($psize, 'progresssize', 'Size, position and color:', ' '); $this->addElement('text', 'rAnimSpeed', array('Animation speed :', '(0-1000 ; 0:fast, 1000:slow)')); $this->addRule('rAnimSpeed', 'Should be between 0 and 1000', 'rangelength', array(0,1000), 'client'); // Buttons of the wizard to do the job $this->buildButtons(array('back','apply','process')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function buildForm()\r\n {\r\n $this->buildTabs();\r\n // tab caption\r\n $this->addElement('header', null,\r\n 'Progress2 Generator - Control Panel: run demo');\r\n\r\n $this->addElement('static', 'progressBar',\r\n 'Your progress me...
[ "0.77083474", "0.6770756", "0.6582365", "0.62868875", "0.6283344", "0.6056346", "0.60378045", "0.60249215", "0.595588", "0.5948091", "0.57597005", "0.5717113", "0.57070196", "0.5703448", "0.5602351", "0.5581841", "0.5547263", "0.5502277", "0.5478038", "0.5475706", "0.5434613"...
0.76451546
1
Builds the form that define cell properties of your progress bar
Создает форму, определяющую свойства ячеек вашего прогресс-бара
function buildForm() { $this->buildTabs(); // tab caption $this->addElement('header', null, 'Progress2 Generator - Control Panel: cell properties'); $this->addElement('text', 'cellid', 'Id mask:', array('size' => 32)); $this->addElement('text', 'cellclass', 'CSS class:', array('size' => 32)); $cellvalue['min'] =& $this->createElement('text', 'min', 'minimum', array('size' => 4)); $cellvalue['max'] =& $this->createElement('text', 'max', 'maximum', array('size' => 4)); $cellvalue['inc'] =& $this->createElement('text', 'inc', 'increment', array('size' => 4)); $this->addGroup($cellvalue, 'cellvalue', 'Value:', ' '); $cellsize['width'] =& $this->createElement('text', 'width', 'width', array('size' => 4)); $cellsize['height'] =& $this->createElement('text', 'height', 'height', array('size' => 4)); $cellsize['spacing'] =& $this->createElement('text', 'spacing', 'spacing', array('size' => 2)); $cellsize['count'] =& $this->createElement('text', 'count', 'count', array('size' => 2)); $this->addGroup($cellsize, 'cellsize', 'Size:', ' '); $cellcolor['active'] =& $this->createElement('text', 'active', 'active', array('size' => 7)); $cellcolor['inactive'] =& $this->createElement('text', 'inactive', 'inactive', array('size' => 7)); $cellcolor['bgcolor'] =& $this->createElement('text', 'bgcolor', 'background', array('size' => 7)); $this->addGroup($cellcolor, 'cellcolor', 'Color:', ' '); $cellfont['family'] =& $this->createElement('text', 'family', 'family', array('size' => 32)); $cellfont['size'] =& $this->createElement('text', 'size', 'size', array('size' => 2)); $cellfont['color'] =& $this->createElement('text', 'color', 'color', array('size' => 7)); $this->addGroup($cellfont, 'cellfont', 'Font:', ' '); // Buttons of the wizard to do the job $this->buildButtons(array('apply','process')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function buildForm()\r\n {\r\n $this->buildTabs();\r\n // tab caption\r\n $this->addElement('header', null,\r\n 'Progress2 Generator - Control Panel: main properties');\r\n\r\n $shape[] =& $this->createElement('radio', null, null, 'Horizontal', '1');\r\n ...
[ "0.6875267", "0.6660737", "0.61252147", "0.59181416", "0.5750583", "0.5628293", "0.56004137", "0.54911566", "0.5465777", "0.54592305", "0.5447524", "0.5405576", "0.5394894", "0.5352851", "0.5344981", "0.5321192", "0.5305566", "0.52538455", "0.51949364", "0.51825327", "0.51637...
0.7368667
0
Builds the form that define border properties of your progress bar
Создает форму, определяющую свойства границ вашего прогресс-бара
function buildForm() { $this->buildTabs(); // tab caption $this->addElement('header', null, 'Progress2 Generator - Control Panel: border properties'); $borderpainted[] =& $this->createElement('radio', null, null, 'Yes', true); $borderpainted[] =& $this->createElement('radio', null, null, 'No', false); $this->addGroup($borderpainted, 'borderpainted', 'Display the border:'); $this->addElement('text', 'borderclass', 'CSS class:', array('size' => 32)); $borderstyle['style'] =& $this->createElement('select', 'style', 'style', array('solid' => 'Solid', 'dashed' => 'Dashed', 'dotted' => 'Dotted', 'inset' => 'Inset', 'outset' => 'Outset')); $borderstyle['width'] =& $this->createElement('text', 'width', 'width', array('size' => 2)); $borderstyle['color'] =& $this->createElement('text', 'color', 'color', array('size' => 7)); $this->addGroup($borderstyle, 'borderstyle', null, ' '); // Buttons of the wizard to do the job $this->buildButtons(array('apply','process')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function buildForm()\r\n {\r\n $this->buildTabs();\r\n // tab caption\r\n $this->addElement('header', null,\r\n 'Progress2 Generator - Control Panel: main properties');\r\n\r\n $shape[] =& $this->createElement('radio', null, null, 'Horizontal', '1');\r\n ...
[ "0.69055814", "0.68195033", "0.61908114", "0.61072564", "0.5682266", "0.56485695", "0.5436292", "0.5436292", "0.5434116", "0.5432274", "0.5432274", "0.5432274", "0.5432274", "0.5432274", "0.5430103", "0.53658926", "0.5246863", "0.5181012", "0.516103", "0.5084275", "0.50808173...
0.75592405
0
Builds the form that show a preview of your progress bar design
Создает форму, которая отображает предварительный просмотр вашего дизайна прогресс-бара
function buildForm() { $this->buildTabs(); // tab caption $this->addElement('header', null, 'Progress2 Generator - Control Panel: run demo'); $this->addElement('static', 'progressBar', 'Your progress meter looks like:'); // Buttons of the wizard to do the job $this->buildButtons(array('reset','process')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function buildForm()\r\n {\r\n $this->buildTabs();\r\n // tab caption\r\n $this->addElement('header', null,\r\n 'Progress2 Generator - Control Panel: main properties');\r\n\r\n $shape[] =& $this->createElement('radio', null, null, 'Horizontal', '1');\r\n ...
[ "0.710235", "0.63623637", "0.62253284", "0.6152803", "0.60618824", "0.5923924", "0.57680374", "0.57551", "0.57166356", "0.56992376", "0.56499654", "0.5645377", "0.5642863", "0.56302464", "0.5626179", "0.5624876", "0.56189144", "0.56085944", "0.56044364", "0.55827785", "0.5565...
0.76990116
0
Builds the form that allow to save your PHP/CSS code
Создает форму, позволяющую сохранить ваш код PHP/CSS
function buildForm() { $this->buildTabs(); // tab caption $this->addElement('header', null, 'Progress2 Generator - Control Panel: save PHP/CSS code'); $code[] =& $this->createElement('checkbox', 'P', null, 'PHP'); $code[] =& $this->createElement('checkbox', 'C', null, 'CSS'); $this->addGroup($code, 'phpcss', 'PHP and/or StyleSheet source code:'); // Buttons of the wizard to do the job $this->buildButtons(array('next','apply')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function beaver_extender_fe_style_editor_build_form() {\n\t\n?>\n\t\t<form action=\"/\" id=\"beaver-extender-fe-style-editor-form\" name=\"beaver-extender-fe-style-editor-form\">\n\t\t\t\n\t\t\t<input type=\"hidden\" name=\"action\" value=\"beaver_extender_fe_style_editor_save\" />\n\t\t\t<input type=\"hidden\" na...
[ "0.7886451", "0.68713915", "0.67178565", "0.6539944", "0.6483157", "0.6474773", "0.64229256", "0.6420625", "0.63697195", "0.63479596", "0.6323945", "0.63135266", "0.62959915", "0.6291068", "0.6272934", "0.6272123", "0.62512887", "0.6247538", "0.6239279", "0.6233017", "0.62312...
0.7944517
0
/ Selecting an option If you have read the documentation of the `HtField` and the `HtWidget` parent classes you already know that you are supposed to use the `context` method in order to set the value of a field/widget: mdx:SelectedOption Outputs: mdx:SelectedOption o httidy
Выбор опции Если вы прочитали документацию классов `HtField` и `HtWidget`, то уже знаете, что для установки значения поля/виджета следует использовать метод `context`: mdx:SelectedOption Вывод: mdx:SelectedOption o httidy
function testSelectedOption(){ #mdx:SelectedOption $select = new HtSelect('id_category'); $select->options([1=>'Category1',2=>'Category2',3=>'Category3']); $select->context(['id_category'=>2]); #/mdx echo $select $this->expectOutputRegex("/option.*?2.*selected/"); echo $select; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function testSelectedOption(){\n\t\t#mdx:SelectedOption\n\t\t$select = new HtCklist(\"select_days\");\n\t\t$select->options([1=>'Mon',2=>'Tue',3=>'Wed',4=>'Thu',5=>'Fri',6=>'Sat']);\n\t\t$select->context(['select_days'=>[2,5]]); // check Tue and Fri\n\t\t#/mdx echo $select\n\t\t$this->expectOutputRegex(\"/input.*?...
[ "0.67317617", "0.67007697", "0.61267126", "0.6101564", "0.6092063", "0.6082261", "0.59615076", "0.5959076", "0.59364", "0.5885151", "0.58820623", "0.58743864", "0.58718723", "0.5857547", "0.58489746", "0.5836531", "0.5825224", "0.58173037", "0.58064955", "0.57943064", "0.5789...
0.71186876
0
/ Setting a caption The "caption" is the default text which appears on the select field when no option has been selected yet. This is usally a message indicating that the user should choose something: mdx:Caption Outputs: mdx:Caption o httidy
Установка подписи Подпись ("caption") — это стандартный текст, который отображается в поле выбора до тех пор, пока не будет выбрана какая-либо опция. Обычно это сообщение, информирующее пользователя о том, что он должен выбрать что-либо: mdx:Caption Выходы: mdx:Caption o httidy
function testCaption(){ #mdx:Caption $select = new HtSelect('id_category'); $select->options([1=>'Category1',2=>'Category2',3=>'Category3']); $select->caption('CHOOSE A CATEGORY:'); #/mdx echo $select $this->expectOutputRegex("/select.*?CHOOSE A CATEGORY.*?/s"); echo $select; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function testCaptionValue(){\n\t\t#mdx:CaptionValue\n\t\t$select = new HtSelect('id_category');\n\t\t$select->options([1=>'Category1',2=>'Category2',3=>'Category3']);\n\t\t$select->caption('CHOOSE A CATEGORY:', 'none'); # change value to 'none'\n\t\t#/mdx echo $select\n\t\t$this->expectOutputRegex(\"/select.*?opti...
[ "0.72729474", "0.69511145", "0.6939236", "0.6899094", "0.6625466", "0.651141", "0.64263403", "0.64084697", "0.62733597", "0.6265194", "0.6231165", "0.6140197", "0.6131023", "0.6128065", "0.6066711", "0.6044273", "0.60297805", "0.60256106", "0.6001828", "0.5976827", "0.5966360...
0.7215593
1
Check to see if an IP is inside a given network See : \ref ipAddressToNetwork
Проверьте, находится ли IP-адрес внутри заданной сети. См. : \ref ipAddressToNetwork
static function checkIPFromNetwork($address, $networkAddress, $networkNetmask, $version = 0) { $IPNetmask = [0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff]; $relativity = self::checkNetworkRelativity($address, $IPNetmask, $networkAddress, $networkNetmask, $version); return ($relativity == "equals") || ($relativity == "second contains first"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function ip_in_range($network,$netmask,$ip)\n {\n $wildcard_mask = pow( 2, ( 32 - $netmask ) ) - 1;\n $mask = ~ $wildcard_mask;\n return ( ( $ip & $mask ) == ( $network & $mask ) );\n }", "function current_ip_in_network() {\r\n return ip_in_network(current_user_ip());\r\n}", ...
[ "0.72038114", "0.6880698", "0.6820507", "0.6743495", "0.6717032", "0.66977155", "0.6692251", "0.66622865", "0.659471", "0.65540147", "0.65382695", "0.6482406", "0.6455845", "0.64519805", "0.6438251", "0.64145136", "0.6395711", "0.6395322", "0.63698393", "0.63661224", "0.63656...
0.7276029
0
\brief Recreate network tree Among others, the migration create plan tree network. This method allows to recreate the tree. You can also use it if you suspect the network tree to be corrupted. First, reset the tree, then, update each network by its own field, letting CommonImplicitTreeDropdown working such as it would in case of standard update
\brief Восстановить дерево сети Среди прочего, миграция создает плановое дерево сети. Этот метод позволяет восстановить дерево. Вы также можете использовать его, если подозреваете, что дерево сети повреждено. Сначала сбросьте дерево, затем обновите каждую сеть по своему полю, позволяя CommonImplicitTreeDropdown работать так, как это делается в случае стандартного обновления.
static function recreateTree() { global $DB; // Reset the tree $DB->update( 'glpi_ipnetworks', [ 'ipnetworks_id' => 0, 'level' => 1, 'completename' => new \QueryExpression($DB->quoteName('name')) ], [true] ); // Foreach IPNetwork ... $iterator = $DB->request([ 'SELECT' => 'id', 'FROM' => self::getTable() ]); $network = new self(); while ($network_entry = $iterator->next()) { if ($network->getFromDB($network_entry['id'])) { $input = $network->fields; // ... update it by its own entries $network->update($input); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function brokeTree()\n {\n $i = 0;\n foreach ($this->nodeIdList as $node) {\n $this->getDb()->createCommand()->update(\n self::tableName(),\n [\n $this->leftAttribute => ++$i,\n $this->rightAttribute => ++$i,\n ...
[ "0.60080266", "0.56274223", "0.5486264", "0.54171586", "0.53880537", "0.5298186", "0.5275199", "0.52409387", "0.51710075", "0.5131758", "0.51309633", "0.5115454", "0.51113147", "0.5085477", "0.50829095", "0.5061777", "0.50433534", "0.5042315", "0.5038402", "0.5030509", "0.502...
0.7536038
0
Moves an existing list item to a new position. The position is in front of the item with the ID given in $ref or at the end of the list if $ref is null. // item ID list in database: 1, 2, 3, 4 $listManager>moveItem( 2, 4 ); // result: 1, 3, 2, 4 // item ID list in database: 1, 2, 3, 4 $listManager>moveItem( 2, null ); // result: 1, 3, 4, 2 The method updates the position of the record with the given ID in $id and of all records afterwards. The gap left behind by the moved record is closed automatically. To retrive the items according to the new positions, you have to sort them by the '.lists.position' key: $search = $listManager>createSearch(); $search>setSortations( array( $search>sort( '+', 'product.lists.position' ) ) ); $result = $listManager>searchItems( $search );
Перемещает существующий элемент списка в новое положение. Положение находится перед элементом с указанным идентификатором в $ref или в конце списка, если $ref равно null. // список идентификаторов элементов в базе данных: 1, 2, 3, 4 $listManager>moveItem( 2, 4 ); // результат: 1, 3, 2, 4 // список идентификаторов элементов в базе данных: 1, 2, 3, 4 $listManager>moveItem( 2, null ); // результат: 1, 3, 4, 2 Метод обновляет положение записи с указанным идентификатором в $id и всех последующих записей. Пробел, оставленный перемещенной записью, автоматически заполняется. Чтобы получить элементы в соответствии с новыми положениями, необходимо отсортировать их по ключу '.lists.position': $search = $listManager>createSearch(); $search>setSortations( array( $search>sort( '+', 'product.lists.position' ) ) ); $result = $listManager>searchItems( $search );
public function moveItem( $id, $ref = null );
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function moveItemAt($currentPosition, $newPosition = 0);", "public function moveItem(Item $item, int $position): Item;", "public function move($id) {\n $item = $this->getItem($id);\n $table_name = \"items\";\n $connection = db_connect();\n if ($connection->connect_error) {\n ...
[ "0.68663216", "0.6846594", "0.6497256", "0.6324369", "0.5946858", "0.587347", "0.5845341", "0.5823462", "0.5803777", "0.57702416", "0.56238693", "0.56192786", "0.5615383", "0.55051905", "0.54752904", "0.5465182", "0.54567224", "0.54193634", "0.5408741", "0.53931135", "0.53856...
0.8479897
0
save picture data to db
сохранить данные изображения в базу данных
function store_pic_data($data){ $insert_data['pic_title'] = $data['pic_title']; $insert_data['pic_desc'] = $data['pic_desc']; $insert_data['pic_file'] = $data['pic_file']; $query = $this->db->insert('pictures', $insert_data); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function insertImageToDb() \n {\n }", "public function save(Photo $photo);", "public function saveToDb()\n\t{\n\t\tparent::saveToDb();\n\t\t$this->insertAttachment();\n\t}", "public function saveImage($data)\n\t{\n if (!empty($data)) {\n return $this->imagesModel->create($data)...
[ "0.7369128", "0.70571727", "0.6836592", "0.676557", "0.67205864", "0.6650237", "0.663833", "0.652806", "0.65073305", "0.6482809", "0.6481554", "0.64766437", "0.64660317", "0.64202", "0.6417862", "0.64090043", "0.6383119", "0.6353745", "0.63455117", "0.6327706", "0.6327706", ...
0.7265487
1
Return array of contract type options
Вернуть массив вариантов типа контракта
public static function contract_options() { return array( '' => '', 'RENT' => __( 'Rent', 'inventor-properties' ), 'SALE' => __( 'Sale', 'inventor-properties' ), ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCcTypesAsOptionArray()\n {\n $model = Mage::getModel('payment/source_cctype')\n ->setAllowedTypes(array('VI', 'MC', 'JCB', 'DINCLB'));\n return $model->toOptionArray();\n }", "public function getTypeOptions()\n {\n $calendars = Config::get('vojtasvoboda...
[ "0.7189024", "0.6917305", "0.6905179", "0.68355936", "0.6751767", "0.6741231", "0.6716977", "0.6662023", "0.6647714", "0.6623095", "0.66026396", "0.66026396", "0.66026396", "0.66026396", "0.66026396", "0.66026396", "0.66026396", "0.65639895", "0.6514214", "0.64429045", "0.643...
0.7462306
0