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
Get an array of MetaObj objects.
Получите массив объектов MetaObj.
function get_meta_objs() { return $this->meta_objs; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getMetas(): object\n {\n return (object) $this->metas->pluck('value', 'key')->toArray();\n }", "public function getObjectArray()\n {\n $this->_cache->load($this->_cache_key, $this->_data_version);\n\n return $this->_cache->objects;\n }", "public abstract functio...
[ "0.71918005", "0.71327776", "0.6921699", "0.6880615", "0.68551975", "0.6837565", "0.6800118", "0.67317593", "0.66250485", "0.66250485", "0.65229803", "0.6522807", "0.6520747", "0.6467978", "0.64327335", "0.6414906", "0.6403882", "0.63921", "0.6357611", "0.63242716", "0.629874...
0.7523737
0
Add a single MetaObj.
Добавить один MetaObj.
function add_meta_obj($meta_name = null, $vocab = null, $text = null, $lang = null, $attrs = null) { array_push($this->meta_objs, new MetaObj($meta_name, $vocab, $text, $lang, $attrs)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function add_meta( &$object, $meta );", "public function add_meta( &$object, $meta ) {\n\t\t}", "public function add_meta( &$object, $meta ) {\n\t\t// TODO: Implement add_meta() method.\n\t}", "public function addMeta(Meta $meta) {\n $this->meta[$meta->getName()] = $meta;\n }", "function a...
[ "0.77229536", "0.7447476", "0.7144841", "0.6860587", "0.68502325", "0.6821461", "0.6820942", "0.66351885", "0.65816915", "0.6574995", "0.6540033", "0.6502844", "0.64895934", "0.64275295", "0.6325971", "0.62230426", "0.6124011", "0.606383", "0.60581183", "0.60247993", "0.59782...
0.76216483
1
Add an array of MetaObj objects.
Добавьте массив объектов MetaObj.
function add_meta_objs($meta_objs) { array_merge($this->meta_objs, $meta_objs); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function add_meta_obj($meta_name = null, $vocab = null, $text = null, $lang = null, $attrs = null) {\n array_push($this->meta_objs, new MetaObj($meta_name, $vocab, $text, $lang, $attrs));\n }", "public function addMetaData(array $meta)\n {\n $this->meta = array_merge($this->meta, $meta);\n r...
[ "0.665217", "0.6426755", "0.6382091", "0.6363904", "0.61551964", "0.61149925", "0.61149925", "0.6091335", "0.60860676", "0.60126007", "0.5994277", "0.58388317", "0.57677644", "0.5764114", "0.5704747", "0.56324196", "0.56276315", "0.562419", "0.56137663", "0.5595443", "0.55656...
0.7775638
0
Set all meta_objs (replaces existing ones).
Установите все meta_objs (заменяя существующие).
function set_meta_objs($meta_objs) { $this->meta_objs = $meta_objs; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function add_meta_objs($meta_objs) {\n array_merge($this->meta_objs, $meta_objs);\n }", "protected function _populateMetas()\n {\n $nodes = $this->_catalog->getModel('nodes');\n $metas = $this->_catalog->getModel('metas');\n $collection = $nodes->fetchAll();\n foreach ($collect...
[ "0.71170723", "0.6608214", "0.6229818", "0.61225766", "0.6116649", "0.6080004", "0.59958893", "0.5939378", "0.5899221", "0.58914727", "0.5853595", "0.5843925", "0.58142984", "0.57941264", "0.56809384", "0.56768036", "0.56698644", "0.56613135", "0.5641368", "0.5616914", "0.560...
0.7991882
0
Add a single tag.
Добавьте один тег.
function add_tag($tag) { array_push($this->tags, $tag); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function addTag()\n {\n $params = array();\n $params['db_link'] = $this->db;\n $params['ticket_id'] = $_REQUEST['ticket_id'];\n \n $data = array();\n $tagTitle = stripslashes(trim($_REQUEST['tag']));\n $tag = Utils::sanitize($tagTitle);\n \n $...
[ "0.74001855", "0.7233407", "0.71393776", "0.7124893", "0.7008241", "0.6906902", "0.6870894", "0.6810829", "0.66979295", "0.6675728", "0.664657", "0.66265845", "0.66088784", "0.65411377", "0.64965725", "0.64663833", "0.6450908", "0.6389864", "0.63801575", "0.63384336", "0.6328...
0.7541282
0
Add a single Chapter.
Добавить один Глава.
function add_chapter($offset, $title = null, $description = null) { array_push($this->chapters, new Chapter($offset, $title, $description)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addChapter(Request $request){\n \t//Validate request\n \t$this->validate($request,[\n \t\t'chapterTitle' => 'required',\n 'chapterThumbnail' => 'required',\n 'chapterContent' => 'required',\n 'comic_id' => 'required',\n \t]);\n \treturn Chapter::creat...
[ "0.7016111", "0.67454344", "0.6696928", "0.64727324", "0.6341173", "0.6328242", "0.61628366", "0.60892314", "0.60637563", "0.6013534", "0.5883887", "0.5783847", "0.5746625", "0.56990206", "0.56968594", "0.55565405", "0.5541706", "0.550126", "0.5495831", "0.5449782", "0.544978...
0.7102798
0
Add an array of Chapter objects.
Добавьте массив объектов Chapter.
function add_chapters($chapters) { array_merge($this->chapters, $chapters); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function add_chapter($offset, $title = null, $description = null) {\n array_push($this->chapters, new Chapter($offset, $title, $description));\n }", "function set_chapters($chapters) {\n $this->chapters = $chapters;\n }", "static function getAllChapters()\n {\n global $db;\n $reqChapte...
[ "0.6692787", "0.58243555", "0.56667477", "0.5647436", "0.54507875", "0.5377904", "0.5361634", "0.5346678", "0.52958477", "0.5276429", "0.52332747", "0.51990914", "0.50874656", "0.508404", "0.49860978", "0.49097064", "0.48841247", "0.4866361", "0.48529866", "0.4822454", "0.475...
0.75464064
0
Set all chapters (replaces existing ones).
Установить все главы (заменить существующие).
function set_chapters($chapters) { $this->chapters = $chapters; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function add_chapters($chapters) {\n array_merge($this->chapters, $chapters);\n }", "function copyChapter()\n\t{\n\t\t$this->copyItems(\"subchap\");\n\t}", "public function restore() {\n self::restoreAll($this->chapterID);\n }", "static function getAllChapters()\n {\n global $db;\n ...
[ "0.62365735", "0.5739508", "0.5568501", "0.5166048", "0.5115015", "0.49340504", "0.4874775", "0.4865878", "0.48304495", "0.48265022", "0.48096693", "0.47075906", "0.47035143", "0.46908727", "0.467862", "0.46611834", "0.46594313", "0.4641621", "0.4579771", "0.45792103", "0.453...
0.7011564
0
Function to request audio file (a.k.a communique)
Функция для запроса аудио файла (а.k.a. коммуникация)
public function requestAudioFile($comData) { if (is_array($comData)){ // name of textarea input on communique generator form $data = array('communique' => Zend_Json::encode($comData)); // initiate curl session $ch = curl_init(); $audioGenUrl = Zend_Registry::get('config') ->voice->pla...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function receiveAudio($title,$path_upload, $author, $maxfilebytes)\r\n {\r\n \r\n global $xoopsUser, $xoopsDB, $_POST, $_FILES;\r\n //busca id do user logado\r\n $uid = $xoopsUser->getVar('uid');\r\n //create a hash so it does not erase another file\r\n //$hash1 = date(...
[ "0.65607166", "0.6422165", "0.6350923", "0.62428117", "0.62085336", "0.6149807", "0.6081975", "0.5986384", "0.59571826", "0.5924818", "0.59077454", "0.58577657", "0.5834823", "0.58140904", "0.5808749", "0.57970387", "0.57926077", "0.5764043", "0.57349765", "0.5667112", "0.564...
0.7150639
0
Funttion to delete unpublished communique from voice platform and database
Функция для удаления непубликованных коммуникаций с голосовой платформы и базы данных
public function deleteUnpublishedCommunique($id) { /** remove entry from communique platform **/ $data = array('communique' => Zend_Json::encode(array('comm_id' => $id))); // initiate curl session $ch = curl_init(); $deleteUrl = Zend_Registry::get('config')->voice->platform->base->url . '/rest...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function cms_delete($id) {\n GLOBAL $db;\n// удаление данных о статье\n $db -> query(\"DELETE FROM content WHERE id='$id'\");\n $db -> query(\"DELETE FROM content WHERE pid = '$id'\");\n// удаление информации о статьях из \"связанных\" таблиц\n $db -> query(\"UPDATE items SET article=REPLACE(article,'|\".$id.\...
[ "0.6233338", "0.6129496", "0.60930765", "0.60498625", "0.6048823", "0.6028461", "0.6024652", "0.6021869", "0.60194", "0.6019219", "0.60165685", "0.60165685", "0.60165685", "0.60165685", "0.60165685", "0.60165685", "0.60165685", "0.60165685", "0.60165685", "0.60165685", "0.601...
0.72974724
0
return this object as JSON string
вернуть этот объект в виде строки JSON
public function toJSON(){ return json_encode($this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function toJson() {\r\n\t\t// Returns:\t\tReturns JSON encoded string\r\n\t\treturn json_encode($this);\r\n\t}", "public function get_json()\n {\n return json_encode($this);\n }", "public function makeJSON()\n {\n return(json_encode($this));\n }", "public function makeJSON()\...
[ "0.8686108", "0.86675304", "0.85926867", "0.85926867", "0.85898733", "0.85709745", "0.8567509", "0.85513204", "0.85437614", "0.85078984", "0.8496155", "0.84777826", "0.8471035", "0.84696406", "0.84305584", "0.84290755", "0.84290755", "0.842673", "0.84229916", "0.8422542", "0....
0.8755468
0
Show the form for creating new Language.
Показать форму для создания нового языка.
public function create() { if (! Gate::allows('language_create')) { return abort(401); } return view('admin.languages.create'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create()\n {\n $data['record'] \t = FALSE;\n \t$data['active_class'] = 'languages';\n $data['title'] = LanguageHelper::getPhrase('add_language');\n $data['layout'] = 'layouts.admin.adminlayout';\n $data['module_helper'] = false;\n $data[...
[ "0.8155987", "0.79809713", "0.7958585", "0.7923026", "0.791869", "0.790691", "0.7880252", "0.78607327", "0.777997", "0.77516437", "0.7725541", "0.76017666", "0.74462664", "0.74324936", "0.72692686", "0.7231372", "0.71671504", "0.71653557", "0.7157637", "0.71383274", "0.713568...
0.80496204
1
[get_categories] get all tags according to the group
[get_categories] получить все теги в соответствии с группой
public function get_categories() { $param = array( 'delete_flg' => $this->config->item('not_deleted','common_config') ); $groups = $this->get_tag_group(); if (empty($groups)) return array(); $group_id = array_column($groups, 'tag_group_id'); $param = array_merge($pa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_categories_by_group()\n\t{\n\t\t// get variables\n\t\t$vars = $this->_get_vars('get', array('group_id'));\n\n\t\t// start hook\n\t\t$vars = $this->_hook('get_categories_by_group_start', $vars);\n\n\t\t// load channel data library\n\t\t$this->_load_library('channel_data');\n\n\t\t$data = $this->EE->cha...
[ "0.7466487", "0.7053428", "0.6803988", "0.6803988", "0.6671355", "0.6617695", "0.6593049", "0.65206057", "0.65164375", "0.6493043", "0.64881545", "0.64784867", "0.6468833", "0.64276576", "0.64112526", "0.64075565", "0.6397384", "0.63890415", "0.63785446", "0.6377309", "0.6337...
0.7628434
0
batch delete info by group_id or tag_id
пакетное удаление информации по group_id или tag_id
public function batch_delete($group_id, $tag_id) { $delete_flg = $this->config->item('deleted', 'common_config'); $group_arg = explode(',', $group_id); $tag_arg = explode(',', $tag_id); if ( ! empty($group_id)) { $group_data = array_map(function($id) use($delete_flg){ ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function executeBatchDelete(sfWebRequest $request)\n {\n $q = Doctrine::getTable('Group')->createQuery('g')\n ->andWhereIn('g.id', $request->getParameter('ids'))\n ;\n $ids = array();\n foreach ( $q->execute() as $group )\n $ids[] = $group->id;\n $request->setParameter('ids', $ids)...
[ "0.6826499", "0.6700145", "0.6628533", "0.65690523", "0.64623314", "0.6420057", "0.6394605", "0.62557685", "0.6226761", "0.621095", "0.61776334", "0.6085563", "0.6085254", "0.6034143", "0.59997356", "0.59918606", "0.5939394", "0.5937838", "0.59180516", "0.58817476", "0.587508...
0.7642746
0
get tag_group detail by tag_group_id
получить детали группы тегов по tag_group_id
public function get_tag_group_detail($tag_group_id) { $param['tag_group_id'] = $tag_group_id; $param['delete_flg'] = $this->config->item('not_deleted','common_config'); return $this->Logic_tag->get_tag_group_detail($param); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function _get_group_detail($tag_group_id){\n $param['tag_group_id'] = $tag_group_id;\n $param['delete_flg'] = $this->config->item('not_deleted','common_config');\n $record = $this->Logic_tag->get_group_detail($param);\n if(!empty($record[0])){\n return $record[0];\n ...
[ "0.8297262", "0.7239454", "0.6882552", "0.6848828", "0.6757791", "0.67075676", "0.66064835", "0.6604022", "0.65643096", "0.65611047", "0.6521932", "0.6460279", "0.6460279", "0.6460279", "0.6413978", "0.63887006", "0.6359666", "0.63354754", "0.632916", "0.6302792", "0.6302211"...
0.81537664
1
[get_group_detail] is a function that get tag group information
[get_group_detail] — это функция, которая получает информацию о группе тегов
private function _get_group_detail($tag_group_id){ $param['tag_group_id'] = $tag_group_id; $param['delete_flg'] = $this->config->item('not_deleted','common_config'); $record = $this->Logic_tag->get_group_detail($param); if(!empty($record[0])){ return $record[0]; }else{ ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDetails($group_id);", "public function get_tag_group_detail($tag_group_id)\n {\n $param['tag_group_id'] = $tag_group_id;\n $param['delete_flg'] = $this->config->item('not_deleted','common_config');\n return $this->Logic_tag->get_tag_group_detail($param);\n }", ...
[ "0.774607", "0.7604742", "0.7221876", "0.71788144", "0.71788144", "0.71788144", "0.697128", "0.697128", "0.697128", "0.697128", "0.6952053", "0.6771416", "0.6752883", "0.6595156", "0.65370053", "0.65158105", "0.64651424", "0.6427939", "0.64161664", "0.64104474", "0.6388451", ...
0.79707974
0
Get the Current / Last Modifed Date of the Login Security Reset File
Получить текущую / последнюю дату изменения файла восстановления безопасности входа
function bps_getLoginSecurityResetFileLastMod() { $filename = WP_CONTENT_DIR . '/bps-backup/master-backups/Login-Security-Alert-Reset.txt'; $gmt_offset = get_option( 'gmt_offset' ) * 3600; if ( file_exists($filename) ) { $last_modified = date("F d Y H:i:s", filemtime($filename) + $gmt_offset ); return $last_modified...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getLastResetDate()\n {\n return $this->get(self::_LAST_RESET_DATE);\n }", "public function getLastLoginDateAndTime() {}", "public static function getProfilePasswordChangeDate()\n {\n return self::getProfile()->getPasswordResetKeyDate();\n }", "public function GetLogi...
[ "0.69483405", "0.6902033", "0.6838497", "0.6820241", "0.67112017", "0.66996187", "0.6680103", "0.65755004", "0.6570192", "0.6565125", "0.65309167", "0.64795005", "0.64784145", "0.6456199", "0.6420966", "0.6382543", "0.63781154", "0.6372934", "0.63573664", "0.631877", "0.63103...
0.7533037
0
Lists all deplacement entities.
Перечисляет все сущности перемещения.
public function indexAction() { $em = $this->getDoctrine()->getManager(); $deplacements = $em->getRepository('BackOfficeBundle:Deplacement')->findAll(); return $this->render('BackOfficeBundle:Deplacement:index.html.twig', array( 'deplacements' => $deplacements, )); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function listaAll() {\n require ROOT . \"config/bootstrap.php\";\n return $em->getRepository('models\\Equipamentos')->findby(array(), array(\"id\" => \"DESC\"));\n $em->flush();\n }", "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $enti...
[ "0.6316794", "0.6211428", "0.59858936", "0.5865503", "0.58461773", "0.57951593", "0.5793714", "0.57840765", "0.5778971", "0.5771979", "0.5747771", "0.5693437", "0.56683064", "0.5663307", "0.5658475", "0.5657051", "0.56505847", "0.56137764", "0.5567446", "0.5548945", "0.554545...
0.72455657
0
Set query components in an array w/ elements "sort", "limit", "where" No return value, sets flexigrid::$query_components[]
Устанавливает компоненты запроса в массиве с элементами "sort", "limit", "where". Нет значения возвращаемого, устанавливает flexigrid::$query_components[]
private function set_query_components() { $start = (($this->page-1) * $this->rp); if($this->query) { $this->query_components['where'] = " WHERE $qtype LIKE '%".mysql_real_escape_string($query)."%' "; } else { $this->query_componenets['where'] = ""; } $this->query_components['sort'] = "ORDER BY...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setQuery(array $query);", "public function getQueryComponents(): array;", "public function components() {\r\n\t\t$components = new Dbi_Model_QueryComponents();\r\n\t\t$components->table = $this->name();\r\n\t\t$components->where = $this->_wheres;\r\n\t\t$components->fields = $this->_fields;\r\n...
[ "0.6423673", "0.6358506", "0.62067235", "0.5882202", "0.5728754", "0.5584593", "0.55787534", "0.55206734", "0.5511033", "0.5490272", "0.5478503", "0.5474463", "0.542227", "0.54194015", "0.5404283", "0.53975016", "0.5375331", "0.53722525", "0.537072", "0.534754", "0.5340786", ...
0.7824912
0
Getter of Calories The number of calories
Getter калорий Число калорий
public function getCalories() { return $this->calories; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTotalCalories(){\n return $this->totalCalories;\n }", "public function getCalories()\n\t{\n\t\treturn $this->calories;\n\t}", "public function getTotalCalories() {\n return (float) $this->profile->userTotals->totalCalories;\n }", "public function totalCount();", "publ...
[ "0.8170932", "0.801765", "0.6826751", "0.6509464", "0.6509464", "0.6467058", "0.645084", "0.645084", "0.645084", "0.6305346", "0.62830615", "0.6257931", "0.6256636", "0.6222485", "0.6163136", "0.6159812", "0.6154575", "0.6142905", "0.6142905", "0.61420596", "0.6120869", "0....
0.80641085
1
Setter of Calories The number of calories
Установитель калорий Число калорий
public function setCalories($value) { $this->calories = $value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setTotalCalories($val){\n $this->totalCalories = $val;\n return $this;\n }", "public function getTotalCalories(){\n return $this->totalCalories;\n }", "public function getCalories()\n\t{\n\t\treturn $this->calories;\n\t}", "public function getCalories()\n {\n ...
[ "0.7138962", "0.6706537", "0.6531925", "0.65239525", "0.595278", "0.5326266", "0.5326266", "0.53080356", "0.5303007", "0.52989674", "0.5292607", "0.527122", "0.5250105", "0.522336", "0.5188618", "0.5149541", "0.5136806", "0.51144683", "0.5083316", "0.5083316", "0.50675476", ...
0.76508427
0
Getter of Saturated Fat Content The number of grams of saturated fat.
Getter of Saturated Fat Content Количество граммов насыщенных жиров.
public function getSaturatedFatContent() { return $this->saturatedFatContent; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getGramsOfFat()\n\t{\n\t\treturn $this->fat;\n\t}", "public function getFatContent()\n {\n return $this->fatContent;\n }", "public function getUnsaturatedFatContent()\n {\n return $this->unsaturatedFatContent;\n }", "public function size()\n {\n return 100 ...
[ "0.6349346", "0.62593734", "0.6040652", "0.59569585", "0.55393076", "0.5528327", "0.54782456", "0.5315036", "0.52982104", "0.52593", "0.515077", "0.51399165", "0.51242965", "0.51191944", "0.51155305", "0.5106214", "0.51034784", "0.5096977", "0.5062941", "0.50571954", "0.50299...
0.73696434
0
Getter of Serving Size The serving size, in terms of the number of volume or mass
Getter Serving Size Размер порции, выраженный в количестве объема или массы
public function getServingSize() { return $this->servingSize; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSize()\n {\n return $this->size;\n }", "public function getSize()\n {\n return $this->size;\n }", "public function getSize()\n {\n return $this->size;\n }", "public function getSize()\n {\n return $this->size;\n }", "public function getSize()\n {\n ...
[ "0.7809924", "0.7809924", "0.7735126", "0.7735126", "0.7735126", "0.7735126", "0.7735126", "0.7735126", "0.7735126", "0.7735126", "0.7732969", "0.77243847", "0.77163374", "0.7648668", "0.76471853", "0.76066", "0.7604833", "0.7585662", "0.75349224", "0.7531123", "0.75299716", ...
0.8615779
0
Setter of Serving Size The serving size, in terms of the number of volume or mass
Установка порции Суточная порция, в терминах объема или массы
public function setServingSize($value) { $this->servingSize = $value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setSize($size) {\n\t\t$this->size = $size;\n\t}", "function setSize($size)\n {\n $this->size = $size;\n }", "public function getServingSize()\n {\n return $this->servingSize;\n }", "public function setSize($size) {\n $this->size = $size;\n }", "public function s...
[ "0.7349647", "0.7326837", "0.7307173", "0.72020406", "0.72020406", "0.7172832", "0.7109579", "0.6960561", "0.68781847", "0.68491304", "0.6825747", "0.68044287", "0.68044287", "0.68041635", "0.6784586", "0.6691421", "0.6654558", "0.6652436", "0.6652401", "0.6652401", "0.665240...
0.8474157
0
Returns a list of airports ordered alphabetically.
Возвращает список аэропортов, отсортированных по алфавиту.
public function getAllAirportsAlphabetically($columns = ['*']) { return $this->model->orderBy('name', 'ASC')->get($columns)->toArray(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getAirportList()\n {\n $cache = new FilesystemAdapter();\n $airportCache = $cache->getItem('airportcache.list');\n\n if (!$airportCache->isHit()) {\n $client = $this->container->get('guzzle.avinor.client');\n $response = $client->get('/airportNames...
[ "0.6877236", "0.6697686", "0.6666238", "0.651816", "0.6461346", "0.6046125", "0.5842121", "0.5841149", "0.5801782", "0.58015674", "0.5650695", "0.5603255", "0.55184585", "0.54654145", "0.54524463", "0.53794175", "0.5364173", "0.5331916", "0.5321859", "0.53059745", "0.53031117...
0.7281819
0
Returns a paginated result of airports ordered alphabetically.
Возвращает отформатированный по страницам результат аэропортов, отсортированных по алфавиту.
public function getPaginatedAirportsAlphabetically($perPage = 30, $columns = ['*']) { return $this->model->orderBy('name', 'ASC')->paginate($perPage, $columns)->toArray(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAllAirportsAlphabetically($columns = ['*'])\n {\n return $this->model->orderBy('name', 'ASC')->get($columns)->toArray();\n }", "public function testGetAirportsReturnsList()\n {\n $this->get('/api/v1/airports')->seeJson();\n }", "protected function getAirportList()\n...
[ "0.64853996", "0.6376665", "0.62168247", "0.5884127", "0.5882249", "0.580195", "0.5746828", "0.57272285", "0.5688539", "0.5676591", "0.56658274", "0.5651591", "0.55192053", "0.55150527", "0.55064225", "0.54912204", "0.5487007", "0.5476406", "0.5453814", "0.54529387", "0.54514...
0.72658294
0
Create matrix for test result Creates a new TestValues model. If creation is successful, the browser will be redirected to the 'view' page.
Создать матрицу для результата теста Создает новый модель TestValues. Если создание успешно, браузер будет перенаправлен на страницу 'view'.
public function actionCreatematrix(){ if(Yii::$app->request->post('DynamicModel')){ $questionH = Question::findOne(Yii::$app->request->post('DynamicModel')['question_horizontal_id']); $questionV = Question::findOne(Yii::$app->request->post('DynamicModel')['question_vertical_id'])...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create()\n {\n //\n// return $this->getTestGroupStudents();\n $center = Center::findOrFail(Session('center_id'));\n $tests = $center->tests;\n return view('testResult.test-result-add',compact('tests'));\n }", "public function actionCreate()\n {\n ...
[ "0.69018227", "0.68505263", "0.6685028", "0.6513121", "0.6357439", "0.63458854", "0.6313883", "0.6307654", "0.6235553", "0.61881953", "0.61789", "0.6165783", "0.616029", "0.6145352", "0.61278343", "0.61251026", "0.61092365", "0.60715127", "0.6066046", "0.6050319", "0.603671",...
0.7198255
0
Updates an existing TestValuesMatrix model. If update is successful, the browser will be redirected to the 'create' page.
Обновляет существующую модель TestValuesMatrix. Если обновление успешно, браузер будет перенаправлен на страницу 'create'.
public function actionUpdate($id) { $model = $this->findModelMatrix($id); if (Yii::$app->request->post()) { //if ($model->load(Yii::$app->request->post()) && $model->save()) $myPost['TestValuesMatrix'] = Yii::$app->request->post('TestValuesMatrix'); $myPost['Test...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function actionCreatematrix(){ \n if(Yii::$app->request->post('DynamicModel')){\n $questionH = Question::findOne(Yii::$app->request->post('DynamicModel')['question_horizontal_id']);\n $questionV = Question::findOne(Yii::$app->request->post('DynamicModel')['question_vertic...
[ "0.65320134", "0.6054743", "0.5745793", "0.5728957", "0.57205325", "0.57133836", "0.5653941", "0.56486744", "0.56306803", "0.55988383", "0.55599993", "0.5551773", "0.55468607", "0.5517817", "0.5473484", "0.546903", "0.5445727", "0.5413719", "0.5406519", "0.53956854", "0.53616...
0.76898384
0
Finds the TestValuesMatrix model based on its primary key value. If the model is not found, a 404 HTTP exception will be thrown.
Находит модель TestValuesMatrix по значению первичного ключа. Если модель не найдена, будет выброшено исключение HTTP 404.
protected function findModelMatrix($id) { if (($model = TestValuesMatrix::findOne($id)) !== null) { return $model; } else { throw new NotFoundHttpException('The requested page does not exist.'); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function findModel($key)\n {\n if (null === $key) {\n throw new BadRequestHttpException('Key parameter is not defined in findModel method.');\n }\n\n $modelObject = $this->getNewModel();\n\n if (!method_exists($modelObject, 'findOne')) {\n $class = (new\...
[ "0.627486", "0.6201906", "0.6049104", "0.60311925", "0.58044755", "0.57273513", "0.56731874", "0.5666507", "0.56318474", "0.56163037", "0.5605847", "0.5605481", "0.560042", "0.5600358", "0.560014", "0.55869466", "0.5573753", "0.55636", "0.55394346", "0.55394346", "0.55200493"...
0.71741223
0
No cache for admin related parts, where we should not cache responses
Нет кэша для частей, связанных с админом, где не следует кэшировать ответы
private function setCacheHeadersForAdminRelatedParts() : void { if ( stripos($_SERVER['REQUEST_URI'], '/wp-admin') !== false || stripos($_SERVER['REQUEST_URI'], '/wp-login') !== false || stripos($_SERVER['REQUEST_URI'], 'preview=true') !== false || stripos($_SERVER['REQUEST_URI'], '/service-...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function preflightCache() {\n\t\t$moduleDir = (isset($this->bean->module_dir) && !empty($this->bean->module_dir)) ? $this->bean->module_dir : \"General\";\n\t\t$this->rulesCache = sugar_cached(\"routing/{$moduleDir}\");\n\n\t\tif(!file_exists($this->rulesCache)) {\n\t\t\tmkdir_recursive($this->rulesCache);\n\t\t}\...
[ "0.61793053", "0.60393375", "0.59539634", "0.5940335", "0.59163874", "0.5874851", "0.5825831", "0.58056444", "0.57849157", "0.5767272", "0.5714576", "0.56919", "0.56796366", "0.56776977", "0.56776977", "0.5672908", "0.5657083", "0.5649253", "0.5649253", "0.5640367", "0.563519...
0.7094765
0
Initialize DB object, create db, tables if it doesn't exist, else return db instance.
Инициализировать объект DB, создать базу данных, таблицы, если они не существуют, иначе вернуть экземпляр базы данных.
private static function initialize_db() { if ( ! defined( 'WP_CLI_SNAPSHOT_DB' ) ) { define( 'WP_CLI_SNAPSHOT_DB', Utils\trailingslashit( WP_CLI_SNAPSHOT_DIR ) . 'wp_snapshot.db' ); } if ( ! ( file_exists( WP_CLI_SNAPSHOT_DB ) ) ) { self::create_tables(); return; } // phpcs:ignore PHPCompatibility...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function _setupDb()\n {\n // First, delete the DB if it exists\n $this->_teardownDb();\n \n // Then, set up a clean new DB and return it\n list ($host, $port, $db) = $this->_getUrlParts();\n $db = trim($db, '/');\n \n return Sopha_Db::createDb($d...
[ "0.77911323", "0.7282946", "0.7077956", "0.7071444", "0.69913006", "0.6916428", "0.6884709", "0.68699175", "0.6855566", "0.6795767", "0.67753154", "0.6773127", "0.67419994", "0.6729964", "0.6700847", "0.668744", "0.6678362", "0.6678362", "0.6654968", "0.6651526", "0.66319525"...
0.7401107
1
Create a table to hold snapshot information.
Создайте таблицу для хранения информации о снимке.
private static function create_tables() { // phpcs:ignore PHPCompatibility.Extensions.RemovedExtensions.sqliteRemoved -- False positive. self::$dbo = new \SQLite3( WP_CLI_SNAPSHOT_DB ); // Create snapshots table. $snapshots_table_query = 'CREATE TABLE IF NOT EXISTS snapshots ( id INTEGER, name VARCHAR, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create_table() {\n\n\t\tglobal $wpdb;\n\n\t\t$table_name \t = $this->table_name;\n\t\t$charset_collate = $wpdb->get_charset_collate();\n\n\t\t$query = \"CREATE TABLE {$table_name} (\n\t\t\tid bigint(10) NOT NULL AUTO_INCREMENT,\n\t\t\tname text NOT NULL,\n\t\t\tdate_created datetime NOT NULL,\n\t\t...
[ "0.66499627", "0.66125643", "0.65199023", "0.65078014", "0.63635045", "0.6335155", "0.6324319", "0.6307785", "0.6246677", "0.623937", "0.6201642", "0.6147202", "0.6125693", "0.61248225", "0.6120119", "0.6104153", "0.6096735", "0.6096077", "0.6079459", "0.6066584", "0.6065976"...
0.74774563
0
Get extra information on the given snapshot.
Получите дополнительную информацию о заданном снимке.
public function get_extra_snapshot_info( $snapshot_id ) { if ( ! empty( $snapshot_id ) ) { $data = []; $result = self::$dbo->query( "SELECT * FROM snapshot_extra_info WHERE snapshot_id = $snapshot_id" ); while ( $row = $result->fetchArray() ) { $data[ $row['info_key'] ] = $row['info_value']; } r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getExtraInfo()\n {\n return $this->extra;\n }", "public function getExtraInformation() {\n return $this->extra;\n }", "public function extraInfo();", "public function getAdditionalInformation() {}", "public function getAdditionalInformation() {}", "public function g...
[ "0.6767775", "0.6689729", "0.6672918", "0.6311579", "0.6311579", "0.6311285", "0.6311285", "0.6311285", "0.6311285", "0.631104", "0.631104", "0.631104", "0.62568164", "0.60623014", "0.60447097", "0.60447097", "0.580286", "0.5760969", "0.5753105", "0.5750081", "0.5731442", "...
0.7201986
0
Get backup info by name, useful for backups with custom name.
Получить информацию о резервной копии по имени, полезно для резервных копий с пользовательским именем.
public function get_backup_by_name( $name = '' ) { if ( ! empty( $name ) ) { return self::$dbo->querySingle( "SELECT * FROM snapshots WHERE name LIKE '$name'", true ); } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFromName($name)\n\t{\n\t\treturn $this->zipArchive->getFromName($name);\n\t}", "public function getInfo($name) {}", "function get_by_name($name)\n\t{\n \t\t$this->db->where('CMS_BucketsName', $name);\n\t\treturn $this->db->get($this->table)->row_array();\n\t}", "public function getBackupDa...
[ "0.5987822", "0.5954465", "0.5503365", "0.54000646", "0.53937894", "0.5367266", "0.5339992", "0.52756876", "0.5262413", "0.5219241", "0.5182651", "0.5180365", "0.5124772", "0.5110148", "0.5036652", "0.4968623", "0.49651083", "0.4948448", "0.4948179", "0.4944381", "0.4939399",...
0.743041
0
Test booting up a new kernel
Тестирование запуска нового ядра
public function testBoot() { Kernel::boot(); $this->addToAssertionCount(1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function boot();", "abstract public function boot();", "abstract public function boot();", "abstract public function boot();", "public function bootstrapSystem() {}", "public function bootstrapSystem() {}", "private function booted()\n {\n }", "abstract protected function initia...
[ "0.62427896", "0.62427896", "0.62427896", "0.62427896", "0.62374365", "0.6236309", "0.6225032", "0.6125681", "0.61174965", "0.6070961", "0.60629433", "0.6017778", "0.5936357", "0.5890677", "0.58821505", "0.58413327", "0.58366257", "0.5835953", "0.5806686", "0.5779184", "0.569...
0.74598885
0
Returns the search object used in the generation of these templates.
Возвращает объект поиска, используемый при генерации этих шаблонов.
public function getSearchObject() { if ($this->search === null) { $this->setSearchObject('XmlJs'); } return $this->search; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function voyage_mikado_load_search_template() {\n\t\tglobal $voyage_mikado_IconCollections;\n\n\t\t$search_type = voyage_mikado_options()->getOptionValue('search_type');\n\n\t\t$search_icon = '';\n\t\tif(voyage_mikado_options()->getOptionValue('search_icon_pack') !== '') {\n\t\t\t$search_icon = $voyage...
[ "0.6993619", "0.6943222", "0.69355035", "0.66830784", "0.6633889", "0.6620411", "0.6611461", "0.651686", "0.6505045", "0.6455214", "0.639906", "0.63544047", "0.6264046", "0.6262883", "0.6262883", "0.6262648", "0.6257046", "0.6250885", "0.6226637", "0.6222568", "0.61927927", ...
0.74282306
0
Sets the type of search and initializes a Search object.
Устанавливает тип поиска и инициализирует объект Search.
public function setSearchObject($type) { if (is_string($type)) { if (strtolower($type) == "none") { $this->search = false; return; } $class_name = 'DocBlox_Writer_Xslt_Search_'.$type; if (!class_exists($class_name)) { throw new Exception('Search typ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setSearchType($search_type)\n {\n # Set the variable.\n $this->search_type = $search_type;\n }", "function init_search($type, &$search, &$error)\n\t{\n\t\tglobal $phpbb_root_path, $phpEx, $user, $auth, $config, $db, $table_prefix;\n\n\t\tif (!class_exists($type) || !method_exi...
[ "0.75809956", "0.72857475", "0.7180885", "0.7157324", "0.68691045", "0.6808849", "0.67999744", "0.66960067", "0.66441387", "0.6505143", "0.6505143", "0.643067", "0.6407976", "0.639957", "0.6329203", "0.6270409", "0.6241372", "0.6240079", "0.6218261", "0.6203847", "0.61737823"...
0.7879659
0
Gets query for [[NoMobil]].
Получает запрос для [[NoMobil]].
public function getNoMobil() { return $this->hasOne(Mobil::className(), ['no_mobil' => 'no_mobil']); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getMobileNoiBat()\n {\n $query = \"select * from {$this->table} where Theloai_idTheloai = 6 and visibleOnHome = 1 limit 4 \";\n $pre = $this->db->prepare($query);\n $pre->execute();\n $data = $pre->fetchAll(PDO::FETCH_ASSOC);\n $pre->closeCursor();\n return $da...
[ "0.59275293", "0.5460148", "0.5414108", "0.5305854", "0.51194507", "0.50407386", "0.503743", "0.503396", "0.49976152", "0.49647358", "0.4964578", "0.49634677", "0.49541798", "0.49512592", "0.4940892", "0.4940892", "0.4940892", "0.4940892", "0.4940892", "0.4940892", "0.4940892...
0.7280557
0
Gets query for [[NoNota]].
Получает запрос для [[NoNota]].
public function getNoNota() { return $this->hasOne(Sewa::className(), ['no_nota' => 'no_nota']); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getNota(){\n\t\treturn $this->nota;\n\t}", "public function getNota(){\n return $this->nota;\n }", "function consultarNotas(){ \n $cadena_sql=$this->cadena_sql(\"notas\",$this->codProyecto);\n $estudiantes=$this->funcionGeneral->ejecutarSQL($this->configuracion, $this->a...
[ "0.6493409", "0.64301914", "0.62033314", "0.61404973", "0.6137133", "0.6049094", "0.60363704", "0.59160286", "0.59160286", "0.5911838", "0.5904467", "0.58599347", "0.58517295", "0.5847793", "0.58139056", "0.57566124", "0.5696386", "0.56912017", "0.56717443", "0.56615514", "0....
0.71736246
0
Static method to handle REST requests. This includes loading the request controller, calling the right action for the HTTP verb, creating a response and rendering it with the appropriate output handler. \param $request REST request from client
Статический метод для обработки запросов REST. Это включает загрузку контроллера запроса, вызов соответствующего действия для HTTP-метода, создание ответа и отрисовку его с помощью соответствующего обработчика вывода. \param $request REST-запрос от клиента
public static function handleRequest($request) { // Load controller for requested resource $controllerName = ucfirst($request->getRessourcePath()) . 'Controller'; if (class_exists($controllerName)) { $controller = new $controllerName(); // Get requested action within controller ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function handleRequest($request)\n {\n list ($route, $params) = $request->resolve();\n $this->requestedRoute = $route;\n $result = $this->runAction($route, $params);\n\n if ($result instanceof Response) {\n return $result;\n } elseif ($result instanceof Loope...
[ "0.72546685", "0.68382555", "0.68194103", "0.66777164", "0.66543925", "0.66270715", "0.66252303", "0.66074914", "0.65637064", "0.6553161", "0.65027833", "0.650012", "0.64163685", "0.63848525", "0.63255", "0.6319653", "0.6317182", "0.631194", "0.6291518", "0.6284705", "0.62591...
0.8144727
0
Render admin Questions page
Отобразить страницу администрирования Вопросы
public function execute() { return $this->renderMyQuestionsAdminPage(__('Questions')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function question_content() {\r\n $this->check_permission(19);\r\n $content_data['add'] = $this->check_page_action(19, 'add');\r\n\r\n $this->quick_page_setup(Settings_model::$db_config['adminpanel_theme'], 'adminpanel', $this->lang->line('question_content'), 'operation/question_content...
[ "0.7025636", "0.6870104", "0.68191624", "0.6767262", "0.66515154", "0.6601215", "0.6594949", "0.6573678", "0.6568403", "0.655745", "0.65571916", "0.6536682", "0.6510067", "0.64717185", "0.6422405", "0.63998485", "0.6349373", "0.63421255", "0.63408595", "0.6334741", "0.6331616...
0.7563258
0
/ Return Products of Category with Filters
/ Возвращение продуктов категории с фильтрами
public function getCategoryProductWithFilter($categoryId , $filters = []) { $prefix = config('database.connections.mysql.prefix'); $sql = "Select p.id FROM {$prefix}products as p INNER JOIN {$prefix}category_product as cp on p.id = cp.product_id "; foreach ($f...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_product_category_filters($data) {\n $category_id = $data['category_id'];\n // Return category filters object\n return (object) [\n 'attributes' => get_product_category_attribute_terms($category_id),\n 'subcategories' => get_product_category_subcategories($category_id),\n 'price' ...
[ "0.74786514", "0.7233414", "0.71061814", "0.7100857", "0.69405234", "0.69228876", "0.6877753", "0.68517095", "0.6739836", "0.671493", "0.66795635", "0.6678482", "0.6670057", "0.6643792", "0.6633571", "0.6632781", "0.662614", "0.66051364", "0.6565093", "0.6540056", "0.6520262"...
0.7470918
1
Check if the user1 and user2 is register in a edition
Проверьте, зарегистрированы ли пользователи user1 и user2 в издании
private function isUsersRegisteredInThisEdition(User $user1, User $user2, $editionId) { $em = $this->getDoctrine()->getManager(); $is_user1_has_a_team = true; $is_user1_has_a_team = true; try { $team1 = $em->getRepository('PouceTeamBundle:Team')->findOneTeamByEditionAnd...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static function users_have_added_them_both($user1, $user2) {\n global $con;\n $sql = \"SELECT COUNT(`id`) AS 'count' \n FROM `relationship` \n WHERE `user1` = \".$user1.\" AND `user2` = \".$user2.\" AND `relationship`.`type` = 1 OR \n `user2` = \".$user1.\" AND `user1` = \".$user2.\" AND `re...
[ "0.64063305", "0.62936825", "0.62454104", "0.6149972", "0.6075068", "0.6049593", "0.5971735", "0.59232986", "0.5895942", "0.58407533", "0.5826329", "0.5815471", "0.580385", "0.5782941", "0.57645833", "0.5762647", "0.5747968", "0.5741924", "0.5713705", "0.5709905", "0.5703739"...
0.73668784
0
"SELECT categories.cat_id,subcategories.subc_id,subcategories.subc_name, categories.cat_name, company_info.info_logo, company_info.info_address, users.user_id,users.user_confirmed,users.admin_confirmed, users.user_name, users.user_email, users.user_comp_name, users.user_number, users.client_cat_id, client_cat.client_ca...
SELECT categories.cat_id,subcategories.subc_id,subcategories.subc_name, categories.cat_name, company_info.info_logo, company_info.info_address, users.user_id,users.user_confirmed,users.admin_confirmed, users.user_name, users.user_email, users.user_comp_name, users.user_number, users.client_cat_id, client_cat.client_cat...
public function get_all_info_cat_sub() { $query = $this->db->prepare("SELECT categories.cat_id,subcategories.subc_id,subcategories.subc_name, categories.cat_name, company_info.info_logo, company_info.info_address, users.user_id,users.user_confirmed,users.admin_confirmed, users.user_name, users.user_email, users.us...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_sub_category(){\r\n $this->datatables->select('s.cat_id,s.sub_cat_id,c.cat_name,s.sub_cat_name');\r\n $this->datatables->join( 'o-cakes_category c', 's.cat_id = c.cat_id', 'left' );\r\n $this->datatables->from('o-cakes_sub_cat s');\r\n $this->datatables->where('s.sub...
[ "0.68906945", "0.6745963", "0.66954815", "0.6516495", "0.62792915", "0.6241631", "0.6115963", "0.61140394", "0.60277593", "0.59525234", "0.59311825", "0.59214103", "0.5913459", "0.589797", "0.5895955", "0.58837724", "0.58790034", "0.58629733", "0.58557755", "0.585544", "0.585...
0.76472306
0
funcion para modificar estado
функция для изменения состояния
public function ModificarEstado() { $query="UPDATE estado SET idpais=$this->id_pais, estado='$this->estado' , descripcion='$this->descripcion' WHERE idestado=$this->id_estado"; $resp=$this->db->consulta($query); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function modificarEstado(){\n\t\t$firephp = FirePHP::getInstance(True);\n\t\t$this->load->database();\n\t\t$this->load->model('Estado');\n\t\t//TODO Deshardcodear el idUsuario cuando se da cambia el estado (cuando este listo el manejo de sesions de usuarios).\n\t\t$idUsuario=1;\n\t\t$idBache=$_POST[\"idBach...
[ "0.6844636", "0.6752675", "0.67450947", "0.6530621", "0.64697987", "0.64683545", "0.64075595", "0.6403393", "0.63182086", "0.6292532", "0.62883675", "0.62632245", "0.6257919", "0.62459415", "0.62318504", "0.61676514", "0.61552495", "0.6155", "0.6139722", "0.61326534", "0.6116...
0.70940787
0
Returns the values to be used to save this model.
Возвращает значения, которые следует использовать для сохранения этой модели.
protected function _get_save_values() { // Is this a create or update operation? $is_create = ! $is_update = $this->loaded(); $values = array(); foreach ($this->_meta->fields as $name => $field) { // When creating, primary fields should not be included unless // they have been changed. if ($is_cre...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function getValuesToSave(): array\n\t{\n\t\t$forSave = [];\n\t\t$tableName = $this->getTableName();\n\t\tif (!$this->getId()) {\n\t\t\t$forSave[$this->getTableName()] = [\n\t\t\t\t'sortorderid' => $this->getNextSeq(),\n\t\t\t\t'presence' => $this->presence,\n\t\t\t];\n\t\t}\n\t\t$fields = $this->getId() ? ...
[ "0.72137254", "0.70901126", "0.7041921", "0.7032967", "0.6945895", "0.69269276", "0.69269276", "0.69269276", "0.69269276", "0.68898356", "0.6826475", "0.6812377", "0.6812377", "0.6812377", "0.6812377", "0.6806602", "0.6795344", "0.679496", "0.67856055", "0.67856055", "0.67770...
0.7768483
0
Validates the current state of the model. Throws a Validation_Exception on any validation errors.
Проверяет текущее состояние модели. Выбрасывает исключение Validation_Exception при наличии любых ошибок проверки.
public function validate() { // Build the validation data $data = array(); foreach ($this->_meta->fields as $field_name => $field) { $data[$field_name] = $this->get($field_name); } $data = Validation::factory($data); // Add rules foreach ($this->_meta->fields as $field_name => $field) { fore...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function validate() {\n if ($this->fails()) {\n throw new ValidationException($this);\n }\n }", "public function validate(): void\n {\n $errors = $this->getErrors();\n $this->throwExceptionIfErrors($errors);\n }", "public function validate()\n {\n ...
[ "0.7614802", "0.7352495", "0.7143108", "0.7133326", "0.7107873", "0.7091977", "0.70658684", "0.70311123", "0.69866866", "0.69733435", "0.68785065", "0.68785065", "0.6871858", "0.68368995", "0.6817764", "0.6816027", "0.6803323", "0.6798365", "0.67855996", "0.6784762", "0.67728...
0.73888814
1
sets the gold property
устанавливает свойство gold
public function setGold($gold) { $this->gold = $gold; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setGold($value)\n {\n return $this->set(self::_GOLD, $value);\n }", "public function setGold($value)\n {\n return $this->set(self::_GOLD, $value);\n }", "public function setGold($value)\n {\n return $this->set(self::GOLD, $value);\n }", "public function ...
[ "0.7120003", "0.7120003", "0.7094141", "0.6832131", "0.6412341", "0.6412341", "0.6120072", "0.6022688", "0.59640896", "0.59199834", "0.5853599", "0.5716398", "0.5711581", "0.5695432", "0.56844234", "0.5546442", "0.54222804", "0.5284974", "0.52389425", "0.5179174", "0.5173254"...
0.8076618
0
adds an amount to the gold property
прибавляет количество к свойству gold
public function addGold($amount) { $this->gold += $amount; return $this->gold; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Give_Gold($amount = 0) {\r\n\t\tglobal $character, $gameinstance;\r\n\t\tif(isset($amount) && is_numeric($amount) && $amount >= 0) \r\n\t\t{\r\n\t\t\tdbn(__FILE__,__LINE__,\"update ${gameinstance}_characters set gold = gold + '$amount' where login_id = '$character[login_id]'\");\r\n\t\t}\r\n\t\telse \r\n\...
[ "0.73141867", "0.673802", "0.6453764", "0.6422878", "0.6372934", "0.6372934", "0.6355583", "0.6221611", "0.6221611", "0.60949725", "0.60870916", "0.5998652", "0.5942114", "0.59296036", "0.59223205", "0.58614093", "0.58341765", "0.5805274", "0.5716164", "0.5705222", "0.5681889...
0.79625314
0
removes an amount from the gold property
удаляет определённое количество из свойства gold
public function removeGold($amount) { // don't let the level fall below 1! $this->gold = (($this->gold - $amount) >= 0) ? ($this->gold - $amount) : 0; return $this->gold; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Take_Gold($amount = 0) {\r\n\t\tglobal $character, $gameinstance;\r\n\t\tif(isset($amount) && is_numeric($amount) && $amount >= 0 && $amount <= $character['gold']) \r\n\t\t{\r\n\t\t\tdbn(__FILE__,__LINE__,\"update ${gameinstance}_characters set gold = gold - '$amount' where login_id = '$character[login_id...
[ "0.66146433", "0.65858614", "0.62085557", "0.5950152", "0.5876341", "0.58661777", "0.5848497", "0.5699289", "0.56781733", "0.56759006", "0.566483", "0.56076777", "0.5598755", "0.5552711", "0.5529545", "0.5412047", "0.53791237", "0.5373669", "0.53474915", "0.53364456", "0.5327...
0.78020245
0
returns the gold property
возвращает свойство gold
public function getGold() { return $this->gold; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getGold()\n {\n return $this->get(self::_GOLD);\n }", "public function getGold()\n {\n return $this->get(self::_GOLD);\n }", "public function gold(): int\n {\n return $this->pluck('definedTrophies.gold');\n }", "public function getGold()\n {\n ...
[ "0.81075084", "0.81075084", "0.7646857", "0.7572658", "0.66036975", "0.6366727", "0.6191491", "0.6167221", "0.61645997", "0.60651314", "0.60651314", "0.6034638", "0.5975962", "0.5966042", "0.5927742", "0.5927324", "0.5916403", "0.5861163", "0.5840344", "0.5840344", "0.5830047...
0.8141444
0
sets the cardHand property
устанавливает свойство cardHand
public function setCardHand(Deck $deck) { $this->cardHand = $deck; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCardHand() {\n\t\treturn $this->cardHand;\n\t}", "public function setHand(Deck $deck, $startingHandSize)\r\n {\r\n for ($i = 0; $i < $startingHandSize; $i++) {\r\n $card = array_pop($deck->cards);\r\n $this->hand[] = $card;\r\n }\r\n }", "public func...
[ "0.733613", "0.68689877", "0.6596367", "0.65647614", "0.64141387", "0.6364075", "0.6350349", "0.6313771", "0.61930555", "0.6133168", "0.6100967", "0.59175795", "0.58518934", "0.58263254", "0.58029276", "0.5752071", "0.5739936", "0.57264936", "0.56635404", "0.5634038", "0.5633...
0.8046725
0
gets the cardHand property
получает свойство cardHand
public function getCardHand() { return $this->cardHand; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getHand() {\n\t\t\treturn $this->_hand;\n\t\t}", "protected function get_hands() {\n return $this->hands;\n }", "public function GetHandArray(){\r\n\t \r\n\t\treturn $this -> handArray;\r\n\t }", "public function getCard() {\n return $this->card;\n }", "public function getCa...
[ "0.8138414", "0.7373564", "0.71289414", "0.71237665", "0.7109974", "0.70017254", "0.68530434", "0.6390686", "0.6388169", "0.63332355", "0.6276845", "0.62548023", "0.623527", "0.62267244", "0.6201424", "0.6170761", "0.6156193", "0.6149236", "0.6070398", "0.6068012", "0.6044841...
0.87864685
0
sets the cardPublicStand property
устанавливает свойство cardPublicStand
public function setCardPublicStand(Deck $deck) { $this->cardPublicStand = $deck; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCardPublicStand() {\n\t\treturn $this->cardPublicStand;\n\t}", "public function setCard(?bool $card): void\n {\n $this->card = $card;\n }", "public function setPublic($public)\n {\n $this->_public = $public;\n }", "public function setCardHiddenStand(Deck $deck) {\n\t\t$th...
[ "0.7326646", "0.5868149", "0.5834864", "0.5825007", "0.55942845", "0.54274434", "0.5426828", "0.53833663", "0.535373", "0.5255028", "0.52513903", "0.5212412", "0.5143107", "0.5110338", "0.5090328", "0.5088997", "0.5088997", "0.5081407", "0.50765204", "0.504525", "0.5013296", ...
0.7957531
0
gets the cardPublicStand property
получает свойство cardPublicStand
public function getCardPublicStand() { return $this->cardPublicStand; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCardHiddenStand() {\n\t\treturn $this->cardHiddenStand;\n\t}", "public function setCardPublicStand(Deck $deck) {\n\t\t$this->cardPublicStand = $deck;\n\t}", "public function getCard() {\n return $this->card;\n }", "public function getCard()\n {\n return $this->card;\n }", ...
[ "0.70460093", "0.65770745", "0.6432672", "0.6374546", "0.63014483", "0.6193678", "0.6096655", "0.59466505", "0.5854303", "0.5854303", "0.58394647", "0.5747855", "0.5709174", "0.5707868", "0.5692901", "0.5686399", "0.5610167", "0.5552336", "0.5457683", "0.5440377", "0.5437477"...
0.8813287
0
sets the cardHiddenStand property
устанавливает свойство cardHiddenStand
public function setCardHiddenStand(Deck $deck) { $this->cardHiddenStand = $deck; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCardHiddenStand() {\n\t\treturn $this->cardHiddenStand;\n\t}", "public function setHidden(){\n $this->_hidden = true;\n }", "public function setCardPublicStand(Deck $deck) {\n\t\t$this->cardPublicStand = $deck;\n\t}", "public function setHidden($hidden) {\n\t\t$this->hidden = $hidden;\...
[ "0.7393", "0.62217224", "0.6155269", "0.59672123", "0.59672123", "0.5929089", "0.576504", "0.5703067", "0.5634171", "0.5596449", "0.55069166", "0.5465975", "0.5432022", "0.52958405", "0.52573097", "0.5240549", "0.51665354", "0.51603115", "0.51486665", "0.51213497", "0.5087043...
0.8119788
0
gets the cardHiddenStand property
получает свойство cardHiddenStand
public function getCardHiddenStand() { return $this->cardHiddenStand; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCardPublicStand() {\n\t\treturn $this->cardPublicStand;\n\t}", "public function setCardHiddenStand(Deck $deck) {\n\t\t$this->cardHiddenStand = $deck;\n\t}", "protected function getHidden()\n {\n return $this->hidden;\n }", "public function getHidden()\n {\n return $t...
[ "0.6972929", "0.6887469", "0.6433971", "0.63276243", "0.63276243", "0.63276243", "0.63276243", "0.62242395", "0.62220734", "0.6197236", "0.6197236", "0.61143446", "0.608994", "0.6032849", "0.59027445", "0.58987993", "0.58865905", "0.58865905", "0.5873006", "0.58670604", "0.57...
0.9026521
0
sets the cardAux property
устанавливает свойство cardAux
public function setCardAux(Deck $deck) { $this->cardAux = $deck; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCardAux() {\n\t\treturn $this->cardAux;\n\t}", "public function initCard()\n {\n $baseCard = $this->getBaseCard();\n /*\n * fix return;\n */\n if(!$baseCard)\n return false;\n $this->current_hp = $this->hp;\n $this->current_name ...
[ "0.73438436", "0.60229087", "0.573659", "0.5676237", "0.5575835", "0.5557925", "0.55552787", "0.5421963", "0.52842766", "0.5218932", "0.5191987", "0.5138346", "0.50953895", "0.5093687", "0.5025966", "0.49885222", "0.49221224", "0.48993692", "0.48910022", "0.4843302", "0.48264...
0.79387164
0
gets the cardAux property
получает свойство cardAux
public function getCardAux() { return $this->cardAux; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_card(){ return $this->_card;}", "public function getCard() {\n return $this->card;\n }", "public function get_background_card(){ return $this->_background_card;}", "public function getCard()\n {\n return $this->card;\n }", "public function setCardAux(Deck $deck) {\n\t\t...
[ "0.7158485", "0.6853645", "0.6795238", "0.6763302", "0.62864697", "0.62478215", "0.60203975", "0.60121685", "0.6001583", "0.60014176", "0.60014176", "0.5978636", "0.58844763", "0.57352734", "0.5727707", "0.57038575", "0.56774026", "0.56569505", "0.55954164", "0.55781686", "0....
0.8726073
0
sets the doneTurn property
устанавливает свойство doneTurn
public function setDoneTurn($bool) { $this->doneTurn = $bool; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDoneTurn() {\n\t\treturn $this->doneTurn;\t\n\t}", "private function changeTurn()\n {\n $this->_turn = 1 - $this->_turn; // 1-0 = 1, 1-1 = 0\n }", "public function end_turn()\n\t{\n\t\t//\t\tpropre a la classe\n\t}", "public function turn()\n {\n }", ...
[ "0.7139929", "0.69734335", "0.66704863", "0.6387826", "0.6152552", "0.5994157", "0.5900429", "0.5856282", "0.5693773", "0.56543535", "0.5653999", "0.5563116", "0.55257314", "0.55206513", "0.5467925", "0.54368305", "0.5297161", "0.5286131", "0.5274658", "0.52740514", "0.522601...
0.80285144
0
gets the doneTurn property
получает свойство doneTurn
public function getDoneTurn() { return $this->doneTurn; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTurn() {\n\t\t\treturn $this -> turn;\n\t\t}", "public function setDoneTurn($bool) {\n\t\t$this->doneTurn = $bool;\n\t}", "public function hasGameFinished()\n {\n return $this->hasWon;\n }", "public function getTurnover()\n {\n return $this->_turnover;\n }", "pu...
[ "0.72615784", "0.6948088", "0.6380359", "0.6176513", "0.61196864", "0.60699415", "0.60566384", "0.59699273", "0.5931806", "0.59226954", "0.5894798", "0.5887663", "0.5829694", "0.5816089", "0.5784963", "0.5779195", "0.56541973", "0.5651403", "0.56309295", "0.5630488", "0.56108...
0.87266946
0
Get the value of animal
Получить значение животного
public function getAnimal() { return $this->animal; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAnimal(): Animal\n {\n return $this->animal;\n }", "abstract public function getValue();", "abstract public function getValue();", "abstract public function getValue();", "public function getAnimalID()\n {\n return $this->animalID;\n }", "public function getVa...
[ "0.6747964", "0.6493592", "0.6493592", "0.64931655", "0.64874357", "0.6468136", "0.6468136", "0.63512945", "0.63512945", "0.63512945", "0.63512945", "0.63512945", "0.63512945", "0.63512945", "0.63512945", "0.63512945", "0.63512945", "0.63512945", "0.63512945", "0.63512945", "...
0.72058266
0
Get all of the problems for a given user.
Получить все проблемы для заданного пользователя.
public function forUser(User $user) { return Problem::where('user_id', $user->id) ->orderBy('created_at', 'asc') ->get(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show(User $user)\n\t{\n\t\t$OKSolutions = Solution::solved($user->id)\n\t\t ->orderBy('id', 'desc')\n\t\t ->groupBy('problem_id')\n\t\t ->paginate(10);\n\n\t\t$notOKSolutions = Solution::unsolved($user->id)\n\t\t ...
[ "0.6092309", "0.6013841", "0.5944246", "0.57211334", "0.5710609", "0.5670315", "0.56171143", "0.5535722", "0.5535089", "0.5532402", "0.5530777", "0.5481376", "0.54808253", "0.54417425", "0.5432956", "0.54254186", "0.5422889", "0.5402075", "0.53854114", "0.53817", "0.5377716",...
0.7818366
0
Disable the DataTables search filter
Отключить фильтр поиска DataTables
function disable_gravityview_datatables_search( $dt_config, $view_id, $post ) { $return_config = $dt_config; $return_config['searching'] = false; return $return_config; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function resetFilterSearch() {\n\t\t$this->table->resetOffset();\n\t\t$this->table->resetFilter();\n\t\t$this->ctrl->redirect($this, self::CMD_SEARCH);\n\t}", "function ks_disable_search($query, $error = true) {\n if (is_search() && !is_admin()) {\n $query->is_search = false;\n $query->qu...
[ "0.6523719", "0.6319493", "0.62253064", "0.6224475", "0.61818004", "0.6135331", "0.60477525", "0.6033651", "0.59845036", "0.5884777", "0.58787864", "0.5849319", "0.58472914", "0.57764995", "0.57526904", "0.5717378", "0.56791455", "0.5662878", "0.56064045", "0.5603792", "0.559...
0.7059569
0
Builds the URI of the index.
Строит URI индекса.
public function buildIndexUri(): string;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_index_url()\n {\n }", "public function buildBackendUri() {}", "public function buildFrontendUri() {}", "private function _buildUri(): string {\n return !empty($this->query) ? $this->uri.'?'.http_build_query($this->query) : $this->uri;\n }", "public function getIn...
[ "0.6956857", "0.6793137", "0.6791243", "0.67232627", "0.66196686", "0.64982927", "0.606921", "0.6053853", "0.6053853", "0.6053853", "0.6011646", "0.6001522", "0.5963693", "0.59589106", "0.5958212", "0.59474504", "0.59390473", "0.58789235", "0.58540934", "0.5852988", "0.581118...
0.89603347
0
Builds the URI of the password.
Создает URI пароля.
public function buildPasswordUri(): string;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function generateString()\n\t{\n\t\t// start with the scheme\n\t\t$url = $this->scheme . '://';\n\t\t\n\t\t// user and password\n\t\tif( !empty( $this->user ) )\n\t\t{\n\t\t\t$url .= $this->user;\n\t\t\tif( !empty( $this->pass ) ) $url .= ':'.$this->pass.'@';\n\t\t\telse $url .= '@';\n\t\t}\n\t\t\n\t\t/...
[ "0.7153289", "0.66182363", "0.65636295", "0.6330628", "0.62709427", "0.6178287", "0.6174496", "0.612365", "0.60921836", "0.60723734", "0.6055364", "0.60109", "0.6010225", "0.5991526", "0.5970183", "0.59670275", "0.59447473", "0.5938947", "0.5915427", "0.58831275", "0.58585364...
0.874558
0
Get store Total sales with currency.
Получить общую сумму продаж магазина с учетом валюты.
public function todaysSalesTotal() { //get todays Date $fromDate = Mage::helper('magemobapp')->getTodaysDate(); $storeId = Mage::getModel('magemobapp/storeinfo')->getStoreId(); $collection = Mage::getResourceModel('sales/order_collection')->addAttributeToFi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function totalSale()\r\n {\r\n //$strSQLQuery = \"SELECT SUM(TotalPrice) as OrderTotal FROM e_orders WHERE PaymentStatus=1 AND OrderStatus='Completed'\";\r\n $strSQLQuery = \"SELECT SUM((CASE when Currency='USD' then TotalPrice \r\n \t\telse TotalPrice/CurrencyValue\r\n\tEND )) as OrderTot...
[ "0.7206213", "0.66518694", "0.6614605", "0.649589", "0.6476405", "0.6429748", "0.6403048", "0.6402986", "0.63874066", "0.63866514", "0.623594", "0.62295353", "0.61892766", "0.6158977", "0.61530596", "0.6141016", "0.6123033", "0.61169326", "0.61142814", "0.6102398", "0.6098066...
0.722228
0
Simple Cube function Return the cube of the input value
Простая функция куба Возвращает куб входного значения
function cubeIt($val) { return $val*$val*$val; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function cube($value)\n {\n return (float) $value - floor($value / $this->cube_size) * $this->cube_size;\n }", "function cube_encode($value)\n{\n return bin_encode($value);\n}", "public function getTotalCube()\n {\n $cube = 0;\n \n if ($this->hasProducts()) {\n ...
[ "0.77840984", "0.6184692", "0.6116731", "0.583512", "0.55219173", "0.5478989", "0.5246979", "0.5226943", "0.51188713", "0.51110965", "0.5064169", "0.50256264", "0.481387", "0.4752041", "0.47487283", "0.4727762", "0.4688322", "0.46528623", "0.46328196", "0.46177", "0.45943767"...
0.79724497
0
user can only have one profile (relationship)
пользователь может иметь только один профиль (отношение)
public function profile(){ return $this->hasOne('App\Profile'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function profile()\n {\n return $this->hasOne('App\\Profile');\n }", "public function profile()\n {\n return $this->hasOne('App\\Profile');\n }", "public function getProfile()\n {\n return $this->hasOne(Profile::className(), ['id' => 'profile_id']);\n }", "public...
[ "0.68275756", "0.68275756", "0.6803194", "0.67811567", "0.6766525", "0.67440075", "0.67305547", "0.6721651", "0.66672134", "0.66336215", "0.6631145", "0.66299564", "0.6625673", "0.6624737", "0.6617465", "0.6617465", "0.6617465", "0.6607544", "0.6519978", "0.65091616", "0.6489...
0.71112466
0
Other relationships can be define here user can have as many message as possible
Другие отношения можно определить здесь, пользователь может иметь любое количество сообщений
public function message(){ return $this->hasMany('App\Message'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function messages(){\n return $this->hasMany('App\\Message', 'user_id');\n }", "public function relatedMessages(){\n return $this->hasMany(Message::class,'messages_resources','resource','message');\n }", "public function messageTo(){\n \treturn $this->belongsTo('App\\User', 'to');...
[ "0.7126971", "0.7033994", "0.6969394", "0.6942888", "0.6857078", "0.66738844", "0.6667327", "0.66268945", "0.66268945", "0.66165495", "0.66001296", "0.65040714", "0.6431403", "0.6328694", "0.6323701", "0.6254503", "0.6151802", "0.6147244", "0.61277056", "0.6107002", "0.606842...
0.7219047
0
Use various methods to get path of PHP executable
Используйте различные методы для получения пути к исполняемому файлу PHP
function getPhpExecutable() { global $isWindowsServer; // Set filename of actual php executable file $phpexe = "php" . ($isWindowsServer ? ".exe" : ""); // LINUX ONLY (use "exec") if (!$isWindowsServer) { // Use "which php" $php_executable = @exec("which php"); if (isFile($php_executable)) return...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getPhpExecutable(): string\n {\n return (new PhpExecutableFinder)->find();\n }", "protected static function getPhp() : string\n\t{\n\t\t$phpFinder = new PhpExecutableFinder;\n\n\t\tif( !( $phpPath = $phpFinder->find() ) ) {\n\t\t\tthrow new \\RuntimeException( 'The php executable ...
[ "0.84373724", "0.7493478", "0.7377553", "0.72301537", "0.7141929", "0.69003457", "0.68386567", "0.6798896", "0.657233", "0.6560656", "0.6555107", "0.6529256", "0.6390641", "0.6389945", "0.63857096", "0.6349222", "0.6328783", "0.6269922", "0.6269294", "0.6269294", "0.6242348",...
0.7792363
1
Returns HTML name of control.
Возвращает HTML-имя элемента управления.
public function getHtmlName(): string { return parent::getHtmlName() . ( $this->control->multiple ? '[]' : '' ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function controlName($name)\n {\n return sprintf(\n '%s_%s',\n $this->slug,\n $name\n );\n }", "public function getControl($name);", "public function getControlNames();", "public function getName(): string\n {\n if ($this->name === null) ...
[ "0.7049157", "0.7004115", "0.67884785", "0.6783255", "0.6730914", "0.6703545", "0.6586949", "0.6586949", "0.65142393", "0.649944", "0.6444555", "0.6427395", "0.6356329", "0.6351972", "0.634694", "0.63457245", "0.63212806", "0.6314539", "0.628876", "0.628876", "0.628876", "0...
0.7598421
0
Returns the unboxed value from getMaxTasksPerSecond() Allows throttling dispatch of tasks from this queue Generated from protobuf field .google.protobuf.DoubleValue max_tasks_per_second = 1;
Возвращает неупакованное значение из getMaxTasksPerSecond() Позволяет ограничивать распределение задач из этой очереди Сгенерировано из поля protobuf .google.protobuf.DoubleValue max_tasks_per_second = 1;
public function getMaxTasksPerSecondUnwrapped() { return $this->readWrapperValue("max_tasks_per_second"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getMaxTasksPerSecond()\n {\n return $this->max_tasks_per_second;\n }", "public function setMaxTasksPerSecond($var)\n {\n GPBUtil::checkMessage($var, \\Google\\Protobuf\\DoubleValue::class);\n $this->max_tasks_per_second = $var;\n\n return $this;\n }", "pu...
[ "0.80226105", "0.70193106", "0.5869693", "0.5482305", "0.5387316", "0.5326887", "0.53045464", "0.52943796", "0.5232154", "0.5205731", "0.5084888", "0.5040158", "0.50071186", "0.5002314", "0.4958851", "0.49507353", "0.49411938", "0.4933974", "0.49309337", "0.4902182", "0.49010...
0.75825316
1
$Id: i18n_path.admin.inc,v 1.1.2.2 2011/02/19 17:50:42 jareyero Exp $
$Id: i18n_path.admin.inc,v 1.1.2.2 2011/02/19 17:50:42 jareyero Exp $
function i18n_path_admin_overview() { $default = language_default('language'); $result = db_select('i18n_path', 'p')->fields('p')->execute(); foreach ($result as $path) { $paths[$path->tsid][$path->language] = $path->path; } if (!empty($paths)) { $build['paths'] = array( '#theme' => 'table', ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function admin_l10n($l10n)\n {\n }", "function input_admin_l10n($l10n)\n {\n }", "function _thickbox_path_admin_subfolder()\n {\n }", "static function adminSubMenuProjecten()\n {\n // include the view for this submenu page.\n include PROJECTEN_PLUGIN_ADMIN_VIEWS_DIR . '/pp_...
[ "0.67441016", "0.659892", "0.633938", "0.6083028", "0.6040193", "0.60013115", "0.5976449", "0.59671897", "0.59594846", "0.5951477", "0.59476817", "0.59202087", "0.5906972", "0.58807856", "0.5868975", "0.58511937", "0.5822166", "0.5802144", "0.57746017", "0.57728386", "0.57660...
0.7090359
0
Check event exists in FormEvents
Проверьте, существует ли событие в FormEvents
protected static function isEventExists($event) { static $events; if (!$events) { $ref = new \ReflectionClass('Symfony\Component\Form\FormEvents'); $events = $ref->getConstants(); } return in_array($event, $events); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hasEventListeners($event);", "private function checkEventExists(){\n $event = Event::find($this->id);\n\n return(!is_null($event));\n }", "public function hasEventQueue(/*# string */ $eventName)/*# : bool */;", "static protected function eventExists($uid) {\n return ar...
[ "0.7169488", "0.70932585", "0.6956594", "0.6628984", "0.6564281", "0.65567", "0.6543992", "0.64950377", "0.64793307", "0.64631337", "0.6420489", "0.64184576", "0.6389724", "0.637995", "0.636178", "0.6283273", "0.6275799", "0.62393355", "0.6235809", "0.6206788", "0.6168576", ...
0.71003026
1
Utility method used to retrieve the class of a particular instance. This is here to allow extending classes to override how class names are resolved
Полезный метод, используемый для получения класса определенного экземпляра. Это сделано для того, чтобы позволить расширяемым классам переопределять способ разрешения имен классов
protected function getClass($instance) { return get_class($instance); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getClass()\n {\n $type = explode('\\\\', get_called_class());\n\n return $type[count($type) - 1];\n }", "public function get_class()\n {\n return $this->class;\n }", "function get_class() {\n\t\t$args = func_get_args();\n\t\treturn strtolower(call_user_fu...
[ "0.7674665", "0.7548244", "0.7498692", "0.74614376", "0.7436205", "0.7325923", "0.7293488", "0.7250701", "0.7249875", "0.7244451", "0.7207013", "0.7185139", "0.7155813", "0.7155813", "0.713727", "0.713727", "0.713727", "0.713727", "0.713727", "0.713727", "0.713727", "0.7137...
0.76272494
1
Factory method to create a new Coordinate
Фабричный метод для создания нового Coordinate
public static function create($x, $y){ return new Coordinate($x, $y); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static public function createFromXml(\\SimpleXMLElement $xml)\n {\n $coordinate = new Coordinate();\n $coordinate->type = (string) $xml['type'];\n $coordinate->x = self::intToFloat((string) $xml['x']);\n $coordinate->y = self::intToFloat((string) $xml['y']);\n\n return $coordi...
[ "0.6669382", "0.65018266", "0.6392287", "0.63756716", "0.6167057", "0.6148345", "0.6069502", "0.6058542", "0.6028035", "0.60138613", "0.5941452", "0.5878433", "0.5875494", "0.5849214", "0.58384734", "0.57901937", "0.5757661", "0.5710518", "0.56853056", "0.5658569", "0.5655474...
0.8057508
0
Get the standard installpage header
Получить стандартный заголовок installpage
function get_header(){ global $FANNIE_ROOT; ob_start(); $page_title = $this->title; $header = $this->header; include($FANNIE_ROOT.'src/header_install.html'); return ob_get_clean(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_header() {\n $this->do_header();\n return $this->c_header;\n }", "function get_html_header();", "public function getPageHeader()\n\t{\n\t\treturn $this->_pageHeader;\n\t}", "public function print_header() {\n return $this->header();\n }", "function get_header()\n\t{\n\t...
[ "0.6623594", "0.6609625", "0.6459005", "0.6431005", "0.638366", "0.63192356", "0.6268992", "0.61815596", "0.61727613", "0.615776", "0.614493", "0.6062141", "0.6054568", "0.6054126", "0.60496956", "0.60441923", "0.60300934", "0.5992656", "0.5966664", "0.5939472", "0.5935634", ...
0.7540402
0
Get the standard installpage footer
Получить стандартный футер страницы установки
function get_footer(){ global $FANNIE_ROOT, $FANNIE_AUTH_ENABLED, $FANNIE_URL; ob_start(); include($FANNIE_ROOT.'src/footer_install.html'); return ob_get_clean(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getFooter()\n{\n global $rAdminSettings, $rPermissions, $rSettings, $rRelease, $rEarlyAccess, $_;\n if ($rPermissions[\"is_admin\"]) {\n $version = \"Version : \" . $rRelease . \" Based On Xtream UI 22F\";\n if ($rAdminSettings['show_version'] == 0) {\n $version = \" Based O...
[ "0.749995", "0.7425179", "0.7425179", "0.7322055", "0.7295061", "0.70357466", "0.6983772", "0.6900347", "0.6876386", "0.6876259", "0.68665236", "0.68665236", "0.6859025", "0.6838987", "0.6832419", "0.68166435", "0.68113494", "0.6807563", "0.6787819", "0.673798", "0.67307687",...
0.80267286
0
Get the URI template expander used by the client. A default UriTemplate object will be created if one does not exist.
Получите шаблонизатор URI, используемый клиентом. Если такой объект не существует, будет создан объект UriTemplate по умолчанию.
public function getUriTemplate() { if (!$this->uriTemplate) { $this->uriTemplate = new UriTemplate(); } return $this->uriTemplate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function uriKey()\n {\n return 'temply-pages-templates';\n }", "public function getTemplate();", "public function getTemplate();", "public function getTemplate();", "public function getTemplate();", "public function getTemplate();", "public function getTemplate();", "public...
[ "0.5726032", "0.52961725", "0.52961725", "0.52961725", "0.52961725", "0.52961725", "0.52961725", "0.5271927", "0.52608323", "0.5205318", "0.5191102", "0.51728976", "0.5155659", "0.5110591", "0.50490195", "0.5043915", "0.50390244", "0.5038304", "0.5030683", "0.5030447", "0.503...
0.702943
0
Set a curl multi object to be used internally by the client for transferring requests.
Задайте объект curl multi, который будет использоваться клиентом для передачи запросов.
public function setCurlMulti(CurlMultiInterface $curlMulti) { $this->curlMulti = $curlMulti; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __construct($multi = null)\n {\n $this->_multi = $multi ? $multi : new \\Bronto\\StandardResource\\Proxy('curl_multi_');\n $this->_multi->addExcluded('getcontent');\n $this->_multi->init();\n }", "private function openMultiChannel(&$multiChannel)\n\t{\n\t\t$multiChannel...
[ "0.69294846", "0.6387808", "0.628514", "0.6220106", "0.6140815", "0.61172974", "0.60815644", "0.6019608", "0.59868836", "0.5969088", "0.5963483", "0.5911366", "0.5864237", "0.57684094", "0.56982136", "0.5677888", "0.56300133", "0.5629641", "0.56283", "0.5587437", "0.55803484"...
0.7078626
0
Get the curl multi object used with the client
Получить объект curl multi, используемый с клиентом
public function getCurlMulti() { if (!$this->curlMulti) { $this->curlMulti = CurlMulti::getInstance(); } return $this->curlMulti; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function multiRequest($data, $options = array()) \n{\n\t$data = (array) $data;\n\n\t// array of curl handles\n\t$curly = array();\n\t// data to be returned\n\t$result = array();\n\n\t// multi handle\n\t$mh = curl_multi_init();\n\n\t// loop through $data and create curl handles\n\t// then add them to the multi-hand...
[ "0.6682251", "0.6650737", "0.64217716", "0.6339052", "0.6114879", "0.6101976", "0.6074952", "0.6068205", "0.5996279", "0.59122795", "0.57772523", "0.5731051", "0.57226634", "0.5675175", "0.56502235", "0.56407255", "0.5630532", "0.5628347", "0.55857766", "0.55730176", "0.55497...
0.76411784
0
Display a listing of pitches
Показать список бросков
public function index() { $pitches = Pitch::all(); return View::make('pitches.index', compact('pitches')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function actionPitches()\n { \n\n $searchModel = new PitchSearch();\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams);\n $dataProvider->pagination = [\n 'pageSize' => 10,\n ];\n\n return $this->render('pitches', [\n 'searchM...
[ "0.78780216", "0.57972914", "0.5782517", "0.57452047", "0.568238", "0.5665907", "0.554359", "0.5521052", "0.5493955", "0.54106253", "0.54102165", "0.5406764", "0.5370672", "0.5350275", "0.5344742", "0.5339448", "0.5324487", "0.53175706", "0.53132993", "0.5310677", "0.52985597...
0.70986474
1
Show the form for editing the specified pitch.
Показать форму для редактирования указанного тона.
public function edit($id) { $pitch = Pitch::find($id); return View::make('pitches.edit', compact('pitch')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function edit()\n\t{\n\t\tJRequest::setVar( 'view', 'player' );\n\t\tJRequest::setVar( 'layout', 'form' );\n\t\tJRequest::setVar('hidemainmenu', 1);\n\t \t \n\t\tparent::display();\n\t}", "public function edit(Speaker $speaker)\n {\n //\n }", "public function show($id)\n\t{\n\t\t// \t\n...
[ "0.6676512", "0.6441654", "0.6010675", "0.59815794", "0.5938378", "0.59298986", "0.58987445", "0.58912796", "0.5821772", "0.57867056", "0.5778019", "0.5755491", "0.573077", "0.57296056", "0.5716647", "0.571075", "0.56987494", "0.5687955", "0.5668982", "0.5639", "0.563447", ...
0.70002025
0
Test retrieving an Order.
Тестирование получения заказа.
public function testRetrieve() { VCR::insertCassette('orders/retrieve.yml'); $order = Order::create(Fixture::basicOrder()); $retrievedOrder = Order::retrieve($order->id); $this->assertInstanceOf('\EasyPost\Order', $retrievedOrder); $this->assertEquals($order->id, $retrieve...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testRetrive()\n {\n $json = <<<JSON\n{\n \"order_id\": \"f3392f8b-6116-4073-ab96-e330819e2c07\",\n \"order_amount\": 50000,\n \"order_tax_amount\": 5000\n}\nJSON;\n\n $this->mock->append(\n new Response(\n 200,\n ['Content-Type' => ...
[ "0.81425124", "0.736507", "0.72479665", "0.7115802", "0.69687515", "0.6968065", "0.69535375", "0.69217134", "0.6880942", "0.67449266", "0.6727449", "0.67012167", "0.6696549", "0.6664464", "0.659774", "0.6544686", "0.650377", "0.6492715", "0.64852", "0.6447323", "0.64456445", ...
0.81376964
1
Test retrieving rates for a order.
Тестирование получения курсов для заказа.
public function testGetRates() { VCR::insertCassette('orders/getRates.yml'); $order = Order::create(Fixture::basicOrder()); $rates = $order->get_rates(); $ratesArray = $rates['rates']; $this->assertIsArray($ratesArray); $this->assertContainsOnlyInstancesOf('\EasyP...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testGetRates()\n {\n $response = [\n 'disclaimer' => 'https://openexchangerates.org/terms/',\n 'license' => 'https://openexchangerates.org/license/',\n 'timestamp' => 1449877801,\n 'base' => 'USD',\n 'rates' => [\n 'EUR...
[ "0.66950476", "0.6552656", "0.6505562", "0.6462803", "0.6411631", "0.624473", "0.6161153", "0.6067619", "0.6064549", "0.6054592", "0.60326797", "0.59568435", "0.59221923", "0.5867306", "0.5833505", "0.58219004", "0.58121485", "0.5807116", "0.5738694", "0.5731453", "0.5718758"...
0.7613437
0
Test buying an Order.
Тест покупки заказа.
public function testBuy() { VCR::insertCassette('orders/buy.yml'); $order = Order::create(Fixture::basicOrder()); $order->buy([ 'carrier' => Fixture::usps(), 'service' => Fixture::uspsService(), ]); $shipmentsArray = $order['shipments']; fo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testBuy()\n {\n VCR::insertCassette('pickups/buy.yml');\n\n $shipment = Shipment::create(Fixture::oneCallBuyShipment());\n\n $pickupData = Fixture::basicPickup();\n $pickupData['shipment'] = $shipment;\n\n $pickup = Pickup::create($pickupData);\n\n $boug...
[ "0.72055554", "0.70219594", "0.695565", "0.6839315", "0.67963976", "0.6740879", "0.66172457", "0.66018087", "0.65744567", "0.6544685", "0.6526224", "0.6513589", "0.64417493", "0.63723993", "0.6364923", "0.63576573", "0.6357522", "0.63084203", "0.6299384", "0.6232709", "0.6213...
0.760721
0
Test buying an Order with a Rate object.
Тест покупки заявки с объектом Rate.
public function testBuyRateObject() { VCR::insertCassette('orders/buyRateObject.yml'); $order = Order::create(Fixture::basicOrder()); $order->buy($order->rates[0]); $shipmentsArray = $order['shipments']; foreach ($shipmentsArray as $shipment) { $this->assertNo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testBuy()\n {\n VCR::insertCassette('orders/buy.yml');\n\n $order = Order::create(Fixture::basicOrder());\n\n $order->buy([\n 'carrier' => Fixture::usps(),\n 'service' => Fixture::uspsService(),\n ]);\n\n $shipmentsArray = $order['shipment...
[ "0.67488503", "0.67389774", "0.6650052", "0.654416", "0.6468276", "0.6227071", "0.6154428", "0.61476827", "0.6131153", "0.6128471", "0.6114831", "0.6111936", "0.60368687", "0.60155356", "0.60036355", "0.59959424", "0.59311277", "0.5892743", "0.5869987", "0.5867194", "0.586322...
0.80677617
0
Test various usage alterations of the lowest_rate method.
Проверьте различные варианты использования метода lowest_rate.
public function testLowestRate() { VCR::insertCassette('orders/lowestRate.yml'); $order = Order::create(Fixture::basicOrder()); // Test lowest rate with no filters $lowestRate = $order->lowest_rate(); $this->assertEquals('First', $lowestRate['service']); $this->asse...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testLowestRate()\n {\n VCR::insertCassette('pickups/lowestRate.yml');\n\n $shipment = Shipment::create(Fixture::oneCallBuyShipment());\n\n $pickupData = Fixture::basicPickup();\n $pickupData['shipment'] = $shipment;\n\n $pickup = Pickup::create($pickupData);\n\...
[ "0.7388441", "0.6490028", "0.6371687", "0.6272564", "0.6111259", "0.59090626", "0.5837534", "0.5829769", "0.5745592", "0.5570338", "0.55660564", "0.55527645", "0.55002", "0.5496857", "0.5484851", "0.5482766", "0.5482485", "0.54745585", "0.54445225", "0.54182845", "0.54148537"...
0.75311226
0
Display a listing of the resource. GET /condo
Показать список ресурса. GET /condo
public function index() { $condo = $this->condoRepository->getAllForUser(Auth::user()); return $condo->toJson(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function index()\n {\n $data = Condo::all();\n return view('condos.index', compact('data'));\n }", "public function index()\n {\n $conductores =Conductor::all();\n\n return $this->showAll($conductores);\n }", "public function index()\n {\n $contatos = Fa...
[ "0.72475797", "0.7083961", "0.7009317", "0.6949328", "0.6929935", "0.6927859", "0.6899053", "0.6878513", "0.6847604", "0.6835579", "0.6807201", "0.6805933", "0.6668144", "0.665811", "0.66549796", "0.66519517", "0.6650529", "0.6628398", "0.66197395", "0.6617652", "0.66147316",...
0.7573434
0
TODO: Implement confirmDelete() method.
TODO: Реализовать метод confirmDelete().
protected function confirmDelete() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function confirmDelete( )\r\n {\r\n throw new KVDdom_RedactieException( 'Kan het verwijderen niet bevestigen van een object dat niet verwijderd is.' );\r\n }", "function delete()\n\t{\n\t\t$model = $this->getModel();\n\t\t$viewType\t= JFactory::getDocument()->getType();\n\t\t$view = $this->ge...
[ "0.78655946", "0.7663028", "0.75194913", "0.7358071", "0.729978", "0.72112894", "0.7196454", "0.71940494", "0.7193515", "0.7178524", "0.7167773", "0.7070306", "0.7065883", "0.7064906", "0.7064906", "0.7062711", "0.70587164", "0.7013489", "0.69973856", "0.699689", "0.6992221",...
0.9050621
0
update the scanOut timestamp
обновить время метки scanOut
function updateScanOut() { //get a connection to the database $connection = SQL::getConn(); //MySQL query to execute mysqli_query($connection, "UPDATE scans SET scanOut = current_timestamp WHERE (scanIn > (NOW() - INTERVAL 1 HOUR) && (id='$_POST[id])')"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updatePinTime()\n {\n /*Redis::command(\"sadd\", [PinHelper::REDIS_PINS_TO_UPDATE_TIME, 2,5,6, \"j\", \"aaa\"]);\n $x = Redis::command('spop', [PinHelper::REDIS_PINS_TO_UPDATE_TIME, 100]);*/\n $pin_id = [];\n $result = PinTimeUpdate::limit(100)->get();\n foreac...
[ "0.56477284", "0.55609035", "0.54990166", "0.5381086", "0.52230334", "0.51041836", "0.51040095", "0.5083437", "0.50754017", "0.4992569", "0.4992539", "0.49881774", "0.49811274", "0.49432278", "0.48798493", "0.48736504", "0.48499304", "0.4841786", "0.478418", "0.4777841", "0.4...
0.8180009
0
update the total count in the users table
обновить общее количество в таблице users
function updateCount() { $connection = SQL::getConn(); //MySQL query to execute mysqli_query($connection, "UPDATE users SET total = total + 1 WHERE (id='$_POST[id]')"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateTotal() {\n //get the scans for this user\n $scans = $this->scans();\n //create running total\n $newTotal = 0; \n //for each scan, add the total pups and virus to the total\n foreach ($scans as $scan) {\n $newTotal += $scan->pups + $scan->troj_mal;\n }\n //sets an...
[ "0.7643811", "0.7521148", "0.7178687", "0.70029646", "0.6946224", "0.6806719", "0.6778533", "0.67357934", "0.672145", "0.6646877", "0.66329443", "0.66294235", "0.6510486", "0.65022814", "0.64313704", "0.64099455", "0.6367131", "0.63315475", "0.6316229", "0.62794673", "0.62741...
0.784431
0
Get requisition list item errors.
Получить ошибки элемента списка заявок.
public function getItemErrors() { return $this->itemErrors; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getItemError()\n {\n return !empty($this->itemErrors) ? reset($this->itemErrors) : null;\n }", "public function get_list_errors()\n\t{\n\t\treturn $this->errors;\n\t}", "public function getErrors()\n {\n return $this->getProperty(OperationInterface::BPMN_PROPERTY_ERRORS, ...
[ "0.75538963", "0.74165356", "0.7312287", "0.7195229", "0.71227616", "0.710407", "0.7039848", "0.7030033", "0.7005177", "0.69641995", "0.69370794", "0.6919939", "0.69149196", "0.69068193", "0.69068193", "0.6877642", "0.68464303", "0.6842871", "0.6839705", "0.68369246", "0.6830...
0.76730686
0
Get product from requisition list item.
Получить продукт из элемента списка требований.
public function getRequisitionListProduct() { $item = $this->getItem(); if (!$this->requisitionListItemProduct->isProductAttached($item) && !$this->isOptionsUpdated()) { return null; } try { $product = $this->requisitionListItemProduct->getProduct($item); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getProduct()\r\n {\r\n return $this->item->getParentObject()->getProduct();\r\n }", "public function product()\n {\n return $this->m_product;\n }", "public function getProduct() {\n return $this->_registry->registry ( 'current_product' );\n }", "public f...
[ "0.6791526", "0.6788082", "0.67369854", "0.67347574", "0.67347574", "0.67347574", "0.67347574", "0.67347574", "0.67347574", "0.6725329", "0.6678978", "0.66718805", "0.6647321", "0.66355956", "0.6631595", "0.6631595", "0.66064274", "0.6601603", "0.6545155", "0.6531527", "0.652...
0.7660962
0
Format product price including tax.
Форматирование цены продукта с учетом налога.
public function getFormattedPrice() { return $this->formatProductPrice($this->getFinalPrice($this->displayPriceIncludingTax())); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFormattedPriceAttribute()\n {\n //attributes['price']\n return number_format(($this->attributes['price'] / 100), 2, '.', '');\n }", "public function getFormattedPriceExcludingTax()\n {\n return $this->formatProductPrice($this->getFinalPrice(false));\n }", "p...
[ "0.71511424", "0.71260303", "0.70843065", "0.7000295", "0.6997287", "0.6976209", "0.6969622", "0.6940779", "0.6900554", "0.6900554", "0.6861496", "0.6839989", "0.6796638", "0.67917275", "0.6782341", "0.67624235", "0.67275745", "0.6712114", "0.6666443", "0.662321", "0.66119134...
0.742112
0
Format product price excluding tax.
Форматировать цену товара без учета налога.
public function getFormattedPriceExcludingTax() { return $this->formatProductPrice($this->getFinalPrice(false)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFormattedPrice()\n {\n return $this->formatProductPrice($this->getFinalPrice($this->displayPriceIncludingTax()));\n }", "public function formatPrice($price)\n {\n // Suppress errors from formatting the price, as we may have EUR12,00 etc\n return @number_format($pr...
[ "0.7309592", "0.72325444", "0.7083832", "0.70779127", "0.6917579", "0.68912685", "0.68717945", "0.6839803", "0.6839803", "0.68122655", "0.67980945", "0.67853737", "0.67853737", "0.67777896", "0.6734576", "0.67005026", "0.6695806", "0.6693228", "0.6684368", "0.66743463", "0.66...
0.80803496
0
Format subtotal price of item including tax.
Форматировать subtotal цену товара с учетом налога.
public function getFormattedSubtotal() { return $this->formatProductPrice( $this->getFinalPrice($this->displayPriceIncludingTax()) * $this->getItem()->getQty() ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFormattedSubtotalExcludingTax()\n {\n return $this->formatProductPrice($this->getFinalPrice(false) * $this->getItem()->getQty());\n }", "public function subtotalWithTax()\n {\n return $this->subtotal() + $this->tax();\n }", "function fix_order_amount_item_total( $pr...
[ "0.7132601", "0.7022787", "0.67623556", "0.6697892", "0.6491012", "0.64881945", "0.64587355", "0.6384926", "0.63282895", "0.63095725", "0.6290376", "0.62713253", "0.62545353", "0.6248586", "0.6205481", "0.61904955", "0.61829925", "0.61464375", "0.6131873", "0.6131698", "0.612...
0.767098
0
Format subtotal price of item excluding tax.
Форматировать subtotal цену товара без учета налога.
public function getFormattedSubtotalExcludingTax() { return $this->formatProductPrice($this->getFinalPrice(false) * $this->getItem()->getQty()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFormattedSubtotal()\n {\n return $this->formatProductPrice(\n $this->getFinalPrice($this->displayPriceIncludingTax()) * $this->getItem()->getQty()\n );\n }", "public function getFormattedPriceExcludingTax()\n {\n return $this->formatProductPrice($this->...
[ "0.77388304", "0.6884088", "0.67974937", "0.66275257", "0.6585497", "0.65740603", "0.6480198", "0.6386918", "0.6378102", "0.6363359", "0.63575125", "0.63134605", "0.62874967", "0.62829155", "0.6262879", "0.6231299", "0.62300885", "0.6192556", "0.61884063", "0.61761487", "0.61...
0.7824128
0
Get url of product image from requisition list item.
Получить URL изображения продукта из элемента списка требований.
public function getImageUrl() { try { $product = $this->itemResolver->getFinalProduct($this->itemOptionsLocator->getOptions($this->getItem())); $imageUrl = $this->imageHelper->getDefaultPlaceholderUrl('thumbnail'); if ($product !== null) { $imageUrl = $thi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getProductUrlByItem()\n {\n try {\n $product = $this->requisitionListItemProduct->getProduct($this->getItem());\n return $product->getProductUrl();\n } catch (\\Magento\\Framework\\Exception\\NoSuchEntityException $e) {\n return null;\n }\n ...
[ "0.7587097", "0.675509", "0.6678582", "0.6638463", "0.66321266", "0.65973496", "0.6595451", "0.65802884", "0.6563858", "0.65471095", "0.65297276", "0.6495536", "0.64868647", "0.6436366", "0.6429904", "0.6426684", "0.6424846", "0.64186007", "0.64186007", "0.6404198", "0.637850...
0.74328226
1