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
Creates a form to create a Inspection entity.
Создаёт форму для создания сущности Inspection.
private function createCreateForm(Inspection $entity) { $form = $this->createForm(new InspectionType(), $entity, array( 'action' => $this->generateUrl('inspection_create'), 'method' => 'POST' )); $form->add('submit', 'submit', array('label' => 'Enregistrer','attr' =>...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function newAction()\n {\n $entity = new Inspection();\n $form = $this->createCreateForm($entity);\n\n return array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n 'headerTitle' => 'Inspections'\n );\n }", "public function c...
[ "0.742174", "0.67759156", "0.6203639", "0.60058767", "0.5795137", "0.5645778", "0.5634734", "0.56136566", "0.56115997", "0.55962217", "0.55726755", "0.554049", "0.552808", "0.55278105", "0.55207014", "0.5517326", "0.55156374", "0.5494362", "0.54929304", "0.5478961", "0.547479...
0.72975653
1
Creates a form to edit a Inspection entity.
Создает форму для редактирования сущности Inspection.
private function createEditForm(Inspection $entity) { $form = $this->createForm(new InspectionType(), $entity, array( 'action' => $this->generateUrl('inspection_update', array('id' => $entity->getId())), 'method' => 'PUT', )); $form->add('submit', 'submit', array('la...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function edit(Inspection $inspection)\n {\n //\n }", "public function newAction()\n {\n $entity = new Inspection();\n $form = $this->createCreateForm($entity);\n\n return array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ...
[ "0.7124929", "0.6470214", "0.6357151", "0.6292084", "0.6146576", "0.61270857", "0.61018616", "0.6095885", "0.6053154", "0.6040266", "0.5991213", "0.597906", "0.5960708", "0.5960425", "0.5959577", "0.59571123", "0.59551215", "0.594538", "0.59149903", "0.5914419", "0.5880369", ...
0.7503863
0
Creates an instance of a boardingcard.
Создает экземпляр билета на посадку.
public static function create_boarding_card($boardingcard) { // if type wasn't set, use BoardingCard class. if (!isset($boardingcard['type'])) { return new BoardingCard($boardingcard); } else { try { return new $boardingcard['type'] . 'Boarding Card'; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __construct($card)\n {\n $this->card = $card;\n }", "public function create()\n {\n $this->deck = [];\n foreach($this->suits as $suit) {\n foreach($this->indices as $index) {\n $this->deck[] = $this->createCard($suit, $index);\n }\n }\n\n ...
[ "0.62530136", "0.6239772", "0.6145887", "0.6092289", "0.60714436", "0.603153", "0.59587514", "0.59354305", "0.5930765", "0.5905917", "0.590062", "0.58746153", "0.58676773", "0.58646876", "0.5795656", "0.57614315", "0.57446516", "0.5618973", "0.5616135", "0.5616135", "0.559016...
0.77757376
0
Method to set the value of field id_rol
Метод установки значения поля id_rol
public function setIdRol($id_rol) { $this->id_rol = $id_rol; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setRol_id($rol_id)\n {\n $this->rol_id = $rol_id;\n }", "public function getRol_id()\n {\n return $this->rol_id;\n }", "public function getIdRol()\n {\n return $this->id_rol;\n }", "public function setRol($rol)\n {\n $this->rol = $rol;\n\n ...
[ "0.76389694", "0.7265953", "0.7173173", "0.7095682", "0.66021943", "0.6593177", "0.6555305", "0.6555305", "0.6519356", "0.6486112", "0.6314423", "0.62953544", "0.62156177", "0.6198882", "0.613908", "0.61259764", "0.5991716", "0.5987261", "0.59396553", "0.59038115", "0.5878771...
0.7327966
1
Returns the value of field id_rol
Возвращает значение поля id_rol
public function getIdRol() { return $this->id_rol; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getRol_id()\n {\n return $this->rol_id;\n }", "public function getRol()\n {\n return $this->rol;\n }", "public function getRol()\n {\n return $this->rol;\n }", "public function getRol()\n {\n return $this->rol;\n }", "public static functio...
[ "0.8349214", "0.7159875", "0.7159875", "0.7159875", "0.6860018", "0.65368843", "0.6395119", "0.63129157", "0.6163198", "0.61404115", "0.6113174", "0.60735595", "0.60628253", "0.6059922", "0.6059922", "0.6045822", "0.6032256", "0.6027918", "0.6026087", "0.6025599", "0.6014132"...
0.8336465
1
Loads the view to add member to a small group
Загружает представление для добавления участника в малую группу
public function addMember(){ $this->load->view('addMember') ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function members(){\n\t\t\t$this->load->view(\"group_members\") ;\n\t\t}", "public function addGroup(){\n \treturn view('group.add-group');\n }", "function class_group_add_view()\n {\n if ($this->session->userdata('admin_login') != 1)\n redirect(base_url(), 'refresh');\n\n ...
[ "0.7003002", "0.6868448", "0.6850833", "0.67180824", "0.66564596", "0.6569651", "0.6546834", "0.6453821", "0.6430786", "0.6411302", "0.64007074", "0.6399426", "0.6321099", "0.62943494", "0.6278075", "0.6186454", "0.61798006", "0.6150334", "0.6141231", "0.61344194", "0.6125993...
0.70060265
0
Loads the view that shows members in a small group
Загружает представление, отображающее членов в небольшой группе
public function members(){ $this->load->view("group_members") ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function view($id) {\n // Call the parent then override the title\n \n parent::view($id);\n \n if(!$this->request->is('restful')) {\n $gm = $this->viewVars['co_group_members'][0];\n \n $this->set('title_for_layout', _txt('op.grm.title', array(_txt('op.view'),\n ...
[ "0.6813959", "0.66311383", "0.6614765", "0.65965825", "0.6566737", "0.65551126", "0.65496314", "0.6549509", "0.6510874", "0.64893156", "0.6457611", "0.6431734", "0.6379853", "0.637015", "0.63304824", "0.63213843", "0.63191056", "0.6307302", "0.62797564", "0.6279693", "0.62683...
0.76855016
0
Returns the list of members in a small group if no small group is selected it shows all members
Возвращает список членов малой группы, если малая группа не выбрана, показывает всех членов
public function get_members(){ $small_group_id = $this->input->get('small_group_id') ; echo json_encode($this->mdl_sg_members->all($small_group_id)->result() ) ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function renderSmallGroupList($db, $group, $groupLeader) { \n ?><div class=\"content\">\n <!-- make sure theyre in a group -->\n <?php if ($group == 0) {\n echo \"<h2>You're not in a group yet!</h2>\";\n } else {\n $myGroup = getGroup($db, $group);\n ?>\n <h2 class=\"subti...
[ "0.6669515", "0.651089", "0.6419895", "0.6386625", "0.6294149", "0.6294149", "0.6257897", "0.6257044", "0.62145305", "0.6199882", "0.6188738", "0.612868", "0.6111029", "0.61035204", "0.6093208", "0.6087314", "0.6087314", "0.60872465", "0.60686713", "0.60464245", "0.60138786",...
0.71690446
0
Gives a readable description of what this command is
Предоставляет понятное описание того, что делает эта команда
public function commandDescription() { return 'DALI'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getDescription()\n {\n return $this->command_description;\n }", "protected abstract function describeCommand(\\RectorPrefix20210607\\Symfony\\Component\\Console\\Command\\Command $command, array $options = []);", "function defineDescription() {\n return 'List all available commands w...
[ "0.782094", "0.7294218", "0.72812605", "0.72499347", "0.7110135", "0.69995797", "0.6947177", "0.6942878", "0.68938804", "0.6788011", "0.6787315", "0.6766838", "0.6741824", "0.67344373", "0.672355", "0.6698974", "0.66821605", "0.66653144", "0.66653144", "0.658748", "0.6580617"...
0.7713279
1
The function takes 3 parameters: $content: the input string. $delimiter: the character that is used to separate different words, which is usually space character. $length: the number of the words that we want to extract.
Функция принимает 3 параметра: $content: входная строка. $delimiter: символ, используемый для разделения разных слов, обычно пробельный символ. $length: количество слов, которые мы хотим извлечь.
function extract_simplified_contents($content, $delimiter, $length){ // Use explode function to create a string array, each string in this array // is a word separated by the $delimiter. $string_array = explode($delimiter, $content); $simplified_content = ""; // This counter records number of the w...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function limit_content($title,$len) {\n if (str_word_count($title) > $len) {\n $keys = array_keys(str_word_count($title, 2));\n $title = substr($title, 0, $keys[$len]);\n }\n return $title;\n}", "function rf_excerpt($content, $length)\n{\n $text = strip_shortcodes( $content );\n\n /*...
[ "0.56455517", "0.55717564", "0.5441633", "0.5278748", "0.5255885", "0.5247742", "0.52447003", "0.5225181", "0.5224886", "0.5193945", "0.51569444", "0.51425034", "0.5119005", "0.5109369", "0.51067895", "0.5042791", "0.503382", "0.5014408", "0.5011423", "0.50078726", "0.4986700...
0.8057023
0
/ Zabbio user role creation on plugin activation
Создание роли пользователя Zabbio при активации плагина
function add_role_and_user_for_Zabbio_on_plugin_activate() { add_role( 'ZabbioApp', __( 'ZabbioApp' ), array( 'create_posts' => true, 'edit_others_posts' => true, 'edit_posts' => true, 'edit_published_posts' => true, 'list_users' =>...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function add_roles_on_plugin_activation() {\n add_role( 'freelancer', 'Freelancer', array( 'read' => true, 'level_0' => true ) );\n add_role( 'employee', 'Employee', array( 'read' => true, 'level_0' => true ) );\n}", "public static function createRole()\n {\n add_action('init', __NAMESPACE__ . '\\D...
[ "0.765993", "0.73029304", "0.7195424", "0.694074", "0.6906835", "0.66062975", "0.6567583", "0.64009535", "0.6392575", "0.6359375", "0.63174224", "0.62710726", "0.6263305", "0.6256795", "0.6247223", "0.623308", "0.6220786", "0.62126327", "0.62032187", "0.61886156", "0.6145596"...
0.80038464
0
Convert any variable to a boolean value. A true boolean value consists of one of the following: 1, true, "yes", "on", "1", "y", "true", "t"
Преобразуйте любую переменную в значение логического типа. Истинное значение логического типа состоит из одного из следующих: 1, true, "yes", "on", "1", "y", "true", "t"
function toBool($var) { if (true === $var || 1 === $var) { return true; } switch (strtolower($var)) { case "yes": case "on": case "1": case "y": case "true": case "t": return true; default: return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ToBool($var) \n{\n if (!is_string($var)) \n return (bool) $var;\n \n switch (strtolower($var)) \n { \n case '1':\n case 'true':\n case 'on':\n case 'yes':\n case 'y':\n return true;\n default:\n return false;\n }\...
[ "0.8280365", "0.7907442", "0.77546936", "0.76936275", "0.75618786", "0.7513326", "0.7453982", "0.73581654", "0.73454094", "0.7299145", "0.7291777", "0.7277511", "0.7269651", "0.71713096", "0.71618253", "0.7156897", "0.71556795", "0.7136246", "0.71092385", "0.70767313", "0.706...
0.8458064
0
show error modal with $message
показать модальное окно с ошибкой $message
function errModal ($message) { die( "$('.modal-body').html(`$message`); $('#errorModal').modal('show');" ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function showError($message = \"\")\n {\n if(empty($message))\n {\n $this->layout->content = View::make('error')\n ->with('fmId', $this->fmId)\n ->with('serial', $this->serialNumber);\n }\n else\n {\n $this->layout->co...
[ "0.75032073", "0.74589556", "0.7265782", "0.7192031", "0.7066918", "0.68910664", "0.6869627", "0.6784146", "0.67598283", "0.66218054", "0.65632445", "0.654931", "0.6537235", "0.6491544", "0.6472057", "0.64484704", "0.6431599", "0.6415169", "0.6382375", "0.6356417", "0.6340982...
0.8144448
0
Tests deleting wishlist items.
Тесты удаления элементов из списка желаний.
public function testDelete() { /** @var \Drupal\commerce_product\Entity\ProductVariationInterface $variation */ $first_variation = ProductVariation::create([ 'type' => 'default', 'sku' => $this->randomMachineName(), 'title' => $this->randomString(), 'status' => 1, ]); $first_vari...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function test_delete_item() {}", "public function test_delete_item() {}", "public function testDeleteTimesheetItems() {\n $deleted = $this->timesheetDao->deleteTimesheetItems(2, 1, 1, 1);\n $this->assertTrue($deleted);\n }", "public function testWebinarPanelistsDelete()\n {\n }"...
[ "0.72597104", "0.72597104", "0.67459244", "0.672747", "0.6624159", "0.66179323", "0.66022056", "0.6526999", "0.652365", "0.6495517", "0.64178497", "0.6369107", "0.63230145", "0.62977016", "0.6294081", "0.62928724", "0.6280958", "0.6260496", "0.6254173", "0.6204698", "0.618413...
0.77498263
0
Lists all Object\ObjectType entities.
Список всех сущностей Object\ObjectType.
public function indexAction() { $em = $this->getDoctrine()->getManager(); $entities = $em->getRepository('BrainstrapBundlesFrontBundle:Object\ObjectType')->findAll(); return $this->render('BrainstrapBundlesFrontBundle:Object/ObjectType:index.html.twig', array( 'entities' => $en...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function listObjects();", "public function show(ObjectType $objectType)\n {\n return $objectType->load(\"objects\");\n }", "public function getAllEntities();", "public function listAllType(){\n try {\n return $this->identityTypeGateway->getAllTypes();\n } catch (Exceptio...
[ "0.65192115", "0.61515063", "0.6071779", "0.60212207", "0.6012626", "0.60122126", "0.5981288", "0.5921534", "0.5904065", "0.5835701", "0.58155465", "0.57932115", "0.57905036", "0.57905036", "0.5753455", "0.574729", "0.5724268", "0.5723288", "0.56603867", "0.5653603", "0.56367...
0.7358593
0
Creates a form to create a Object\ObjectType entity.
Создает форму для создания сущности Object\ObjectType.
private function createCreateForm(ObjectType $entity) { $form = $this->createForm(new ObjectTypeType(), $entity, array( 'action' => $this->generateUrl('object_objecttype_create'), 'method' => 'POST', )); $form->add('submit', 'submit', array('label' => 'Создать')); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function postCreate(ObjectTypeRequest $request)\n {\n $objecttype = new Object();\n $objecttype -> author_id = Auth::user()->id;\n $objecttype -> type = 'object_type';\n $objecttype -> name = \"_object_type_\" . str_replace(' ', '-', $request->title);\n $objecttype -> t...
[ "0.74416834", "0.7347176", "0.7296139", "0.6890392", "0.68392664", "0.6747513", "0.6664121", "0.6602515", "0.6439123", "0.6439123", "0.63216877", "0.63216877", "0.6318792", "0.63068765", "0.6230423", "0.62018603", "0.61699814", "0.6153661", "0.6152189", "0.6137394", "0.611626...
0.82617426
0
Displays a form to create a new Object\ObjectType entity.
Показывает форму для создания нового объекта сущности Object\ObjectType.
public function newAction() { $entity = new ObjectType(); $form = $this->createCreateForm($entity); return $this->render('BrainstrapBundlesFrontBundle:Object/ObjectType:new.html.twig', array( 'entity' => $entity, 'form' => $form->createView(), )); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function createCreateForm(ObjectType $entity)\n {\n $form = $this->createForm(new ObjectTypeType(), $entity, array(\n 'action' => $this->generateUrl('object_objecttype_create'),\n 'method' => 'POST',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Со...
[ "0.76173025", "0.7567733", "0.7546777", "0.73615134", "0.7276493", "0.71559036", "0.70506793", "0.68408793", "0.6802388", "0.67500675", "0.6748934", "0.674062", "0.6726855", "0.67240703", "0.669346", "0.6664398", "0.66592026", "0.66560364", "0.6642128", "0.6640422", "0.662119...
0.84018433
0
Finds and displays a Object\ObjectType entity.
Находит и отображает сущность Object\ObjectType.
public function showAction($id) { $em = $this->getDoctrine()->getManager(); $entity = $em->getRepository('BrainstrapBundlesFrontBundle:Object\ObjectType')->find($id); if (!$entity) { throw $this->createNotFoundException('Unable to find Object\ObjectType entity.'); } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $entities = $em->getRepository('BrainstrapBundlesFrontBundle:Object\\ObjectType')->findAll();\n\n return $this->render('BrainstrapBundlesFrontBundle:Object/ObjectType:index.html.twig', array(\n 'ent...
[ "0.66957253", "0.65270233", "0.6429884", "0.6429884", "0.60697836", "0.60259163", "0.5963724", "0.5782887", "0.5767647", "0.56306446", "0.56162965", "0.56089485", "0.55699396", "0.55613256", "0.5559267", "0.5542679", "0.5541536", "0.55292326", "0.55201197", "0.55152285", "0.5...
0.7090059
0
Displays a form to edit an existing Object\ObjectType entity.
Показывает форму для редактирования существующей сущности Object\ObjectType.
public function editAction($id) { $em = $this->getDoctrine()->getManager(); $entity = $em->getRepository('BrainstrapBundlesFrontBundle:Object\ObjectType')->find($id); if (!$entity) { throw $this->createNotFoundException('Unable to find Object\ObjectType entity.'); } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function actionEdit() {\r\n\r\n //try 1: get the object type and names based on the current object\r\n $objInstance = class_objectfactory::getInstance()->getObject($this->getSystemid());\r\n if($objInstance != null) {\r\n $strObjectTypeName = uniSubstr($this->getActionName...
[ "0.746243", "0.7288828", "0.68769073", "0.67790204", "0.6615233", "0.6615233", "0.6615233", "0.6612449", "0.66007906", "0.65929943", "0.65530336", "0.6536247", "0.6521516", "0.6520677", "0.6481874", "0.64814365", "0.64733666", "0.64691615", "0.6467881", "0.64461553", "0.64457...
0.7889829
0
Creates a form to edit a Object\ObjectType entity.
Создает форму для редактирования сущности Object\ObjectType.
private function createEditForm(ObjectType $entity) { $form = $this->createForm(new ObjectTypeType(), $entity, array( 'action' => $this->generateUrl('object_objecttype_update', array('id' => $entity->getId())), 'method' => 'PUT', )); $form->add('submit', 'submit', ar...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function editAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('BrainstrapBundlesFrontBundle:Object\\ObjectType')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Object\\ObjectType entity.');...
[ "0.7123139", "0.69468623", "0.683045", "0.661212", "0.64676356", "0.6437603", "0.64370716", "0.6403953", "0.63512725", "0.63350266", "0.63309574", "0.6322054", "0.62782365", "0.6254272", "0.6252754", "0.6248914", "0.6239684", "0.62063193", "0.6197483", "0.61881196", "0.615782...
0.82090116
0
Edits an existing Object\ObjectType entity.
Редактирует существующий объект сущности Object\ObjectType.
public function updateAction(Request $request, $id) { $em = $this->getDoctrine()->getManager(); $entity = $em->getRepository('BrainstrapBundlesFrontBundle:Object\ObjectType')->find($id); if (!$entity) { throw $this->createNotFoundException('Unable to find Object\ObjectType enti...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function postEdit(ObjectTypeRequest $request, $id)\n {\n $objecttype = Object::find($id);\n //$objecttype -> name = $request->name;\n //$objecttype -> display_name = $request->display_name;\n //$objecttype -> description = $request->description;\n $objecttype -> save();...
[ "0.6770169", "0.64408475", "0.6355432", "0.6106213", "0.60866195", "0.6080337", "0.6080337", "0.6080337", "0.6034075", "0.60214335", "0.60012114", "0.5946404", "0.58215815", "0.580426", "0.57801986", "0.57725567", "0.5734863", "0.56993306", "0.56824416", "0.56746536", "0.5671...
0.7084381
0
Creates a form to delete a Object\ObjectType entity by id.
Создает форму для удаления сущности Object\ObjectType по идентификатору.
private function createDeleteForm($id) { return $this->createFormBuilder() ->setAction($this->generateUrl('object_objecttype_delete', array('id' => $id))) ->setMethod('DELETE') ->add('submit', 'submit', array('label' => 'Удалить')) ->getForm() ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function createDeleteForm($id) {\r\n return $this->createFormBuilder()\r\n ->setAction($this->generateUrl('rubrique_delete', array('id' => $id)))\r\n// ->setMethod('DELETE')\r\n ->add('submit', SubmitType::class, array('label' => 'Supprimer la...
[ "0.7397263", "0.73705906", "0.72869563", "0.72354805", "0.72342765", "0.72062296", "0.7203939", "0.72038156", "0.7183404", "0.71710944", "0.7163812", "0.71626425", "0.7146318", "0.7144656", "0.713888", "0.7122803", "0.7121509", "0.71149546", "0.7104165", "0.7101359", "0.70943...
0.80210966
0
Handles DELETE requests. Parameters: $action: String representing an action requested by the frontend. $deleteParams: Associative array containing params sent in the DELETE request.
Обрабатывает запросы DELETE. Параметры: $action: строка, представляющая действие, запрошенное фронтендом. $deleteParams: ассоциативный массив, содержащий параметры, отправленные в запросе DELETE.
function deleteRequests($action, $deleteParams) { switch ($action) { case 'FRIEND_REQUEST': cancelFriendRequest($deleteParams); break; case 'SESSION': deleteSession(); break; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function delete($action, $params = array(), $session = array())\n {\n return $this->makeRequest('DELETE', $action, $params, $session);\n }", "public function action_delete( $params, $action ) {\r\n\r\n\t\tdefine( 'WPMUDEV_REMOTE_SKIP_SYNC', true ); //skip sync, hub remote calls are recorded l...
[ "0.7222252", "0.6839828", "0.67588204", "0.66191876", "0.65790415", "0.6542052", "0.6485187", "0.64265066", "0.63900787", "0.63557935", "0.63557935", "0.6348388", "0.63098294", "0.6309147", "0.6270584", "0.625388", "0.6235162", "0.6195959", "0.6187809", "0.6187809", "0.617544...
0.71831036
1
Handles the request for posting/adding a comment.
Обрабатывает запрос на публикацию/добавление комментария.
function postComment() { $username = $_POST['username']; $content = $_POST['content']; $commentDate = $_POST['commentDate']; $repliedCommentId = null; if (array_key_exists('repliedCommentId', $_POST)) { $repliedCommentId = $_POST['repliedCommentId']; } $response = insertComment($...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addComment()\n {\n $this->isConnect();\n\n $post = $this->token->check($_POST);\n\n $formMessage = $this->commentsValidationForm->checkForm($post);\n\n if(!$formMessage)\n {\n $post['user_id'] = $_SESSION['id'];\n $post['validated'] = ($_S...
[ "0.7386162", "0.73710793", "0.7317708", "0.73147213", "0.72051287", "0.7158457", "0.7114316", "0.7105201", "0.70801973", "0.69580185", "0.69449973", "0.6919811", "0.69023114", "0.6889611", "0.68669784", "0.6861502", "0.68361133", "0.6811142", "0.6779068", "0.67773145", "0.674...
0.7372348
1
Handles the request for searching new friends.
Обрабатывает запрос на поиск новых друзей.
function searchNewFriends() { $username = $_GET['username']; $pattern = $_GET['pattern'] . '%'; $response = findNewFriends($username, $pattern); if ($response['status'] == 'SUCCESS') { echo json_encode($response['response']); } else { errorHandler($response['status'], $response['code']...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function searchToAddAction()\n {\n $request = $this->get('request');\n $pendingFriendshipsIDs = [];\n $users = null;\n $searchValue = $request->get('search');\n if (trim($searchValue) !== '') {\n $currentUser = $this->getUser();\n $userRepository =...
[ "0.6406992", "0.62753665", "0.61074525", "0.60263133", "0.5989862", "0.5988124", "0.59205914", "0.5879718", "0.5849283", "0.58376485", "0.5702453", "0.56905377", "0.56645674", "0.56425864", "0.5595898", "0.55824876", "0.55735844", "0.5572059", "0.5549211", "0.5547791", "0.551...
0.73188406
0
Handles the request for confirming/accepting a friend request from another user. Parameters: $params: Associative array containing params sent in the PUT request.
Обрабатывает запрос на подтверждение/принятие дружеского запроса от другого пользователя. Параметры: $params: ассоциативный массив, содержащий параметры, отправленные в запросе PUT.
function confirmFriendRequest($params) { $username1 = $params['username1']; $username2 = $params['username2']; $response = acceptFriendRequest($username1, $username2); if ($response['status'] == 'SUCCESS') { echo json_encode($response['response']); } else { errorHandler($response['stat...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function accept_friend_request()\n {\n //update status to 1;\n $this->Friend_model->accept_friend_request_model();\n //two (perhaps more in the future) data rows are inserted into checked_on table where each one corresponds to the time the user has seen the other user's messages\n ...
[ "0.64789975", "0.6128463", "0.60926706", "0.60498744", "0.60229015", "0.60073614", "0.59896845", "0.5921612", "0.59151334", "0.59103006", "0.5874797", "0.5867844", "0.56970507", "0.5616601", "0.55577993", "0.5533658", "0.5510847", "0.5496146", "0.5456651", "0.5448568", "0.543...
0.77628547
0
Handles the request for cancelling a friend request from another user. Parameters: $params: Associative array containing params sent in the DELETE request.
Обрабатывает запрос на отмену запроса дружбы от другого пользователя. Параметры: $params: ассоциативный массив, содержащий параметры, отправленные в запросе DELETE.
function cancelFriendRequest($params) { $username1 = $params['username1']; $username2 = $params['username2']; $response = rejectFriendRequest($username1, $username2); if ($response['status'] == 'SUCCESS') { echo json_encode($response['response']); } else { errorHandler($response['statu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function cancelRequest(){\n //the other users Id\n $otherUserId = $_POST[\"otherUserId\"];\n //deletes the record in the database\n $this->individualGroupModel->cancelGroupRequestInvitation($otherUserId); \n //redirects\n $path = '/IndividualGroupController/individualGroup?grou...
[ "0.6741748", "0.63688636", "0.6064881", "0.60530424", "0.5987159", "0.585056", "0.5838779", "0.58376545", "0.5832279", "0.58039594", "0.5777782", "0.5713969", "0.5676151", "0.56630945", "0.5661983", "0.56300414", "0.5622693", "0.56154615", "0.56026405", "0.5599781", "0.550579...
0.8028545
0
Handles errors that occured in the data layer and returns an appropriate message to frontend. Parameters: $status: Integer representing the status/reason of the error. $code: Integer representing an HTTP error code. $message: String representing an specific message to be sent to the frontend. If null, a default message...
Обрабатывает ошибки, возникшие в слое данных, и возвращает соответствующее сообщение на фронтенд. Параметры: $status: Целое число, представляющее статус/причину ошибки. $code: Целое число, представляющее HTTP-код ошибки. $message: Строка, представляющая конкретное сообщение, которое отправляется на фронтенд. Если null,...
function errorHandler($status, $code, $message = null) { switch ($code) { case 406: header("HTTP/1.1 $code User $status"); if ($message == null) $message = 'Wrong credentials provided'; break; case 409: header("HTTP/1.1 $code $status"); if ($message == ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function sendErrorMessage($message, $code = 'ERROR', $status = 400)\n\t{\n\t\twp_send_json([\n 'error' => [\n\t\t\t\t'code' => $code,\n\t\t\t\t'message' => $message\n\t\t\t]\n ], $status);\n\t}", "public static function sendError($status_code,$message=null) {\n\t\thttp_response_co...
[ "0.70867014", "0.7015843", "0.6965167", "0.68764544", "0.6865795", "0.67916447", "0.67575747", "0.66400677", "0.65595716", "0.6521419", "0.64622927", "0.63708365", "0.6350071", "0.63205105", "0.62734395", "0.6239368", "0.61386997", "0.6116446", "0.6043019", "0.60404783", "0.5...
0.7422941
0
Get the page style option from the style cookie, changes here must also be changed in stylechanger.js
Получите параметр стиля страницы из куки-файла стиля, изменения здесь также необходимо внести в stylechanger.js
public static function getPageStyle() { return ( isset( $_COOKIE['styleDefCon'] ) && in_array( $_COOKIE['styleDefCon'], self::$pageStyles ) ) ? $_COOKIE['styleDefCon'] : self::$pageStyles[0]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ts_get_main_menu_style()\r\n{\r\n\t$control_panel = ot_get_option('control_panel');\r\n\tif (ts_check_if_use_control_panel_cookies() && isset($_COOKIE['theme_main_menu_style']) && !empty($_COOKIE['theme_main_menu_style']) && ($control_panel == 'enabled_admin' && current_user_can('manage_options') || $cont...
[ "0.68129843", "0.63537294", "0.62936515", "0.6240217", "0.61735475", "0.6164579", "0.6065087", "0.60474217", "0.60381454", "0.6034014", "0.6011596", "0.60042715", "0.59364635", "0.5898455", "0.5883619", "0.58731395", "0.58675975", "0.58434904", "0.5805793", "0.5788038", "0.57...
0.79875815
0
returns html breadcrumb trail eg home > dir1 > dir2 > page check first if page is in menu array, use that traversal to generate the crumbs else add the current pages path components
возвращает html-маршрут хлебных крошек, например, home > dir1 > dir2 > страница проверьте сначала, находится ли страница в массиве меню, используйте этот маршрут для генерации крошек, иначе добавьте компоненты пути текущей страницы
public static function getCrumbsHtml() { $html = "\n"; $glue = ' <span class="glyphicon glyphicon-chevron-right"></span> '; $trail = []; $menuArray = self::getMenuArray(); // get pagePath (only from site-root), and adjust to the same format as how the $menu_array paths are ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function breadCrumbs()\n {\n $menu = Menu::new()\n ->addClass('m-subheader__breadcrumbs m-nav m-nav--inline')\n ->add(\n Link::toRoute('home', '<i class=\"m-nav__link-icon la la-home\"></i>')\n ->addClass('m-nav__link m-nav__link--icon')\n ...
[ "0.7259535", "0.7065908", "0.70525914", "0.7026943", "0.69490427", "0.69407964", "0.6894316", "0.6867101", "0.68522143", "0.6850252", "0.6836485", "0.6827051", "0.67743963", "0.6750696", "0.67179805", "0.66998154", "0.6699466", "0.6667625", "0.66544247", "0.66484255", "0.6639...
0.79804635
0
used by getCrumbsHtml, self given $pagePath, find in menuArray adding to trail
используется getCrumbsHtml, self передан $pagePath, найти в menuArray, добавить в trail
protected static function findPageInMenu($pagePath, $menuArray, &$trail ) { dmsg('pagePath',$pagePath,'crumbs'); foreach ( $menuArray as $key => $item ) { // determine if item is a link (path to resource) $link = false; if(is_string($item)) { // string item is a l...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function PH_PageMenu(){\n $site_menu = self::$xvi_api->GetSiteMenu();\n $page_menu = self::$xvi_api->GetPageMenu();\n \n $menu =\"\";\n foreach($site_menu as $menu_item=>$menu_path) {\n if (strcmp($menu_item,$page_menu[\"item\"])) { /*no...
[ "0.59851444", "0.5806482", "0.57876104", "0.5776059", "0.57630783", "0.5656109", "0.5641787", "0.5630749", "0.5628537", "0.5576457", "0.55699724", "0.5556792", "0.5534831", "0.55269164", "0.5521205", "0.55210537", "0.5433716", "0.5419499", "0.5417716", "0.5385778", "0.5381799...
0.78789365
0
Test to set order, check if it is set
Тест для установки заказа, проверка, установлен ли он
public function testSetOrderr() { $game = new DiceGame(4, 1); $this->assertInstanceOf("\Ida\Dice\DiceGame", $game); $notSet = $game->hasOrder(); $game->setOrder(); $set = $game->hasOrder(); $this->assertNotEquals($notSet, $set); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function isValidOrder()\n {\n return true;\n }", "public function hasOrder() {\n return $this->_has(2);\n }", "public function isOrder();", "public function testSetOrder() {\n\n $obj = new DataTablesRequest();\n\n $obj->setOrder([\"order\"]);\n $this->asser...
[ "0.6758173", "0.6548456", "0.65377915", "0.65051234", "0.64439267", "0.6379674", "0.63217753", "0.6319547", "0.62560016", "0.62394834", "0.60840553", "0.6038351", "0.60268146", "0.60054225", "0.59497195", "0.58866316", "0.5820099", "0.57760036", "0.5769727", "0.5763875", "0.5...
0.71234363
0
Test to set order, if first player in order is correct
Тест для установки порядка, если первый игрок в порядке указан правильно
public function testSetOrderPlayer() { $game = new DiceGame(4, 1); $this->assertInstanceOf("\Ida\Dice\DiceGame", $game); $game->setOrder(); $order = $game->getOrder(); $firstPlayer = $game->getPlayerTurn(); $this->assertEquals($order[0], $firstPlayer); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testSetOrderr()\n {\n $game = new DiceGame(4, 1);\n $this->assertInstanceOf(\"\\Ida\\Dice\\DiceGame\", $game);\n\n $notSet = $game->hasOrder();\n $game->setOrder();\n $set = $game->hasOrder();\n\n $this->assertNotEquals($notSet, $set);\n }", "functi...
[ "0.6523068", "0.5862834", "0.5558938", "0.5525313", "0.5434011", "0.5336832", "0.52241355", "0.5206165", "0.51905066", "0.51814145", "0.51659834", "0.51478916", "0.5145185", "0.5136447", "0.5133565", "0.51244324", "0.5118185", "0.511545", "0.50995755", "0.50909764", "0.508576...
0.74307466
0
Test player roll, not rolled one
Тестирование игрока, который кинул кубик, не кинувший кубик
public function testPlayerRoll() { $game = new DiceGame(4, 1); $this->assertInstanceOf("\Ida\Dice\DiceGame", $game); $game->setOrder(); $current = $game->getPlayerTurn(); function reDo($current, $game) { while ($current != 0) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testCheckRoll()\n {\n $dice = new DiceHand();\n\n $dice->roll();\n $res = $dice->values();\n $res2 = $dice->checkRoll();\n\n if (in_array(1, $res)) {\n $this->assertEquals(-1, $res2);\n } else {\n $this->assertEquals(0, $res2);\n ...
[ "0.7755512", "0.7302266", "0.7252923", "0.7125865", "0.71072525", "0.70855975", "0.7043443", "0.69151926", "0.68371886", "0.66781515", "0.6618661", "0.65879524", "0.6553437", "0.6493639", "0.64727324", "0.64171964", "0.6410413", "0.6363619", "0.6357398", "0.63357306", "0.6311...
0.804218
0
Test bot roll, not rolled one
Тестовый бот, не прокрученный
public function testBotRoll() { $game = new DiceGame(4, 1); $this->assertInstanceOf("\Ida\Dice\DiceGame", $game); $game->setOrder(); $current = $game->getPlayerTurn(); function reRoll($current, $game) { while ($current === 0) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testBotRoll2()\n {\n $game = new DiceGame(4, 1);\n $this->assertInstanceOf(\"\\Ida\\Dice\\DiceGame\", $game);\n $game->setOrder();\n \n $current = $game->getPlayerTurn();\n \n function reDo3($current, $game)\n {\n while ($current...
[ "0.7462304", "0.68743545", "0.6821699", "0.6816819", "0.67725205", "0.67329884", "0.65859824", "0.64684397", "0.6442789", "0.63646144", "0.635728", "0.6249157", "0.6238127", "0.6216193", "0.60719645", "0.6040208", "0.59814733", "0.5927531", "0.59116113", "0.5903905", "0.58921...
0.7924534
0
Create a constructor that will accept $name,$job and $age variables and put them in class properties
Создайте конструктор, который будет принимать переменные $name, $job и $age и поместить их в свойства класса
function __construct($name, $job, $age) { $this->name = $name; $this->job = $job; $this->age = $age; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __construct($name, $age){\n $this->name = $name;\n $this->age = $age;\n }", "public function __construct($_name=\"\",$_age=0) {\n\t\t$this->name=$_name;\n\t\t$this->age=$_age;\n\t\t\n\t}", "public function __construct($age, $firstname, $lastname)\n {\n $th...
[ "0.7962101", "0.7851733", "0.7727162", "0.7633218", "0.7549289", "0.7438387", "0.7432416", "0.73711616", "0.70978343", "0.7016637", "0.6875733", "0.6827892", "0.6805996", "0.68026614", "0.6767076", "0.6755449", "0.67035156", "0.67026544", "0.6700274", "0.6657227", "0.66063553...
0.88693666
0
Create method changeJob which will accept parameter $newJob
Создайте метод changeJob, который будет принимать параметр $newJob
function changeJob($newjob){ $this->job = $newjob; // Change the person's job }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setnewJobId($aJobId) {\r\n $lOld = $this->mVal['jobid'];\r\n $this -> mJobId = $aJobId;\r\n $this -> mVal['jobid'] = $aJobId;\r\n\r\n if (isset($this->mVal['jobnr'])) {\r\n if (substr($lOld, 0, 1) == 'A') {\r\n $lJobNr = intval(substr($aJobId,1));\r\n $this->mVal['job...
[ "0.65906686", "0.63198364", "0.6281754", "0.61385226", "0.60994315", "0.60994315", "0.60754585", "0.5954017", "0.58366823", "0.58366823", "0.58324224", "0.57770985", "0.576523", "0.564492", "0.564492", "0.5644889", "0.56393033", "0.5625014", "0.55840224", "0.55572665", "0.554...
0.82354826
0
Create method happyBirthday which will increase age
Создайте метод happyBirthday, который увеличит возраст
function happyBirthday(){ ++$this->age; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setAge($dob){ #calculate current age\n/**\n * Simple PHP age Calculator\n *\n * Calculate and returns age based on the date provided by the user.\n * @param date of birth('Format:yyyy-mm-dd').\n * @return age based on date of birth\n */\n\n\t#dumpDie($dob);\n\tif((!empty($dob)) || ($dob != '--') ){\n\t...
[ "0.7070379", "0.6557683", "0.64712375", "0.6436141", "0.6404444", "0.6389056", "0.6333344", "0.633226", "0.632707", "0.63169163", "0.63169163", "0.62984437", "0.629262", "0.629262", "0.627541", "0.6243751", "0.62310624", "0.62301815", "0.62111413", "0.62031966", "0.61791736",...
0.8556544
0
verify if the address is the default billing address
Проверить, является ли адрес адресом по умолчанию для оплаты
public function isDefaultBillingAddress() { return $this->default_billing == 'Y' ? true : false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function give_require_billing_address( $payment_mode ) {\n\n\t$return = false;\n\t$billing_country = ! empty( $_POST['billing_country'] ) ? give_clean( $_POST['billing_country'] ) : 0; // WPCS: input var ok, sanitization ok, CSRF ok.\n\n\tif ( $billing_country || did_action( \"give_{$payment_mode}_cc_form...
[ "0.6698597", "0.6650475", "0.664888", "0.6613328", "0.6613328", "0.65309745", "0.6469336", "0.6344853", "0.6315802", "0.6283663", "0.6261539", "0.62583345", "0.6248101", "0.62245566", "0.6220605", "0.62044454", "0.6096977", "0.60598636", "0.6056971", "0.60320866", "0.60319316...
0.8336079
0
verify if the address is the default shipping address
проверить, является ли адрес адресом по умолчанию для доставки
public function isDefaultShippingAddress() { return $this->default_shipping == 'Y' ? true : false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isDefaultBillingAddress()\n {\n return $this->default_billing == 'Y' ? true : false;\n }", "public function needs_shipping_address() {\n\t\treturn apply_filters( 'woocommerce_cart_needs_shipping_address', true === $this->needs_shipping() && ! wc_ship_to_billing_address_only() );\n\t}...
[ "0.76306725", "0.6998708", "0.6623859", "0.6619995", "0.64572656", "0.6353948", "0.6282047", "0.6239672", "0.62239146", "0.6190108", "0.61888844", "0.61869264", "0.6157698", "0.6157002", "0.6136383", "0.61288345", "0.6122123", "0.60894096", "0.60764885", "0.6036048", "0.60238...
0.81990325
0
Wait for all child processes to complete
Подождать завершения всех дочерних процессов
public function wait() { // Wait for all children to return foreach ($this->child_pid_list as $child_pid) { if (pcntl_waitpid($child_pid, $status) < 0) { error_log(posix_strerror(posix_get_last_error())); } // Check to see if the child died a graceful...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function allChildProcessComplete(){\n print \"All child processing completed \\n\";\n}", "protected function wait()\n {\n while(pcntl_waitpid(-1, $status) != -1)\n {\n // Child has exited, no action needed\n }\n }", "protected function _waitPid(){\n $dead = pcntl_waitpid( ...
[ "0.7657336", "0.73897934", "0.64549726", "0.6346255", "0.6098577", "0.60355085", "0.60256124", "0.5977229", "0.5853348", "0.58339953", "0.5810382", "0.57162833", "0.56745875", "0.5657827", "0.56271994", "0.5591967", "0.5516369", "0.5436241", "0.54268235", "0.5424731", "0.5406...
0.816537
0
returns all modules path, even those are not used by the application.
возвращает все пути к модулям, даже те, которые не используются приложением.
public function getAllModulesPath() { if ($this->_allModulesPath === null) { $this->_allModulesPath = array(); $this->_allModulesPath['jelix'] = realpath(__DIR__.'/../../jelix-legacy/core-modules/jelix/').DIRECTORY_SEPARATOR; foreach ($this->_modulesPath as $modulePath) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSearchPaths()\n {\n return ArrayHelper::getValue(Yii::$app->params, 'modules.path', ['@app/modules']);\n }", "public function getPath()\n {\n return M::getPaths('module');\n }", "public function getDirectoryModules();", "public function getPaths()\n {\n $o...
[ "0.7688242", "0.7581816", "0.722985", "0.71860015", "0.71589994", "0.6873572", "0.6869384", "0.6846016", "0.6838431", "0.68368816", "0.67807853", "0.67644644", "0.67205465", "0.66541374", "0.6617529", "0.6586758", "0.65609527", "0.6558584", "0.65572125", "0.65123224", "0.6459...
0.79992515
0
return all paths of directories containing plugins, even those which are in disabled modules.
вернуть все пути директорий, содержащих плагины, даже те, которые находятся в отключенных модулях.
public function getAllPluginsPath() { if ($this->_allPluginsPath === null) { $this->_allPluginsPath = array_map(function ($path) { return rtrim($path, '/\\').DIRECTORY_SEPARATOR; }, $this->_pluginsDirPath); foreach ($this->getAllModulesPath() as $name => ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPaths()\n {\n $out = array();\n $pluginsDir = $this->baseDir . '/modules';\n foreach (scandir($pluginsDir) as $f) {\n if ($f[0] != '.' && is_dir($pluginsDir . '/' . $f)) {\n $out[$f] = realpath($pluginsDir . '/' . $f);\n }\n }\n...
[ "0.7970518", "0.70849925", "0.7069931", "0.6871993", "0.67808354", "0.6777363", "0.67330533", "0.66925246", "0.6617969", "0.6591504", "0.6566317", "0.6517222", "0.6461362", "0.6418773", "0.638847", "0.6379073", "0.6357506", "0.63496447", "0.63110137", "0.62974745", "0.6219679...
0.7799075
1
Shows forgot account form
Показывает форму забытого аккаунта
public function get_forgot_account() { return View::make('login.forgot-account'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function forgot()\n\t{\n\t\treturn View::make('auth/forgot', ['title' => 'Forgot Your Password?']);\n\t}", "protected function showForgot() {}", "public function forgot_password(){\n\n $this->data[\"title_tag\"]=\"Lobster | Accounts | Forgot Password\";\n\n $this->view(\"accounts/f...
[ "0.7899263", "0.7764118", "0.77385235", "0.7688774", "0.7648169", "0.76012266", "0.75404245", "0.7523053", "0.7507891", "0.7467881", "0.74399835", "0.7432901", "0.7419185", "0.73873687", "0.73505", "0.7278486", "0.7274922", "0.72740334", "0.72421175", "0.7233024", "0.72260666...
0.79284537
0
The request body. Gengo stores these inside a 'job' key.
Тело запроса. Генго сохраняет эти данные внутри ключа 'job'.
private function body() { return json_decode($this->request->all()["job"], true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getRequestBody() {}", "public function body()\n {\n $entityBody = file_get_contents('php://input');\n\n foreach ((array)json_decode($entityBody) as $field => $value) {\n $this->requestStack[$field] = $value;\n }\n return json_decode($entityBody);\n...
[ "0.7389239", "0.7304247", "0.7214364", "0.71006083", "0.70856065", "0.7061771", "0.7038476", "0.687623", "0.67916816", "0.67911994", "0.6779105", "0.67388713", "0.67312944", "0.6716999", "0.6677979", "0.65825826", "0.63724196", "0.6350368", "0.6312055", "0.6307236", "0.630422...
0.8446432
0
Return the Document's Company
Вернуть Компанию Документа
public function company() { return $this->author()->company(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCompany()\n {\n return $this->company;\n }", "public function getAuthorcompany() {}", "public function get_company() \n {\n return $this->company;\n }", "public function getCompany();", "public function getCompany()\n {\n return isset($this->company) ?...
[ "0.77599776", "0.77459145", "0.7734271", "0.76575786", "0.7580395", "0.7553875", "0.7476229", "0.736275", "0.7326831", "0.71141064", "0.71136826", "0.7094631", "0.7080218", "0.7063503", "0.7045847", "0.7042143", "0.70414937", "0.70414937", "0.7041006", "0.7027318", "0.7026070...
0.8001441
0
Operation createFeesAsyncWithHttpInfo Creates a fee
Операция createFeesAsyncWithHttpInfo Создает сбор
public function createFeesAsyncWithHttpInfo($fee_request = null) { $returnType = '\DigitalRiver\ApiSdk\Model\Fee'; $request = $this->createFeesRequest($fee_request); return $this->client ->sendAsync($request, $this->createHttpClientOption()) ->then( f...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createFeesAsync($fee_request = null)\n {\n return $this->createFeesAsyncWithHttpInfo($fee_request)\n ->then(\n function ($response) {\n return $response[0];\n }\n );\n }", "protected function createFeesRequest($fe...
[ "0.60441345", "0.57609516", "0.5493893", "0.53237164", "0.5157003", "0.51091963", "0.50679225", "0.50544494", "0.50341713", "0.5026974", "0.49404624", "0.4839041", "0.47839966", "0.4783005", "0.4700737", "0.46948293", "0.46554732", "0.46289954", "0.46253055", "0.46156126", "0...
0.7031279
0
Create request for operation 'createFees'
Создать запрос для операции 'createFees'
protected function createFeesRequest($fee_request = null) { $resourcePath = '/fees'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; $multipart = false; // body params $_tempBody = null; if (isset($fee_request)) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createRequest();", "public function createRequest();", "public function create(FeadbackRequests $request)\n {\n // TODO\n }", "protected function retrieveFeesRequest($id)\n {\n // verify the required parameter 'id' is set\n if ($id === null || (is_array($id) && c...
[ "0.6446714", "0.6446714", "0.6391797", "0.62436426", "0.6234716", "0.6230872", "0.617452", "0.60931236", "0.6016235", "0.59578544", "0.59368813", "0.59115654", "0.5821412", "0.5805597", "0.5751854", "0.57399094", "0.57201934", "0.57168734", "0.5716251", "0.5716013", "0.571525...
0.7646645
0
Operation deleteFees Deletes a fee by identifier
Операция deleteFees Удаляет сбор по идентификатору
public function deleteFees($id) { $this->deleteFeesWithHttpInfo($id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function deleteFee()\n {\n global $db;\n $requete = $db->prepare('DELETE FROM fees WHERE idF = ?');\n $requete->execute(array($this->idF));\n }", "public function deleteFee($id){\n $fee = Fee::find($id);\n $fee->delete();\n\n \\Session::flash('flash_message', 'Fee ...
[ "0.76287615", "0.7208655", "0.68545216", "0.6808845", "0.6756636", "0.66590333", "0.6457335", "0.6382546", "0.6378548", "0.6332576", "0.6169498", "0.6143808", "0.60433227", "0.60425484", "0.5903241", "0.5895368", "0.58933246", "0.58482236", "0.58294845", "0.5817461", "0.57862...
0.7326294
1
Create request for operation 'retrieveFees'
Создать запрос для операции 'retrieveFees'
protected function retrieveFeesRequest($id) { // verify the required parameter 'id' is set if ($id === null || (is_array($id) && count($id) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $id when calling retrieveFees' ); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function createFeesRequest($fee_request = null)\n {\n\n $resourcePath = '/fees';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n\n\n // body params\n $_tempBody = null;\n if (iss...
[ "0.7187883", "0.70417356", "0.7012134", "0.662279", "0.6189459", "0.60530764", "0.6006924", "0.5919609", "0.5813938", "0.57897085", "0.57574415", "0.57479113", "0.5725969", "0.5703368", "0.5701139", "0.56804156", "0.5672022", "0.5631066", "0.55981547", "0.5582169", "0.5530796...
0.713054
1
Create request for operation 'updateFees'
Создать запрос для операции 'updateFees'
protected function updateFeesRequest($id, $fee_update_request = null) { // verify the required parameter 'id' is set if ($id === null || (is_array($id) && count($id) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $id when calling updateFees...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function createFeesRequest($fee_request = null)\n {\n\n $resourcePath = '/fees';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n\n\n // body params\n $_tempBody = null;\n if (iss...
[ "0.68220013", "0.65496784", "0.63415", "0.622104", "0.6150357", "0.6150084", "0.6089582", "0.6076756", "0.60277414", "0.59815305", "0.5862049", "0.5788863", "0.5787327", "0.5711124", "0.56728184", "0.56678635", "0.56676483", "0.56271267", "0.5572691", "0.557141", "0.5569649",...
0.7422906
0
Get Display Format Returns the amount in a human friendly and correct display form
Возвращает количество в удобной и правильной форме для отображения
public function getDisplayFormat(string $internalAmount):string { return $this->convertBack($internalAmount); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFormattedAmount(): string;", "public function getOutputFormat()\n {\n $formated = $this->formatTxt(0);\n $number = $this->formatTxt(0, array('display' => Zend_Currency::NO_SYMBOL));\n return str_replace($number, '%s', $formated);\n }", "public function format() {\n...
[ "0.71726996", "0.71641034", "0.7133444", "0.70885146", "0.69390196", "0.66855365", "0.6657066", "0.65816444", "0.6577543", "0.6577543", "0.6577543", "0.64511436", "0.6447105", "0.6446003", "0.6436642", "0.6436642", "0.6436642", "0.6436642", "0.6436642", "0.6436642", "0.641538...
0.7574041
0
Gets a hash value that represents the the media record. The value returned from this method should not be used in any application that requires a secure hash.
Получает значение хэша, представляющее медиа-запись. Значение, возвращаемое этим методом, не должно использоваться в любом приложении, требующем безопасный хэш.
public function getHash() { // Create a string that should uniquely represent the media instance. // We'll base it on the table name, concatenated with a '.', followed by the // ID value. $string = $this->getTable().'.'.$this->getKey(); // We will use the SHA1 algorithm, as it is less prone to collision att...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getMediaFieldValue()\n {\n return $this->isBinary() ? base64_encode($this->{$this->getMediaField()}) : $this->{$this->getMediaField()};\n }", "public function getHashSignedById(): string;", "public function getHash(): string\n {\n return $this->data->hash;\n }", "pub...
[ "0.6551974", "0.64641696", "0.64202", "0.6321492", "0.6321492", "0.6321492", "0.6321492", "0.6321492", "0.6321492", "0.62918085", "0.62695426", "0.6222731", "0.61078167", "0.6093113", "0.60493803", "0.6000636", "0.5993864", "0.5975552", "0.59484184", "0.59353036", "0.59353036...
0.78977114
0
Get the console command options.
Получить параметры командной строки.
protected function getOptions() { return [ ['env', null, InputOption::VALUE_OPTIONAL, 'The environment the command should run under.', null], ]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getOptions()\n {\n return [\n ['command', null, InputOption::VALUE_OPTIONAL, 'The terminal command that should be assigned', 'command:name'],\n ];\n }", "protected function getOptions()\n\t{\n\t\treturn [\n\t\t\t['testMode', null, InputOption::VALUE_OPTIONAL, 'Ru...
[ "0.77591324", "0.751765", "0.7345173", "0.73404354", "0.7306238", "0.72790045", "0.7268271", "0.7237944", "0.71917665", "0.715652", "0.7155546", "0.7137", "0.71122515", "0.710945", "0.710945", "0.710945", "0.710945", "0.710945", "0.710945", "0.710945", "0.710945", "0.710945...
0.7800682
0
Get the adapter broker
Получить адаптер брокера
public static function getAdapterBroker() { if (self::$_adapterBroker === null) { self::$_adapterBroker = self::_getDefaultAdapterBroker(); } return self::$_adapterBroker; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getBroker()\n\t{\n\t\treturn $this->broker;\n\t}", "public function getBroker()\n\t{\n\t\treturn $this->broker;\n\t}", "protected static function _getDefaultAdapterBroker()\n {\n $broker = new AdapterBroker();\n return $broker;\n }", "public function broker() {\n return...
[ "0.78112847", "0.78112847", "0.7652033", "0.74720216", "0.7168701", "0.6887446", "0.6825858", "0.6792135", "0.6792135", "0.67234015", "0.6662625", "0.6662625", "0.6662625", "0.6662625", "0.6662625", "0.6662625", "0.6662625", "0.6662625", "0.66534704", "0.66534704", "0.6593326...
0.8149884
0
Change the adapter broker
Изменить адаптер брокера
public static function setAdapterBroker(Broker $broker) { self::$_adapterBroker = $broker; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setBroker($broker)\n {\n $this->helperBroker = $broker;\n }", "public static function resetAdapterBroker()\n {\n self::$_adapterBroker = self::_getDefaultAdapterBroker();\n return self::$_adapterBroker;\n }", "public function addBroker($broker);", "public func...
[ "0.6647263", "0.6576553", "0.6172146", "0.61141074", "0.60554403", "0.59680897", "0.58802336", "0.5845335", "0.584447", "0.5695898", "0.56539786", "0.56539786", "0.55681646", "0.5566497", "0.5543161", "0.5518362", "0.55161816", "0.5487131", "0.548706", "0.54819745", "0.54594"...
0.76428115
0
Resets the internal adapter broker
Сбрасывает внутреннего адаптера брокера
public static function resetAdapterBroker() { self::$_adapterBroker = self::_getDefaultAdapterBroker(); return self::$_adapterBroker; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function resetAdapter()\n {\n return $this->adapterInUse = $this->getDefaultAdapter();\n }", "public function reset(): void\n {\n $this->set([]);\n }", "public function reset()\n {\n $this->values[self::_CHANNEL] = null;\n $this->values[self::_CONTENTS] = array...
[ "0.6663174", "0.62500525", "0.6209619", "0.61758536", "0.61394817", "0.61328614", "0.61328614", "0.61328614", "0.6132421", "0.6132421", "0.6132421", "0.6132421", "0.6132421", "0.6132421", "0.6132421", "0.61123866", "0.6112186", "0.60996276", "0.60947245", "0.6076829", "0.6054...
0.7107687
0
Returns a default adapter broker
Возвращает адаптер-брокер по умолчанию
protected static function _getDefaultAdapterBroker() { $broker = new AdapterBroker(); return $broker; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getDefaultAdapter()\n {\n return self::getAdapter('default');\n }", "public static function getAdapterBroker() \n {\n if (self::$_adapterBroker === null) {\n self::$_adapterBroker = self::_getDefaultAdapterBroker();\n }\n return self::$_adapt...
[ "0.74067503", "0.7393683", "0.71613765", "0.7075436", "0.6949071", "0.69358796", "0.6873772", "0.6791248", "0.6737381", "0.6655568", "0.6638214", "0.6614869", "0.6522459", "0.6477144", "0.6467189", "0.6464673", "0.6464673", "0.63657326", "0.6333133", "0.62948954", "0.62909436...
0.84641415
0
Get the default adapter.
Получить адаптер по умолчанию.
public static function getDefaultAdapter() { if (!self::$_defaultAdapter instanceof Adapter) { self::setDefaultAdapter(self::$_defaultAdapter); } return self::$_defaultAdapter; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getDefaultAdapter()\n {\n return self::getAdapter('default');\n }", "abstract protected function getDefaultAdapter(): AdapterInterface;", "public function getAdapter(): AdapterInterface\n {\n return $this->adapter ?? $this->adapter = $this->getDefaultAdapter();\n ...
[ "0.91531134", "0.80871755", "0.7795129", "0.7763581", "0.7633149", "0.7623451", "0.7623427", "0.7580716", "0.7580716", "0.7580716", "0.7580716", "0.7580716", "0.7580716", "0.7580716", "0.7580716", "0.7579421", "0.7579421", "0.7535639", "0.75314397", "0.75261515", "0.74590284"...
0.8928813
1
/ Checks whether required query vars are present or not.
Проверяет, присутствуют ли необходимые переменные запроса.
private static function exist_required_vars() : bool { if(count(self::$RouteURI['VARS']['QUERY']['REQUIRED']) > 0) return true; else return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ValidRequiredQueryString($name) {\n return isset($_GET[$name]) && $_GET[$name] != \"\";\n}", "function verifyRequiredParams($required_fields)\n{\n\n\t//get request params\n\t$request_params = $_REQUEST;\n\t\n\t//Loop through all parameters\n\tforeach ($required_fields as $field) {\n\t\t//if any requi...
[ "0.7147205", "0.7052012", "0.70197135", "0.6968867", "0.6751472", "0.6751472", "0.6751472", "0.67432374", "0.66999143", "0.66905385", "0.6671065", "0.6620807", "0.65202975", "0.65116924", "0.6414665", "0.6402762", "0.63876057", "0.6379191", "0.63663006", "0.6352417", "0.63412...
0.8613289
0
This function Assign the collection with the name assigned in the derivated class
Эта функция назначает коллекцию с именем, указанным в производном классе
public function setCollection() { $cl = $this->nameCollection; $this->collection = self::$database->$cl; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __construct(){\r\n\t\t$this->collection = new Collection();\r\n\t}", "private function createCollection()\n {\n $class = get_class($this->data);\n\n $this->name = strtolower(class_basename($class));\n\n $result = $this->callEvent($class, [$class => $this->data]);\n\n ...
[ "0.641702", "0.6386564", "0.63255936", "0.6283756", "0.62487906", "0.6213443", "0.6143973", "0.611362", "0.6109087", "0.6053201", "0.6047409", "0.6000297", "0.59941", "0.5963093", "0.59509826", "0.59478235", "0.5928778", "0.5928778", "0.5878721", "0.5872394", "0.58706367", ...
0.77054006
0
Required. The Product resource which replaces the one on the server. product.name is immutable. Generated from protobuf field .google.cloud.vision.v1.Product product = 1 [(.google.api.field_behavior) = REQUIRED];
Обязательно. Ресурс Product, который заменяет существующий на сервере. product.name неизменен. Сгенерировано из поля protobuf .google.cloud.vision.v1.Product product = 1 [(.google.api.field_behavior) = REQUIRED];
public function setProduct($var) { GPBUtil::checkMessage($var, \Google\Cloud\Vision\V1\Product::class); $this->product = $var; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setProduct($var)\n {\n GPBUtil::checkMessage($var, \\Google\\Cloud\\Retail\\V2\\Product::class);\n $this->product = $var;\n\n return $this;\n }", "public function setProduct(Product $product);", "public function set_product(\\Venus\\src\\Helium\\Entity\\product $produ...
[ "0.73427856", "0.6991001", "0.69161856", "0.6889149", "0.6669704", "0.6669415", "0.6646461", "0.6646461", "0.6646461", "0.6646461", "0.6646461", "0.6646461", "0.6639345", "0.6639345", "0.6639345", "0.6639345", "0.6639345", "0.6628251", "0.662181", "0.6610472", "0.6591003", ...
0.7932955
0
Draw normal line. PHP imageline() function is broken because it drops fraction instead of correct rounding of X/Y coordnates. All calls to imageline() must be replaced by the wrapper function everywhere in the code.
Нарисовать нормальную линию. Функция PHP imageline() повреждена, поскольку она отбрасывает дробную часть вместо корректного округления координат X/Y. Все вызовы imageline() должны быть заменены на обертывающую функцию во всех частях кода.
function zbx_imageline($image, $x1, $y1, $x2, $y2, $color) { imageline($image, round($x1), round($y1), round($x2), round($y2), $color); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function drawLine(&$im, $x1, $y1, $x2, $y2, $c1, $c2)\n\t{\n\t\timageline($im, $x1+1, $y1, $x2+1, $y2, $c1);\n\t\timageline($im, $x1-1, $y1, $x2-1, $y2, $c1);\n\t\timageline($im, $x1, $y1+1, $x2, $y2+1, $c1);\n\t\timageline($im, $x1, $y1-1, $x2, $y2-1, $c1);\n\t\timageline($im, $x1, $y1, $x2, $y2, $c2);\n\t}", "...
[ "0.71310294", "0.66723293", "0.6567992", "0.63794136", "0.63058996", "0.62905926", "0.6286882", "0.6236219", "0.62341815", "0.6222772", "0.6087277", "0.60802066", "0.5993938", "0.58961654", "0.586044", "0.58024526", "0.56811357", "0.5665159", "0.5626191", "0.5603088", "0.5591...
0.7427991
0
get the fysical path of the resource space installation
получить физический путь пространства установки ресурса
public function getResourceSpacePath() { return realpath(dirname(__FILE__).'/../../../'.Yii::app()->config->system['rsDirectory']).'/'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function getPath()\n\t{\n\t\treturn $this->_sys_path;\n\t}", "private function getFraxResourceDirPath() {\r\n\t\treturn self::getFraxResourceDirPathWithFolderId($this->fraxionResourceService->getResourceFolderId());\r\n\t}", "public function getResourceSpace()\n\t{\n\t\treturn '/'.Yii::app()->config->s...
[ "0.6842917", "0.67996615", "0.67215836", "0.66662896", "0.66373456", "0.6336595", "0.62730986", "0.627012", "0.62384653", "0.61954737", "0.6177399", "0.61296827", "0.6101958", "0.60594827", "0.60288006", "0.6018447", "0.601486", "0.600344", "0.59943813", "0.59776163", "0.5977...
0.7612517
0
the id for a resource of the type of art
идентификатор ресурса типа искусства
public function getResourceArtId() { return 3; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function id()\n {\n return $this->resource->getKey();\n }", "public function getIdentifier()\n {\n return TranslatableResourceIdentifier::forResource($this->type, $this->item->displayTitle($this->item->id()))\n ->setProject($this->project);\n }", "public function get...
[ "0.7164648", "0.709404", "0.7016469", "0.6889776", "0.6889776", "0.68891895", "0.68891895", "0.6870246", "0.6870246", "0.6870246", "0.6731695", "0.6731695", "0.67310935", "0.6643082", "0.66301936", "0.66003335", "0.66003335", "0.66003335", "0.65699923", "0.65699923", "0.65699...
0.8004578
0
return the id for a resource of the type of agent
верните идентификатор ресурса типа агента
public function getResourceAgentId() { return 4; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getResourceID()\n {\n return $this->get('ResourceID');\n }", "public function getResourceID()\n {\n return $this->get('ResourceID');\n }", "public function getResourceID()\n {\n return $this->get('ResourceID');\n }", "public function getResourceID()\n ...
[ "0.6847276", "0.6847276", "0.68468297", "0.68468297", "0.6700939", "0.66064334", "0.65589064", "0.65589064", "0.64733887", "0.64267147", "0.64016813", "0.6359004", "0.6260957", "0.62443864", "0.62443864", "0.62206584", "0.62204874", "0.62204874", "0.6189234", "0.6166739", "0....
0.74606293
0
Generate Links Generates a list of links and their data based on the current page and total pages
Генерирует ссылки Генерирует список ссылок и их данных на основе текущей страницы и общего количества страниц
private function generateLinks() { // Additional pages are the total minus the current page $iAdditional = $this->iToShow - 1; // Figure out how many additional pages to show $iToShow = ($this->iTotal <= $iAdditional) ? ($this->iTotal - 1) : $iAdditional; // Get the pre and post lengths if($iToShow % 2 ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function create_links()\n\t{\n\t\t$totalItems = $this->total_records;\n\t\t$perPage = $this->size;\n\t\t$currentPage = $this->page;\n\t\t$link = $this->link;\n\t\t$totalPages = floor($totalItems / $perPage);\n\t\t$totalPages += ($totalItems % $perPage != 0) ? 1 : 0;\n\n\t\tif ($totalPages < 1 || $totalPages == 1){...
[ "0.79378057", "0.7641943", "0.7354165", "0.725031", "0.7229459", "0.7177123", "0.71356624", "0.7057576", "0.69586736", "0.69541466", "0.6948463", "0.6938398", "0.6868486", "0.6855299", "0.68506426", "0.68011147", "0.67732936", "0.67596513", "0.6716526", "0.6699851", "0.665563...
0.7900474
1
create a shift record, creating an id which gets logged with
создать запись смены, создавая идентификатор, который записывается в журнал
private function _saveNewShift() { // each timestamp action $this->shift = Shift::storeNewByEmployeeId($this->_employeeId); // log shift creation Log::info("New shift created.", ['employee_id' => $this->_employeeId, 'shift_id' => $this->shift->id]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store(ShiftRequest $request)\n {\n if(!Auth::user()->can('shift.create'))\n abort(403);\n\n $shift = new Shift;\n $shift->template_id = $request->template_id;\n $shift->start = Carbon::createFromFormat(\"d/m/Y H:i\", \"$request->startDate $request->startHou...
[ "0.6529752", "0.6496847", "0.6242462", "0.6117794", "0.6012908", "0.6002448", "0.60012364", "0.595624", "0.5860412", "0.5825265", "0.57806665", "0.5756717", "0.57457453", "0.57429147", "0.5722957", "0.5721726", "0.57198066", "0.57196563", "0.57180285", "0.5716424", "0.5701495...
0.73806965
0
Get the label prefix
Получить префикс метки
public function getLabelPrefix(): string { return $this->labelPrefix; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getPrefix()\n {\n $prefix = '';\n return $prefix;\n }", "public function getPrefix()\n {\n return $this->prefix ?? '';\n }", "public function getPrefix()\n {\n return $this->__get(self::FIELD_PREFIX);\n }", "protected function getPrefix() {\n\t\t$p...
[ "0.7672946", "0.7645721", "0.7612822", "0.7566956", "0.75094306", "0.74656624", "0.74517554", "0.7445997", "0.7445997", "0.7438069", "0.74157774", "0.73909175", "0.73722893", "0.73722893", "0.73722893", "0.73722893", "0.73722893", "0.73722893", "0.73722893", "0.73722893", "0....
0.8843823
0
Get the label length
Получить длину метки
public function getLabelLength(): int { return $this->labelLength; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getLabelWidth()\n {\n return $this->_labelWidth;\n }", "public function labelWidths();", "public function GetMaxLabelWidth()\n\t{\n\t\t$m = 10;\n\t\tif ($this->iObj != null) {\n\t\t\t$marg = $this->scale->actinfo->iLeftColMargin + $this->scale->actinfo->iRightColMargin;\n\t\t\t$n\t...
[ "0.810292", "0.7508274", "0.7455919", "0.7108121", "0.7052426", "0.70063066", "0.69862777", "0.69018507", "0.6796845", "0.6763806", "0.6763806", "0.6763806", "0.67636365", "0.6726096", "0.6726096", "0.6726096", "0.6726096", "0.6726096", "0.6726096", "0.6726096", "0.6726096", ...
0.9019427
0
Prevent unauthenticated access to the backend
Запретить неавторизованному доступу к бэкенду
private function _secureBackend() { if (!$this->_isAuthenticated()) { header("HTTP/1.1 401 Unauthorized"); exit(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function notAuthenticated()\n {\n $this->response = $this->response->withStatus(401);\n $this->jsonBody($this->payload->getInput());\n }", "function unauthorizedUsersOnly(){\n global $authenticatedUser;\n if(!empty($authenticatedUser)){\n header(\"HTTP/1.1 4...
[ "0.713509", "0.7081953", "0.70569587", "0.70373577", "0.6897537", "0.68743074", "0.6843283", "0.6825112", "0.6825112", "0.6825112", "0.6825112", "0.6825112", "0.6825112", "0.6825112", "0.6825112", "0.6825112", "0.6825112", "0.6825112", "0.6825112", "0.6825112", "0.6825112", ...
0.7645042
0
Returns the URI factory used by the Client.
Возвращает фабрику URI, используемую клиентом.
public function getUriFactory(): UriFactory;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createUriWithFactoryProvider()\n {\n return [\n ['http://example.com', Http::class],\n ['https://example.com', Http::class],\n ['mailto://example.com', Mailto::class],\n ['file://example.com', File::class],\n ];\n }", "public functio...
[ "0.70126575", "0.69538814", "0.68116", "0.6623672", "0.65182877", "0.64866275", "0.6476791", "0.6411168", "0.63276684", "0.6320435", "0.61852247", "0.61832607", "0.61832607", "0.61832607", "0.61832607", "0.61832607", "0.61832607", "0.61832607", "0.61832607", "0.617607", "0.61...
0.826964
0
Determine if a template exists
Определить, существует ли шаблон
public function templateExists($template);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function templateExists(string $template_name);", "abstract public function templateExists($name);", "public function hasTemplate() {}", "function template_exists($template)\n {\n return (bool)$this->get_template_path($template);\n }", "public function exists()\n {\n try {\n ...
[ "0.8632088", "0.8501812", "0.8351599", "0.8316059", "0.8272981", "0.81504977", "0.804082", "0.78793603", "0.779005", "0.77782017", "0.7724721", "0.77243847", "0.7634346", "0.7607714", "0.75904477", "0.75904477", "0.7559986", "0.7392957", "0.73653406", "0.73468953", "0.7316767...
0.8768416
0
Handle HTTP GET request.
Обработка HTTP-запроса GET.
protected function handleGET() { /* ... Do the stuff ... */ return $this->render('default.html', array()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function hsend_get(&$app, &$c) {\n\t\t$app->logger->debug(sprintf('%s::%s', __CLASS__, __FUNCTION__));\n\n\t\t$this->_http->setMethod(HTTP_REQUEST_METHOD_GET);\n\n\t\t$this->_http->setURL($c->param('app.view_http.request.uri'));\n\n\t\t$this->_set_basic_auth($app, $c);\n\n\t\t$this->_load_get_params($app, $c);\n\n...
[ "0.7129962", "0.7111672", "0.6964521", "0.6870244", "0.6830442", "0.67799884", "0.66619384", "0.66454995", "0.6627429", "0.662089", "0.6614462", "0.66072416", "0.66072077", "0.65881366", "0.65860814", "0.6535424", "0.65073276", "0.6466607", "0.64660746", "0.6437796", "0.63094...
0.7201675
0
Verifies that the given CSRF token is valid. If a token is not passed in as a parameter, then the method will use the "csrf_token" POST var if available. When a token is verified it is removed form the session token store.
Проверяет, что предоставленный CSRF-токен действителен. Если токен не передан в качестве параметра, то метод использует переменную POST "csrf_token", если она доступна. После проверки токен удаляется из хранилища сессионных токенов.
protected function verify_csrf_token($token=null) { if(!$token and isset($this->POST['csrf_token'])) { $token = $this->POST['csrf_token']; } if(isset($_SESSION['rpf_csrf_tokens'])) { $key = array_search( $this->POST['csrf_token'], $_SESSIO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function checkToken(): void\n {\n $fromSession = BackendModel::getSession()->get('csrf_token', '');\n $fromGet = $this->getRequest()->query->get('token');\n\n if ($fromSession !== '' && $fromGet !== '' && $fromSession === $fromGet) {\n return;\n }\n\n // clea...
[ "0.77151465", "0.76541555", "0.7499146", "0.7445624", "0.7430204", "0.7426792", "0.73058957", "0.7297095", "0.7296132", "0.7250849", "0.7216035", "0.71785015", "0.71729416", "0.71448207", "0.7143963", "0.712622", "0.708682", "0.70544696", "0.704227", "0.6978574", "0.69675565"...
0.79645807
0
Checks if model has public property
Проверяет, имеет ли модель публичное свойство
private function modelHasPublicProperty($property) { $reflectionProperty = new \ReflectionProperty($this->model, $property); return $reflectionProperty->isPublic(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isPublic()\n\t{\n\t\treturn $this->property->isPublic();\n\t}", "public function isPublic()\n {\n return $this->_public;\n }", "public function isPublic()\n {\n return $this->public;\n }", "public function checkModel(): bool\n {\n if (is_null($this->profile)) throw...
[ "0.7754035", "0.66790533", "0.6599066", "0.65870166", "0.65713453", "0.6524453", "0.65017813", "0.65003264", "0.64440835", "0.6407328", "0.6383811", "0.6322359", "0.6290725", "0.6277395", "0.6170223", "0.61538595", "0.61475784", "0.6121712", "0.61156976", "0.61115336", "0.607...
0.7905071
0
Test multiple db resources specified in a local dbResources table loop through each connection specified and request connection info via the connection manager
Тестирование нескольких ресурсов базы данных, указанных в локальной таблице dbResources, проходится по каждому соединению и запрашивается информация о соединении через менеджер соединений
public function testLoopThroughDifferentDbResources() { $dbFactory = \Yii::$app->get('dbFactory'); $dbResources = DbResource::find() ->orderBy('id') ->all(); $counter = 1; foreach ($dbResources as $dbResource) { $counter++; $dbClien...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testLoopThroughDifferentClients()\n {\n\n $dbFactory = \\Yii::$app->get('dbFactory');\n\n $clients = Client::find()\n ->orderBy('id')\n ->all();\n\n foreach ($clients as $client) {\n\n $this->assertInstanceOf(Client::className(), $client);\n ...
[ "0.6494525", "0.62402064", "0.57906425", "0.57901794", "0.57849115", "0.57527375", "0.5616886", "0.5598045", "0.5566008", "0.55226886", "0.5490106", "0.54150856", "0.54068685", "0.5379307", "0.5351346", "0.5347377", "0.5331102", "0.53018695", "0.5279405", "0.5257298", "0.5254...
0.76822746
0
Test multiple db resources by looping over 2 clients and connecting to their and their own specified dbResources which will share the same connection name across both clients
Тестирование нескольких ресурсов баз данных путем перебора 2 клиентов и подключения к их собственным указанным dbResources, которые будут использовать одинаковое имя соединения на обоих клиентах
public function testLoopThroughDifferentClients() { $dbFactory = \Yii::$app->get('dbFactory'); $clients = Client::find() ->orderBy('id') ->all(); foreach ($clients as $client) { $this->assertInstanceOf(Client::className(), $client); $this->...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testLoopThroughDifferentDbResources()\n {\n\n $dbFactory = \\Yii::$app->get('dbFactory');\n\n $dbResources = DbResource::find()\n ->orderBy('id')\n ->all();\n\n $counter = 1;\n foreach ($dbResources as $dbResource) {\n $counter++;\n\n ...
[ "0.8401456", "0.7555036", "0.6402351", "0.6323178", "0.6175283", "0.6106145", "0.6042584", "0.59346694", "0.5852666", "0.5848128", "0.5841191", "0.56440884", "0.5631787", "0.5473327", "0.5467439", "0.5402433", "0.5400774", "0.53391945", "0.5325993", "0.5285475", "0.52665454",...
0.80226594
1
Test client db resources auto load by looping over 2 clients and pulling in a remote active active record belonging to a client db resource without having first defined the connection in the connection manager
Тест-клиент загружает ресурсы базы данных автоматически, выполняя цикл по 2 клиентам и извлекая активный активный запись из удаленной базы данных, принадлежащую ресурсу клиентской базы данных, без предварительного определения соединения в менеджере соединений
public function testLoopThroughDifferentClientsAutoActiveRecordDbResource() { $dbFactory = \Yii::$app->get('dbFactory'); $clients = Client::find() ->orderBy('id') ->all(); foreach ($clients as $client) { $this->assertInstanceOf(Client::className(), $cl...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testLoopThroughDifferentClients()\n {\n\n $dbFactory = \\Yii::$app->get('dbFactory');\n\n $clients = Client::find()\n ->orderBy('id')\n ->all();\n\n foreach ($clients as $client) {\n\n $this->assertInstanceOf(Client::className(), $client);\n ...
[ "0.8066118", "0.7958646", "0.5851727", "0.5817511", "0.5754436", "0.567792", "0.5344511", "0.5338804", "0.52945393", "0.5177132", "0.5169693", "0.51190275", "0.50945497", "0.50939995", "0.50829816", "0.5072531", "0.50242335", "0.5016859", "0.5005589", "0.4988954", "0.49809012...
0.82351035
0
Returns signature for Route, ie. URI plus Method.
Возвращает сигнатуру для маршрута, то есть URI плюс Метод.
public function getSignature() : string { return $this->httpMethod . ':' . $this->uri; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function route(string $requestUri, string $requestMethod);", "public function getMethod()\t{\n\t\tif ($this->class != \"NoRoute\")\t{\n\t\t\treturn $this->method;\n\t\t}\n\t\treturn \"invoke\";\n\t}", "public function GetRouteClass ();", "function get_method() {\n $parts = explode('/', $this->r...
[ "0.66461223", "0.6632719", "0.62335163", "0.61793023", "0.60940623", "0.6081316", "0.6053706", "0.6011736", "0.59984165", "0.5969473", "0.5897626", "0.5848054", "0.5833658", "0.58261305", "0.57917225", "0.57893705", "0.5788629", "0.5755157", "0.5747137", "0.5738321", "0.57299...
0.7054993
0
Adds new conditions to the existing ones
Добавляет новые условия к существующим
public function append($conditions) { if(is_string($conditions)){ $conditions = [ $conditions ]; } $this->conditions = array_merge($this->conditions, $conditions); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addConditions(array $conditions);", "public function addCondition($condition);", "protected function setConditions() {\r\n if( count($this->sqlConditions) ) {\r\n $this->sql .= ' WHERE ' . $this->sqlStrConditions;\r\n }\r\n }", "public function appendConditions( $c...
[ "0.7601747", "0.6811083", "0.6655937", "0.65050584", "0.64509284", "0.64031065", "0.63460505", "0.63015455", "0.62255853", "0.6157787", "0.61372423", "0.613485", "0.60980815", "0.6042364", "0.59968287", "0.59897435", "0.59757346", "0.59450614", "0.59450614", "0.58851475", "0....
0.7132459
1
returns a list of the loaded monsters ability data
возвращает список данных способностей монстров, загруженных из файла
public function abilities() { if (!$this->abilities) { $this->abilities = array(); foreach (monsterToAbility::select('ability', 'description')->where('mid', '=', $this->id)->get() as $m) { $this->abilities[$m->ability] = $m->description; } } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function returnJBAbilities(){\n\t\t\n\t\t$retArray['playbutton'] = true;\n\t\t$retArray['pausebutton'] = true;\n\t\t$retArray['stopbutton'] = true;\n\t\t$retArray['nextbutton'] = true;\n\t\t$retArray['prevbutton'] = true;\n\t\t$retArray['shufflebutton'] = true;\n\t\t$retArray['clearbutton'] = true;\n\t\t$retArray[...
[ "0.62408864", "0.6032378", "0.5880616", "0.58541554", "0.578513", "0.5747377", "0.5643813", "0.5587034", "0.54711074", "0.54365295", "0.5432809", "0.53931355", "0.53931355", "0.53687215", "0.5360998", "0.5349105", "0.5254556", "0.5239141", "0.52357465", "0.5223098", "0.519857...
0.71057385
0
returns list of monsters multie attack data
возвращает список данных о множественных атаках монстров
public function multieAttack() { if (!$this->multieAttack) { $multieattack = monsterToMultiattack::where('mid', $this->id)->get(); $this->multieAttack = array(); foreach ($multieattack as $m) { $this->multieAttack[] = (object) array( 'a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getMonsters()\n {\n return $this->monsters;\n }", "public function getAttacks()\n {\n return $this->attacks;\n }", "public function getLeveledCharacters(): array\n {\n $chars = [];\n $raw = \\json_decode($this->fetch($this->getUrl('memb...
[ "0.6549969", "0.56086355", "0.55801564", "0.5575816", "0.538254", "0.5278909", "0.5253874", "0.52437145", "0.5232179", "0.5216151", "0.51792383", "0.5149291", "0.5113846", "0.50545645", "0.49936706", "0.49901137", "0.49892962", "0.49848267", "0.4953888", "0.49289435", "0.4920...
0.73699045
0
return monsters senses (e.g. passive perception)
возвращать чувства монстров (например, пассивное восприятие)
public function sense() { if (!$this->sense) { $this->sense = monsterToSense::select('sense', 'distance')->where('mid', '=', $this->id)->get(); } return $this->sense; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSens() {\n return $this->sens;\n }", "public function eachSense(): Generator;", "public function getMonsters()\n {\n return $this->monsters;\n }", "public function tempHumScore();", "public static function listSexualBehaviour() {\n return array(\n...
[ "0.5583198", "0.5580879", "0.5237177", "0.5140356", "0.5139852", "0.51249677", "0.5083965", "0.5071048", "0.5057354", "0.50219566", "0.49856874", "0.49376822", "0.4925317", "0.49148893", "0.49008343", "0.48736447", "0.4851223", "0.48437408", "0.48361647", "0.48320064", "0.482...
0.73934114
0
Schema Builder Methods Creates a tinytext column for MySQL, or text column for others.
Методы построителя схемы Создают столбец tinytext для MySQL, или столбец text для других.
public function tinyText(): ColumnSchemaBuilder { if (Db::isTypeSupported('tinytext', $this->db)) { return $this->db->getSchema()->createColumnSchemaBuilder('tinytext'); } return $this->text(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function mediumText(): ColumnSchemaBuilder\n {\n if (Db::isTypeSupported('mediumtext', $this->db)) {\n return $this->db->getSchema()->createColumnSchemaBuilder('mediumtext');\n }\n\n return $this->text();\n }", "public function longText(): ColumnSchemaBuilder\n {\n...
[ "0.78421247", "0.74148625", "0.695676", "0.6754094", "0.665383", "0.665383", "0.66045046", "0.6357815", "0.6326353", "0.62683994", "0.613103", "0.60150534", "0.5957129", "0.5892589", "0.5786659", "0.57820326", "0.5757947", "0.5740569", "0.5717803", "0.5703459", "0.5674551", ...
0.87789047
0
Creates a mediumtext column for MySQL, or text column for others.
Создает столбец mediumtext для MySQL, или столбец text для других СУБД.
public function mediumText(): ColumnSchemaBuilder { if (Db::isTypeSupported('mediumtext', $this->db)) { return $this->db->getSchema()->createColumnSchemaBuilder('mediumtext'); } return $this->text(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function tinyText(): ColumnSchemaBuilder\n {\n if (Db::isTypeSupported('tinytext', $this->db)) {\n return $this->db->getSchema()->createColumnSchemaBuilder('tinytext');\n }\n\n return $this->text();\n }", "public function longText(): ColumnSchemaBuilder\n {\n ...
[ "0.7344544", "0.6856657", "0.651758", "0.62506527", "0.6085036", "0.6070637", "0.60002553", "0.60002553", "0.5996603", "0.59462696", "0.58469594", "0.5820733", "0.5782285", "0.5743016", "0.57411873", "0.5718639", "0.5707983", "0.5677143", "0.56656355", "0.564006", "0.56322795...
0.7948581
0
Creates a longtext column for MySQL, or text column for others.
Создает столбец longtext для MySQL, или столбец text для других.
public function longText(): ColumnSchemaBuilder { if (Db::isTypeSupported('longtext', $this->db)) { return $this->db->getSchema()->createColumnSchemaBuilder('longtext'); } return $this->text(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function mediumText(): ColumnSchemaBuilder\n {\n if (Db::isTypeSupported('mediumtext', $this->db)) {\n return $this->db->getSchema()->createColumnSchemaBuilder('mediumtext');\n }\n\n return $this->text();\n }", "public function tinyText(): ColumnSchemaBuilder\n {\n...
[ "0.70311457", "0.6994624", "0.63206357", "0.6091813", "0.60222644", "0.60222644", "0.59992117", "0.5953977", "0.58984417", "0.58933556", "0.5885438", "0.58277214", "0.58225197", "0.58132803", "0.572959", "0.5717206", "0.567819", "0.56151193", "0.56142783", "0.5594063", "0.558...
0.8218124
0
Operation v1PropertyTemplatesClaimsClaimTemplateIdFormsGet Get claim template form templates
Операция v1PropertyTemplatesClaimsClaimTemplateIdFormsGet Получение формы шаблона заявки
public function v1PropertyTemplatesClaimsClaimTemplateIdFormsGet($claim_template_id, $accept_language = null) { list($response) = $this->v1PropertyTemplatesClaimsClaimTemplateIdFormsGetWithHttpInfo($claim_template_id, $accept_language); return $response; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function v1PropertyTemplatesClaimsClaimTemplateIdFormsGetAsync($claim_template_id, $accept_language = null)\n {\n return $this->v1PropertyTemplatesClaimsClaimTemplateIdFormsGetAsyncWithHttpInfo($claim_template_id, $accept_language)\n ->then(\n function ($response) {\n ...
[ "0.67494845", "0.6413669", "0.63864213", "0.5870985", "0.5747275", "0.57219666", "0.56536007", "0.5500681", "0.54465413", "0.54074025", "0.5266831", "0.52094674", "0.51180756", "0.500552", "0.4924283", "0.4895962", "0.4752312", "0.47294697", "0.47258836", "0.47257003", "0.470...
0.75180644
0
Operation v1PropertyTemplatesClaimsClaimTemplateIdFormsGetAsync Get claim template form templates
Операция v1PropertyTemplatesClaimsClaimTemplateIdFormsGetAsync Получение формы шаблона утверждения шаблона утверждения
public function v1PropertyTemplatesClaimsClaimTemplateIdFormsGetAsync($claim_template_id, $accept_language = null) { return $this->v1PropertyTemplatesClaimsClaimTemplateIdFormsGetAsyncWithHttpInfo($claim_template_id, $accept_language) ->then( function ($response) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function v1PropertyTemplatesClaimsClaimTemplateIdFormsGet($claim_template_id, $accept_language = null)\n {\n list($response) = $this->v1PropertyTemplatesClaimsClaimTemplateIdFormsGetWithHttpInfo($claim_template_id, $accept_language);\n return $response;\n }", "public function v1Propert...
[ "0.73220813", "0.6250128", "0.6243924", "0.59296405", "0.58632326", "0.5800818", "0.5747822", "0.5725268", "0.5683018", "0.55283844", "0.5378018", "0.52799124", "0.5165582", "0.5098723", "0.5056631", "0.50177723", "0.4914746", "0.491287", "0.4892633", "0.48838025", "0.4663495...
0.7045841
1
Operation v1PropertyTemplatesClaimsClaimTemplateIdReportsGet Gets claim template report templates
Операция v1PropertyTemplatesClaimsClaimTemplateIdReportsGet Получает шаблоны отчетов шаблона заявки
public function v1PropertyTemplatesClaimsClaimTemplateIdReportsGet($claim_template_id) { list($response) = $this->v1PropertyTemplatesClaimsClaimTemplateIdReportsGetWithHttpInfo($claim_template_id); return $response; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function v1PropertyTemplatesClaimsClaimTemplateIdReportsGetRequest($claim_template_id)\n {\n // verify the required parameter 'claim_template_id' is set\n if ($claim_template_id === null || (is_array($claim_template_id) && count($claim_template_id) === 0)) {\n throw new \\Inva...
[ "0.6202005", "0.61738354", "0.60549086", "0.566059", "0.5561369", "0.5418144", "0.5224335", "0.5018484", "0.4975871", "0.4929262", "0.48938423", "0.48241466", "0.4815818", "0.4702586", "0.46753478", "0.46574688", "0.45892045", "0.45148313", "0.43306193", "0.43247634", "0.4320...
0.705995
0
Operation v1PropertyTemplatesClaimsClaimTemplateIdReportsGetWithHttpInfo Gets claim template report templates
Операция v1PropertyTemplatesClaimsClaimTemplateIdReportsGetWithHttpInfo получает отчеты по шаблонам заявок
public function v1PropertyTemplatesClaimsClaimTemplateIdReportsGetWithHttpInfo($claim_template_id) { $returnType = '\Swagger\Client\Model\TemplateMetadataResponse[]'; $request = $this->v1PropertyTemplatesClaimsClaimTemplateIdReportsGetRequest($claim_template_id); try { $options ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function v1PropertyTemplatesClaimsClaimTemplateIdReportsGet($claim_template_id)\n {\n list($response) = $this->v1PropertyTemplatesClaimsClaimTemplateIdReportsGetWithHttpInfo($claim_template_id);\n return $response;\n }", "public function v1PropertyTemplatesClaimsClaimTemplateIdReportsG...
[ "0.64228404", "0.62906265", "0.61948127", "0.61184406", "0.6108237", "0.56206065", "0.5538085", "0.54083174", "0.5293944", "0.5284829", "0.524281", "0.52069706", "0.49441108", "0.4887355", "0.48277533", "0.47505504", "0.4697868", "0.4634502", "0.45894974", "0.45767832", "0.45...
0.71285284
0
Create request for operation 'v1PropertyTemplatesClaimsClaimTemplateIdReportsGet'
Создать запрос для операции 'v1PropertyTemplatesClaimsClaimTemplateIdReportsGet'
protected function v1PropertyTemplatesClaimsClaimTemplateIdReportsGetRequest($claim_template_id) { // verify the required parameter 'claim_template_id' is set if ($claim_template_id === null || (is_array($claim_template_id) && count($claim_template_id) === 0)) { throw new \InvalidArgumen...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function v1PropertyTemplatesClaimsClaimTemplateIdReportsGet($claim_template_id)\n {\n list($response) = $this->v1PropertyTemplatesClaimsClaimTemplateIdReportsGetWithHttpInfo($claim_template_id);\n return $response;\n }", "public function v1PropertyTemplatesClaimsClaimTemplateIdReportsG...
[ "0.6215092", "0.5808102", "0.5778116", "0.5658166", "0.53586143", "0.49497807", "0.4716409", "0.46580884", "0.4613511", "0.4609955", "0.46032304", "0.4506107", "0.44287336", "0.44221818", "0.43692505", "0.42329183", "0.42164373", "0.42138085", "0.4195468", "0.41647366", "0.41...
0.71480316
0
Operation v1PropertyTemplatesClaimsClaimTemplateIdRolesGet Get claim template role templates
Операция v1PropertyTemplatesClaimsClaimTemplateIdRolesGet Получение шаблонов ролей шаблона утверждения
public function v1PropertyTemplatesClaimsClaimTemplateIdRolesGet($claim_template_id) { list($response) = $this->v1PropertyTemplatesClaimsClaimTemplateIdRolesGetWithHttpInfo($claim_template_id); return $response; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function v1PropertyTemplatesRoleGet()\n {\n list($response) = $this->v1PropertyTemplatesRoleGetWithHttpInfo();\n return $response;\n }", "protected function v1PropertyTemplatesClaimsClaimTemplateIdRolesGetRequest($claim_template_id)\n {\n // verify the required parameter 'cla...
[ "0.6359479", "0.6249316", "0.61989784", "0.61896247", "0.5887349", "0.5383871", "0.5249431", "0.5180383", "0.5166813", "0.49412012", "0.49124047", "0.4864745", "0.47665146", "0.47604", "0.46276104", "0.46106476", "0.46085852", "0.44309616", "0.44294134", "0.4420647", "0.44090...
0.7110974
0
Operation v1PropertyTemplatesClaimsClaimTemplateIdRolesGetWithHttpInfo Get claim template role templates
Операция v1PropertyTemplatesClaimsClaimTemplateIdRolesGetWithHttpInfo Получение шаблонов ролей шаблона утверждения
public function v1PropertyTemplatesClaimsClaimTemplateIdRolesGetWithHttpInfo($claim_template_id) { $returnType = '\Swagger\Client\Model\TemplateMetadataResponse[]'; $request = $this->v1PropertyTemplatesClaimsClaimTemplateIdRolesGetRequest($claim_template_id); try { $options = $t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function v1PropertyTemplatesClaimsClaimTemplateIdRolesGet($claim_template_id)\n {\n list($response) = $this->v1PropertyTemplatesClaimsClaimTemplateIdRolesGetWithHttpInfo($claim_template_id);\n return $response;\n }", "public function v1PropertyTemplatesRoleGetWithHttpInfo()\n {\n ...
[ "0.6831077", "0.64020383", "0.620203", "0.6143244", "0.60970193", "0.60463977", "0.58612853", "0.5692966", "0.55627006", "0.53734493", "0.53203917", "0.51645225", "0.49000743", "0.47167262", "0.4628068", "0.4597627", "0.4557562", "0.4546941", "0.45437512", "0.45377567", "0.44...
0.7146883
0
Create request for operation 'v1PropertyTemplatesClaimsClaimTemplateIdRolesGet'
Создать запрос для операции 'v1PropertyTemplatesClaimsClaimTemplateIdRolesGet'
protected function v1PropertyTemplatesClaimsClaimTemplateIdRolesGetRequest($claim_template_id) { // verify the required parameter 'claim_template_id' is set if ($claim_template_id === null || (is_array($claim_template_id) && count($claim_template_id) === 0)) { throw new \InvalidArgumentE...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function v1PropertyTemplatesClaimsClaimTemplateIdRolesGet($claim_template_id)\n {\n list($response) = $this->v1PropertyTemplatesClaimsClaimTemplateIdRolesGetWithHttpInfo($claim_template_id);\n return $response;\n }", "protected function v1PropertyTemplatesRoleGetRequest()\n {\n\n ...
[ "0.61357266", "0.6036994", "0.6009096", "0.56010634", "0.52963865", "0.51757693", "0.49725473", "0.49397713", "0.49123722", "0.48935732", "0.48758072", "0.45920292", "0.4551181", "0.45262095", "0.4524837", "0.45036593", "0.44776753", "0.44622156", "0.44597393", "0.4445305", "...
0.744135
0
Operation v1PropertyTemplatesClaimsClaimTemplateIdStatusChangeReasonsGet Get claim template status change reason templates
Операция v1PropertyTemplatesClaimsClaimTemplateIdStatusChangeReasonsGet Получение шаблонов причин изменения статуса заявки
public function v1PropertyTemplatesClaimsClaimTemplateIdStatusChangeReasonsGet($claim_template_id, $accept_language = null) { list($response) = $this->v1PropertyTemplatesClaimsClaimTemplateIdStatusChangeReasonsGetWithHttpInfo($claim_template_id, $accept_language); return $response; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function v1PropertyTemplatesClaimsClaimTemplateIdStatusChangeReasonsGetRequest($claim_template_id, $accept_language = null)\n {\n // verify the required parameter 'claim_template_id' is set\n if ($claim_template_id === null || (is_array($claim_template_id) && count($claim_template_id) ==...
[ "0.6702908", "0.6319107", "0.623479", "0.5548785", "0.4803532", "0.47128147", "0.4604724", "0.45242807", "0.4508349", "0.44783604", "0.44378042", "0.4430438", "0.44278532", "0.43987623", "0.4398347", "0.43530002", "0.43530002", "0.43421307", "0.4337702", "0.42731056", "0.4272...
0.7772296
0
Create request for operation 'v1PropertyTemplatesClaimsClaimTemplateIdStatusChangeReasonsGet'
Создать запрос для операции 'v1PropertyTemplatesClaimsClaimTemplateIdStatusChangeReasonsGet'
protected function v1PropertyTemplatesClaimsClaimTemplateIdStatusChangeReasonsGetRequest($claim_template_id, $accept_language = null) { // verify the required parameter 'claim_template_id' is set if ($claim_template_id === null || (is_array($claim_template_id) && count($claim_template_id) === 0)) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function v1PropertyTemplatesClaimsClaimTemplateIdStatusChangeReasonsGet($claim_template_id, $accept_language = null)\n {\n list($response) = $this->v1PropertyTemplatesClaimsClaimTemplateIdStatusChangeReasonsGetWithHttpInfo($claim_template_id, $accept_language);\n return $response;\n }", ...
[ "0.715889", "0.6184523", "0.57916653", "0.54056036", "0.50784105", "0.47061196", "0.4551079", "0.44218308", "0.4364875", "0.4356246", "0.43519983", "0.43502572", "0.43191913", "0.43101522", "0.42969403", "0.42945766", "0.4243111", "0.423307", "0.42237613", "0.41499883", "0.41...
0.7264907
0
Operation v1PropertyTemplatesClaimsGet Gets claim templates
Операция v1PropertyTemplatesClaimsGet Получает шаблоны утверждений
public function v1PropertyTemplatesClaimsGet() { list($response) = $this->v1PropertyTemplatesClaimsGetWithHttpInfo(); return $response; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function v1PropertyTemplatesClaimsGetAsync()\n {\n return $this->v1PropertyTemplatesClaimsGetAsyncWithHttpInfo()\n ->then(\n function ($response) {\n return $response[0];\n }\n );\n }", "public function v1PropertyTemplates...
[ "0.7077214", "0.6904508", "0.6845694", "0.6126725", "0.5826636", "0.5547154", "0.54594684", "0.5364296", "0.5336989", "0.52738905", "0.5155042", "0.51406866", "0.51022595", "0.5063246", "0.5063128", "0.5063128", "0.5063128", "0.50422955", "0.5039859", "0.502582", "0.502582", ...
0.8159482
0
Operation v1PropertyTemplatesClaimsGetWithHttpInfo Gets claim templates
Операция v1PropertyTemplatesClaimsGetWithHttpInfo получает шаблоны утверждений
public function v1PropertyTemplatesClaimsGetWithHttpInfo() { $returnType = '\Swagger\Client\Model\TemplateMetadataResponse[]'; $request = $this->v1PropertyTemplatesClaimsGetRequest(); try { $options = $this->createHttpClientOption(); try { $response =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function v1PropertyTemplatesClaimsGet()\n {\n list($response) = $this->v1PropertyTemplatesClaimsGetWithHttpInfo();\n return $response;\n }", "public function v1PropertyTemplatesClaimsGetAsyncWithHttpInfo()\n {\n $returnType = '\\Swagger\\Client\\Model\\TemplateMetadataRespons...
[ "0.78077215", "0.7060912", "0.6837898", "0.6755525", "0.6484503", "0.5951246", "0.5764075", "0.5699284", "0.5473859", "0.53621197", "0.5304171", "0.52526367", "0.5036317", "0.49518824", "0.49393407", "0.49002305", "0.48916823", "0.48055732", "0.4793169", "0.4720043", "0.46084...
0.78440624
0
Operation v1PropertyTemplatesClaimsGetAsync Gets claim templates
Операция v1PropertyTemplatesClaimsGetAsync получает шаблоны утверждений
public function v1PropertyTemplatesClaimsGetAsync() { return $this->v1PropertyTemplatesClaimsGetAsyncWithHttpInfo() ->then( function ($response) { return $response[0]; } ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function v1PropertyTemplatesClaimsGet()\n {\n list($response) = $this->v1PropertyTemplatesClaimsGetWithHttpInfo();\n return $response;\n }", "protected function v1PropertyTemplatesClaimsGetRequest()\n {\n\n $resourcePath = '/v1/property/templates/claims';\n $formParams...
[ "0.80778396", "0.69752336", "0.68128484", "0.6397113", "0.575468", "0.57444894", "0.55914813", "0.54303867", "0.52330315", "0.51558596", "0.515486", "0.51043606", "0.506943", "0.5022228", "0.4979784", "0.49317464", "0.4914062", "0.4899545", "0.48754603", "0.48754603", "0.4875...
0.751045
1