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
Create request for operation 'v1PropertyTemplatesClaimsGet'
Создать запрос для операции 'v1PropertyTemplatesClaimsGet'
protected function v1PropertyTemplatesClaimsGetRequest() { $resourcePath = '/v1/property/templates/claims'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; $multipart = false; // body params $_tempBody = null; if (...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function v1PropertyTemplatesClaimsGet()\n {\n list($response) = $this->v1PropertyTemplatesClaimsGetWithHttpInfo();\n return $response;\n }", "public function v1PropertyTemplatesClaimsGetWithHttpInfo()\n {\n $returnType = '\\Swagger\\Client\\Model\\TemplateMetadataResponse[]';...
[ "0.7016182", "0.67023003", "0.6482192", "0.6215656", "0.59914666", "0.5985084", "0.5741516", "0.52397555", "0.4997793", "0.48604628", "0.48223662", "0.48177218", "0.48177218", "0.48177218", "0.4812625", "0.48061118", "0.47849903", "0.47596875", "0.47375318", "0.4731259", "0.4...
0.81324124
0
Operation v1PropertyTemplatesFormsGetAsyncWithHttpInfo Get form templates
Операция v1PropertyTemplatesFormsGetAsyncWithHttpInfo Получение шаблонов форм
public function v1PropertyTemplatesFormsGetAsyncWithHttpInfo($accept_language = null) { $returnType = '\Swagger\Client\Model\TemplateMetadataResponse[]'; $request = $this->v1PropertyTemplatesFormsGetRequest($accept_language); return $this->client ->sendAsync($request, $this->cre...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function v1PropertyTemplatesFormsGetAsync($accept_language = null)\n {\n return $this->v1PropertyTemplatesFormsGetAsyncWithHttpInfo($accept_language)\n ->then(\n function ($response) {\n return $response[0];\n }\n );\n }", ...
[ "0.6896494", "0.6549454", "0.65474343", "0.6330893", "0.617544", "0.6045194", "0.5840433", "0.5751457", "0.56655174", "0.5616627", "0.5502448", "0.54420763", "0.54254854", "0.5376706", "0.53341687", "0.5302711", "0.52732146", "0.51905215", "0.5185287", "0.5077517", "0.5062761...
0.715072
0
Create request for operation 'v1PropertyTemplatesFormsGet'
Создать запрос для операции 'v1PropertyTemplatesFormsGet'
protected function v1PropertyTemplatesFormsGetRequest($accept_language = null) { $resourcePath = '/v1/property/templates/forms'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; $multipart = false; // header params if ($accept...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function v1PropertyTemplatesPoliciesGetRequest()\n {\n\n $resourcePath = '/v1/property/templates/policies';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n\n // body params\n $_tempBody...
[ "0.64419115", "0.6325142", "0.62726164", "0.6233664", "0.6150288", "0.5677357", "0.567384", "0.5593172", "0.559039", "0.54915583", "0.5421186", "0.5357374", "0.5299225", "0.52870876", "0.5287022", "0.5147777", "0.51170474", "0.5114524", "0.50562745", "0.5024615", "0.499637", ...
0.70226467
0
Operation v1PropertyTemplatesPerilsGet Get peril templates
Операция v1PropertyTemplatesPerilsGet Получение шаблонов опасностей
public function v1PropertyTemplatesPerilsGet($accept_language = null) { list($response) = $this->v1PropertyTemplatesPerilsGetWithHttpInfo($accept_language); return $response; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function v1PropertyTemplatesPoliciesGet()\n {\n list($response) = $this->v1PropertyTemplatesPoliciesGetWithHttpInfo();\n return $response;\n }", "public function getTemplates()\n {\n return $this->templates;\n }", "public function getTemplates()\n {\n return $t...
[ "0.6539344", "0.6248289", "0.6248289", "0.6208542", "0.59824175", "0.59381586", "0.5788883", "0.5783309", "0.575591", "0.57410496", "0.57351184", "0.5716095", "0.565486", "0.5617994", "0.56021386", "0.55897254", "0.5565497", "0.55648977", "0.5557307", "0.5535246", "0.5527493"...
0.762208
0
Operation v1PropertyTemplatesPoliciesGet Get policy templates
Операция v1PropertyTemplatesPoliciesGet Получение шаблонов политик
public function v1PropertyTemplatesPoliciesGet() { list($response) = $this->v1PropertyTemplatesPoliciesGetWithHttpInfo(); return $response; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function v1PropertyTemplatesPoliciesGetAsync()\n {\n return $this->v1PropertyTemplatesPoliciesGetAsyncWithHttpInfo()\n ->then(\n function ($response) {\n return $response[0];\n }\n );\n }", "public function v1PropertyTempl...
[ "0.7042449", "0.67766607", "0.6483069", "0.6239396", "0.61064297", "0.599259", "0.58779794", "0.5302509", "0.5302509", "0.5110645", "0.5099892", "0.50430846", "0.4982884", "0.49350947", "0.49304423", "0.49243778", "0.4913085", "0.4895355", "0.48881316", "0.48654372", "0.48551...
0.8271455
0
Operation v1PropertyTemplatesPoliciesGetWithHttpInfo Get policy templates
Операция v1PropertyTemplatesPoliciesGetWithHttpInfo Получение шаблонов политик
public function v1PropertyTemplatesPoliciesGetWithHttpInfo() { $returnType = '\Swagger\Client\Model\TemplateMetadataResponse[]'; $request = $this->v1PropertyTemplatesPoliciesGetRequest(); try { $options = $this->createHttpClientOption(); try { $respon...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function v1PropertyTemplatesPoliciesGet()\n {\n list($response) = $this->v1PropertyTemplatesPoliciesGetWithHttpInfo();\n return $response;\n }", "public function v1PropertyTemplatesPoliciesGetAsyncWithHttpInfo()\n {\n $returnType = '\\Swagger\\Client\\Model\\TemplateMetadataR...
[ "0.7875348", "0.6932225", "0.6731593", "0.63232493", "0.5761116", "0.5713149", "0.55882245", "0.55382943", "0.5537286", "0.5303522", "0.50788236", "0.49838993", "0.4925333", "0.48623097", "0.48301694", "0.48182645", "0.4750466", "0.47411612", "0.4693487", "0.46259508", "0.457...
0.7772496
1
Operation v1PropertyTemplatesPoliciesGetAsync Get policy templates
Операция v1PropertyTemplatesPoliciesGetAsync Получение шаблонов политик
public function v1PropertyTemplatesPoliciesGetAsync() { return $this->v1PropertyTemplatesPoliciesGetAsyncWithHttpInfo() ->then( function ($response) { return $response[0]; } ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function v1PropertyTemplatesPoliciesGet()\n {\n list($response) = $this->v1PropertyTemplatesPoliciesGetWithHttpInfo();\n return $response;\n }", "protected function v1PropertyTemplatesPoliciesGetRequest()\n {\n\n $resourcePath = '/v1/property/templates/policies';\n $fo...
[ "0.80156744", "0.6798253", "0.6728181", "0.6573227", "0.6193171", "0.59098136", "0.5791508", "0.5639961", "0.5342646", "0.5342646", "0.53234696", "0.5097947", "0.50964284", "0.50643265", "0.50521946", "0.5021325", "0.49675304", "0.49584162", "0.49536195", "0.49494117", "0.494...
0.7636011
1
Create request for operation 'v1PropertyTemplatesPoliciesGet'
Создать запрос для операции 'v1PropertyTemplatesPoliciesGet'
protected function v1PropertyTemplatesPoliciesGetRequest() { $resourcePath = '/v1/property/templates/policies'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; $multipart = false; // body params $_tempBody = null; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function v1PropertyTemplatesPoliciesGet()\n {\n list($response) = $this->v1PropertyTemplatesPoliciesGetWithHttpInfo();\n return $response;\n }", "public function v1PropertyTemplatesPoliciesGetAsync()\n {\n return $this->v1PropertyTemplatesPoliciesGetAsyncWithHttpInfo()\n ...
[ "0.7125939", "0.6616589", "0.65364033", "0.60579276", "0.58087313", "0.5711963", "0.5341118", "0.5164688", "0.50559044", "0.5024444", "0.49477026", "0.4761449", "0.47325033", "0.46902555", "0.4663742", "0.46605062", "0.46300903", "0.46110764", "0.46061948", "0.45266125", "0.4...
0.7974594
0
Operation v1PropertyTemplatesReportsGet Get instance report templates
Операция v1PropertyTemplatesReportsGet Получение экземпляра шаблонов отчетов
public function v1PropertyTemplatesReportsGet() { list($response) = $this->v1PropertyTemplatesReportsGetWithHttpInfo(); return $response; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function v1PropertyTemplatesReportsGetAsync()\n {\n return $this->v1PropertyTemplatesReportsGetAsyncWithHttpInfo()\n ->then(\n function ($response) {\n return $response[0];\n }\n );\n }", "protected function v1PropertyTemp...
[ "0.66796196", "0.63922715", "0.61918044", "0.5855594", "0.56761026", "0.5663458", "0.5631994", "0.5631994", "0.54085463", "0.5344562", "0.53009105", "0.52951", "0.5282222", "0.5274037", "0.5181649", "0.5170296", "0.51521045", "0.5140579", "0.5116637", "0.50869465", "0.5067188...
0.73382926
0
Operation v1PropertyTemplatesReportsGetWithHttpInfo Get instance report templates
Операция v1PropertyTemplatesReportsGetWithHttpInfo Получение экземпляра шаблонов отчетов
public function v1PropertyTemplatesReportsGetWithHttpInfo() { $returnType = '\Swagger\Client\Model\TemplateMetadataResponse[]'; $request = $this->v1PropertyTemplatesReportsGetRequest(); try { $options = $this->createHttpClientOption(); try { $response...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function v1PropertyTemplatesReportsGet()\n {\n list($response) = $this->v1PropertyTemplatesReportsGetWithHttpInfo();\n return $response;\n }", "public function v1PropertyTemplatesReportsGetAsyncWithHttpInfo()\n {\n $returnType = '\\Swagger\\Client\\Model\\TemplateMetadataResp...
[ "0.698979", "0.6975491", "0.6615738", "0.63604933", "0.6000977", "0.56503534", "0.5631599", "0.5505841", "0.5458285", "0.5263315", "0.50677496", "0.5061758", "0.5032884", "0.500807", "0.48802608", "0.4855748", "0.48444474", "0.4793225", "0.4775672", "0.47429562", "0.4639526",...
0.7623367
0
Operation v1PropertyTemplatesReportsGetAsync Get instance report templates
Операция v1PropertyTemplatesReportsGetAsync Получение экземпляра шаблонов отчетов
public function v1PropertyTemplatesReportsGetAsync() { return $this->v1PropertyTemplatesReportsGetAsyncWithHttpInfo() ->then( function ($response) { return $response[0]; } ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function v1PropertyTemplatesReportsGet()\n {\n list($response) = $this->v1PropertyTemplatesReportsGetWithHttpInfo();\n return $response;\n }", "protected function v1PropertyTemplatesReportsGetRequest()\n {\n\n $resourcePath = '/v1/property/templates/reports';\n $formPa...
[ "0.70784646", "0.6586088", "0.63619196", "0.6093773", "0.5555715", "0.5520144", "0.54611504", "0.53412956", "0.53357226", "0.53357226", "0.53279454", "0.5240785", "0.5178048", "0.5148822", "0.5134413", "0.51117307", "0.50850093", "0.50684077", "0.5059578", "0.4951788", "0.493...
0.73524415
0
Operation v1PropertyTemplatesReportsGetAsyncWithHttpInfo Get instance report templates
Операция v1PropertyTemplatesReportsGetAsyncWithHttpInfo Получение экземпляра шаблонов отчетов
public function v1PropertyTemplatesReportsGetAsyncWithHttpInfo() { $returnType = '\Swagger\Client\Model\TemplateMetadataResponse[]'; $request = $this->v1PropertyTemplatesReportsGetRequest(); return $this->client ->sendAsync($request, $this->createHttpClientOption()) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function v1PropertyTemplatesReportsGetAsync()\n {\n return $this->v1PropertyTemplatesReportsGetAsyncWithHttpInfo()\n ->then(\n function ($response) {\n return $response[0];\n }\n );\n }", "public function v1PropertyTemplat...
[ "0.7167421", "0.71442765", "0.6724597", "0.64859504", "0.5839005", "0.5816356", "0.53012615", "0.52853644", "0.52673256", "0.5248489", "0.5238363", "0.51528573", "0.51466113", "0.51318866", "0.5107347", "0.50779486", "0.5071376", "0.50099784", "0.49812236", "0.48899755", "0.4...
0.7458766
0
Create request for operation 'v1PropertyTemplatesReportsGet'
Создать запрос для операции 'v1PropertyTemplatesReportsGet'
protected function v1PropertyTemplatesReportsGetRequest() { $resourcePath = '/v1/property/templates/reports'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; $multipart = false; // body params $_tempBody = null; if...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function v1PropertyTemplatesReportsGet()\n {\n list($response) = $this->v1PropertyTemplatesReportsGetWithHttpInfo();\n return $response;\n }", "public function v1PropertyTemplatesReportsGetWithHttpInfo()\n {\n $returnType = '\\Swagger\\Client\\Model\\TemplateMetadataResponse[...
[ "0.6885576", "0.6338081", "0.629599", "0.5870302", "0.5515738", "0.54419917", "0.5260038", "0.5093172", "0.5025464", "0.5009177", "0.49517027", "0.48371026", "0.4786558", "0.478544", "0.47438496", "0.46994177", "0.46865258", "0.46806762", "0.46806762", "0.46550652", "0.462613...
0.7829869
0
Operation v1PropertyTemplatesRoleGet Get role templates
Операция v1PropertyTemplatesRoleGet Получение шаблонов ролей
public function v1PropertyTemplatesRoleGet() { list($response) = $this->v1PropertyTemplatesRoleGetWithHttpInfo(); return $response; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function v1PropertyTemplatesRoleGetAsync()\n {\n return $this->v1PropertyTemplatesRoleGetAsyncWithHttpInfo()\n ->then(\n function ($response) {\n return $response[0];\n }\n );\n }", "public function v1PropertyTemplatesRole...
[ "0.6829044", "0.6657028", "0.6169039", "0.58967835", "0.58377993", "0.5660462", "0.55415064", "0.5400042", "0.5400042", "0.5354297", "0.5193557", "0.51670283", "0.5127929", "0.5110697", "0.49776548", "0.49692598", "0.4943837", "0.492074", "0.48084742", "0.4795175", "0.4771801...
0.8458207
0
Operation v1PropertyTemplatesRoleGetWithHttpInfo Get role templates
Операция v1PropertyTemplatesRoleGetWithHttpInfo Получение шаблонов ролей
public function v1PropertyTemplatesRoleGetWithHttpInfo() { $returnType = '\Swagger\Client\Model\TemplateMetadataResponse[]'; $request = $this->v1PropertyTemplatesRoleGetRequest(); try { $options = $this->createHttpClientOption(); try { $response = $th...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function v1PropertyTemplatesRoleGet()\n {\n list($response) = $this->v1PropertyTemplatesRoleGetWithHttpInfo();\n return $response;\n }", "public function v1PropertyTemplatesRoleGetAsyncWithHttpInfo()\n {\n $returnType = '\\Swagger\\Client\\Model\\TemplateMetadataResponse[]';\...
[ "0.77757", "0.68915653", "0.6562434", "0.6379399", "0.5556511", "0.5524837", "0.5304648", "0.5219927", "0.4954533", "0.49521875", "0.49260938", "0.486505", "0.48369315", "0.4793959", "0.4734413", "0.47156587", "0.46574247", "0.4615564", "0.460916", "0.4523576", "0.45006675", ...
0.7797959
0
Operation v1PropertyTemplatesRoleGetAsync Get role templates
Операция v1PropertyTemplatesRoleGetAsync Получение шаблонов ролей
public function v1PropertyTemplatesRoleGetAsync() { return $this->v1PropertyTemplatesRoleGetAsyncWithHttpInfo() ->then( function ($response) { return $response[0]; } ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function v1PropertyTemplatesRoleGet()\n {\n list($response) = $this->v1PropertyTemplatesRoleGetWithHttpInfo();\n return $response;\n }", "public function v1PropertyTemplatesRoleGetWithHttpInfo()\n {\n $returnType = '\\Swagger\\Client\\Model\\TemplateMetadataResponse[]';\n ...
[ "0.8345633", "0.6723452", "0.6645598", "0.6326634", "0.5694191", "0.5655474", "0.55958366", "0.54862225", "0.5325424", "0.532455", "0.532455", "0.5270428", "0.5186994", "0.4941292", "0.4939446", "0.4929084", "0.49170035", "0.49057212", "0.48852327", "0.48273468", "0.48239443"...
0.7465802
1
Create request for operation 'v1PropertyTemplatesRoleGet'
Создать запрос для операции 'v1PropertyTemplatesRoleGet'
protected function v1PropertyTemplatesRoleGetRequest() { $resourcePath = '/v1/property/templates/role'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; $multipart = false; // body params $_tempBody = null; if ($mul...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function v1PropertyTemplatesRoleGet()\n {\n list($response) = $this->v1PropertyTemplatesRoleGetWithHttpInfo();\n return $response;\n }", "public function v1PropertyTemplatesRoleGetAsync()\n {\n return $this->v1PropertyTemplatesRoleGetAsyncWithHttpInfo()\n ->then(\n...
[ "0.7581594", "0.66809213", "0.6475999", "0.59288067", "0.5710188", "0.55498123", "0.53812957", "0.5244446", "0.4915878", "0.4836784", "0.4667334", "0.4653386", "0.4568171", "0.45280692", "0.45028043", "0.44273153", "0.4414529", "0.4414529", "0.4410983", "0.44036612", "0.43980...
0.7842611
0
Throw the exception "The DynaForm doesn't exist"
Выбросить исключение "DynaForm не существует"
private function throwExceptionDynaFormDoesNotExist () { throw new \Exception ('ID_DYNAFORM_DOES_NOT_EXIST'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function throwExceptionIfNotExistsDynaForm ($dynaFormUid)\n {\n try {\n $sql = \"SELECT * FROM workflow.step s\n INNER JOIN workflow.step_fields sf ON sf.step_id = s.STEP_UID_OBJ\n WHERE s.TAS_UID = ? \";\n $arrParameters = array($dynaFor...
[ "0.6794253", "0.5740202", "0.5618606", "0.5618606", "0.561264", "0.54866916", "0.5471994", "0.5438467", "0.5437155", "0.538871", "0.5382947", "0.53118783", "0.526294", "0.5262097", "0.5242414", "0.5200102", "0.517939", "0.5177293", "0.5170995", "0.515664", "0.51325256", "0....
0.84883785
0
Gets the form with initial values from the supplied object or none if NULL.
Получает форму с начальными значениями из предоставленного объекта или null, если он равен NULL.
public function getForm($object = null) : \Dms\Core\Form\IForm;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get()\n {\n $object = $this->_object;\n $this->_object = $this->_form;\n return $object;\n }", "public function getObject() {\n return $this->form->getObject();\n }", "public function getFormInObject()\n {\n $sExKey = null;\n\n if ($this->_i...
[ "0.66799074", "0.6123487", "0.6090915", "0.6080949", "0.60679597", "0.60477513", "0.60307264", "0.6004738", "0.5903087", "0.5801965", "0.5796724", "0.57867104", "0.5758512", "0.5707104", "0.5705431", "0.56774944", "0.565131", "0.5647768", "0.559539", "0.5565785", "0.55498147"...
0.7618788
0
Binds the form data to the supplied object.
Привязывает данные формы к указанному объекту.
public function bindTo($object, array $formSubmission);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function bind($object) {\n $this->form->bind($object);\n return;\n }", "abstract public function bindForm();", "abstract public function bindForm();", "public function bind($object, $flags = FormInterface::VALUES_NORMALIZED)\n {\n $this->setObject($object);\n return p...
[ "0.75737876", "0.6900851", "0.6900851", "0.63011366", "0.6242271", "0.5991373", "0.59076583", "0.58243334", "0.5756066", "0.56614137", "0.56431925", "0.56085324", "0.5601756", "0.55947655", "0.5575038", "0.5556013", "0.5521894", "0.5519309", "0.55054027", "0.5492009", "0.5488...
0.73151785
1
Returns whether contains a binding for the supplied form field.
Возвращает true, если для указанного поля формы существует привязка.
public function hasFieldBinding(string $name) : bool;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function is_bound($field)\n\t{\n\t\tif (array_key_exists($field, $this->_bindings))\n\t\t{\n\t\t\treturn TRUE;\n\t\t}\n\t\t\n\t\treturn FALSE;\n\t}", "public function isGlobalBinding($fieldNode) {}", "public function has($_field);", "public function hasField(string $field): bool;", "public function...
[ "0.7942438", "0.682496", "0.66091335", "0.6520356", "0.6505706", "0.64333487", "0.642117", "0.63876474", "0.62961036", "0.628567", "0.6283661", "0.62563187", "0.62225413", "0.62165886", "0.62018555", "0.619366", "0.6163409", "0.6150088", "0.61142904", "0.609696", "0.6092553",...
0.7754883
1
Sets whether the field is translated.
Определяет, является ли поле переводимым.
public function setIsTranslated($translated = true);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setTranslated($flag)\n {\n $this->translated = $flag;\n }", "public function setIsTranslated($translated = true)\n {\n $this->translated = (bool) $translated;\n\n return $this;\n }", "public function isTranslated()\n {\n return $this->translated;\n ...
[ "0.7066537", "0.667976", "0.6460307", "0.6370389", "0.6228555", "0.61764246", "0.60834193", "0.6066475", "0.6066475", "0.5908406", "0.58822995", "0.58711845", "0.5829036", "0.5828467", "0.5739122", "0.5738153", "0.5734422", "0.56360686", "0.5610109", "0.5469812", "0.53941715"...
0.7691566
0
/ Get setting record by $key, save and return $default if not contains
Получить запись настроек по $key, сохранить и вернуть $default, если она отсутствует
private function get_setting($key,$default) { $sql="SELECT value FROM waf_settings WHERE name='".$this->db->Q($key,1)."'"; $result=$this->db->ROW_Q($sql); if($result==false) { //save default value $this->db->QUERY("INSERT INTO waf_settings (name,value) VALUES ('".$this->db->Q($key,1)."','".$this...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_setting($key, $default = null) {\r\n $settings = get_site_option( 'psts_settings' );\r\n $setting = isset($settings[$key]) ? $settings[$key] : $default;\r\n\t\treturn apply_filters( \"psts_setting_$key\", $setting, $default );\r\n\t}", "function get_setting( $key, $default = '' ) {\n\t\t$this-...
[ "0.7350057", "0.7271061", "0.722592", "0.7050405", "0.7023742", "0.69490594", "0.6896991", "0.6874127", "0.6854738", "0.681594", "0.68111074", "0.67660433", "0.6708516", "0.6692083", "0.6658959", "0.665137", "0.6642264", "0.66359925", "0.6634708", "0.65480524", "0.65347356", ...
0.8181921
0
/ check user session and redirect if not exists if get param $chk_editor=true check if user have editor permission
Проверить сессию пользователя и выполнить редирект, если она не существует, если параметр get $chk_editor=true. Проверить, имеет ли пользователь право на редактирование.
public function check_user_session($chk_editor=false) { if(!isset($_SESSION['waf_user'])) { header("Location:".$this->web_root."login.php"); exit(); } if($chk_editor) { if($_SESSION['waf_user']['editor']!=1) { header("Location:".$this->web_root."login.php"); exit(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function CheckEditorAccess () {\n global $zOLDAPPLE, $zLOCALUSER; \n\n // Check if user has ownership access to this page.\n if ($this->userAuth_uID != $zLOCALUSER->uID) {\n // Error out if user does not have access privileges.\n if ($zLOCALUSER->userAccess->e == FALSE) {\n re...
[ "0.7241359", "0.7141868", "0.6700139", "0.65274256", "0.63884443", "0.6382767", "0.6369899", "0.63438827", "0.6289857", "0.6264642", "0.6257137", "0.62311774", "0.62091875", "0.6197838", "0.61970085", "0.61871517", "0.61871517", "0.61840475", "0.6182625", "0.6182066", "0.6173...
0.8190253
0
/ Check user permission if editor return boolean $isEditor
Проверить разрешение пользователя, если редактор возвращает логическое значение $isEditor
public function isEditor(){ if($_SESSION['waf_user']['editor']==1)return true; else return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function isEditor() : bool\n {\n return $this->role('editor');\n }", "private function is_editor() {\n\t\tif ( is_user_logged_in() ) {\n\t\t\t// A global admin can edit content or change options anywhere.\n\t\t\tif ( is_super_admin() ) {\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\t$user = wp_ge...
[ "0.85934377", "0.8401555", "0.8334021", "0.8083149", "0.79949015", "0.79282385", "0.78088284", "0.7639448", "0.73351884", "0.7328055", "0.72536737", "0.72184384", "0.7203006", "0.7143602", "0.71411014", "0.7070593", "0.7042343", "0.7018856", "0.6981185", "0.698028", "0.696618...
0.8685569
0
Sets the breadcrumb function
Устанавливает функцию хлебных крошек
public function setBreadcrumbFunction($breadcrumbFunction) { $this->breadcrumbFunction = $breadcrumbFunction; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setBreadcrumb($value)\n {\n $this->breadcrumb = $value;\n }", "function _update_breadcrumb_line()\n {\n $tmp = Array();\n\n $tmp[] = Array\n (\n MIDCOM_NAV_URL => \"/\",\n MIDCOM_NAV_NAME => $this->_l10n->get('index'),\n );\n\n ...
[ "0.7498169", "0.7088845", "0.6953454", "0.6822319", "0.6819995", "0.6778419", "0.6736444", "0.66823405", "0.6647643", "0.66444796", "0.64597636", "0.64521104", "0.642525", "0.63829947", "0.63374287", "0.6299167", "0.62872136", "0.6261603", "0.62254965", "0.61998624", "0.61781...
0.74777883
1
Sorts two menu entries
Сортирует два элемента меню
public function sortMenuEntries($a, $b) { if ($a->getName() > $b->getName()) { return 1; } else if ($a->getName() < $b->getName()) { return -1; } else { return 0; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function bit_system_menu_sort( $a, $b ) {\n\t$pa = empty( $a['menu_position'] ) ? 0 : $a['menu_position'];\n\t$pb = empty( $b['menu_position'] ) ? 0 : $b['menu_position'];\n\n\tif( $pa == 0 && $pb == 0 ) {\n\t\treturn( strcmp( $pb['menu_title'], $pa['menu_title'] ));\n\t}\n\treturn $pb - $pa;\n}", "function _sor...
[ "0.734067", "0.7057595", "0.68397623", "0.68197584", "0.6785106", "0.6717615", "0.6608614", "0.6499931", "0.63212174", "0.62662125", "0.6238319", "0.61343586", "0.6118401", "0.610406", "0.6046195", "0.5979327", "0.5978467", "0.5969444", "0.5941777", "0.5922767", "0.5905694", ...
0.74024457
0
Returns the MenuEntry object for the given key or false if the key not is registred
Возвращает объект MenuEntry для заданного ключа или false, если ключ не зарегистрирован
public function getMenuEntryForKey($key) { foreach ($this->menuEntries as $location => $priorities) { foreach ($priorities as $priority=> $menuEntries) { $result = $this->searchMenuEntryForKey($menuEntries, $key); if ($result !== false) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function searchMenuEntryForKey($menuEntries, $key)\n {\n foreach ($menuEntries as $menuEntry) {\n if ($menuEntry->getKey() === $key) {\n return $menuEntry;\n } \n \n if ($menuEntry->hasChildren()) {\n $result = $this->search...
[ "0.6308309", "0.6089703", "0.6079577", "0.60297906", "0.5943737", "0.5939386", "0.59303355", "0.5919348", "0.58554643", "0.58303195", "0.58303195", "0.5821529", "0.5786239", "0.5759233", "0.5721624", "0.5681776", "0.56779075", "0.56609136", "0.562998", "0.56228584", "0.561782...
0.7341629
0
Sets the active menu entry
Устанавливает активную запись меню
public function setActiveMenuEntry(MenuEntry $menuEntry) { $this->activeMenuEntry = $menuEntry; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setActive() ;", "public function activate_menu_item($name)\n\t{\n\t\t$this->_active_item = $name;\n\t}", "public function activateCorrectMenuEntry()\n {\n $runtimeManager = $this->framework->getRuntimeManager();\n \n // Execute the pre search correct menu entry event.\n ...
[ "0.69507146", "0.6764874", "0.6717771", "0.6578063", "0.65773046", "0.65377104", "0.65371805", "0.64907527", "0.6424779", "0.6381764", "0.63167906", "0.61045295", "0.6027553", "0.598236", "0.598236", "0.5978799", "0.5977544", "0.59737927", "0.59562844", "0.5914073", "0.589090...
0.7102785
0
Returns the active menu entry
Возвращает активную запись меню
public function getActiveMenuEntry() { return $this->activeMenuEntry; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function MenuCurrentItem() {\n return $this->MainMenu()->find('Code', 'KapostAdmin');\n }", "protected function getActiveMenu() {\n return $this->activeMenu;\n }", "public function menu_get_active_title()\n {\n return menu_get_active_title();\n }", "protected function ge...
[ "0.76171947", "0.7398727", "0.72650653", "0.71255493", "0.69480824", "0.68818164", "0.68619317", "0.65622413", "0.65124947", "0.6501329", "0.6396206", "0.63932747", "0.63887715", "0.63488084", "0.63488084", "0.6335875", "0.6320585", "0.62986624", "0.6267226", "0.6244183", "0....
0.8777162
0
Activates the correct menu entry based on the event which is active.
Активирует правильную пункт меню в зависимости от активного события.
public function activateCorrectMenuEntry() { $runtimeManager = $this->framework->getRuntimeManager(); // Execute the pre search correct menu entry event. $runtimeManager->executeEvent('\\Zepi\\Web\\General\\Event\\MenuManager\\RegisterAdditionalMenuEntries'); // Sea...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function activate_menu_item($name)\n\t{\n\t\t$this->_active_item = $name;\n\t}", "function callbackTypePressed($entry,$event) {\n \n \n $this->table->database->designer->activeColumn = &$this;\n \n $v = $entry->get_text();\n $w = $this->table->database->glade->get_wid...
[ "0.57915694", "0.57555133", "0.5660276", "0.5526024", "0.55220443", "0.5503458", "0.5495116", "0.5464742", "0.5446163", "0.5313588", "0.51792496", "0.5169468", "0.51477724", "0.51447827", "0.5140434", "0.51336545", "0.5125016", "0.50915265", "0.50282484", "0.4951284", "0.4937...
0.7417432
0
Add Common Attribute Classes All component elements must include these classes. Call this function inside the main element loop.
Добавьте общие классы атрибутов. Все элементы компонента должны включать эти классы. Вызовите эту функцию внутри основного цикла элементов.
protected function add_common_attribute_classes(){ parent::add_common_attribute_classes(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function computeClassAttribute(): void\n {\n $classes = $this->options['class'] ?? null;\n $paramClasses = $this->getRenderer()->getParam('class');\n\n if (null !== $classes || null !== $paramClasses) {\n $this->attributes['class'] = array_merge(\n $this->a...
[ "0.620329", "0.57669747", "0.5718799", "0.5605502", "0.556327", "0.5553019", "0.55491734", "0.5495306", "0.53953105", "0.53612655", "0.5308782", "0.51955855", "0.5160199", "0.51428896", "0.5124133", "0.51166165", "0.5109687", "0.51070887", "0.50866926", "0.5084657", "0.508404...
0.8069374
0
Store a newly created Car in storage.
Храните только что созданный автомобиль в хранилище.
public function store(CreateCarRequest $request) { $this->validate($request, [ 'image' => 'required|image|mimes:jpeg,png,jpg,gif,svg|max:2048', ]); if($request->hasfile('image')){ $car = $request->except('image'); $photoName = time().'.'.$request...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store(StoreCarRequest $request)\n {\n $validated = $request->validated();\n $car = new Car($validated);\n $car->driver_id = $request->input('driver');\n $car->club_id = $request->input('club');\n $car->save();\n if($car->save()){\n $this->uplo...
[ "0.74836516", "0.71509016", "0.71382755", "0.71193516", "0.7058226", "0.69973844", "0.69785565", "0.6959708", "0.68579227", "0.6828805", "0.6814692", "0.6805922", "0.68043154", "0.6780394", "0.6753763", "0.6664287", "0.66244805", "0.65989095", "0.6587055", "0.6582466", "0.651...
0.72009593
1
Role has many children roles
Роль имеет множество дочерних ролей
public function children() { return $this->hasMany(config('rbac.models.role'),'parent_id'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function roles(): MorphToMany;", "public function roles() {\n return $this->belongsToMany('Models\\Role');\n }", "public function roles(){\n return $this->belongsToMany(Role::class);\n }", "public function roles(){\n return $this->belongsToMany('App\\Role');\n }", "public fun...
[ "0.75658643", "0.6774225", "0.67420673", "0.6740949", "0.67383605", "0.6737504", "0.67313385", "0.67304564", "0.6707756", "0.67049813", "0.66986555", "0.66757894", "0.6669166", "0.6660457", "0.66518956", "0.66518956", "0.66518956", "0.66518956", "0.66021305", "0.65925086", "0...
0.761861
0
Get a safe HTML version of the contents of this object.
Получите безопасную HTML-версию содержимого этого объекта.
public function getSafeHtml() { return Html::safe($this->render()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function html(): string\n {\n $parser = new \\Parsedown();\n return $parser->text($this->data);\n }", "public function getHtml()\n {\n return $this->_getHtml();\n }", "public function html()\n {\n if (!$this->hasContent() && !$this->isEditable()) {\n return ...
[ "0.8089027", "0.7906043", "0.7902015", "0.7870604", "0.7849013", "0.7803154", "0.7752249", "0.7679845", "0.76088995", "0.75695163", "0.75392264", "0.7508833", "0.7493015", "0.74838114", "0.7472047", "0.74673504", "0.74557716", "0.74306417", "0.7426232", "0.7405046", "0.740124...
0.81880164
0
fix searching data that's not from current page not working bug when update search query reset page to 1 and render component again with searched results
исправить баг, при котором поиск данных, не относящихся к текущей странице, не работал, когда обновлялся поиск, сброс страницы до 1 и повторная отрисовка компонента с результатами поиска
public function updatingSearch() { $this->resetPage(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updatingSearch()\n {\n $this->gotoPage(1);\n }", "public function search(Request $request){\n\n if($request->ajax()){\n $currentPage = ($request->start == 0) ? 1: (($request->start/$request->length) + 1);\n\n Paginator::currentPageResolver(function () use...
[ "0.6650732", "0.6233761", "0.61807907", "0.61158156", "0.59885556", "0.5869573", "0.5832854", "0.5816166", "0.5810481", "0.5800714", "0.5792097", "0.57828337", "0.57188225", "0.57156813", "0.57129014", "0.57100105", "0.57094", "0.56994367", "0.5696454", "0.56943333", "0.56788...
0.72716206
0
Return contact associated with portal user.
Вернуть контакт, связанный с пользователем портала.
public function getPortalContact() { return BeanFactory::getBean('Contacts', $_SESSION['contact_id']); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function contact()\n {\n $breadCrumb = $this->userEngine->breadcrumbGenerate('contact');\n\n return $this->loadPublicView('user.contact', $breadCrumb['data']);\n }", "public function getContact()\n {\n $userId = Yii::$app->user->id;\n\n if ($userId == $this->author_id)...
[ "0.6540644", "0.64971185", "0.6258373", "0.6175739", "0.6136641", "0.6098643", "0.6088409", "0.60440177", "0.60440177", "0.60440177", "0.6007838", "0.5928751", "0.5888979", "0.58175963", "0.58092815", "0.5763633", "0.57261264", "0.5709955", "0.5653239", "0.56172657", "0.56046...
0.7245758
0
CONTACT FORM ~ GET SHORTCODE DATA
ФОРМА КОНТАКТА ~ ПОЛУЧЕНИЕ ДАННЫХ КОДА СОКРАЩЕНИЯ
function htheme_contact_shortcode( $atts ) { #SETUP CONTENT CLASS $htheme_data = $this->htheme_content->htheme_get_contact_form($atts); #RETURN DATA/HTML return $htheme_data; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function speakerbureau_form($atts, $content=null) {\n\n $atts = shortcode_atts(\n array(),\n $atts,\n 'contact_form'\n );\n\n // return HTML\n ob_start();\n include 'templates/contact-form.php';\n\n return ob_get_clean();\n}", "function add_shortcode() {\n\t\tadd_shortcode( 'contact-form', ...
[ "0.61633044", "0.6121503", "0.60859764", "0.6082614", "0.60823184", "0.6026267", "0.59692657", "0.5909108", "0.5904876", "0.58953154", "0.58811325", "0.5868867", "0.58509797", "0.5822075", "0.5751917", "0.5730759", "0.5728559", "0.5694636", "0.5659769", "0.56559426", "0.56314...
0.7568667
0
Calcula el presupuesto inicial
Рассчитайте начальный бюджет
public function calcularPresupuestoInicial(){ $presupuesto = DB::table('tpresupuesto_tpartida') ->where('tPresupuesto_idPresupuesto','=', $this->idPresupuesto) ->sum('iPresupuestoInicial'); $this->iPresupuestoInicial = $presupuesto; $this->save(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function puestaACero() {\n $this -> horas = 0;\n $this -> minutos = 0;\n $this -> segundos = 0;\n }", "public function presupuestoModificado(){\n $this->iPresupuestoModificado = $this->iPresupuestoInicial;\n $this->save();\n }", "function procesar_cambio ($datos)...
[ "0.6806355", "0.6395317", "0.6303117", "0.62176436", "0.6172696", "0.6153721", "0.61132586", "0.60826343", "0.6030712", "0.60282046", "0.5991717", "0.5965033", "0.5964254", "0.595299", "0.59311986", "0.5898878", "0.5886067", "0.5863368", "0.58508086", "0.58442086", "0.5839636...
0.78408146
0
Devuelve el gasto como porcentaje
Возвращает расход в процентах
public function calcularGastoPorcentaje(){ if($this->iPresupuestoModificado == 0) return 0; $porcentajeGasto = ($this->iGasto/$this->iPresupuestoModificado)*100; return $porcentajeGasto; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function darCostos(){\n\t\t/*variables: int $valor, float $costo*/\n\t\t$valor = parent::darCostos();\n\t\t$costo = $valor + ($valor * $this->getPorcentajeIncremento()); //45% incremento \n\t\treturn $costo;\n\t}", "function porcentaje($dias) {\r\n $porcentaje = (($dias * 100) / 20);\r\n ret...
[ "0.6488257", "0.64139944", "0.6208787", "0.62072027", "0.620591", "0.6202749", "0.61097765", "0.6058402", "0.60525036", "0.6018462", "0.5989992", "0.5893499", "0.58719504", "0.5870457", "0.5854473", "0.58371997", "0.58366835", "0.5806641", "0.5806075", "0.58059734", "0.580546...
0.76701653
0
Render an exception into an HTTP response.
Отобразить исключение в HTTP-ответе.
public function render(ServerRequestInterface $request, Throwable $exception): ResponseInterface;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function render($request, Throwable $e): Response\r\n {\r\n if($this->app->isDebug()){\r\n return parent::render($request, $e);\r\n }else{\r\n $data = [\r\n 'code' => $e->getCode(),\r\n 'message' => $e->getMessage(),\r\n ];\r\n...
[ "0.7122214", "0.7050922", "0.7050922", "0.704035", "0.6992839", "0.6990034", "0.6980675", "0.697365", "0.6950051", "0.69485855", "0.69412524", "0.69336146", "0.6920026", "0.6887852", "0.68392885", "0.68298024", "0.68196106", "0.681052", "0.6803951", "0.6795277", "0.6779122", ...
0.73116726
0
Setup the default contraints for the query.
Настройте стандартные ограничения для запроса.
public function setDefaultQueryContraints() { $this->addQueryConstraint($this->query->equals('nceShowasnew', TRUE)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addConstraints()\n {\n if (static::$constraints)\n {\n $this->query->where($this->foreignKey, '=', $this->getParentKey());\n\n $this->query->whereNotNull($this->foreignKey);\n\n $this->query->where($this->rootKey, '=', $this->getRootKey());\n\n ...
[ "0.6626628", "0.6403702", "0.6273802", "0.6125893", "0.607185", "0.59257704", "0.58785343", "0.58625996", "0.5688693", "0.5669494", "0.5659989", "0.56414527", "0.5594762", "0.5575131", "0.55607647", "0.55088186", "0.5476084", "0.547179", "0.543233", "0.54034877", "0.5387157",...
0.7994957
0
Resets query and query constraints after execution
Сбрасывает запрос и ограничения запроса после выполнения
private function resetQuery() { unset($this->query); $this->query = $this->createQuery(); unset($this->queryConstraints); $this->queryConstraints = array(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function resetQuery()\n {\n $this->bindings = [];\n $this->types = [];\n }", "public function resetQuery(): void\n\t{\n\t\t$this->state = new State();\n\t\t$this->explain = FALSE;\n\t}", "protected function resetQuery()\n {\n array_forget($this->query, ['start', 'end']);...
[ "0.76145965", "0.7042172", "0.6953227", "0.6907359", "0.6779504", "0.6733725", "0.6706879", "0.6635447", "0.6625172", "0.6475362", "0.6409714", "0.63546824", "0.6346071", "0.6322127", "0.63168746", "0.62814224", "0.6276047", "0.62732214", "0.62639076", "0.62574345", "0.625323...
0.8330525
0
Return the UIDs of selected pages for further use
Вернуть UIDs выбранных страниц для дальнейшего использования
public function getSelectedPageUids() { return $this->selectedPageUids; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getStoragePageIds() ;", "function get_all_page_ids()\n {\n }", "protected function getPageIds()\n {\n return (array)explode(',', $this->getData('pages'));\n }", "public function getSelectedPages()\n {\n $cids = $this->getCIDs();\n if( !empty( $cids ) ){\n ...
[ "0.64017624", "0.6304705", "0.6153742", "0.612118", "0.61088485", "0.6036541", "0.59937125", "0.5991758", "0.59890854", "0.5919769", "0.58206403", "0.5796494", "0.578596", "0.57403535", "0.56274617", "0.55286366", "0.551507", "0.5406728", "0.5370984", "0.5370984", "0.53202176...
0.81150657
0
Get the closing tag for the area to be highlighted
Получить закрывающий тег для области, которую нужно выделить
public function getClosingTag() { return $this->closingTag; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function closing_tags()\r\n\t{\r\n\t\treturn $this->closing_tags;\r\n\t}", "public function closeTag()\n {\n return '</span>';\n }", "public function getCloseTagWrapper()\n {\n }", "public function closeTag(): string\n {\n return $this->templateCloseTag;\n }", "functi...
[ "0.70991933", "0.69608766", "0.6670346", "0.6612915", "0.6522574", "0.6322254", "0.61604345", "0.6137494", "0.61174506", "0.6109525", "0.5959008", "0.58722806", "0.5839336", "0.57955265", "0.5742165", "0.5718397", "0.5710853", "0.57077086", "0.5703293", "0.5664403", "0.563674...
0.7262696
0
Get the opening tag for the area to be highlighted
Получить открывающий тег области, которую нужно выделить
public function getOpeningTag() { return $this->openingTag; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTagName ()\n\t{\n\t\treturn 'area';\n\t}", "public function getOpenTagWrapper()\n {\n }", "public function getHighlighting()\n {\n return $this->result->getHighlighting();\n }", "public function getHighlighter() {\n return $this->getPane()->getSyntaxHighlighter();\n ...
[ "0.62679464", "0.6212145", "0.6095675", "0.6091514", "0.6055407", "0.6055407", "0.6055407", "0.6055407", "0.6055407", "0.58948153", "0.585592", "0.58004344", "0.5794036", "0.5789471", "0.5789471", "0.57732326", "0.5766607", "0.5742121", "0.5702682", "0.55889666", "0.55889666"...
0.72574085
0
Highlight the given haystack with the needles provided earlier
Выделите данный стек с использованием иголок, предоставленных ранее
public function highlight($haystack) { $lwHaystack = self::normalize(mb_strtolower($haystack)); $positions = array(); // Look up all the needle positions foreach ($this->needles as $needle) { $offset = 0; while (($position = mb_strpos($lwHaystack, $needle, $offset)) !== FALSE) { $en...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function highlightStr($haystack, $needles) {\n\t if (strlen($haystack) < 1) {\n\t return $haystack;\n\t }\n\n\t foreach ($needles as $needle) {\n\t \t \n\t\t preg_match_all(\"/$needle+/i\", $haystack, $matches);\n\t\t \n\t\t if (is_array($matches[0]) && count($matches[0...
[ "0.7831817", "0.6750884", "0.6566046", "0.6544423", "0.6519218", "0.6398742", "0.63001734", "0.6143135", "0.6094682", "0.605018", "0.6030337", "0.601079", "0.59128654", "0.58789045", "0.5864789", "0.58440757", "0.58070123", "0.57620096", "0.57392436", "0.5675942", "0.56594455...
0.776601
1
Approve the job post via moderate_token
Одобрите вакансию через moderate_token
public function tokenApprove($token) { $job = Job::where('moderate_token',$token)->firstOrFail(); $job->moderate_token = null; $job->status = 'approved'; // Try and save to DB. try{ $job->save(); // Flash success message session()->flash(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function approve() {\n\n }", "public function approve_submission(Request $request)\n {\n }", "public function actionApprove(){\n \t// Set no waiting limit\n \tset_time_limit(0);\n \t// REST client is flash app\n \t$this->restFlashClient = true;\n \t\n \tif (!isset($_POST[...
[ "0.6939692", "0.6797803", "0.6728862", "0.66746557", "0.667153", "0.6660646", "0.64801925", "0.6322753", "0.63020104", "0.62854755", "0.62600267", "0.6244101", "0.62281847", "0.62237406", "0.62062454", "0.62000924", "0.61977255", "0.61091346", "0.610495", "0.60885733", "0.607...
0.74550813
0
Send job post to spam via moderate_token
Отправить объявление о вакансии в спам через moderate_token
public function tokenSpam($token) { $job = Job::where('moderate_token',$token)->firstOrFail(); $job->moderate_token = null; $job->status = 'spam'; // Try and save to DB. try{ $job->save(); // Flash success message session()->flash('flash-...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function akismet_submit_spam( $key, $data ) {\n\t\t$new_data = $this->dwqa_prepare_data($data);\n\t\t$request = '';\n\n\t\tforeach($new_data as $kData => $vData){\n\t\t\tif($request == ''){\n\t\t\t\t$request .= $kData.'='.urlencode($vData);\n\t\t\t}else{\n\t\t\t\t$request .= '&'.$kData.'='.urlencode($vData)...
[ "0.6192455", "0.5879075", "0.5839891", "0.58202016", "0.57216257", "0.5653712", "0.5597701", "0.55860347", "0.55549276", "0.5550753", "0.54438525", "0.5408308", "0.5406064", "0.5396363", "0.5391086", "0.5371634", "0.5361137", "0.53269106", "0.53263074", "0.5323215", "0.530480...
0.7060149
0
Return Category ID from human readable slug
Вернуть ID категории из человеко-читаемого слэша
function gimme_an_id($slug) { $mytermID = get_term_by( 'name', $slug, 'category' ); return (int)$mytermID->term_id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function alaya_cat_id($cate_slug){\n $category=get_term_by('slug',$cate_slug,'category');\n if($category){\n\t $cate_id = $category->term_id;\n\t $cate_id = apply_filters('alaya_cat_id', $cate_id);\n\t return $cate_id;\n\t}\n}", "function L_getCatSlug($cat_id) {\n\t\n\t\t$cat_id = (int) $cat_id;\n\t\t$cate...
[ "0.7460478", "0.7325939", "0.72294277", "0.7009524", "0.7009524", "0.69626385", "0.69202733", "0.6872987", "0.6853521", "0.68481034", "0.6831704", "0.6730829", "0.65874755", "0.65291965", "0.65256464", "0.64748406", "0.6460993", "0.6386902", "0.63711923", "0.635925", "0.63503...
0.7481288
0
Display Mail Information method: displays the information of mails of an account Return Type: String
Метод Display Mail Information: отображает информацию о почтах учетной записи. Тип возвращаемого значения: String
function displayMailInformation() { // query saved mails of the account $savedMailsQuery = mysql_query("SELECT mail_id FROM argus_mails WHERE account_id = '".$this -> accountId."' AND status = 'SAVED'") or die(mysql_error()); // query deleted mails of the account...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show_mails() {\n\t\t\tforeach($this->$mails as $key => $value) {\n\t\t\t\techo <<<_END\n\t\t\t\t<div>\n\t\t\t\t\t<p>Date: $key</p>\n\t\t\t\t\t<p>Name: $value[0]</p>\n\t\t\t\t\t<p>Subject: $value[1]</p>\n\t\t\t\t\t<p>Message: $value[2]</p>\n\t\t\t\t</div>\n_END;\n\t\t\t}\n\t\t}", "public function ...
[ "0.74894893", "0.69636464", "0.68996704", "0.68996704", "0.67480737", "0.6674594", "0.6643189", "0.6472279", "0.646487", "0.6350385", "0.6117464", "0.6105979", "0.60944164", "0.60355836", "0.6011078", "0.60056406", "0.59935606", "0.59884924", "0.59850794", "0.59800434", "0.59...
0.8335917
0
Display Article Information method: displays the information of articles of an account Return Type: string
Метод отображения информации о статье: отображает информацию о статьях учетной записи Тип возвращаемого значения: строка
function displayArticleInformation() { // query saved articles of the account $savedArticlesQuery = mysql_query("SELECT saved_article_id FROM argus_saved_articles WHERE account_id = '".$this -> accountId."' AND status = 'SAVED'") or die(mysql_error()); // query delet...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show(article $article)\n {\n //\n }", "public function show(Article $article)\n {\n //\n }", "public function show(Article $article)\n {\n //\n }", "public function show(Article $article)\n {\n //\n }", "public function show(Article $artic...
[ "0.75047034", "0.74511707", "0.74511707", "0.74511707", "0.74511707", "0.74511707", "0.74511707", "0.74511707", "0.7236449", "0.7200285", "0.68858", "0.68219465", "0.6788208", "0.67329335", "0.67231", "0.6669494", "0.66422224", "0.66155106", "0.66142803", "0.66027665", "0.657...
0.83165866
0
Display Image Information method: displays the information of images of an account Return Type: string
Метод Display Image Information: отображает информацию об изображениях аккаунта Тип возвращаемого значения: строка
function displayImageInformation() { // query the number of saved images of the account $savedImagesQuery = mysql_query("SELECT image_id, path FROM argus_images WHERE account_id = '".$this -> accountId."' AND status = 'SAVED'") or die(mysql_error()); // query the...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function showImage()\n {\n }", "public static function xms_id_display() { \r\n\t $customer_id = new Customer_ID_Model();\r\n\t $results = $customer_id->getUserProfile();\r\n\t \r\n\t foreach($results as $result){\r\n\t \t$user_image = $result->profile;\r\n\t }\r\n\t $user_img = $user_...
[ "0.71969134", "0.7167269", "0.70561975", "0.70375687", "0.6981526", "0.6919121", "0.6883358", "0.6873932", "0.6828637", "0.68230736", "0.6763433", "0.6741668", "0.6730126", "0.66992986", "0.6687307", "0.66856223", "0.6665258", "0.6653718", "0.6648457", "0.6648457", "0.6648457...
0.78861815
0
technosanjay 13 aug update tutor fee function
technosanjay 13 авг обновление функции оплаты за обучение
public function update_tutor_fee($tid,$fee) { $sql = "UPDATE profile SET money = money + {$fee} WHERE uid = {$tid} "; $query = $this->db->query($sql); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function updateFee()\n {\n global $db;\n $requete = $db->prepare('UPDATE fees SET date=? , nature=? , amount=? , site_id=? where idF = ?');\n $requete->execute(array(\n $this->date,\n $this->nature,\n $this->amount,\n $this->site_id,\n ...
[ "0.6855384", "0.66381496", "0.6138829", "0.61247987", "0.6102331", "0.60578984", "0.6002305", "0.59996736", "0.59562373", "0.5938338", "0.59159136", "0.58530825", "0.584071", "0.5838001", "0.5808989", "0.5776106", "0.57272685", "0.5711558", "0.5685556", "0.5678554", "0.566647...
0.7213401
0
Returns an associative array containing the login name of the user and all groups that this user belongs to... (the same names that are stored in aigaion in the abbreviation). Expects user and password to be stored in the POST
Возвращает ассоциативный массив, содержащий имя входа пользователя и все группы, к которым этот пользователь принадлежит... (те же имена, которые хранятся в aigaion в виде сокращения). Ожидает, что пользователь и пароль будут сохранены в POST
function getLoginInfo() { //get username and/or pwd from POST $loginName = ''; $loginPwd = ''; $groups = array(); if (((isset($_POST["loginName"]))) && (isset($_POST['loginPass']))) { #user logs in via login screen. //get username & pwd ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getUserGroups()\n\t{\n\t\tself::authenticate();\n\n\t\t$uname = FormUtil::getPassedValue('user', null);\n\t\tif($uname == null) {\n\t\t\treturn self::retError('ERROR: No user name passed!');\n\t\t}\n\n\t\t$uid = UserUtil::getIdFromName($uname);\n\t\tif($uid == false) {\n\t\t\treturn self::ret(false...
[ "0.6442258", "0.62211996", "0.6197355", "0.6196789", "0.61867046", "0.61810845", "0.61763346", "0.61445475", "0.61155564", "0.6109251", "0.6087534", "0.6061973", "0.60123587", "0.5993308", "0.5983546", "0.59766734", "0.59608984", "0.59579414", "0.5914408", "0.5886348", "0.583...
0.7024751
0
Prepares and returns HTML for site settings meta box
Подготавливает и возвращает HTML для мета-ящика настроек сайта
public function getSettingsMetaBox() { global $post; // Set Tiny MCE settings so that it allows custom HTML codes and keeps them unchanged add_filter('tiny_mce_before_init', function($settings) { // Disable autop to keep all valid HTML elements $settings['wpautop'] = fa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create_global_settings_meta_box() {\n\t\tglobal $post;\n\t\tinclude( $this->parent->assets_dir .'template-parts/global-settings.php' );\n\t}", "function hoopsai_wp_settings_do_page() {\n ?>\n <div id=\"hoopsai_wp_settings\"></div>\n <?php\n }", "public function settings_...
[ "0.72334504", "0.7040342", "0.6931571", "0.69235134", "0.6868839", "0.68381244", "0.6829756", "0.68215984", "0.6794766", "0.67935157", "0.67840713", "0.6758829", "0.6746244", "0.6745329", "0.67356724", "0.66991067", "0.6663417", "0.666196", "0.6637209", "0.6632202", "0.65741"...
0.74349797
0
Determine is form multipart.
Определить, является ли форма множественными.
public function isMultipart() { return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isMultipart()\n {\n return $this->getAttribute('enctype') === 'multipart/form-data';\n }", "public function hasFileUpload()\n\t{\n\t\treturn stripos($this->server->get('CONTENT_TYPE'),'multipart/form-data')!==false;\n\t}", "public function isFormRequest()\n {\n return str...
[ "0.849913", "0.745367", "0.742195", "0.7236545", "0.6848393", "0.6618934", "0.65379214", "0.6521462", "0.6375244", "0.6248783", "0.62401587", "0.61576617", "0.6123091", "0.60607517", "0.6056421", "0.6027554", "0.599397", "0.5958183", "0.594125", "0.59272295", "0.58803827", ...
0.8170645
1
beforeFilter Checks to make sure that the action is accessible for the current user. Admins can see everything Merchants can see their deals, regardless of the deal's state, except the purchase page Travelers can only see live deals
beforeFilter Проверяет, доступно ли действие для текущего пользователя. Администраторы могут видеть всё. Мерчанты могут видеть свои предложения, независимо от состояния предложения, кроме страницы покупки. Путешественники могут видеть только живые предложения
function beforeFilter() { parent::beforeFilter(); //Use the beforeFilter in the app_controller $restrictedActions = array("view", "book", "purchase", "confirmation", "deal_details"); if(in_array($this->action, $restrictedActions)) { if(!$this->Session->read('Auth.User') || $this->Session->read('Auth.User.role...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function beforeFilter() {\n\t\tparent::beforeFilter();\n\t\t$this->Auth->allow('view', 'shopfront', 'frontpage');\n\t\n\t\tif ($this->request->action == 'admin_toggle' ||\n\t\t $this->request->action == 'admin_menu_action') {\n\t\t\t$this->Components->disable('Security');\n\t\t}\n\t\t\n\t}", "public fu...
[ "0.76355666", "0.75814664", "0.75806653", "0.75613505", "0.75162417", "0.75074995", "0.74649084", "0.7419355", "0.7411836", "0.74028945", "0.7390837", "0.73830235", "0.73826915", "0.73782885", "0.73659736", "0.73613495", "0.73529303", "0.734229", "0.7321203", "0.7314299", "0....
0.85056436
0
Email function used to send Deal information.
Функция электронной почты, используемая для отправки информации о сделке.
function sendDealMail($dealID, $venueID, $template) { $this->loadModel('Merchant'); $Deal = $this->Deal->read(null, $dealID); $Venue = $this->Deal->Venue->read(null, $venueID); //Used for email address $Merchant = $this->Merchant->read(null, $Venue['Merchant']['id']); //Used for email address $this->set(compa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function paid_sendEmail_owner($details) {\n\t\t\t\t$currencycode = $details->currCode;\n\t\t\t\t$currencysign = $details->currSymbol;\n\n\t\t\t\t$custid = $details->bookingUser;\n\t\t\t\t$country = $details->userCountry;\n\t\t\t\t$name = $details->userFullName;\n\t\t\t\t$phone = $details->userMobile;\n\t\t\t\t$pay...
[ "0.7263319", "0.7168908", "0.7162454", "0.7002419", "0.6898813", "0.6894811", "0.6809093", "0.6728462", "0.67037886", "0.6696657", "0.665636", "0.6642889", "0.6639648", "0.6602318", "0.6601271", "0.6597201", "0.6495467", "0.649343", "0.64928764", "0.6472409", "0.6457732", "...
0.746747
0
Email function used to send purchase information to a traveler
Функция электронной почты, используемая для отправки информации о покупке путешественнику
function sendPurchaseMail($dealID, $travelerID, $purchaseID, $template) { $this->loadModel('Traveler'); $this->loadModel('Venue'); $deal = $this->Deal->read(null, $dealID); $dealPurchase = $this->Deal->DealPurchase->read(null, $purchaseID); $venue = $this->Venue->read(null, $deal['Deal']['venue_id']); $trav...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function sendShipmentConfirmationEmail($email_address, $name, $delivery_address, $purchase_id_arr, $auction_title_arr, $auction_qtys_arr, $tracking_num){\r\n\r\n\t\t/* Generate option banner image for dispaly as header of email */\r\n\t\t$banner_image_url = \"\";\t\t\t\t\t\t\t\t\t\t// Shop logo image or similar, e...
[ "0.7273202", "0.7125367", "0.70994866", "0.70674753", "0.70030063", "0.69059825", "0.690506", "0.69015664", "0.6889649", "0.6813307", "0.68112326", "0.6805298", "0.6776317", "0.6738305", "0.66728246", "0.65899265", "0.6569081", "0.65274763", "0.65194213", "0.6512158", "0.6505...
0.75780284
0
Admin_Clone This function clones an existing deal. All deal details, the venue, and the merchant are the same other than the name of the deal, which changes to 'Clone of ...'
Admin_Clone Эта функция копирует существующий сделку. Все детали сделки, место проведения и продавец остаются такими же, кроме имени сделки, которое меняется на «Копия ...»
function admin_clone ($id = null) { if (!$id) { $this->Session->setFlash(__('Invalid id for deal', true)); $this->redirect(array('action'=>'index')); } else{ $this->Deal->recursive = -1; $this->Deal->Venue->recursive = -1; $dealToClone = $this->Deal->read(null, $id); //Clone venue first $venu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __clone() {\n\t\t\t_doing_it_wrong( __FUNCTION__, __( 'Cloning this class could cause catastrophic disasters!', 'be-table-ship' ), '4.0' );\n\t\t}", "public function __clone()\n {\n _doing_it_wrong( __FUNCTION__, __( 'Cheatin&#8217; huh?', 'uni-cpo' ), '1.0.0' );\n }", "public func...
[ "0.61058223", "0.60512614", "0.5883058", "0.58385676", "0.58377075", "0.58350825", "0.58350825", "0.5813831", "0.5798114", "0.57867485", "0.5779953", "0.57679516", "0.57416576", "0.5723983", "0.57187474", "0.566641", "0.5651433", "0.5643115", "0.5626616", "0.5587772", "0.5575...
0.788194
0
/ Book First page of deal purchase process. Users book their dates on this page. The controller checks the reservation type of the deal then takes different actions based on the type. On form submission, the controller calculates the trip start, end, nights, and cost and passes to the purchase controller.
Первая страница процесса покупки сделки. Пользователи бронируют даты на этой странице. Контроллер проверяет тип резервации сделки, а затем выполняет различные действия в зависимости от типа. При отправке формы контроллер рассчитывает начало, окончание поездки, количество ночей и стоимость, а затем передает их контролле...
function book($id = null) { if($this->RequestHandler->isAjax()){ $this->redirect(array('controller' => 'deals', 'action'=>'getDealInfo',$id)); } $deal = $this->Deal->read(null, $id); $reservationType = $this->Deal->GetReservationType($id); $this->Deal->DealPurchase->set($this->data); if(!empty($this->...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function actionBooking() {\n $model = new Reservation();\n $check_in_date = Yii::$app->request->post('check_in');\n $check_out_date = Yii::$app->request->post('check_out');\n $rate_plan = Yii::$app->request->post('rate_plan_id');\n $total_amount = Yii::...
[ "0.6775984", "0.65622246", "0.63966703", "0.61279714", "0.60800725", "0.60483086", "0.6000866", "0.5908626", "0.58350873", "0.5808475", "0.57352257", "0.5709834", "0.5696367", "0.56948495", "0.5692971", "0.56772834", "0.5670389", "0.5658132", "0.562335", "0.5620064", "0.56153...
0.7214966
0
editAvailabilitiesCall takes the $id of a deal and a $date and returns the DealAvailability record for that day. It is called by the editAvailabilities page. newCount is passed by ajax when the record is updated.
editAvailabilitiesCall принимает $id сделки и $date и возвращает запись DealAvailability для этого дня. Она вызывается страницей editAvailabilities. newCount передается через ajax при обновлении записи.
function editAvailabilitiesCall($id = null, $date = null, $newCount = null) { $this->data = $this->Deal->DealAvailability->find('first', array( 'conditions' => array( 'DealAvailability.reservation_date' => $date, 'DealAvailability.deal_id' => $id ))); if (!is_null($newCount)) { $this->data['DealAvailabilit...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Avi_Update(){\n\t\t\n\t\t\n\t\t//when click on button\n\t\tif(isset($_POST['avibtnupdate'])){\n\t\t\t\n\t\t\t//move id into variable\n\t\t\t$get_id = $_GET['Edit'];\n\t\t\t\n\t\t\t//values for table \n\t\t\t$values = \"monday='\".$_POST['monstart'].\" - \".$_POST['monend'].\"',tuesday='\".$_POST['tustart'...
[ "0.57474536", "0.56431544", "0.5490453", "0.5487746", "0.5482243", "0.54545474", "0.54128766", "0.538603", "0.5308038", "0.52677566", "0.5236906", "0.5206989", "0.51845634", "0.5150647", "0.5132046", "0.51307416", "0.51098865", "0.5104587", "0.50956184", "0.50948125", "0.5093...
0.8563384
0
Show the form for creating a new Biologico.
Показать форму для создания нового Biologico.
public function create() { return view('biologicos.create'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function actionCreate()\n {\n $model = new Bilancio();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);...
[ "0.7538942", "0.7130998", "0.6979091", "0.69746834", "0.68850327", "0.6867334", "0.68261456", "0.68257475", "0.6824613", "0.6807144", "0.6790345", "0.6759647", "0.6740502", "0.6722436", "0.6704205", "0.66978836", "0.66935056", "0.6690134", "0.6675361", "0.66726345", "0.666182...
0.74763286
1
Store a newly created Biologico in storage.
Храните только что созданного Biologico в хранилище.
public function store(CreateBiologicoRequest $request) { $input = $request->all(); $biologico = $this->biologicoRepository->create($input); Flash::success('Biologico saved successfully.'); return redirect(route('biologicos.index')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store(Request $request)\n {\n $biologica = new biologica();\n $biologica->coliformes = $request->input(\"coliformes\");\n $biologica->bacterias = $request->input(\"bacterias\");\n $biologica->save();\n return redirect()->route('biologicas.index');\n }", "p...
[ "0.6104917", "0.60954803", "0.60004944", "0.5975716", "0.59124327", "0.5854628", "0.5839037", "0.5839037", "0.5839037", "0.58337593", "0.5823133", "0.5823133", "0.5823133", "0.58083594", "0.5801313", "0.5788228", "0.5788228", "0.5788228", "0.5788228", "0.5788228", "0.5788228"...
0.7074708
0
Show the form for editing the specified Biologico.
Показать форму для редактирования указанного Biologico.
public function edit($id) { $biologico = $this->biologicoRepository->find($id); if (empty($biologico)) { Flash::error('Biologico not found'); return redirect(route('biologicos.index')); } return view('biologicos.edit')->with('biologico', $biologico); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function edit(Biologica $biologica)\n {\n //\n }", "public function edit(bacteriologia $bacteriologia)\n {\n //\n }", "public function edit(Oficina $oficina)\n {\n //\n }", "public function edit($id)\n\t{\n\t\t// get the fbf_historico_atleta_cameponato\n\t\t$fbf_...
[ "0.7963107", "0.70377886", "0.6965902", "0.6909917", "0.6853952", "0.6841997", "0.6839032", "0.6839032", "0.6807235", "0.68012786", "0.68012035", "0.679948", "0.67871124", "0.6770072", "0.6718543", "0.6712965", "0.670959", "0.66988003", "0.66710615", "0.66681254", "0.6654224"...
0.7219169
1
register the Publications post type
регистрация типа записей Publications
function publications(){ register_post_type('publication', array( 'supports' => array('title', 'editor', 'excerpt'), 'rewrite' => array('slug' => 'publications'), 'has_archive' => true, 'public' => true, 'labels' => array( 'name'=> 'Publications', 'add_new_item' => 'Add New Publication', 'edit_item...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function publication_init() {\n\tregister_post_type( 'publication', array(\n\t\t'hierarchical' => false,\n\t\t'public' => true,\n\t\t'show_in_nav_menus' => true,\n\t\t'show_ui' => true,\n\t\t'menu_position'\t\t => 7,\n\t\t'supports' => array( 'title', 'editor' ),\n\t\t'...
[ "0.8069231", "0.7865866", "0.7496521", "0.7475055", "0.7348508", "0.72588396", "0.72421104", "0.7241531", "0.7231087", "0.7208149", "0.72025037", "0.7182529", "0.71819395", "0.7171603", "0.7131368", "0.71018517", "0.7039566", "0.7037429", "0.70009565", "0.69926655", "0.696615...
0.8643727
0
Cache the Home Care permissions.
Кэшируйте разрешения для домашнего ухода.
private function cachePermissions(): void { Cache::put($this->cacheKey(), [ 'isPayor' => $this->isPayor, 'isAgencyBankAccountSetup' => $this->isAgencyBankAccountSetup, 'canViewDocumentation' => $this->canViewDocumentation, ]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function cachePermissions()\n\t{\n\t\t$this->userPermissions = $this->userPermissions()->get(); // refresh directly applied permissions\n\t\t$this->roles = $this->roles()->get(); // refresh roles\n\n\t\t$this->permissions = []; // clear permissions array in case it has already been populated\n\n\t...
[ "0.71013033", "0.67744493", "0.664758", "0.6589053", "0.64686024", "0.63474643", "0.61687756", "0.6154711", "0.6100817", "0.6091688", "0.5963108", "0.5955202", "0.59032655", "0.587342", "0.5852211", "0.5675778", "0.56531155", "0.56469697", "0.56205565", "0.56031317", "0.55589...
0.7809016
0
Save the Home Care permissions.
Сохраните разрешения Home Care.
private function savePermissions(): void { $this->client->isPayor = $this->isPayor; $this->client->isAgencyBankAccountSetup = $this->isAgencyBankAccountSetup; $this->client->canViewDocumentation = $this->canViewDocumentation; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function save()\n\t{\n\t\tparent::save();\n\t\t\n\t\tif ( $this instanceof \\IPS\\Node\\Permissions and $this->_permissions !== NULL and $this->_permissions != $this->_originalPermissions )\n\t\t{\n\t\t\tif ( !isset( $this->_permissions['perm_id'] ) )\n\t\t\t{\n\t\t\t\tforeach ( array( 'app' => static::$per...
[ "0.64439356", "0.6351395", "0.6239811", "0.6210308", "0.6024937", "0.5860016", "0.57729495", "0.57158846", "0.5692899", "0.55697036", "0.55650264", "0.5542261", "0.5518443", "0.5509071", "0.54053587", "0.53958017", "0.53854865", "0.53777456", "0.53442615", "0.5316962", "0.531...
0.7509828
0
Load the Home Care permissions.
Загрузите разрешения Home Care.
private function loadPermissions(): void { $permissions = Cache::get($this->cacheKey()); $this->isPayor = $permissions['isPayor']; $this->isAgencyBankAccountSetup = $permissions['isAgencyBankAccountSetup']; $this->canViewDocumentation = $permissions['canViewDocumentation']; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function loadPermissions() {\n\tif ($this->permissionsloaded) {return;}\n\t//$mem = DStructMemCache::getInstance();\n\t//if (!$this->permissions = $mem->get(md5(get_class($this->activecontainer).$this->areaname.$this->activecontainer->getID()))) {\n\t\t$this->permissions = $this->activecontainer->permissio...
[ "0.69104296", "0.6782072", "0.64950514", "0.6477418", "0.5949129", "0.57865655", "0.5775963", "0.57395786", "0.57395786", "0.57395786", "0.57395786", "0.57395786", "0.5614829", "0.5550234", "0.54554594", "0.5428944", "0.53871197", "0.53490424", "0.5300095", "0.5297701", "0.52...
0.71234375
0
/ Function to remove product from user basket
/ Функция для удаления продукта из корзины пользователя
public function remove_from_basket_post() { $user_id = $this -> post('user_id') ? $this -> post('user_id') : ""; $product_id = $this -> post('product_id') ? $this -> post('product_id') : ""; $retailer_id = (int) $this->post('retailer_id') ? (int)$this->post('retailer_id') : 0; $store_id...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function actionRemoveFromBasket()\n\t{\n\t\t$removeThis = array($_GET['imageid']);\n\t\t$basket = Yii::app()->user->getState('basketContents');\n\t\t$newBasket = array_diff($basket,$removeThis);\n\t\t// reduces useless keys, blank keys, from the array\n\t\t$newBasket = array_values($newBasket);\n\t\tYii::ap...
[ "0.73784363", "0.73601437", "0.73265857", "0.72388", "0.7190526", "0.7106034", "0.70742387", "0.6987872", "0.6847802", "0.67983806", "0.67980397", "0.67530304", "0.67232543", "0.6693016", "0.668777", "0.66817844", "0.6625474", "0.6624895", "0.6596793", "0.65841836", "0.655496...
0.8433411
0
/ Get basket count
/ Получить количество товаров в корзине
public function get_basket_count_post() { $user_id = $this -> post('user_id') ? $this -> post('user_id') : ""; $retailer_id = (int) $this->post('retailer_id') ? (int)$this->post('retailer_id') : 0; $store_id = (int) $this->post('store_id') ? (int) $this->post('store_id') : 0; //$basket_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function count() {\n\t\treturn $this->field('Cart.order_item_count', $this->cartConditions());\n\t}", "public function getNumOfOrdersInBasket() {\n\n $basketUser = $this->getBasketUserFromAuth();\n\n $result = 0;\n if ($basketUser != null) {\n $basketDetailModel = new Appli...
[ "0.754092", "0.7359605", "0.73392016", "0.7278216", "0.7274527", "0.7187482", "0.7177473", "0.709201", "0.7071551", "0.70673245", "0.7058441", "0.7058441", "0.7058441", "0.7056535", "0.7043969", "0.7043969", "0.70436424", "0.70331746", "0.69279206", "0.69062424", "0.6897508",...
0.8216637
0
/ Get basket details
/ Получить детали корзины
public function get_basket_details_post() { $user_id = $this -> post('user_id') ? $this -> post('user_id') : ""; $retailer_id = $this -> post('retailer_id') ? $this -> post('retailer_id') : ""; $store_type_id = $this -> post('store_type_id') ? $this -> post('store_type_id') : ""; $store_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static public function getBasket()\n {\n $params = [\n //'session_id ' => // int Уникальный идентификатор сессии клиента, может использоваться, если клиент еще не авторизован и user_data_id неизвестен\n 'user_data_id ' => (int) getenv('AMTEL_USER_DATA_ID'), // (int) – Идентификатор ...
[ "0.7560136", "0.7127758", "0.7127758", "0.6800287", "0.6661887", "0.6607302", "0.65069807", "0.6497971", "0.6497053", "0.6271793", "0.6265881", "0.62004364", "0.61654395", "0.60699666", "0.6013769", "0.601262", "0.5979202", "0.5944996", "0.5933", "0.58978987", "0.58854", "0...
0.78085965
0
Add product to basket
Добавить продукт в корзину
public function add_product_to_basket_post() { $user_id = $this -> post('user_id') ? $this -> post('user_id') : ""; $special_id = (int) $this -> post('special_id') ? (int) $this -> post('special_id') : 0; $product_id = $this -> post('product_id') ? $this -> post('product_id') : ""; $prod...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function add() {\n $page = 'basket';\n $id = $_GET['id'];\n\n $product = $this->productManager->findOne($id);\n\n $productInBasket = $this->inBasket($id); //check if the product is in the basket\n\n if(!empty($product) && isset($_SESSION['user']['basket'])) {\n ...
[ "0.79312074", "0.79053426", "0.7738667", "0.7614359", "0.7513789", "0.7504457", "0.73068756", "0.72678435", "0.7227556", "0.722691", "0.7224811", "0.718137", "0.70776546", "0.7056572", "0.7046484", "0.7023342", "0.70214427", "0.70200586", "0.7011698", "0.70080817", "0.7007603...
0.8139626
0
/==================End Setters liste===================== /==================Persistence Methode list===================== /================== Count v_article_en_stock =====================
/==================Конец установщиков ===================== /==================Список методов сохранения===================== /================== Count v_article_en_stock =====================
public function countV_article_en_stock(){ $this->db->setTablename($this->tablename); return $this->db->getRows(array("return_type"=>"count")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function getStock()\n {\n $article = oxNew('oxArticle');\n $article->load($this->testArticleId);\n return $article->oxarticles__oxstock->value;\n }", "function hasStock() {\n \t$this->load_articles();\n \tforeach ( $this->articles as $articleObj ) {\n \t\tif ( $arti...
[ "0.65867007", "0.65223926", "0.6482923", "0.634817", "0.6332502", "0.6330434", "0.6326139", "0.62595147", "0.62208015", "0.6153754", "0.615283", "0.6137928", "0.6113698", "0.6048826", "0.6045911", "0.59406894", "0.5938496", "0.5917023", "0.59106195", "0.5826926", "0.58259624"...
0.7924701
0
/================== If v_article_en_stock existe =====================
/================== Если v_article_en_stock существует =====================
public function ifV_article_en_stockexiste($condition){ $this->db->setTablename($this->tablename); $existe=$this->db->getRows(array("where"=>$condition,"return_type"=>"single")); if($existe != null) { return 1; } return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function ifConditionement_articleexiste($id_article_en_stock){\n\t\t\t\t\t$sql = \"SELECT * FROM conditionement_article WHERE id_article_en_stock='\".$id_article_en_stock.\"' \";\n\t\t\t\t\tif($this->db != null)\n\t\t\t\t\t {\n\t\t\t\t\t if($this->db->query($sql)->fetch() != null)\n\t\t\t\t\t ...
[ "0.72164345", "0.71778417", "0.6619502", "0.6431768", "0.640937", "0.6277357", "0.6186727", "0.6125348", "0.6117741", "0.6070732", "0.5970879", "0.5845807", "0.5844655", "0.58035415", "0.5778099", "0.57436424", "0.57348543", "0.5730297", "0.57278734", "0.5653858", "0.56402445...
0.75753576
0
Dumping the autoload files in composer and reloading all new files
Выгрузка автозагрузки файлов в composer и перезагрузка всех новых файлов
private function composerReload() { $composer = $this->findComposer(); $process = new Process($composer.' dump-autoload'); $process->setTimeout(null); // Setting timeout to null to prevent installation from stopping at a certain point in time $process->setWorkingDirectory(base_path(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function regenerate_autoloader() {\n\t\t$rm = $this->composer->getRepositoryManager();\n\t\t$this->composer->getAutoloadGenerator()->dump(\n\t\t\t$this->composer->getConfig(),\n\t\t\t$this->composer->getRepositoryManager()->getLocalRepository(),\n\t\t\t$this->composer->getPackage(),\n\t\t\t$this->composer-...
[ "0.751869", "0.7032299", "0.6343111", "0.6308227", "0.628746", "0.62220246", "0.6113854", "0.6027797", "0.60223794", "0.6021138", "0.6012527", "0.6001181", "0.6000025", "0.5988907", "0.5973403", "0.5939883", "0.58827746", "0.5882259", "0.58624154", "0.58492774", "0.5800167", ...
0.7464839
1
Function: next_record Description : Grabs the next record from a query result. Inputs : None Outputs : Boolean 1 if successful 0 on failure. Side Effects: none Notes: none
Функция: next_record Описание: Получает следующую запись из результата запроса. Входные данные: Нет. Выходные данные: Логическое значение 1 при успешном выполнении, 0 при неудаче. Побочные эффекты: отсутствуют. Примечания: отсутствуют
function next_record() { return $this->dbh->next_record(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function next_record()\n\t{\n\t\t/* goto next record */\n\t\t$this->m_record = @mysqli_fetch_array($this->m_query_id, MYSQLI_ASSOC|atkconfig(\"mysqlfetchmode\"));\n\t\t$this->m_row++;\n\t\t$this->m_errno = mysqli_errno($this->m_link_id);\n\t\t$this->m_error = mysqli_error($this->m_link_id);\n\n\t\t/* are we there?...
[ "0.8096572", "0.7471312", "0.7278197", "0.7152597", "0.714079", "0.697567", "0.6964325", "0.68365324", "0.6674539", "0.66140676", "0.6590842", "0.6558233", "0.65517277", "0.6523938", "0.6338537", "0.6263404", "0.62577873", "0.6225185", "0.62052894", "0.61902606", "0.6124803",...
0.79262966
1
Function: seek Description : Select a specific record in the query result. Inputs : $pos position of the record desired. Outputs : BBoolean 1 if successful 0 on failure. Side Effects: moves the internal pointer of the query result to the specified record. Notes: none
Функция: seek Описание: Выбирает конкретную запись в результате запроса. Входные данные: $pos позиция нужной записи. Выходные данные: BBoolean 1 при успешном выполнении, 0 при неудаче. Влияние на систему: перемещает внутренний указатель результата запроса на указанную запись. Примечания: отсутствуют
function seek($pos = 0) { return $this->dbh->seek($pos); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function seek($pos)\n\t{\n\t\t// verify that a query was run\n\t\tif (is_resource($this->_results) === false)\n\t\t{\n\t\t\tthrow new DatabaseException('',\n\t\t\t\tDatabaseException::QUERY_NOT_RUN);\n\t\t}\n\n\t\t// check connection\n\t\t$this->_checkConnection();\n\n\t\t// lookup the row and move to the r...
[ "0.7592055", "0.7422035", "0.7400213", "0.7174163", "0.69826627", "0.6807091", "0.6733081", "0.6607397", "0.6584338", "0.65562403", "0.65369874", "0.64985996", "0.637455", "0.6305039", "0.6293248", "0.62337357", "0.6189421", "0.6129064", "0.61023164", "0.603612", "0.60317045"...
0.7529716
1
Check if has brand.
Проверить, есть ли бренд.
public function hasBrand() { return $this->getBrand() !== null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hasBrand() : bool\n {\n return isset($this->brand);\n }", "public function getBrandFound()\n\t{\n\t\treturn $this->brandFound;\n\t}", "public function get_brand() {\n $query = $this->db->get('brand');\n if ($query->num_rows() > 0) {\n return $query->result(...
[ "0.84578085", "0.7282197", "0.68209714", "0.679806", "0.6767169", "0.6767169", "0.6745105", "0.6619609", "0.65458953", "0.65232533", "0.6517582", "0.6513422", "0.64477414", "0.63118654", "0.62625015", "0.62349164", "0.6229265", "0.62217873", "0.61800516", "0.61800516", "0.616...
0.86810046
0
/ readExcelUniqueValue function Read Both Type of XLSX or XLS
Функция readExcelUniqueValue чтения обеих типов XLSX или XLS
public function readExcelUniqueValue($file,$ky){ $objPHPExcel = PHPExcel_IOFactory::load($file); $cell_collection = $objPHPExcel->getActiveSheet()->getCellCollection(); foreach ($cell_collection as $cell) { $column = $objPHPExcel->getActiveSheet()->getCell($cell)->getColumn(); $row = $objPHPExcel->...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function readExcel($fileName){\n\t\t$inputFileType = PHPExcel_IOFactory::identify($fileName);\n\t\t/** Create a new Reader of the type that has been identified **/\n\t\t$reader = PHPExcel_IOFactory::createReader($inputFileType);\n\t\t$reader->setReadDataOnly(true);\n\t\t$objExcel = $reader->load($fileNam...
[ "0.5779973", "0.55508685", "0.53632677", "0.5358541", "0.53093517", "0.5296335", "0.52804345", "0.52671564", "0.52662235", "0.52533287", "0.5211267", "0.5198945", "0.51589906", "0.5136475", "0.5124904", "0.51137197", "0.5094123", "0.50925934", "0.5066874", "0.5039825", "0.502...
0.7074403
0
Return user's site access based on provided OID and site in : 0 = user oid 1 = site out: site access string
Возвращать доступ пользователя к сайту в зависимости от предоставленного OID и сайта: 0 = OID пользователя, 1 = сайт, вывод: строка доступа к сайту
function checkWzdeSiteAccess($oid,$site) { $access = ""; // Query string $query = "SELECT * "; $query .= "FROM access_site A "; $query .= "INNER JOIN sites B ON A.site_id = B.idsites "; $query .= "WHERE A.user_oid='$oid' AND B.sitename='$site'"; // PDO $bindV = array("oid"=>$oid,"site"=>$site); $r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_oauth_identity($wpoa) {\n\t// set the access token param:\n\t$params = array(\n\t\t'access_token' => $_SESSION['WPOA']['ACCESS_TOKEN'], // PROVIDER SPECIFIC: the access_token is passed to Google via POST param\n\t);\n\t$url_params = http_build_query($params);\n\t// perform the http request:\n\tswitch ...
[ "0.5696568", "0.53912073", "0.53187424", "0.53093064", "0.5269291", "0.52380246", "0.522133", "0.51660424", "0.51659954", "0.5145388", "0.5126507", "0.5088779", "0.50753856", "0.5063654", "0.50453055", "0.5021552", "0.5000226", "0.49965265", "0.49885342", "0.49770552", "0.497...
0.7174755
0
query git status in :0=resource 1=sitename out:json
запрос git status в :0=resource 1=sitename out:json
function queryGit($resource,$site,$type = 'canGit'){ // default value $canGit = false; $isGit = false; // get user oid and git status $user_ename = getEname(); $user_oid = enameToOid($user_ename); $canGit = getWzdesiteGitAccess($user_oid,$site); $isGit = isGit($resource,$site); $r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getIssueStatus($issue_id, $jira_user, $jira_token, $jira_space) {\n $ch = curl_init(); \n curl_setopt($ch,CURLOPT_URL,\"https://$jira_space.atlassian.net/rest/api/2/status/$issue_id\");\n curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);\n curl_setopt($ch, CURLOPT_USERPWD, \"$jira_user:$jira_token\");\n ...
[ "0.57543993", "0.57537884", "0.5600647", "0.5570705", "0.5540057", "0.55241895", "0.54923654", "0.5456294", "0.5436668", "0.5425077", "0.53365487", "0.52891153", "0.52140254", "0.52140254", "0.52140254", "0.52140254", "0.52140254", "0.52140254", "0.52140254", "0.52140254", "0...
0.7090336
0
Taking Integer value as User Input Validating Integer value
Ввод целого числа как значения пользователя, проверка целого числа
public static function user_integerInput(){ fscanf(STDIN,"%d\n",$number); if(filter_var($number,FILTER_VALIDATE_INT)){ return $number; } else{ echo "Invalid Input!\n"; return Util::user_integerInput(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function validIntegers() {}", "public static function validId($input)\n\t{\n\t\treturn (isset($input) && is_numeric($input) && $input > 0);\n\t}", "function validate_int() {\n # Check if the value is an integer\n if (is_int($this->cur_val)) {\n # Remove any existing error messag...
[ "0.71325874", "0.6867618", "0.6833267", "0.6704755", "0.6688367", "0.6677263", "0.6657077", "0.6649377", "0.66464543", "0.66074187", "0.6607003", "0.65633243", "0.6489781", "0.6466739", "0.6451948", "0.6376392", "0.63648546", "0.6350181", "0.63189274", "0.6302232", "0.6300658...
0.7384975
0
Taking Float value as User Input Validating Foat value
Ввод Float значения как пользовательского ввода Проверка значения Float
public static function user_floatInput(){ fscanf(STDIN,"%f\n",$number); if(filter_var($number,FILTER_VALIDATE_FLOAT)){ return $number; } else{ echo "Invalid Input!\n"; return Util::user_floatInput(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function validate_float() {\n # Check if the value is a foat\n if (is_float($this->cur_val)) {\n # Remove any existing error message\n $this->error_message = \"\";\n\n # Return Value\n return $this->cur_val;\n }\n else {\n ...
[ "0.76383245", "0.7110263", "0.6990334", "0.6877691", "0.6673015", "0.66509855", "0.66509444", "0.66101986", "0.6593491", "0.65773475", "0.6504247", "0.64849585", "0.6400221", "0.6390001", "0.63890135", "0.6381364", "0.63795424", "0.6378411", "0.63704234", "0.6240911", "0.6228...
0.7239677
1
Taking String as User Input Validating String
Ввод строки как пользовательского ввода Проверка строки
public static function string_input() { fscanf(STDIN,"%s\n",$string); while(!(strlen($string)>0) || (is_numeric($string) || ($string==null))){ echo "Enter the Valid String:\n"; $string=Util::string_input(); } return $string; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function validate_string($input) {\n if (!is_string($input) || empty($input)) return false;\n\n return true;\n}", "function valid_input($myinput, $good_input) {\n if (preg_match(\"/$good_input/\", $myinput, $regs)) {\n return true;\n }\n else {\n return false;\n }\n}", "function valid_i...
[ "0.6906816", "0.68255335", "0.68255335", "0.67802984", "0.674694", "0.6723886", "0.6615717", "0.65835226", "0.655654", "0.65544593", "0.65499955", "0.6544882", "0.6533232", "0.65018153", "0.6484165", "0.647992", "0.64062047", "0.6401199", "0.63936174", "0.6370919", "0.6358858...
0.715028
0
Method For Checking is number is prime number or not.
Метод для проверки, является ли число простым или нет.
public static function isPrime($number){ $count = 0; for($j=1;$j<=$number;$j++){ if($number%$j==0){ $count++; } } if($count==2){ return true; }else{ return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function check_if_prime($num){\n if($num == 1){\n return FALSE;\n }\n elseif($num == 2){\n return TRUE;\n }\n elseif($num == 3){\n return TRUE;\n }\n elseif($num % 2 == 0){\n return FALSE;\n }\n $counter = 0;\n for($i = 2; $i < $num; $i++){\n if ($num % $i == ...
[ "0.8203839", "0.80618113", "0.80183625", "0.7964508", "0.7927816", "0.7922268", "0.7861845", "0.78602", "0.7858814", "0.78278494", "0.7824765", "0.7804376", "0.7705951", "0.7696359", "0.7682923", "0.7582124", "0.74950576", "0.7494491", "0.7373715", "0.7351371", "0.72772956", ...
0.8208565
0
Method to print the 2d array as a calender
Метод для печати двумерного массива как календаря
Public static function displayCalender($array) { echo "Sun Mon Tue Wed Thu Fri Sat\n"; for ($i = 0; $i < 6; $i++) { for ($j = 0; $j < 7; $j++) { if ($array[$i][$j] == '-' || $array[$i][$j] > 31) { //re...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function drawArray()\n\t{\n\t\t$this->outArray['days'] = array();\n\t\t$this->makeCalendarTitle();\n\t\t$this->makeCalendarHead();\n\t\t$this->makeDayHeadings();\n\t\t$this->startMonthSpacers();\n\t\t$this->makeArrayIterator();\n\t\t$this->endMonthSpacers();\t\t\n\t\t\n\t\treturn $this->outArray;\n\t}", "...
[ "0.7160339", "0.67596465", "0.61931485", "0.61346847", "0.61047953", "0.6062502", "0.59301203", "0.5856411", "0.5844646", "0.5834913", "0.57483214", "0.5740116", "0.572474", "0.5718389", "0.5715689", "0.57135946", "0.5710998", "0.5699807", "0.5671426", "0.5669705", "0.561851"...
0.70838094
1
Method for printing calender using queue
Метод для печати календаря с использованием очереди
public static function calenderQueue($totalDays,$firstDay) { //taking two queue one for weekdays and one for date $weekdaysQueue = new Queue(); $dateQueue = new Queue(); $array = array("Sun", "Mon", "Tue", "Wen", "Thu", "Fri", "sat"); //storing days in weekdays...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show(printQueue $printQueue)\n {\n //\n }", "function draw_calendar($month,$year,$cal,$available_list,$price_list){\n\n /* draw table */\n $calendar = '<table cellpadding=\"0\" cellspacing=\"0\" class=\"calendar\">';\n\n /* table headings */\n $headings = ...
[ "0.58508754", "0.5633317", "0.5626351", "0.56137794", "0.55840945", "0.55689156", "0.5566279", "0.55538505", "0.5450793", "0.5370702", "0.5337552", "0.53019756", "0.5298322", "0.5290748", "0.5275238", "0.52633286", "0.5256605", "0.5254919", "0.525091", "0.5247674", "0.523603"...
0.7144187
0
Method for printing calender using stack
Метод для печати календаря с использованием стека
public static function calenderStack($totalDays,$firstDay) { //taking two stack one for weekdays and one for date $weekdaysStack = new StackLinkedList(); $dateStack = new StackLinkedList(); $array = array("Sun", "Mon", "Tue", "Wen", "Thu", "Fri", "sat"); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Public static function displayCalender($array)\n {\n echo \"Sun Mon Tue Wed Thu Fri Sat\\n\";\n for ($i = 0; $i < 6; $i++) \n {\n for ($j = 0; $j < 7; $j++) \n {\n if ($array[$i][$j] == '-' || $array[$i][$j] > 31) \n {\n ...
[ "0.6276148", "0.6265606", "0.58558315", "0.5822019", "0.5760561", "0.5729699", "0.5710887", "0.5702112", "0.5701211", "0.56803644", "0.55722344", "0.5566118", "0.5517646", "0.55059564", "0.5498857", "0.5476416", "0.5461325", "0.54566747", "0.5450296", "0.5444198", "0.5442483"...
0.7008567
0
OneToMany (owning side) Get fkImaConfiguracaoBbLocais
OneToMany (сторона, владеющая связью) Получить fkImaConfiguracaoBbLocais
public function getFkImaConfiguracaoBbLocais() { return $this->fkImaConfiguracaoBbLocais; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFkImaConfiguracaoBanrisulLocais()\n {\n return $this->fkImaConfiguracaoBanrisulLocais;\n }", "public function getFkImaConfiguracaoConvenioBanrisul()\n {\n return $this->fkImaConfiguracaoConvenioBanrisul;\n }", "public function getFkImaConfiguracaoBbOrgoes()\n {\n...
[ "0.74172544", "0.6927318", "0.6818705", "0.66774464", "0.6389117", "0.63170767", "0.6241825", "0.61633354", "0.61591744", "0.61051524", "0.6073375", "0.60288054", "0.5984925", "0.5952563", "0.5932354", "0.5918309", "0.591323", "0.59011835", "0.59011835", "0.5898576", "0.58875...
0.7448144
0
OneToMany (owning side) Get fkImaConfiguracaoBbOrgoes
OneToMany (сторона, владеющая связью) Получить fkImaConfiguracaoBbOrgoes
public function getFkImaConfiguracaoBbOrgoes() { return $this->fkImaConfiguracaoBbOrgoes; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFkImaConfiguracaoBbLocais()\n {\n return $this->fkImaConfiguracaoBbLocais;\n }", "public function getFkImaConfiguracaoConvenioBb()\n {\n return $this->fkImaConfiguracaoConvenioBb;\n }", "public function getFkImaConfiguracaoConvenioBanrisul()\n {\n return $...
[ "0.70757514", "0.7016759", "0.69504565", "0.6864975", "0.6730555", "0.6249652", "0.6149684", "0.61492485", "0.6101116", "0.60911405", "0.60911405", "0.60646445", "0.6046257", "0.6025493", "0.6021264", "0.5985203", "0.5946616", "0.59383684", "0.5934185", "0.58899176", "0.58862...
0.73689866
0
ManyToOne (inverse side) Get fkImaConfiguracaoConvenioBb
ManyToOne (сторона обратной связи) Получить fkImaConfiguracaoConvenioBb
public function getFkImaConfiguracaoConvenioBb() { return $this->fkImaConfiguracaoConvenioBb; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFkImaConfiguracaoConvenioBanrisul()\n {\n return $this->fkImaConfiguracaoConvenioBanrisul;\n }", "public function getFkImaConfiguracaoBbLocais()\n {\n return $this->fkImaConfiguracaoBbLocais;\n }", "public function getFkImaConfiguracaoBanrisulLocais()\n {\n ...
[ "0.7555923", "0.7020395", "0.67619115", "0.6696724", "0.63631594", "0.6230319", "0.61844504", "0.6169288", "0.6095884", "0.60805005", "0.5960538", "0.59573555", "0.5955345", "0.59435797", "0.5877651", "0.5849876", "0.584105", "0.58274984", "0.58216554", "0.5812525", "0.579568...
0.76525813
0
ManyToOne (inverse side) Get fkMonetarioContaCorrente
ManyToOne (обратная сторона) Получить fkMonetarioContaCorrente
public function getFkMonetarioContaCorrente() { return $this->fkMonetarioContaCorrente; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFkMonetarioAcrescimo()\n {\n return $this->fkMonetarioAcrescimo;\n }", "public function getFkMonetarioConvenios()\n {\n return $this->fkMonetarioConvenios;\n }", "public function getFkConcursoCandidato()\n {\n return $this->fkConcursoCandidato;\n }", ...
[ "0.693904", "0.6761282", "0.6662942", "0.6525447", "0.6521972", "0.6421732", "0.6298072", "0.6274014", "0.6242484", "0.62390286", "0.62352496", "0.6212233", "0.6205615", "0.61776835", "0.61673903", "0.6150676", "0.61482", "0.6121319", "0.6111915", "0.6103707", "0.6093774", ...
0.7596447
1
return managers (magento user)
вернуть менеджеров (пользователь магента)
public function getManagers() { $users = array(); $magentoUsers = mage::getSingleton('admin/user')->getCollection(); foreach ($magentoUsers as $manager) { $users[$manager->getId()] = $manager->getusername(); } return $users; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function managers()\n {\n return $this->belongsToMany(User::class)->where('role', 'manager');\n }", "public function managerList() \n { \n $manager = User::role(\"User\")->get();\n return response([ 'data' => ToArray::collection($manager), 'message' => 'Users list retrieved s...
[ "0.7284149", "0.72161967", "0.6862668", "0.68138945", "0.681372", "0.6681159", "0.66612965", "0.66138685", "0.6515826", "0.64997846", "0.64610654", "0.6410144", "0.6359855", "0.6337841", "0.6312104", "0.6308659", "0.62830323", "0.62616426", "0.6240727", "0.62063503", "0.61798...
0.78738093
0
Delete Member (confirm) Warning message if you try to delete members
Предупреждение о удалении члена (подтверждение), если вы попытаетесь удалить членов
public function member_delete_confirm() { if ( ! Session::access('can_delete_members')) { return Cp::unauthorizedAccess(); } $from_myaccount = false; $entries_exit = false; $data = Request::all(); if (Request::input('mid') !== null) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function deleteMemberNow() {\n\n $memberModel = $GLOBALS[\"memberModel\"];\n if (isset($_REQUEST['membershipnr'])) {\n $membershipnr = $_REQUEST['membershipnr'];\n $memberModel->deleteMember($membershipnr);\n }\n $this->showMembers();\n }", "function ho...
[ "0.7330173", "0.72749156", "0.71779716", "0.70372367", "0.69298416", "0.6838124", "0.6798446", "0.6763818", "0.67604727", "0.673501", "0.6728437", "0.6719608", "0.6716392", "0.6558371", "0.65403336", "0.6523035", "0.65040076", "0.6492644", "0.64849865", "0.6460204", "0.645873...
0.7788158
0
Edit/Create a member group form
Редактировать/создать форму члена группы
function editMemberGroup($msg='', $group_id = null) { // ------------------------------------ // Only super admins can administrate member groups // ------------------------------------ if (Session::userdata('group_id') != 1) { return Cp::unauthorizedAccess(__('members....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function updateGroup() {\n\t\t$groupId = Request::getUserVar('groupId') === null? null : (int) Request::getUserVar('groupId');\n\t\tif ($groupId === null) {\n\t\t\t$this->validate();\n\t\t\t$group = null;\n\t\t} else {\n\t\t\t$this->validate($groupId);\n\t\t\t$group =& $this->group;\n\t\t}\n\t\t$this->setupTemplat...
[ "0.729795", "0.723626", "0.7102754", "0.7074278", "0.68890697", "0.68762493", "0.68548036", "0.6789874", "0.67866117", "0.6718026", "0.67008936", "0.6674847", "0.6662363", "0.65934443", "0.65789783", "0.65550184", "0.65298283", "0.65298283", "0.65298283", "0.6491971", "0.6463...
0.7248467
1
Delete member group confirm Warning message shown when you try to delete a group
Предупреждение о подтверждении удаления группы, отображаемое при попытке удалить группу
function delete_member_group_conf() { // ------------------------------------ // Only super admins can delete member groups // ------------------------------------ if (Session::userdata('group_id') != 1) { return Cp::unauthorizedAccess(__('members.only_superadmi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function confirm()\n {\n // Only super admins can delete member groups\n if (! ee('Permission')->can('delete_roles')) {\n show_error(lang('unauthorized_access'), 403);\n }\n\n $roles = ee()->input->post('selection');\n\n $roleModels = ee('Model')->get('Role'...
[ "0.753604", "0.74125487", "0.73904896", "0.7161991", "0.7088285", "0.70844984", "0.7010731", "0.7002136", "0.69756085", "0.6965638", "0.6937932", "0.69172823", "0.68963593", "0.68615586", "0.6786686", "0.67816895", "0.67362976", "0.6696868", "0.66924363", "0.6675928", "0.6664...
0.7670658
0
Create a member profile form
Создать форму профиля члена
function new_member_profile_form() { if ( ! Session::access('can_admin_members')) { return Cp::unauthorizedAccess(); } Cp::$body_props = " onload=\"document.forms[0].email.focus();\""; $title = __('members.register_member'); // Build the output $r = Cp...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function profileForm(){\r\n\t\t$this->view('profileForm');\r\n\t}", "public function create()\n {\n return view('user.profile_form_create');\n }", "public function profileForm()\n {\n return view('turtle::auth.profile');\n }", "public function create()\n {\n return view('P...
[ "0.7595418", "0.7587988", "0.74279344", "0.7270514", "0.7200806", "0.71927947", "0.7118261", "0.7115522", "0.7096713", "0.7080181", "0.70691264", "0.69907415", "0.6975995", "0.6954227", "0.6947825", "0.6947825", "0.6947825", "0.6917361", "0.69085974", "0.68818283", "0.6847468...
0.76164454
0
Create a member profile
Создать профиль члена
public function create_member_profile() { if ( ! Session::access('can_admin_members')) { return Cp::unauthorizedAccess(); } $data = []; if (Request::has('group_id')) { if ( ! Session::access('can_admin_mbr_groups')) { return Cp::unauthorizedA...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createProfile($profile){\n $this->createProfileFiles($profile);\n $this->createProfileScript($profile);\n $this->createConfigIni($profile);\n }", "public function create_profile($member, $profile=null, $payment) {\n $refId = 'ref' . time();\n\n // Create a Cu...
[ "0.70673925", "0.6912511", "0.6896543", "0.66629905", "0.6596597", "0.6544944", "0.64612365", "0.6431361", "0.6314561", "0.6266677", "0.62490106", "0.62000453", "0.61989075", "0.61903155", "0.6188793", "0.6175309", "0.6172474", "0.6169859", "0.6162138", "0.6155231", "0.613886...
0.7193827
0