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
insert node after flag
вставить узел после флага
function addNodeafter($node,$flag){ $node->next = $flag->next; $flag->next = $node; $this->_length++; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function insertBefore (DOMNode $newnode , $refnode = null) {}", "public function addFlagging($nid, $uid);", "public function pushNode( $node );", "public function shiftNode();", "abstract public function insert ( \\Hoa\\Tree\\Generic $child );", "public function getAppendBeforeNode();", "functio...
[ "0.58080053", "0.5711775", "0.5593869", "0.5471556", "0.535233", "0.53281415", "0.53274435", "0.5306433", "0.52597386", "0.52594995", "0.5252241", "0.5202678", "0.51963747", "0.5128956", "0.50766116", "0.5067495", "0.5059607", "0.5058876", "0.5047699", "0.49976772", "0.498929...
0.743287
0
Get length of a full implementation barcode
Получить длину полной реализации штрих-кода
abstract public function getLength();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getLength();", "public function getLength() {}", "public function getLength() {}", "public function getLength() {}", "public function getLength() {}", "public function getLength(): int;", "public function getLength(): int;", "public function getLength() : int\n {\n return $t...
[ "0.71252203", "0.70987004", "0.70987004", "0.70987004", "0.70975524", "0.70682526", "0.70682526", "0.70095044", "0.6899416", "0.6842251", "0.6842251", "0.6783712", "0.6773848", "0.6772696", "0.6670162", "0.660143", "0.65592986", "0.6533713", "0.65145653", "0.65145653", "0.651...
0.7110471
1
Returns the checksum digit for a barcode
Возвращает контрольный разряд для штрих-кода
abstract public function checksum($barcode);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function GetCheckDigit($barcode)\n {\n $sum=0;\n for($i=1;$i<=11;$i+=2)\n $sum+=3*$barcode[$i];\n for($i=0;$i<=10;$i+=2)\n $sum+=$barcode[$i];\n $r=$sum%10;\n if($r>0)\n $r=10-$r;\n return $r;\n ...
[ "0.7587554", "0.7508506", "0.7429914", "0.68089974", "0.6744816", "0.660968", "0.6593209", "0.63572764", "0.63572764", "0.634436", "0.63082945", "0.6257276", "0.62451106", "0.61476976", "0.60373574", "0.5977223", "0.59639364", "0.58762914", "0.587571", "0.57619244", "0.576055...
0.8209432
0
Returns the order of tables to use to encode the barcode for its font
Возвращает порядок таблиц для использования при кодировании штрих-кода для его шрифта
abstract protected function encodingTablesOrder();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected function encodingTables();", "abstract protected function _getEncodingTable();", "public static function getPredefinedEncodingTable($encoding) {}", "public function getTabOrder() {}", "private static function getComputeHinduArabicTable () : iterable {\n yield 21 => ['x', 10]...
[ "0.59721035", "0.5916412", "0.5833446", "0.5830364", "0.5751257", "0.5744937", "0.56904507", "0.5689624", "0.5689624", "0.56735915", "0.55530035", "0.5510125", "0.5501612", "0.5476314", "0.5461286", "0.54222167", "0.54222167", "0.54208314", "0.54208314", "0.54208314", "0.5420...
0.73297226
0
Gets the API Reference entity.
Получает сущность API Reference.
public function getAPIRefEntity() { return APIRef::load($this->getAPIRef()[0]['target_id']); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getReference() {\n return $this->reference;\n }", "public function getReference() {\n return $this->reference;\n }", "public function getReference(){\n return $this->reference;\n }", "public function get_reference() {\n return $this->reference;\n }", "public function ge...
[ "0.6327821", "0.6214186", "0.61732656", "0.61195517", "0.60936654", "0.60936654", "0.60936654", "0.60936654", "0.60919803", "0.5828608", "0.5816596", "0.57781476", "0.57273006", "0.57056713", "0.5686803", "0.56811816", "0.56798273", "0.5600497", "0.5599058", "0.5581642", "0.5...
0.82178736
0
Check whether CAPTCHA Fields is on template
Проверьте, включено ли поле CAPTCHA на шаблоне
function isCAPTCHAInTemplate($tpl) { $check_str = '$FORM->ShowCaptcha'; return strpos($tpl, $check_str) !== false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function captchaExists()\n\t{\n\t\tif ( $this->mode == ADD_ONTHEFLY || $this->mode == ADD_INLINE || $this->mode == EDIT_INLINE )\n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t\treturn $this->pSet->isCaptchaEnabledOnEdit();\n\t}", "function check_the_field( $name ) {\n return @($_SESSION['reponse']['result']=='error...
[ "0.6462353", "0.63454354", "0.63454354", "0.59863013", "0.59756696", "0.5947211", "0.5937228", "0.5780266", "0.57435185", "0.5730849", "0.5712891", "0.5708723", "0.5707022", "0.57002956", "0.5698483", "0.56733155", "0.5649694", "0.5627081", "0.5624804", "0.56206524", "0.56108...
0.70968884
0
Check that not too many attachments have been uploaded for the member submitting.
Проверьте, что не загружено слишком много вложений для члена, отправляющего запрос.
function _check_attachment_count() { if ((get_forum_type()=='ocf') && (function_exists('get_member'))) { require_code('ocf_groups'); require_lang('ocf'); require_lang('comcode'); $max_attachments_per_post=ocf_get_member_best_group_property(get_member(),'max_attachments_per_post'); $may_have_one=false; fo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hasAttachments() {\n return $this->_has(20);\n }", "public function hasJustUploaded() {\n return $this->_has(8);\n }", "protected function checkFilesCount() {\n $iCount = $this->getCount('final');\n if ($iCount < $this->iMinItems) {\n if (MLSetting::gi()...
[ "0.67140746", "0.6613261", "0.6606594", "0.65788", "0.65736216", "0.64468044", "0.64432114", "0.6331177", "0.6299909", "0.6252604", "0.6216233", "0.6209137", "0.61229604", "0.61190265", "0.60920835", "0.6076758", "0.6074194", "0.60380816", "0.59856814", "0.5981823", "0.597771...
0.8152205
0
Insert some comcode content that may contain attachments, and return the language id.
Вставьте некоторый comcode-контент, который может содержать прикрепленные файлы, и верните идентификатор языка.
function insert_lang_comcode_attachments($level,$text,$type,$id,$connection=NULL,$insert_as_admin=false,$for_member=NULL) { if (is_null($connection)) $connection=$GLOBALS['SITE_DB']; require_lang('comcode'); _check_attachment_count(); $_info=do_comcode_attachments($text,$type,$id,false,$connection,$insert_as_adm...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function do_comcode_attachments($original_comcode,$type,$id,$previewing_only=false,$connection=NULL,$insert_as_admin=NULL,$for_member=NULL)\n{\n\trequire_lang('comcode');\n\n\tglobal $COMCODE_ATTACHMENTS;\n\tunset($COMCODE_ATTACHMENTS[$id]); // In case we have some kind of conflict\n\n\tif (is_null($connection)) $...
[ "0.57174194", "0.55822486", "0.5581502", "0.53503233", "0.53032017", "0.5181738", "0.51186895", "0.5093056", "0.50844514", "0.5076244", "0.50384414", "0.50372285", "0.50094116", "0.5006553", "0.50055623", "0.50012225", "0.49961427", "0.4950009", "0.494579", "0.49314395", "0.4...
0.74903035
0
Finalise attachments which were created during a preview, so that they have the proper reference IDs.
Завершите приложения, которые были созданы во время предварительного просмотра, чтобы они имели правильные идентификаторы ссылок.
function final_attachments_from_preview($id,$connection=NULL) { if (is_null($connection)) $connection=$GLOBALS['SITE_DB']; // Clean up the any attachments added at the preview stage $posting_ref_id=post_param_integer('posting_ref_id',NULL); if ($posting_ref_id<0) fatal_exit(do_lang_tempcode('INTERNAL_ERROR')); if...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function cleanup() {\n\t\tif(isset($this->data['attachment'])) {\n\t\t\tunlink($this->data['attachment']);\n\t\t}\n\t\tparent::cleanup();\n\t}", "public function clearAttachments()\n {\n $this->attachment = array();\n }", "public function clearAttachments()\n {\n }", "pro...
[ "0.6162208", "0.60773265", "0.5944728", "0.5764821", "0.5745962", "0.5708974", "0.5541586", "0.5502311", "0.5446814", "0.54389757", "0.5420234", "0.53190535", "0.5277699", "0.5252647", "0.5236821", "0.5230686", "0.52095145", "0.52088374", "0.5203098", "0.51967", "0.5192754", ...
0.72093266
0
Get updated at timestamp
Получить обновленное время метки
public function getTimestampUpdated() { return $this->_getData(self::TIMESTAMP_UPDATED); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getUpdated();", "public function getUpdated();", "public function updatedAt();", "public function getUpdateAt()\n {\n return $this->update_at;\n }", "public function getUpdateAt()\n {\n return $this->update_at;\n }", "public function getUpdatedTime() {\r\n ret...
[ "0.77729344", "0.77729344", "0.7740827", "0.7531787", "0.7531787", "0.7439004", "0.73268586", "0.73268586", "0.7320241", "0.7320241", "0.7320241", "0.7315486", "0.7315192", "0.72315246", "0.72315246", "0.72315246", "0.72315246", "0.72046155", "0.72038805", "0.7190573", "0.719...
0.7864526
0
Get processed at timestamp
Обрабатывается в момент времени
public function getTimestampProcessed() { return $this->_getData(self::TIMESTAMP_PROCESSED); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function timestamp();", "public static function timestamp() {}", "protected function getTimeStamp(){\n\t\t$result = $this->getFile()->getProperty('tstamp');\n\t\tif ($this->processedFile) {\n\t\t\t$result = $this->processedFile->getProperty('tstamp');\n\t\t}\n\t\treturn $result;\n\t}", "public functio...
[ "0.6738652", "0.66546535", "0.6548514", "0.6493461", "0.6478934", "0.6440051", "0.6428352", "0.64254755", "0.6417204", "0.63735324", "0.63649476", "0.635433", "0.6342181", "0.6342181", "0.6342181", "0.625202", "0.6226473", "0.62215203", "0.62215203", "0.62215203", "0.62215203...
0.7768829
0
This function return recruitment in a season param: $season_id :id of choosen season, default = last sesson id. return: $recruitment :contain recruitment information in season.
Эта функция возвращает набор данных о наборе кандидатов в сезон: параметр: $season_id : идентификатор выбранного сезона, по умолчанию = идентификатор последнего сезона. возвращается: $recruitment : содержит информацию о наборе кандидатов в сезоне.
public function getCompanyRecruitmentSeason($season_id = null) { //set default season if input null if (is_null($season_id)) { $season = \App\Season::getLastSeason(); $season_id = $season->id; } $recruitment = \App\Recruitment::getCompanyRecruitmentSeason($se...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSeasonId();", "public function getCurrentSeasonInfo() {\n\t\t// infomration about the current season \n\t\n\t\t// grab a couple of useful variables\n\t\t$modx\t\t\t= $this->modx;\n\t\t\n\t\t// current timestamp to compare\n\t\t$nowtime\t\t= time();\n\t\t\n\t\t$query\t\t\t= $this->modx->newQuer...
[ "0.5814862", "0.5770838", "0.5732658", "0.5677527", "0.5615896", "0.5586198", "0.55407643", "0.54365206", "0.54139435", "0.5397242", "0.5380079", "0.53254557", "0.53195363", "0.5318948", "0.52746964", "0.52543586", "0.52103245", "0.5186589", "0.5176744", "0.5168954", "0.51618...
0.7425924
0
This function return view of a recruitment created by enterprise param: recruitment_id : id of recruitment return: view readrecruitment : view return: form : form in view return: recruitment_contents :content of recruitment
Эта функция возвращает представление набора рекрутирования, созданного предприятием параметр: recruitment_id : идентификатор набора рекрутирования возвращается: представление readrecruitment : представление возвращается: форма : форма в представлении возвращается: recruitment_contents : содержание набора рекрутирования
public function readRecruitment($recruitment_id) { //get related objects with recruitment $recruitment = \App\Recruitment::where('id',$recruitment_id)->first(); $enterprise_info = \App\Enterprise::where('user_id',$recruitment->user_id)->first(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show(Recruitment $recruitment)\n {\n //\n }", "private function __view_receipt()\n {\n\t$vars\t= $_GET; //check. change to $_POST?\n\t$fields = array(\"Ind\"=>\"id\");\n\t\n\t$submit = isset($vars[\"submit\"])?true:false;\n\tif(!$submit)return;\t\t\t\t//error\t\n\t$id\t= isset($vars[...
[ "0.6810258", "0.6524104", "0.63626856", "0.6271852", "0.6175627", "0.61579317", "0.6096996", "0.60785455", "0.60649365", "0.6052325", "0.6044975", "0.5999829", "0.59926397", "0.59169835", "0.5916704", "0.59009385", "0.58751017", "0.5871707", "0.57964826", "0.576951", "0.57653...
0.7589762
0
Gets last inserted code.
Получает последний вставленный код.
public static function getLastInsertedCode() { return self::$lastInsertedCode; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getLastCode()\n {\n return $this->lastErrorCode;\n }", "function getMostRecentCodeMovement() {\n $res = $this->all();\n $index = count($res) - 1;\n return $res{$index}->code;\n }\n}", "public function get_code() {\n\t\treturn $this->code;\n\t}", "private f...
[ "0.72492796", "0.7102372", "0.70417726", "0.7003068", "0.69598126", "0.6895573", "0.68371725", "0.68371725", "0.68101174", "0.6766392", "0.67467934", "0.6742307", "0.6742307", "0.6742307", "0.6739898", "0.6731513", "0.6731513", "0.6731513", "0.66913575", "0.66913575", "0.6691...
0.8502568
0
Gets message for locked state.
Получает сообщение для состояния заблокированного.
public function getLockedMessage() { return Loc::getMessage('LANDING_HOOK_HEADBLOCK_LOCKED'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getLocked() {\n\t\treturn $this->get(\"locked\");\n\t}", "public function getLocked()\r\n {\r\n return $this->locked;\r\n }", "public function getLockStatus() {}", "public function getLocked(){\n if(empty($this->locked)) {\n return null;\n }\n return $thi...
[ "0.7280148", "0.69992316", "0.68804234", "0.66072696", "0.64388376", "0.6390929", "0.63640064", "0.62769246", "0.6221855", "0.6221855", "0.6181044", "0.612752", "0.60747826", "0.60422736", "0.60162437", "0.60046685", "0.600119", "0.59797823", "0.5949754", "0.5869425", "0.5850...
0.7845023
0
Title of Hook, if you want.
Заголовок хука, если хотите.
public function getTitle() { return Loc::getMessage('LANDING_HOOK_HEADBLOCK_NAME2'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getHookName(): string\n {\n return $this->hook_name;\n }", "public static function get_hook_name(){\r\n\t\treturn \"blog\";\r\n\t}", "public function GetTitle() {\n\t\treturn __( 'External DB Extension', 'wp-security-audit-log' );\n\t}", "public function get_title() {\n\t\treturn...
[ "0.7484982", "0.7457096", "0.7391267", "0.72810054", "0.70662177", "0.7064851", "0.70478034", "0.70358044", "0.7009299", "0.69967866", "0.69838274", "0.6938379", "0.6938379", "0.692143", "0.6905676", "0.68994784", "0.6889825", "0.688165", "0.6848354", "0.68396217", "0.6830295...
0.76431847
0
//////////////////////////////// ARGUMENTS $from_files = array( '/path/to/file1', '/path/to/file2', '/path/to/file3', ... ), $to_files = array( '/path/to/server/file1', '/path/to/server/file2', '/path/to/server/file3', ... ), $merge = true||false // true if you want replace exist files (default = false) $filter = array...
//////////////////////////////// ARGUMENTЫ $from_files = array( '/path/to/file1', '/path/to/file2', '/path/to/file3', ... ), $to_files = array( '/path/to/server/file1', '/path/to/server/file2', '/path/to/server/file3', ... ), $merge = true||false // true если вы хотите заменить существующие файлы (по умолчанию = false)...
public static function get_files( $from_files = array( ), $to_files = array( ), $merge = false, $filter = array( ) ) { $curly = array( ); $info = array( ); $ret = array( 'success' => true, 'from' => array( ), 'to' => array( ), 'status' => array( ), 'info' => array( ) ); $mh = curl_multi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function synch($remote, $local)\n{\n\tscan();\n\t$ch = curl_init($remote.\"/myp/index.php?process=synchreq&remote=\".$local);\n curl_setopt($ch, CURLOPT_HEADER, 0);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n $result = curl_exec($ch); \n curl_close($ch);\n\t$synch_data=json_decode($result);\n...
[ "0.61349386", "0.5976501", "0.56757385", "0.5617154", "0.5595411", "0.5392487", "0.5381409", "0.5358261", "0.5353412", "0.534941", "0.534401", "0.52985084", "0.529051", "0.52675766", "0.52646786", "0.524099", "0.52388877", "0.5237404", "0.52061784", "0.51470786", "0.5110492",...
0.8124726
0
Processes an uploaded CSV file, creating a new user for each row of values.
Обрабатывает загруженный файл CSV, создавая нового пользователя для каждой строки значений.
public static function processUpload(File $file, array $config) { $file = fopen($file->destination, 'r'); $created = 0; $memory_size = 1024; //1 Meg \Drupal::logger('user import')->notice('processUpload()'); while(! feof($file)) { $row = fgetcsv($file, $memory_size, "|"); // \...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function import_users($file_path) {\n $h = fopen($file_path,'r');\n if($h) {\n $line = 0;\n while(($data = fgetcsv($h, 1000, ',')) !== false) {\n $user_data = null;\n $user_id = null;\n $num = count($data);\n if($line > 0) { // skip first line headings\n // example csv columns: r...
[ "0.76242596", "0.70333326", "0.7009448", "0.6869898", "0.68504417", "0.6846778", "0.6377755", "0.62741846", "0.6271754", "0.6212317", "0.6207558", "0.6116234", "0.61081415", "0.6087419", "0.6075925", "0.6047894", "0.60415304", "0.59916013", "0.5984942", "0.596291", "0.590994"...
0.722423
1
Unset variables related to the guessing game
Удалить переменные, связанные с игрой в угадывание
public static function unsetGuess() { unset($_SESSION["game"]); unset($_SESSION["message"]); unset($_SESSION["cheat"]); var_dump("unsetting guess with class"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function resetVariables()\n {\n $this->score = 0;\n $this->savedScore = 0;\n $this->playerMessage = null;\n $this->hasWon = false;\n }", "public function resetVariables()\n {\n $this->score = 0;\n $this->savedScore = 0;\n $this->points = 0;\n ...
[ "0.730286", "0.7265188", "0.6686987", "0.668688", "0.66730446", "0.6564121", "0.64959556", "0.6487968", "0.6441007", "0.6418272", "0.6381961", "0.6356976", "0.63107187", "0.6278777", "0.6264055", "0.62617475", "0.6244361", "0.62425035", "0.6238402", "0.6227179", "0.6225889", ...
0.7880205
0
Tests that it is not possible to overwrite previously set class modifiers.
Тестирование того, что невозможно перезаписать ранее установленные модификаторы класса.
public function testSetModifiersThrowsExpectedExceptionOnOverwrite() { $class = new PHP_Depend_Code_Class('FooBar'); $class->setModifiers(PHP_Depend_ConstantsI::IS_FINAL); $class->setModifiers(PHP_Depend_ConstantsI::IS_FINAL); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testNoAnnotation()\n {\n $fooClass = new ReflectionClass(Foo::class);\n $this->assertTrue($fooClass->isFinal());\n }", "public function testAnnotation()\n {\n $fooClass = new ReflectionClass(Foo::class);\n $this->assertFalse($fooClass->isFinal());\n }", "...
[ "0.5904414", "0.5904308", "0.58768225", "0.5834003", "0.5665646", "0.5601704", "0.5596136", "0.5502503", "0.54989517", "0.5419713", "0.53864944", "0.5311163", "0.52905065", "0.5244848", "0.51857024", "0.512974", "0.51178443", "0.5117513", "0.5101495", "0.51014096", "0.5101292...
0.7594606
0
Tests the visitor accept method.
Проверяет метод accept посетителя.
public function testVisitorAccept() { $class = new PHP_Depend_Code_Class('clazz', 0); $visitor = new PHP_Depend_Visitor_TestNodeVisitor(); $class->accept($visitor); $this->assertSame($class, $visitor->class); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function acceptVisitor(Visitee $visitee_in, Visitor $visitor_in) {\n $visitee_in->accept($visitor_in);\n}", "function Visit(IVisitorAcceptor $acceptor);", "public function accept(/*mixed*/ $visitor) /*: mixed*/ {\n if (method_exists($visitor, \"visitFunctionData\")) {\n // UNSAFE\n return $visi...
[ "0.6946697", "0.6760307", "0.6541329", "0.6378748", "0.6270422", "0.6247242", "0.62163955", "0.62085885", "0.61300945", "0.6055492", "0.59101015", "0.5839727", "0.57896507", "0.57331085", "0.5700318", "0.5581332", "0.55552995", "0.5528002", "0.5508787", "0.5487331", "0.542917...
0.7234153
0
Scope a query to search checklist. Condition is employeeName
Ограничить запрос для поиска в списке проверок. Условие: имя сотрудника
public function scopeSearchEmployeeName($query,$employeeName=null){ if(empty($employeeName)) { return $query; } /* return*/ $query = $query ->whereRaw('concat('.\DB::getTablePrefix().'employees.first_name, '.\DB::getTablePrefix().'employees.last_name) like "%?%"',[$employeeNam...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function scopeSearchEmployeeId($query,$employeeId=null){\n if(empty($employeeId)) {\n return $query;\n }\n return $query\n ->where('employees.presentation_id', 'like','%' . $employeeId . '%');\n }", "public function scopeCheckList($query, $item_type, $work_locati...
[ "0.68997306", "0.6082456", "0.59852916", "0.5971632", "0.5935558", "0.5898925", "0.58912134", "0.58619493", "0.57523125", "0.5747322", "0.5730871", "0.5688389", "0.56877923", "0.565926", "0.5656813", "0.5596587", "0.55952233", "0.5587969", "0.55816066", "0.55816066", "0.55797...
0.7193647
0
Scope a query to search checklist. Conditon is employeeId
Ограничить запрос для поиска в чек-листе. Условие — employeeId
public function scopeSearchEmployeeId($query,$employeeId=null){ if(empty($employeeId)) { return $query; } return $query ->where('employees.presentation_id', 'like','%' . $employeeId . '%'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function scopeSearchEmployeeName($query,$employeeName=null){\n if(empty($employeeName)) {\n return $query;\n }\n/* return*/ $query = $query\n ->whereRaw('concat('.\\DB::getTablePrefix().'employees.first_name, '.\\DB::getTablePrefix().'employees.last_name) like \"%?%\"'...
[ "0.66639596", "0.65523934", "0.609104", "0.60875237", "0.59539545", "0.59402406", "0.59392935", "0.5844458", "0.5839676", "0.57391864", "0.5734819", "0.57215023", "0.5720597", "0.57020676", "0.57002246", "0.56715673", "0.56714696", "0.56690085", "0.5634661", "0.5612097", "0.5...
0.75055003
0
$_FILES["Ebanner"]["name"] the name of the uploaded file $_FILES["Ebanner"]["type"] the type of the uploaded file $_FILES["Ebanner"]["size"] the size in kilobytes of the uploaded file $_FILES["Ebanner"]["tmp_name"] the name of the temporary copy of the file stored on the server $_FILES["Ebanner"]["error"] the error cod...
$_FILES["Ebanner"]["name"] имя загруженного файла $_FILES["Ebanner"]["type"] тип загруженного файла $_FILES["Ebanner"]["size"] размер в килобайтах загруженного файла $_FILES["Ebanner"]["tmp_name"] имя временной копии файла, хранящейся на сервере $_FILES["Ebanner"]["error"] код ошибки, возникший при загрузке файла
function upLoadBanner(){ $timestamp = date('YmdHi'); //timestamp $uploaddir = "./banners/"; //location to store image $filename = $timestamp . $_FILES['Ebanner']['name']; $filename = strtolower($filename); //create image name with lower case $filename = str_replace(' ', '_', $filen...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function dz_files()\n {\n if (!empty($_FILES) && $_FILES['file']) {\n $file = $_FILES['file'];\n\n\n foreach ($file['error'] as $key=>$error) {\n $uploadfile = sys_get_temp_dir().basename($file['name']['key']);\n move_uploaded_file($fil...
[ "0.6447106", "0.64318466", "0.62386364", "0.62311757", "0.6230837", "0.6215835", "0.6191846", "0.6148395", "0.61326706", "0.61172545", "0.61143607", "0.60727483", "0.60679173", "0.5982582", "0.5952334", "0.59414786", "0.59107524", "0.5907606", "0.59019476", "0.5898107", "0.58...
0.765533
0
/ Sanitize() function removes any potential threat from the data submitted. Prevents email injections or any other hacker attempts. if $remove_nl is true, newline chracters are removed from the input.
Функция Sanitize() удаляет любые потенциальные угрозы из поданных данных. Предотвращает въезд электронной почты или любые другие попытки хакеров. Если $remove_nl истинно, переносы строк извлекаются из ввода.
function Sanitize($str, $remove_nl = true){ $str = $this->StripSlashes($str); if($remove_nl){ $injections = array('/(\n+)/i', '/(\r+)/i', '/(\t+)/i', '/(%0A+)/i', '/(%5E+)/i', '/(%5F+)/i', '/(60%+)/i', '/(%7E+)/i', '/(%7F+)/i', '/(%E2%82%AC+)/i', '/(81%+)/i', '/(%E2%80%9A+)/i', '/(%C6%92+)/i', '...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Sanitize($str,$remove_nl=true)\n {\n $str_stripped = $this->StripSlashes($str);\n\n if($remove_nl)\n {\n $injections = array('/(\\n+)/i',\n '/(\\r+)/i',\n '/(\\t+)/i',\n '/(%0A+)/i',\n '/(%0D+)/i',\n ...
[ "0.7100567", "0.70977247", "0.6941471", "0.67130595", "0.6635214", "0.659623", "0.6578418", "0.62948596", "0.6294845", "0.62874043", "0.6284563", "0.6247328", "0.62235516", "0.621688", "0.621688", "0.62113553", "0.62042373", "0.619277", "0.6185469", "0.6178856", "0.61787844",...
0.7112574
0
Promotes a NavigateInstructionNode to a NavigateInstruction
Преобразует NavigateInstructionNode в NavigateInstruction
public function promote(NavigateInstructionNode $instructionNode) { return new NavigateInstruction( $this->expressionNodePromoter->promote($instructionNode->getRouteNameExpression()), $instructionNode->getRouteArgumentStructureExpression() !== null ? $this->expression...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function moveToNextSiblingOf(BaseObject $node, BaseObject $dest_node)\n {\n $node->setParentIdValue($dest_node->getParentIdValue());\n $node->setScopeIdValue($dest_node->getScopeIdValue());\n $this->addPreSaveStackEntries(self::getUpdateTreeQueries($node, $dest_node->getRightValue() + 1));\n }", ...
[ "0.4887627", "0.4794716", "0.4628282", "0.45996", "0.45912912", "0.45651153", "0.4492084", "0.4459977", "0.43325067", "0.42958838", "0.42940116", "0.42697147", "0.42556265", "0.42291164", "0.4223108", "0.4219303", "0.42094517", "0.41418788", "0.41352206", "0.41284895", "0.411...
0.7166213
0
Get mutable resource types, exposed to user changes via API.
Получить изменяемые типы ресурсов, доступные пользователю для изменения через API.
public function mutableResourceTypes(): array { return [ 'node--article' => TRUE, 'node--document' => TRUE, // 'custom_entity--custom_entity' => TRUE, ]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static public function getThemeResourceTypes();", "public function index()\n {\n $types = $this->allResources($this->typeRepository);\n\n return TypeResource::collection($types);\n }", "protected function getTypes() {}", "private function resource_type_list() {\n\n\t\t$this->load_site_set...
[ "0.6557647", "0.65208083", "0.6420348", "0.63829446", "0.63659185", "0.6345784", "0.63249", "0.63249", "0.63249", "0.63249", "0.63249", "0.63249", "0.63249", "0.63249", "0.6276567", "0.6276567", "0.6276567", "0.6276567", "0.62399495", "0.62399495", "0.62399495", "0.62399495...
0.78777903
0
Get class instance object KukulkanPopolvux\CoinspaidApiLaravel\Api
Получить объект экземпляра класса KukulkanPopolvux\CoinspaidApiLaravel\Api
static public function api(): Api { return new Api; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract function getApiObjectClass();", "public function api ()\n {\n return new Api($this->url, $this->port);\n }", "protected function _apiInstance() {\n\t\treturn new Thrive_Dash_Api_WebinarJamStudio( $this->param( 'key' ) );\n\t}", "public function getApiService();", "function get_...
[ "0.73022807", "0.71533585", "0.71429247", "0.7118026", "0.71140677", "0.7109238", "0.7109238", "0.7109238", "0.7002332", "0.6997693", "0.6878667", "0.6765799", "0.6763771", "0.6729062", "0.66997683", "0.66839504", "0.6662955", "0.6659053", "0.66338843", "0.6617708", "0.660107...
0.75923693
0
Get count of documentSignatures.
Получить количество documentSignatures.
public function getDocumentSignaturesCount() { return $this->documentSignatures->count(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDocumentSignaturesCount()\n {\n return $this->count(self::DOCUMENTSIGNATURES);\n }", "public function getSignatures()\n {\n return $this->signatures;\n }", "public function getSignatures()\n {\n return $this->signatures;\n }", "public function count()...
[ "0.904073", "0.64673585", "0.64673585", "0.6295619", "0.62462133", "0.62462133", "0.6187046", "0.6052546", "0.59046185", "0.5904462", "0.5896703", "0.5875161", "0.58271086", "0.57519704", "0.57430595", "0.5714727", "0.57065237", "0.56627584", "0.5653717", "0.5653595", "0.5644...
0.91050035
0
Get filename of the first document signature.
Получить имя файла первого документа с подписью.
public function getFirstDocumentSignatureFilename() { if ($this->getDocumentSignaturesCount() > 0) { /** @var DocumentSignature $signature */ $signature = $this->documentSignatures->first(); return $signature->getDocument()->getFilename(); } return; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFileName() {\n\t\t$spec = self::$specs[$this->id];\n\t\treturn array_value($spec, \"filename\", FALSE);\n\t}", "public function getFilename()\n {\n return $this->filename . '.pdf';\n }", "public function getFilename()\n {\n if (!$this->fileName) {\n $matcher...
[ "0.6872652", "0.67935276", "0.6781901", "0.6718684", "0.667105", "0.6649919", "0.66474843", "0.6643391", "0.65873575", "0.6550858", "0.65251493", "0.6513059", "0.65013796", "0.6480368", "0.6480218", "0.64389026", "0.64300436", "0.642509", "0.6421245", "0.64042443", "0.640346"...
0.9016004
0
Is all document signatures are created.
Созданы ли все подписи документа.
public function isDocumentSignaturesCreated() { if (!$this->documentSignatures->count()) { return false; } foreach ($this->getDocumentSignatures() as $signature) { if (!$signature->isCreated()) { return false; } } return t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isDocumentSignaturesCompleted()\n {\n if (!$this->documentSignatures->count()) {\n return false;\n }\n\n foreach ($this->getDocumentSignatures() as $signature) {\n if (!$signature->isCompleted()) {\n return false;\n }\n ...
[ "0.66186035", "0.6509855", "0.6102058", "0.6004931", "0.58843315", "0.5870596", "0.583159", "0.58095187", "0.5787519", "0.5683559", "0.56210136", "0.5543275", "0.5488809", "0.54334545", "0.5426133", "0.5397015", "0.537341", "0.536189", "0.5355442", "0.5310288", "0.52925956", ...
0.79765284
0
Is all document signatures are completed.
Завершены ли все подписи документа.
public function isDocumentSignaturesCompleted() { if (!$this->documentSignatures->count()) { return false; } foreach ($this->getDocumentSignatures() as $signature) { if (!$signature->isCompleted()) { return false; } } retu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isDocumentSignaturesCreated()\n {\n if (!$this->documentSignatures->count()) {\n return false;\n }\n\n foreach ($this->getDocumentSignatures() as $signature) {\n if (!$signature->isCreated()) {\n return false;\n }\n }\n\...
[ "0.6782051", "0.6696484", "0.6428095", "0.63413066", "0.63269037", "0.6307093", "0.62945217", "0.62834865", "0.6263429", "0.6259731", "0.624883", "0.6241162", "0.6240541", "0.6222937", "0.6217081", "0.6212122", "0.62027854", "0.61683613", "0.61669207", "0.61407405", "0.613686...
0.8518143
0
Returns the view transformers of the form.
Возвращает преобразователи представлений формы.
public function getViewTransformers(): array;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getTransformers()\n {\n return $this->getTransformerContainer()->getTransformers();\n }", "public function getModelTransformers(): array;", "public function getTransformations()\n {\n return $this->transformations;\n }", "public function getTransformResults()\n {\n ...
[ "0.7193957", "0.6989908", "0.66575366", "0.61132115", "0.5901043", "0.5778199", "0.57637537", "0.5761868", "0.57592815", "0.5749445", "0.568333", "0.5608702", "0.55780846", "0.5545862", "0.5537029", "0.55100226", "0.5490441", "0.54832464", "0.5435027", "0.54222953", "0.540739...
0.7589891
0
Returns the model transformers of the form.
Возвращает трансформеры модели в виде.
public function getModelTransformers(): array;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getTransformers()\n {\n return $this->getTransformerContainer()->getTransformers();\n }", "public function getTransformations()\n {\n return $this->transformations;\n }", "public function getViewTransformers(): array;", "public function getTransformer();", "public functio...
[ "0.72796893", "0.66304743", "0.6401894", "0.6250133", "0.5955403", "0.5936214", "0.5863664", "0.5761152", "0.5739516", "0.5710936", "0.56834584", "0.5638529", "0.5587096", "0.5577875", "0.55734324", "0.5556885", "0.5524296", "0.5468835", "0.5463046", "0.5461139", "0.54589087"...
0.782996
0
Returns whether errors attached to the form will bubble to its parent.
Возвращает, будут ли ошибки, прикрепленные к форме, передаваться ее родителю.
public function getErrorBubbling(): bool;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getErrors(){\n if( !isset($this->openForm) ) return false;\n if( !is_bool($this->openForm) && !is_array($this->openForm) )\n return self::getFormErrors($this->openForm);\n if( is_array($this->openForm) )\n return self::getFormErrors($this->openForm['formid...
[ "0.6868516", "0.6622468", "0.66124374", "0.65421146", "0.65381104", "0.6446637", "0.64322555", "0.6359115", "0.6352241", "0.6229985", "0.61668134", "0.6152946", "0.6142828", "0.6138316", "0.61060107", "0.61059207", "0.6093726", "0.60897577", "0.6081051", "0.6076163", "0.60744...
0.7421312
0
Returns the form factory used for creating new forms.
Возвращает фабрику форм, используемую для создания новых форм.
public function getFormFactory(): FormFactoryInterface;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFormFactory()\n {\n $resolvedFormTypeFactory = new ResolvedFormTypeFactory();\n\n $registery = new FormRegistry(array(\n new CoreExtension(),\n new FilterExtension(),\n ), $resolvedFormTypeFactory);\n\n $formFactory = new FormFactory($register...
[ "0.8916184", "0.78865415", "0.76145583", "0.7479797", "0.7254472", "0.7183675", "0.7082176", "0.70365644", "0.6996541", "0.69923615", "0.69323015", "0.6931769", "0.69135547", "0.6885729", "0.688087", "0.688087", "0.688087", "0.688087", "0.688087", "0.688087", "0.688087", "0...
0.81106836
1
Agrega un perfil de Usuario
Добавь профиль пользователя
public function addPerfilAction() { $perfil= new Perfiles(); $perfil->setIdperfilUsuario("Sec"); $perfil->setNombrePerfil("Secretaria"); $perfil->setDescripcionPerfil("Perfil Agregado desde UsuariosController"); $em=$this->getDoctrine()->getEntityManager(); $em->...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function iniciar_perfil(){\n\t\t// if(!isset($_SESSION['id_user'])){\n\t\t// \theader('location : index.php');\n\t\t// }\n\n\t\trequire_once 'inc/clases/procesos/fechas.class.php';\n\t\trequire_once 'inc/clases/perfil/usuarios.class.php';\t\t\t//clase usuarios\n\t\t$this->Modulos = new Modulos();\t\n\t\t$t...
[ "0.6915988", "0.6672987", "0.6572658", "0.64989716", "0.6455969", "0.6317988", "0.63131416", "0.62959063", "0.6275587", "0.6268805", "0.62658054", "0.62536585", "0.6234348", "0.61285466", "0.6102922", "0.6042179", "0.6039187", "0.60093766", "0.59764886", "0.59498334", "0.5909...
0.71457905
0
Find all the gallery images from the Gallery API
Найдите все изображения галереи из API Галереи
public function get_all_gallery_images() { check_ajax_referer( 'daylife-gallery-add-nonce', 'nonce' ); require_once( dirname( __FILE__ ) . '/class-wp-daylife-api.php' ); $daylife = new WP_Daylife_API( get_option( 'daylife' ) ); // Should be int but santize value as id can be bigger than maximum int value $g...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getGalleryImages()\n {\n $user_id = Auth::user()->user_id;\n\n $images = Azure::getImageThumbnailFiles($user_id);\n $imageOrder = DB::table(\"users\")\n ->select(\"gallery_order\")\n ->where(\"user_id\", $user_id)\n ->first();\n\n retu...
[ "0.75947016", "0.7525284", "0.7524897", "0.74791145", "0.7444777", "0.7275313", "0.72585875", "0.72251153", "0.7187014", "0.7180199", "0.70703834", "0.70627135", "0.7057909", "0.7012491", "0.7000969", "0.6996758", "0.69604737", "0.695823", "0.6936983", "0.69349855", "0.690583...
0.82136595
0
Insert gallery shortcode into the post
Вставить короткий код галереи в пост
public function insert_gallery_shortcode() { check_ajax_referer( 'daylife-gallery-add-nonce', 'nonce' ); // TODO: Update to insert ids into shortcode so it works with new media tool echo '[gallery]'; die(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function gallery_section_shortcode( $atts, $content = null ) {\t\n\t$output = '<li>';\n\t$output .= do_shortcode($content);\n\t$output .= '</li>';\n\treturn $output;\n}", "function register_shortcodes() {\n\tadd_shortcode('gallery1', 'gallery1_callback');\n}", "function launchpad_gallery_shortcode($attr) {\n\t...
[ "0.73751044", "0.7312326", "0.7304576", "0.7300543", "0.7255892", "0.7206744", "0.71946025", "0.7131513", "0.7053309", "0.7051086", "0.7040881", "0.7021526", "0.69639105", "0.69420546", "0.69243234", "0.6888519", "0.68219393", "0.6818246", "0.68113124", "0.67789483", "0.67635...
0.8083647
0
Throw products data extension
Расширение данных продуктов
function dbThrowProductExt( $iProduct ){ return $GLOBALS['oFF']->throwData( DB_PRODUCTS_EXT, $iProduct ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function dbThrowProducts( ){\n return $GLOBALS['oFF']->throwFileArraySmall( DB_PRODUCTS, null, 0, 1 );\n }", "public function getProductSaveInfo($product, $data) {\n $product->setColor ( $data [11] );\n $product->setCost ( $data [12] );\n $product->setCountry ( $data [13] );\n $product->setCo...
[ "0.68510723", "0.6453794", "0.6444604", "0.63656014", "0.6358371", "0.6336915", "0.6288288", "0.61884487", "0.61768204", "0.61424387", "0.61279565", "0.609987", "0.6087934", "0.60853887", "0.60578346", "0.6046526", "0.6037408", "0.60361856", "0.6031064", "0.6011013", "0.59938...
0.7474704
0
/! \public Constructor init the element with the given params: \in \$fex = ref to the parent $formex object some properties are copied \$name = str the name of the element without the "prefix" \$params = arr list w/ up to 6 elements: 0 the element description/label 1 the type of element (text,password,richTextEditor,co...
/! \public Конструктор инициализирует элемент с заданными параметрами: \in \$fex = ссылка на родительский объект $formex некоторые свойства копируются \$name = строка имя элемента без префикса \$params = массив с до 6 элементов: 0 описание/название элемента 1 тип элемента (text,password,richTextEditor,colorpicker и т.д...
function formex_field(&$fex, $name, $params) { // find field 'name' param (and key used throughout) $this->fname = $fex->field_prefix . $name; $this->max_size = $fex->max_size; // dupe this value, should be universal $this->element_class = $fex->element_class; // dupe this value, s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function init()\n\t{\n\t\t$firstname = $this->createElement('text', 'firstname')\n\t\t\t\t\t ->setLabel('First Name')\n\t\t\t \t\t ->setAttrib('class', 'medium')\n\t\t\t\t\t ->setRequired(TRUE)\n\t\t\t\t\t ->addFilters(array('StringTrim'))\n\t\t\t\t\t ->addValidator('NotEmpty')\n\t\t\t\t\t ->setDecorators($...
[ "0.6347091", "0.6344574", "0.6340863", "0.62791723", "0.625304", "0.62187475", "0.61999977", "0.61921597", "0.61667174", "0.6165218", "0.605773", "0.5993073", "0.5986024", "0.59719324", "0.5935435", "0.5910243", "0.5878235", "0.5870831", "0.5859294", "0.58501405", "0.5836994"...
0.79352164
0
/! \public set the fixed length of the field as rendered (sets the maxlength attrib)
/! \public устанавливает фиксированную длину поля при отображении (устанавливает атрибут maxlength)
function set_field_length($len) { $this->attribs['maxlength'] = $len; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setMaxLength($length) {\n\n $this->field['maxlength'] = $length;\n return $this;\n\n }", "public function setMaxLength($length);", "public function setMaxLength($maxLength) {}", "public function setLength($length);", "public function setMaxLength($length) {\n $this->maxlength = $leng...
[ "0.7744213", "0.7613946", "0.7522788", "0.7275496", "0.72433054", "0.7117334", "0.68756574", "0.6762609", "0.6744512", "0.6713389", "0.66894823", "0.6681453", "0.6669783", "0.6669213", "0.6663042", "0.6663042", "0.6614035", "0.66017085", "0.6549686", "0.65495825", "0.6490245"...
0.8496418
0
/! \public set the element to an error state (missing value, etc.) has no real effect can be overridden
/! \public установка элемента в состояние ошибки (отсутствующее значение и т.д.) не имеет реального эффекта, может быть переопределено
function set_error() { $this->error_state = FORMEX_FIELD_ERROR; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setInvalid();", "protected function setErrorClassAttribute() {}", "protected function setErrorsExist() {}", "public function setError($err);", "function setError( $state);", "public function validateElement() {\r\n if (!$this->object->validate()) {\r\n /** @var modValida...
[ "0.692832", "0.67781365", "0.67195106", "0.6612576", "0.6538896", "0.64205986", "0.6314269", "0.62728333", "0.6260241", "0.6230494", "0.61916584", "0.6167562", "0.61526567", "0.61141235", "0.6100241", "0.60283536", "0.6020395", "0.6020395", "0.60178065", "0.6014724", "0.59586...
0.7316219
0
/! private a special 'htmlentities' function which prevents 'double' encoding of the ampersands of already present entities (> => >) taken from comment at
/! частная специальная функция 'htmlentities', которая предотвращает 'двойное' кодирование амперсандов уже существующих сущностей (> => >), взятых из комментария
function _htmlentities($str) { $transtab=get_html_translation_table (HTML_ENTITIES,ENT_QUOTES); $transtab[chr(38)] = '&'; return preg_replace("/&(?![A-Za-z]{0,4}\w{2,3};|#[0-9]{2,5};)/","&amp;" , strtr($str, $transtab)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function _wp_specialchars( $string, $quote_style = ENT_NOQUOTES, $charset = false, $double_encode = false ) {\n if ( $double_encode ) {\n $string = @htmlspecialchars( $string, $quote_style, $charset );\n } else {\n // Decode &amp; into &\n $string = wp_specialchars_decode( $string, $quot...
[ "0.76178855", "0.76023686", "0.75582033", "0.75397384", "0.74860716", "0.7407032", "0.72878337", "0.72793585", "0.72665524", "0.72564536", "0.7220128", "0.7211701", "0.71277267", "0.71107185", "0.71018237", "0.70758826", "0.7064313", "0.70542884", "0.7036118", "0.70344657", "...
0.79190755
0
/! private finds the proper field size attribute mostly used for text fields of various types. If attribs['size'] is set, use that. Otherwise go to max_size if if it more than the maxlength attribute.
/! private находит правильный атрибут размера поля, в основном используемый для текстовых полей различных типов. Если attribs['size'] задан, используйте его. В противном случае переходите к max_size, если он больше, чем атрибут maxlength.
function _get_field_size() { if (isset($this->attribs['size'])) { return $this->attribs['size']; } elseif ($this->attribs['maxlength'] > $this->max_size) { return $this->max_size; } else { return $this->attribs['maxlength']; } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function _max_size($field, $size)\r\n\t{\r\n\t\treturn ($this->{$field} > $size) ? FALSE : TRUE;\r\n\t}", "public function getSizeAttribute()\n {\n return self::SIZES[$this->attributes['size']];\n }", "function set_field_length($len) \n {\n $this->attribs['maxlength'] = $len;\n }", ...
[ "0.61348003", "0.5916793", "0.5798014", "0.57619816", "0.5676765", "0.5667822", "0.56577414", "0.5645373", "0.5623342", "0.55914783", "0.5583761", "0.55788213", "0.5560984", "0.5550717", "0.5542906", "0.5502783", "0.54797465", "0.5469627", "0.54644763", "0.54444516", "0.54216...
0.79495615
0
individual private methods for form field types below: /! \private returns html for a text field
отдельные приватные методы для типов полей формы ниже: /! \private возвращает html для поля текста
function _field_text($fval) { $fval = (empty($fval) && !empty($this->opts))? $this->opts : $fval; if (is_array($fval) && !empty($this->attribs['multi'])) $fval = ''; // we can't handle this here. Don't put "Array" return sprintf("<input type=\"text\" id=\"%s\" name=\"%s%s\" val...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function text_field($object, $field, $options = array()) {\n $form = new FormHelper($object, $field);\n return $form->to_input_field_tag(\"text\", $options);\n}", "function render_html($fval) \n {\n $methodname = '_field_' . $this->type;\n if (!method_exists($this, $methodname)) {\n ...
[ "0.71848077", "0.7030114", "0.7007598", "0.6986743", "0.6986508", "0.694173", "0.6904213", "0.6863985", "0.68431234", "0.6761123", "0.6754445", "0.6743236", "0.67191356", "0.67029136", "0.6701241", "0.6695109", "0.66904086", "0.6626986", "0.662439", "0.66077846", "0.6606746",...
0.7197279
0
/! \private returns html for a hidden field can pass default value in $params array slot 2 ("opts")
/! \private возвращает html для скрытого поля можно передать значение по умолчанию в массив $params слот 2 ("opts")
function _field_hidden($fval) { $myval = (empty($fval) && !empty($this->opts))? $this->opts : $fval; return sprintf("<input type=\"hidden\" name=\"%s\" id=\"%s\" class=\"%s\" value=\"%s\" />", $this->fname, $this->fname, (!empty...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ffw_port_hidden_callback( $args ) {\n global $ffw_port_settings;\n\n $hidden = isset($args['hidden']) ? $args['hidden'] : false;\n\n if ( isset( $ffw_port_settings[ $args['id'] ] ) )\n $value = $ffw_port_settings[ $args['id'] ];\n else\n $value = isset( $args['std'] ) ? $args['st...
[ "0.6995897", "0.6761734", "0.67550445", "0.672066", "0.65933824", "0.6571243", "0.65707254", "0.6569836", "0.64992845", "0.649136", "0.6445657", "0.64267635", "0.6371878", "0.6370866", "0.6314323", "0.6309794", "0.62800086", "0.6273455", "0.6194193", "0.6174733", "0.6166931",...
0.70585257
0
/! \private returns html a "heading" basically just the description used in display()'ed sometimes you prob. want to override this
/! \private возвращает html "заголовок", в основном, просто описание, используемое в display() иногда вы, вероятно, захотите переопределить это
function _field_heading($fval) { return '<span class="formHeading">' . $this->descrip . '</span>'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static function generateTableHeaderHTML()\n\t{\n\t\techo \"<p class=left>Description:</p>\\n\";\n\t}", "public function getHeading(): string;", "function display_header_text()\n {\n }", "protected function getHeadingHtml() {\n\t\t$heading = '';\n\t\tif ( $this->isUserPage ) {\n\t\t\t// The heading is j...
[ "0.74051905", "0.71300846", "0.7116916", "0.70157903", "0.69421464", "0.6913882", "0.68644524", "0.6781568", "0.6746514", "0.6746296", "0.67069507", "0.6697689", "0.6697689", "0.6696118", "0.669443", "0.6681933", "0.66686875", "0.66644007", "0.66463643", "0.66340023", "0.6620...
0.720009
1
/! returns html for dateinput fields two selects (month, day) and for year, either another select or a length4 text depending on whether $opts is set. If so, the year drop down will contain $opts years, sequential and inclusive of the current year. So there. no error checking or autoconcatination is done (currently) it...
/! возвращает html для полей dateinput, состоящих из двух селектов (месяц, день) и года, либо ещё одного селекта, либо текстового поля длиной 4 символа в зависимости от того, задан ли $opts. Если задан, то в раскрывающемся списке года будут содержаться $opts лет, последовательные и включающие текущий год. Так и есть. Н...
function _field_date($fval) { // if $fval is not already split up, we assume std. date string // YYYY-MM-DD if (is_array($fval)) { $f_date = &$fval; } elseif ($fval) { $f_date = split('-', $fval, 3); } else { $f_date = array('','',...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function form_date($field, $options){\n $defaults = array(\n 'wrap' => true,\n 'label' => true,\n 'class' => array('date', 'input'),\n 'minYear' => date('Y') - 10,\n 'maxYear' => date('Y') + 10,\n 'months' => array(\n 1 => 'January',\n 2 => 'Februa...
[ "0.7298301", "0.7044396", "0.68686664", "0.6831126", "0.6794945", "0.6753295", "0.67309797", "0.6673771", "0.65819335", "0.6574028", "0.6551559", "0.64871687", "0.6483557", "0.6391466", "0.6363778", "0.6158955", "0.6135299", "0.6127204", "0.60875434", "0.6081231", "0.60711235...
0.75686926
0
/! same as field_date but expects input in MM/DD/YYYY US format
/! такой же, как field_date, но ожидает ввод в формате MM/DD/YYYY США
function _field_date_us($fval) { $f_date = ""; if ($fval) { list($m,$d,$y) = split('/', $fval); $f_date = array($y, $m, $d); } return $this->_field_date($f_date); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function cfdef_input_date( $p_field_def, $p_custom_field_value ) {\n\tprint_date_selection_set( 'custom_field_' . $p_field_def['id'], config_get( 'short_date_format' ), $p_custom_field_value, false, true );\n}", "public static function convert_date_field() {\n\n\t\t// Create a new Phone field.\n\t\tself::$field ...
[ "0.68065596", "0.67794997", "0.6759888", "0.67318076", "0.67028385", "0.66609144", "0.66292876", "0.6591158", "0.6590489", "0.65825254", "0.65603733", "0.6547575", "0.65009904", "0.64864856", "0.63965905", "0.63800263", "0.6368947", "0.63230455", "0.62951607", "0.62804663", "...
0.7421878
0
/! same as _field_text but size is always 2 this hints to users they should put their 2letter state abbr. but lets them put NSW if they live in Australia, or whatever the case may be
/! то же самое, что и _field_text, но размер всегда 2; это подсказывает пользователям, что им следует вводить двухбуквенное сокращение штата, но позволяет вводить NSW, если они живут в Австралии, или что-нибудь еще, в зависимости от ситуации
function _field_state_abbr($fval) { $this->attribs['size'] = 2; return $this->_field_text($fval); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function wc_elshaddai_bfield( $fields ) {\n $fields['billing_number']['maxlength'] = 5;\n $fields['billing_address_2']['maxlength'] = 30;\n $fields['billing_address_2']['label_class'] = array('');\n $fields['billing_neighborhood']['required'] = true;\n return $fields;}", "function getLabelField() ...
[ "0.6028475", "0.5803113", "0.57068896", "0.5706598", "0.556495", "0.5561824", "0.55578864", "0.54984623", "0.5488268", "0.54705524", "0.542882", "0.5423476", "0.5412505", "0.53955495", "0.5391074", "0.5387075", "0.5379523", "0.5304857", "0.5287857", "0.5283944", "0.5270745", ...
0.7515979
0
/! \private returns html for a readonly form field really just a text label and a hidden field with the given name and value, to fool the censors on the processing side
/! \private возвращает html для поля формы только для чтения, в действительности это просто текстовая метка и скрытое поле с заданным именем и значением, чтобы обмануть цензуру на стороне обработки
function _field_readonly($fval) { $fval = (empty($fval) && !empty($this->opts))? $this->opts : $fval; $res = sprintf("<span class=\"%s\">%s</span>\n", (isset($this->attribs['class']))? $this->attribs['class'] : $this->element_class, $this->_htmlentiti...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function jabHtmlReadOnly($label, $id, $value, $class=\"\", $name=\"\")\n{\n\tif ($name==\"\")\n\t\t$name=$id;\n\tif ($class!=\"\")\n\t\t$class=\" class=\\\"\".$class.\"\\\"\";\n\t$value=htmlspecialchars($value);\n\techo \"<label for=\\\"$name\\\">$label</label><input$class type=\\\"text\\\" id=\\\"$id\\\" name=\\\...
[ "0.7458368", "0.72351134", "0.714113", "0.71025", "0.7072802", "0.69354725", "0.6788072", "0.6781667", "0.677124", "0.6729241", "0.66879016", "0.66849047", "0.66729844", "0.6668124", "0.66478926", "0.66436666", "0.6619791", "0.6602471", "0.65929765", "0.658813", "0.65694714",...
0.7576173
0
/! builds little RGB color picker field with a nice swatch to show the current color, and a popup div to select a new one. needs JS functions to operate:
/! создаёт небольшое поле выбора цвета RGB с приятным образцом, показывающим текущий цвет, и попап-окном для выбора нового цвета. требуется JS-функции для работы:
function _field_colorpicker($fval) { $this->attribs['size'] = 7; $res = $this->_field_text($fval); $name = $this->fname; $res .= sprintf("<span id=\"swatch_%s\" style=\"border: 2px solid black; background-color: %s\"> <a href=\"#\" onclick=\"cp_displayTogg...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function phpkd_vblvb_color_picker($size = 12, $display = 'none')\n{\n\tglobal $vbulletin, $colorPickerWidth, $colorPickerType;\n\n\t$previewsize = 3 * $size;\n\t$surroundsize = $previewsize * 2;\n\t$colorPickerWidth = 21 * $size + 22;\n\n\t$html = \"\n\t<style type=\\\"text/css\\\">\n\t#colorPicker\n\t{\n\t\tbackg...
[ "0.7499336", "0.7321724", "0.6891263", "0.6875985", "0.6842698", "0.68309987", "0.6793053", "0.6696774", "0.66769624", "0.6591015", "0.64886177", "0.64869946", "0.63945705", "0.63709563", "0.6370227", "0.6358136", "0.63380903", "0.63379884", "0.63361865", "0.6311136", "0.6297...
0.7753555
0
sets up a small "subform" in a tag which thanks to the magic of jQuery manipulation can be duplicated WITHIN the mainform. Thus you can have variable arbitrary numbers of sets of fields, for models/objects that are associated with the model/object in the main form. to enable this functionality, include js/grouped_field...
устанавливает небольшой "вложенный формсет" в теге, который благодаря магии jQuery-манипуляций может быть скопирован ВНУТРИ основной формы. Таким образом, вы можете иметь переменное, произвольное количество наборов полей для моделей/объектов, связанных с моделью/объектом в основной форме. Чтобы включить эту функциональ...
function _field_grouped_fieldset ($fval) { $res = ''; $setName = $this->name; // how many sets to show to begin w/? if (!empty($fval) and is_array($fval)) $numsets = count($fval); else $numsets = (isset($this->attribs['numsets']))? $this->attribs['numsets'] : 1; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function render_form_fields ( $opt_groups, $prefix, $name_attr = false ) {\n\n #$first_row = null;\n\t\t\t\t#$rowgroup_counter = false;\n $output = '';\n \n\t\t\t\tforeach ( $opt_groups as $group => $opt_fields ) {\n\n \t\t$output.= '<fieldset class=\"'.$group.'\"><legend>'. $opt_field...
[ "0.6527721", "0.6364202", "0.631432", "0.6262586", "0.62563777", "0.62126315", "0.60410744", "0.5984891", "0.597018", "0.59208757", "0.5916013", "0.5908389", "0.5895726", "0.5887364", "0.58630395", "0.58523476", "0.58088374", "0.57721806", "0.5734805", "0.5705837", "0.5703767...
0.7274677
0
Test User List for Admin
Список тестовых пользователей для администратора
public function testUserListForAdmin() { $user = User::factory()->create(); $response = $this->actingAs($user, 'api') ->getJson('/api/user'); $response ->assertStatus(200) ->assertJson([ 'success' => true, 'data' => true, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testAdminUser()\n {\n //$user = Sentry::getUserProvider()->findByLogin('admin@local.localhost');\n //$this->be($user);\n\n $response = $this->call('GET', 'admin/users');\n\n // Make sure we can't view the admin pages.\n $this->assertFalse($response->isNotFound(...
[ "0.764724", "0.7500633", "0.7240735", "0.7203254", "0.7163203", "0.715673", "0.7023991", "0.70221025", "0.694491", "0.69395393", "0.69207644", "0.6920274", "0.6920185", "0.6911843", "0.6909297", "0.68814856", "0.6879247", "0.6872014", "0.6866173", "0.6845236", "0.6843348", ...
0.83199054
0
Delete User by NonAdmin User
Удаление пользователя с помощью пользователя NonAdmin
public function testDeleteUserForNonAdminUser() { $user = User::factory()->create([ 'type' => 'user', ]); $response = $this->actingAs($user, 'api') ->deleteJson('/api/user/' . $user->id); $response->assertStatus(403); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function delete_user($user);", "public function deleteUser()\n {\n $this->delete();\n }", "public function deleteAction(){\n \n $req=$this->getRequest();\n $user=Doctrine::getTable('Users')->find($req->getParam('id')); \n\n // Gli utenti developer non possono essere eliminati ...
[ "0.77650523", "0.76811266", "0.74752194", "0.746136", "0.7393431", "0.7340461", "0.73263204", "0.7316689", "0.7295522", "0.728962", "0.72323304", "0.722492", "0.7222823", "0.72105527", "0.71953034", "0.71478", "0.71384245", "0.7132072", "0.7124275", "0.7117586", "0.7117586", ...
0.7734135
1
Template for comments and pingbacks. To override this walker in a child theme without modifying the comments template simply create your own tempera_comment(), and that function will be used instead. Used as a callback by wp_list_comments() for displaying the comments.
Шаблон для комментариев и pingback'ов. Чтобы переопределить этот валидатор в дочерней теме без изменения шаблона комментариев, просто создайте свою собственную функцию tempera_comment(), и она будет использоваться вместо этой. Используется как обратный вызов функцией wp_list_comments() для отображения комментариев.
function tempera_comment( $comment, $args, $depth ) { $GLOBALS['comment'] = $comment; switch ( $comment->comment_type ) : case 'pingback' : case 'trackback' : ?> <li class="post pingback"> <p><?php _e( 'Pingback: ', 'tempera' ); ?><?php comment_author_link(); ?><?php edit_comment_link( __('(Edit)', 'tempera'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ghostpool_comment_template( $comment, $args, $depth ) {\r\n\r\n\tswitch ( $comment->comment_type ) :\r\n\tcase 'pingback' :\r\n\tcase 'trackback' :\r\n\t\t\r\n\t?>\r\n\r\n\t<li <?php comment_class(); ?> id=\"comment-<?php comment_ID(); ?>\" itemscope itemtype=\"http://schema.org/Comment\">\r\n\r\n\t\t<div...
[ "0.80362785", "0.7989374", "0.7891083", "0.7863852", "0.77576226", "0.76796013", "0.7659117", "0.76436853", "0.76314825", "0.76254976", "0.76029736", "0.7594353", "0.7581775", "0.7579241", "0.7563726", "0.7561821", "0.7550034", "0.75492966", "0.75433314", "0.75423384", "0.753...
0.80229974
1
The comments navigation in case of comments on multiple pages (both top and bottom)
Навигация по комментариям в случае комментариев на нескольких страницах (как сверху, так и снизу)
function tempera_comments_navigation() { if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?> <div class="navigation"> <div class="nav-previous"><?php previous_comments_link( '<i class="icon-reply"></i>'.__('Older Comments', 'tempera' ) ); ?></div>...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function cosmetics_comment_nav() { if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) :\n\n ?>\n <nav class=\"navigation comment-navigation\">\n <h2 class=\"screen-reader-text\">\n <?php _e( 'Comment navigation', 'cosmetics' ); ?>\n ...
[ "0.7618216", "0.7504807", "0.72068596", "0.66741115", "0.65208524", "0.6418044", "0.63133824", "0.623984", "0.62287503", "0.6220566", "0.6202133", "0.6194764", "0.6192913", "0.61578757", "0.61386895", "0.61189145", "0.611376", "0.6079272", "0.6016954", "0.6005346", "0.5993597...
0.7656783
0
/ Listing the actual comments Loop through and list the comments. Tell wp_list_comments() to use tempera_comment() to format the comments. If you want to overload this in a child theme then you can define tempera_comment() and that will be used instead. See tempera_comment() in tempera/functions.php for more.
Перечисление реальных комментариев. Пройдитесь по списку и выведите комментарии. Сообщите функции wp_list_comments(), чтобы она использовала tempera_comment() для форматирования комментариев. Если вы хотите переопределить это в дочерней теме, вы можете определить tempera_comment(), и она будет использоваться вместо ори...
function tempera_list_comments() { wp_list_comments( array( 'callback' => 'tempera_comment' ) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function hermi_list_comments( $comment, $args, $depth ) {\n\t$GLOBALS['comment'] = $comment;\n\tglobal $post;\n\n\tswitch ( $comment->comment_type ) :\n\t\tcase 'pingback' :\n\t\tcase 'trackback' :\n\t?>\n\t<li class=\"post pingback\">\n\t\t<p>\n\t\t\t<?php _e( 'Pingback:', 'hermi' ); ?>\n\t\t\t<?php comment_autho...
[ "0.7412059", "0.73087335", "0.72074157", "0.7206692", "0.719989", "0.7196364", "0.71295685", "0.7076563", "0.7049916", "0.70327294", "0.69496447", "0.6946034", "0.6940671", "0.6928876", "0.6888777", "0.6874568", "0.6874451", "0.68727654", "0.6866223", "0.6853539", "0.68416595...
0.8697973
0
Funcio que ens permet destruir totes les cookies de la pagina i la sessio
Функция, которая позволяет нам уничтожить все куки страницы и сессию
function destroyCookies(){ session_destroy(); //Destruim la sessio setcookie('apostesPagades', '', 1, "/Betnat/php"); //Destruim les cookies de les pagines on s'usen aquestes setcookie('apostesPagades', '', 1, "/Betnat"); header('Location: .'); //Recarreguem la pagina unset($_POST); exit; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function logout() {\n\t\tif (isset($_COOKIE['sm_constitid'])) {\n\t\t\tsetrawcookie('sm_constitid', \"\", time() - 3600, COOKIE_PATH, COOKIE_DOMAIN);\n\t\t}\n\n\t\tif (isset($_COOKIE['ERIGHTS'])) {\n\t\t\tsetrawcookie('ERIGHTS', \"\", time() - 3600, COOKIE_PATH, COOKIE_DOMAIN);\n\t\t}\n\n\t\tif (isse...
[ "0.7065433", "0.70004445", "0.69639266", "0.69595474", "0.6880722", "0.68093324", "0.6784639", "0.6778068", "0.66757524", "0.66461486", "0.66031015", "0.6602508", "0.6594542", "0.65767914", "0.65584546", "0.6549136", "0.6537738", "0.6532832", "0.6502871", "0.6485827", "0.6480...
0.739645
0
Add rule to manager
Добавить правило в менеджер
public function addRule(Rule $rule): Manager { $this->rules[] = $rule; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addRule(bnfRule $rule){\n\t\t$this->rules[] = $rule;\t\t\n\t}", "public function addRule(RuleIface $rule);", "abstract public function addRule(ValidationRule$rule);", "public function add_rule( WP_Autoload_Rule $rule );", "public function add_rule($selector)\n {\n }", "prote...
[ "0.69827366", "0.69273984", "0.68788797", "0.6587999", "0.65056753", "0.6492695", "0.6414187", "0.6408157", "0.6262649", "0.625867", "0.6240593", "0.618992", "0.6174796", "0.61709327", "0.61535275", "0.6126807", "0.6124744", "0.6122037", "0.60474926", "0.6032019", "0.59443897...
0.73189616
0
Gets the value of paymentId.
Получает значение paymentId.
public function getPaymentId() { return $this->paymentId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPaymentId() \n {\n if (!$this->hasPaymentId()) \n {\n $this->paymentId = '';\n }\n\n return $this->paymentId;\n }", "public function getPaymentId()\n {\n return $this->_getValue('oepaypal_paymentid');\n }", "public function getPaymentid()\r\n {\r\n r...
[ "0.84387296", "0.8115125", "0.8108684", "0.7911758", "0.77615446", "0.7760676", "0.7386862", "0.7125405", "0.7049214", "0.68086094", "0.64921683", "0.6372539", "0.62841296", "0.62678707", "0.62548184", "0.62548184", "0.62548184", "0.62419164", "0.6177239", "0.61764014", "0.61...
0.8472872
0
Sets the value of paymentId.
Устанавливает значение paymentId.
public function setPaymentId($paymentId) { $this->paymentId = $paymentId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setPaymentid($paymentid)\r\n {\r\n $this->paymentid = $paymentid;\r\n }", "public function setPaymentId($sPaymentId)\n {\n $this->_setValue('oepaypal_paymentid', $sPaymentId);\n }", "function payment_id($payment_id=null)\n {\n if (isset($payment_id)) $this->p...
[ "0.7746663", "0.7190228", "0.69471097", "0.659989", "0.6499245", "0.6409662", "0.6297005", "0.6113913", "0.5997802", "0.5994218", "0.5964849", "0.5963279", "0.59621274", "0.5911122", "0.5873242", "0.5838497", "0.5835929", "0.5791863", "0.5730854", "0.5728112", "0.5722534", ...
0.8091856
0
save to table user_data
сохранить в таблицу user_data
function saveToDatabase($user) { if(!is_array($user) || !isset($user['id']) || $user['id'] == false) return false; $uid=$user['id']; $table=new Frd_Db_Table("user_data","fb_user_id"); $table->load($uid); $table->fb_user_id=$uid; $firstname=getValue($user,"first_name",false); if(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function saveData() {\n\n\t\t$this->getMapper()->saveData();\t\n\t\t\n\t\t\n\t}", "public function saveData()\r\n {\r\n \r\n }", "public function store()\r\n\t{\r\n\t\t$jsonData = $this->getAll();\r\n\r\n\t $data = array(\r\n\t\t\t'username'=> $this->user->username,\r\n\t\t\t'post'=...
[ "0.7158941", "0.7054967", "0.6945628", "0.69415736", "0.6866662", "0.686556", "0.68528783", "0.6847238", "0.6806231", "0.6797385", "0.6781759", "0.67692786", "0.67690265", "0.67289513", "0.67276776", "0.6723022", "0.6717", "0.6677848", "0.66767186", "0.66626376", "0.66626376"...
0.71647465
0
This will remove the old file, can be extended to add extra functionality
Это удалит старый файл, можно расширить для добавления дополнительной функциональности
protected function removeOldFile(): void { // delete the old file $oldFile = $this->getUploadRootDir() . '/' . $this->oldFileName; if (is_file($oldFile) && file_exists($oldFile)) { unlink($oldFile); } $this->oldFileName = null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function deleteFile() {\r\n\t\tif (file_exists($this->data[$this->alias]['path'])) {\r\n\t\t\tunlink($this->data[$this->alias]['path']);\r\n\t\t}\r\n\t}", "protected function removeFile()\n {\n if (@is_file($this->getFilePath())) {\n @unlink($this->getFilePath());\n }\n }", "publ...
[ "0.7616581", "0.7580816", "0.73271006", "0.7235842", "0.71657443", "0.7002486", "0.6998092", "0.6997357", "0.6995025", "0.69893855", "0.69886285", "0.69687164", "0.6968694", "0.6941648", "0.69158363", "0.69067895", "0.6889859", "0.6879142", "0.6862725", "0.68368936", "0.67942...
0.7959336
0
Get calculate path to controller
Получить вычисляемый путь к контроллеру
public function getCalculatePath() { return '\\App'.$this->getExtensions().$this->getModules().'\\Controllers\\'.$this->getController(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getControllerPath()\n {\n return $this->getUrl('randomproduct/index/index');\n }", "abstract public function getControllerUrl();", "public static function getControllerPath():string {\n\n # Set result\n $result = Env::get(\"router_controller_path\", true) ?: static::R...
[ "0.76380235", "0.75176674", "0.75157493", "0.72200704", "0.7206744", "0.70686436", "0.6873315", "0.6822387", "0.6738442", "0.67269194", "0.6698348", "0.6681326", "0.6647736", "0.6556536", "0.6554041", "0.6519135", "0.6517466", "0.6504104", "0.64520895", "0.6440797", "0.643367...
0.8166601
0
Get a cart item by its id.
Получить товар корзины по его идентификатору.
public function getById(string $id): ?CartItem { return $this->items->get($id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get($cartId);", "public function retrieveItem($id) {\n return $this->itemsDB->retrieve($id);\n }", "public function findCartByUserId($id)\n {\n \t$cart = $this->model->whereUserId($id)->first();\n \n \treturn $cart;\n }", "public function getItem ($id);", "public function...
[ "0.7913348", "0.7749777", "0.75378156", "0.7521523", "0.7513813", "0.7457341", "0.74235713", "0.7359241", "0.72852254", "0.7209938", "0.7202229", "0.71826637", "0.71502435", "0.7145658", "0.71427375", "0.70852953", "0.69923276", "0.69784766", "0.69733196", "0.6963349", "0.695...
0.79569644
0
Remove a coupon from the cart.
Удалить купон из корзины.
public function removeCoupon(Coupon $coupon): void { $this->coupons->forget($coupon->id); $this->save(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function removeCoupon()\n {\n $this->coupon = null;\n foreach ($this->order_configurations as $config) {\n $config->calculateFinalPrice();\n }\n $this->save();\n }", "public function destroy(Coupon $coupon)\n {\n //\n }", "public function destroy...
[ "0.7741354", "0.7479179", "0.7479179", "0.7479179", "0.7479179", "0.7144457", "0.70920956", "0.7052852", "0.6857625", "0.6848154", "0.67394537", "0.66322047", "0.6575463", "0.6556654", "0.65494645", "0.65428716", "0.65340674", "0.65120107", "0.6330412", "0.6328774", "0.631650...
0.7770315
0
Get all the giftcards applied to the cart.
Получить все подарочные карты, примененные к корзине.
public function giftcards(): Collection { return $this->giftcards; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCards()\n {\n return $this->cards;\n }", "public function getCards()\n {\n return $this->cards;\n }", "public function getCards()\n {\n return $this->cards;\n }", "public function all()\n {\n $cards = [];\n\n if (!$customer = $this->m...
[ "0.6662511", "0.6662511", "0.6662511", "0.6466535", "0.6388536", "0.62358874", "0.6185686", "0.6124145", "0.6017383", "0.5982786", "0.59684527", "0.59170115", "0.58689827", "0.5776573", "0.57203215", "0.56903243", "0.5666077", "0.5635368", "0.5633703", "0.56029457", "0.557133...
0.731957
0
Add a new giftcard to the cart.
Добавить новую подарочную карту в корзину.
public function addGiftcard(Giftcard $giftcard): void { $this->giftcards->put($giftcard->id, $giftcard); $this->save(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addCard()\n {\n }", "public function addCard($card)\n {\n $this->cards[] = $card;\n }", "private function addToCart () {\n }", "private function addToCart () {\n }", "public function addToCart()\n\t{\n\t\t$recordId = $this->request->getInteger('record');\n\t\t$amoun...
[ "0.72692084", "0.69190323", "0.67881167", "0.67881167", "0.66068494", "0.656191", "0.6555898", "0.6527175", "0.64385605", "0.6401846", "0.6351694", "0.63373435", "0.6329425", "0.63270724", "0.63037527", "0.6281497", "0.6273827", "0.6212338", "0.616731", "0.61614126", "0.61546...
0.702938
1
Remove a giftcard from the cart.
Удалить подарочную карту из корзины.
public function removeGiftcard(Giftcard $giftcard): void { $this->giftcards->forget($giftcard->id); $this->save(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function removeFromCart()\n\t{\n\t\t$this->cart->remove($this->request->getInteger('record'));\n\t\t$this->saveCart();\n\t}", "public function removeAction()\n {\n $token = $this->getRequest()->getParam('token');\n if (!$token) {\n $this->_getSession()->addError('Please select ...
[ "0.7069373", "0.69301224", "0.69020474", "0.6844954", "0.6828132", "0.6808316", "0.6689942", "0.6649477", "0.66138244", "0.6612634", "0.65655553", "0.6530112", "0.6508029", "0.6424649", "0.64199656", "0.6220865", "0.6200513", "0.6136203", "0.61346984", "0.6120045", "0.6117823...
0.7244504
0
Remove all the coupons in the cart.
Удалите все купоны в корзине.
public function clearCoupons(): void { $this->coupons = collect(); $this->save(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function check_cart_coupons() {\n\t\tforeach ( $this->get_applied_coupons() as $code ) {\n\t\t\t$coupon = new WC_Coupon( $code );\n\n\t\t\tif ( ! $coupon->is_valid() ) {\n\t\t\t\t$coupon->add_coupon_message( WC_Coupon::E_WC_COUPON_INVALID_REMOVED );\n\t\t\t\t$this->remove_coupon( $code );\n\t\t\t}\n\t\t}\n\...
[ "0.68452805", "0.6825039", "0.67428917", "0.66658443", "0.6661869", "0.65517414", "0.64888704", "0.64750636", "0.6436148", "0.63887906", "0.63869953", "0.6187648", "0.6149268", "0.6118764", "0.6111021", "0.6107532", "0.6088942", "0.6086236", "0.60764515", "0.5994171", "0.5977...
0.76065934
0
Save the cart content to the associated session (if any).
Сохраните содержимое корзины в связанную сессию (если она существует).
public function save(): void { $this->session?->put('shop.cart', $this->toArray()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function save() {\n $_SESSION['cart'] = $this->items;\n\n }", "public function save()\n {\n $this->_user->setAttribute(\n 'cart_items',\n $this->_items,\n timpanyCart::SESSION_NS\n );\n }", "public function save()\n {\n /** @var \\Illuminate\\Http\\Request $req...
[ "0.82565796", "0.76101255", "0.7599566", "0.7563205", "0.75411826", "0.72978556", "0.71014786", "0.7089588", "0.7034011", "0.70238096", "0.6993465", "0.6817127", "0.68145156", "0.67999387", "0.6788048", "0.67007214", "0.669446", "0.6612505", "0.66013986", "0.6566462", "0.6519...
0.8183988
1
Calculate the decimal factor for a currency
Вычислить десятичный множитель для валюты
private function getDecimalFactor(Currency $currency) { $subunitSize = $this->isoCurrencies->subunitFor($currency); return pow(10, $subunitSize); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function convertToDollar($localAmount, $rate){\n return round ($localAmount/$rate, 3);\n //return number_format(round ($localAmount/$rate, 3), 3, \".\", \",\");\n\n}", "public function currencyPrice()\n {\n \t$this->currencyPrice = CurrencyPrice::getCurrencyPrices($this->sellPrices->CurrencyNo)->BuyP...
[ "0.6832471", "0.6770846", "0.6640488", "0.66027504", "0.65716356", "0.6540268", "0.6514819", "0.6466483", "0.64651686", "0.64045835", "0.6360218", "0.63365173", "0.6312825", "0.6305578", "0.6305578", "0.6256749", "0.62471753", "0.62072843", "0.6195676", "0.6163039", "0.614659...
0.7361742
0
Extract icons from svg file.
Извлечь иконки из файла svg.
public function parse_svg() { $files = $this->get_all_svg_files(); if ( empty( $files ) ) { return false; } /** * Get the allowed tags to parse icon's ids * * @param string $allowed_tags : Passed directly to strip_tags * * @return string * @since 2.0.1 * * @author david-treblig */...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function get_all_icons_svg() {\n if ( self::$icon_svgs && is_object( self::$icon_svgs ) ) {\n return self::$icon_svgs;\n }\n $directory = get_template_directory() . '/assets/images/icons/svg/';\n $icons = [];\n $iterator = new \\DirectoryIterator( $d...
[ "0.70494485", "0.667837", "0.6337255", "0.62941664", "0.6271623", "0.6076668", "0.6070632", "0.5836342", "0.5804226", "0.57844216", "0.57204336", "0.5704442", "0.56225675", "0.5586803", "0.5517036", "0.54919964", "0.54917437", "0.5478103", "0.5461336", "0.5431432", "0.5427323...
0.76056623
0
Get WP Medias SVGs
Получить SVG-изображения WP Medias
public function get_medias_svg() { $args = array( 'post_type' => 'attachment', 'posts_per_page' => '-1', 'post_status' => 'inherit', 'post_mime_type' => 'image/svg+xml', ); /** * Filter WP Query get attachments args * * @param array $args * * @since 2.0.0 * */ $args = a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function extractSvgImageSizes() {}", "function wp_get_duotone_filter_svg($preset)\n {\n }", "function wp_get_global_styles_svg_filters()\n {\n }", "public function parse_svg() {\n\t\t$files = $this->get_all_svg_files();\n\t\tif ( empty( $files ) ) {\n\t\t\treturn false;\n\t\t}\n\n\t\t/*...
[ "0.6861258", "0.66957515", "0.66479516", "0.6527482", "0.63618565", "0.63493466", "0.628112", "0.61662084", "0.6015502", "0.60124177", "0.5878823", "0.5847608", "0.5816263", "0.57293236", "0.571138", "0.56490606", "0.55967695", "0.5581082", "0.54880834", "0.5460861", "0.54601...
0.8027703
0
Enqueue assets for the SVG icon field in admin
Добавить активы в очередь для поля SVG-иконки в административной панели
public function input_admin_enqueue_scripts() { // Min version ? $suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG === true ? '' : '.min'; wp_localize_script( 'acf-input-svg-icon', 'svg_icon_format_data', $this->parse_svg() ); wp_register_style( 'acf-input-svg-icon', ACF_SVG_ICON_URL . 'assets/css/style' . $...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addAdminAssets() {\n\t\twp_enqueue_script( 'csframework-admin-upload' );\n\t}", "protected function buildCssAndRegisterIcons() {}", "public function addAdminAssets() {}", "public static function enqueue_assets() {\n\n\t\t\twp_enqueue_style(\n\t\t\t\t'ui-iconpicker',\n\t\t\t\tesc_url( Cherry_C...
[ "0.68330276", "0.6698", "0.66107774", "0.64797723", "0.6352401", "0.6350448", "0.63332653", "0.63332653", "0.6331309", "0.63114876", "0.62925607", "0.6273205", "0.6244332", "0.6243988", "0.61913586", "0.6191315", "0.61886406", "0.6176875", "0.616057", "0.616057", "0.61506546"...
0.7194367
0
TODO: Implement configureValidations() method.
TODO: Реализовать метод configureValidations().
protected function configureValidations() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function setupValidation()\n {\n }", "public function validator()\n {\n }", "protected function _validate() {\n\t}", "public function validation()\n {\n\n }", "protected function validate()\n {\n }", "public function validate() {\n }", "public function validate() {\...
[ "0.78452444", "0.7594359", "0.755131", "0.75410664", "0.75329626", "0.7473891", "0.7473891", "0.7427069", "0.73853356", "0.73853356", "0.73765904", "0.7342221", "0.733473", "0.73258936", "0.716629", "0.7141431", "0.7141431", "0.7141431", "0.7141431", "0.7141431", "0.7141431",...
0.84554106
0
Gets the stringExpr attribute
Получает атрибут stringExpr
public function getStringExpr() { return $this->stringExpr; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAttrString(){\n\t\t$this->attrString = '';\n\t\tif(is_array($this->attr))\n\t\t\tarray_walk($this->attr, array($this, 'attrToString')); \n\t}", "public function getExpression(): string\n {\n return $this->expression;\n }", "public function getExpression(): string\n {\n ...
[ "0.655249", "0.64957565", "0.64957565", "0.64957565", "0.6143101", "0.6130576", "0.6119858", "0.60817254", "0.59957194", "0.59957194", "0.59868836", "0.59685373", "0.59452695", "0.59027934", "0.5876195", "0.5809588", "0.57253224", "0.5712437", "0.57080966", "0.56288326", "0.5...
0.86308557
0
Gets the stringPattern attribute
Получает атрибут stringPattern
public function getStringPattern() { return $this->stringPattern; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_pattern()\n {\n return $this->pattern;\n }", "public function getPattern(): string\n {\n return $this->pattern;\n }", "public function getPattern(): string\n {\n return $this->pattern;\n }", "public function getPattern()\n {\n return $this-...
[ "0.77990925", "0.7769478", "0.7769478", "0.76862454", "0.76618344", "0.7656134", "0.7532272", "0.7495946", "0.74580353", "0.74580353", "0.7434258", "0.7434258", "0.7145014", "0.70077497", "0.70077497", "0.6988294", "0.69785345", "0.69676363", "0.6624071", "0.65816396", "0.655...
0.86104137
0
Instantiates an exception to be thrown later.
Мгновенно создает исключение, которое будет брошено позже.
public function makeException() { $this->thrownException = ResponseException::create($this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create()\n {\n throw new Exception('Not yet implemented');\n }", "public function catchException()\n {\n // get the current exception\n $e = $this->getException();\n\n // throw a copy, with the original as the previous exception so that\n // we can see ...
[ "0.6165296", "0.58889073", "0.585647", "0.5838504", "0.58188003", "0.57386374", "0.571063", "0.5683083", "0.5524118", "0.5524118", "0.55152184", "0.5494071", "0.54924303", "0.54869705", "0.5459687", "0.5457753", "0.5393015", "0.5356052", "0.5355002", "0.5351094", "0.53493214"...
0.7055383
0
Test adding an email to the email queue
Тест добавления email в очередь email
public function testAddToQueue() { $this->setUpDB(['email']); $Email = new \EmailTemplate('test'); // Add the message to queue $r = $Email->queue('test@st.ro', 'test', 'test'); // get data from DB $EmailQueue = new \EmailQueue(); $fi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testAddToQueueNoEmailAddress()\n {\n $Email = new \\EmailTemplate('test');\n \n // Add the message to queue\n $r1 = $Email->queue([], '');\n $r2 = $Email->queue([], 'abc');\n \n // assert false was returned, which means error\n $this->asser...
[ "0.79354894", "0.71196043", "0.702372", "0.68872875", "0.6811769", "0.6687045", "0.6664048", "0.65791816", "0.6560046", "0.6534034", "0.6487161", "0.64822793", "0.64813864", "0.6471124", "0.64316714", "0.63603973", "0.63582516", "0.6352479", "0.6350416", "0.6321888", "0.63152...
0.8030969
0
Test adding an email to email queue with wrong data
Тест добавления электронной почты в очередь электронной почты с неправильными данными
public function testAddToQueueNoEmailAddress() { $Email = new \EmailTemplate('test'); // Add the message to queue $r1 = $Email->queue([], ''); $r2 = $Email->queue([], 'abc'); // assert false was returned, which means error $this->assertFalse($r1); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testAddToQueue()\n {\n $this->setUpDB(['email']);\n \n $Email = new \\EmailTemplate('test');\n \n // Add the message to queue\n $r = $Email->queue('test@st.ro', 'test', 'test');\n \n // get data from DB\n $EmailQueue = new \\EmailQue...
[ "0.7714066", "0.7001073", "0.6940794", "0.6778296", "0.6699263", "0.66181344", "0.65061533", "0.64917743", "0.63852704", "0.63545644", "0.63425845", "0.6296737", "0.6274218", "0.6266989", "0.6244228", "0.6202174", "0.61944735", "0.616976", "0.616843", "0.6165481", "0.61573505...
0.80536187
0
Test sending email with wrong data
Тестирование отправки электронной почты с неправильными данными
public function testSendWithWrongEmailAddress() { $Email = new \EmailTemplate('test'); // send the email $r1 = $Email->send('', 'test'); $r2 = $Email->send('abc', 'test'); // assert false was returned which means error $this->assertFalse($r1); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function sendTestMail() {}", "public function testSendEmailFail()\r\n {\r\n $client = $this->createAuthenticatedClient(\"superadmin\", \"123456\");\r\n $container = $client->getContainer();\r\n\r\n $entityManager = $container->get('doctrine.orm.entity_manager');\r\n $user...
[ "0.7359961", "0.72415245", "0.7229219", "0.7133079", "0.7056076", "0.7028109", "0.702641", "0.6982585", "0.6893853", "0.6884474", "0.68585694", "0.68502855", "0.68203205", "0.6813464", "0.6808414", "0.6802873", "0.6719014", "0.6670006", "0.66621983", "0.6652441", "0.6648314",...
0.8043903
0
The taxonomy to update. You can update only its description, display name, and activated policy types. Generated from protobuf field .google.cloud.datacatalog.v1.Taxonomy taxonomy = 1;
Таксономия для обновления. Вы можете обновить только её описание, отображаемое имя и активированные типы политик. Сгенерировано из поля protobuf .google.cloud.datacatalog.v1.Taxonomy taxonomy = 1;
public function setTaxonomy($var) { GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\V1\Taxonomy::class); $this->taxonomy = $var; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTaxonomy()\n {\n return $this->taxonomy;\n }", "public function get_taxonomy(){\r\n\t\t$this->tax_obj = get_taxonomy( $this->taxonomy );\r\n\t}", "public function taxonomy();", "public function getTaxonomyType()\n {\n return $this->taxonomy_type;\n }", "public f...
[ "0.6984712", "0.6668256", "0.6628615", "0.6604437", "0.6184426", "0.6111367", "0.60929304", "0.60876405", "0.60835904", "0.6044445", "0.60348445", "0.6006439", "0.59979993", "0.5915175", "0.58506656", "0.5847751", "0.5847349", "0.5825184", "0.5819293", "0.5801056", "0.5798523...
0.7946097
0
Override the execute method. Before we run the query, we need to add pagerbased range() instructions to it.
Переопределите метод execute. Перед тем как запускать запрос, нам нужно добавить инструкции range() на основе пейджеров в него.
public function execute() { // Add convenience tag to mark that this is an extended query. We have to // do this in the constructor to ensure that it is set before preExecute() // gets called. if (!$this->preExecute($this)) { return NULL; } // A NULL limit is the "kill switch" for pager ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function executeQuery() {\r\n\t\t$query = $this->query;\r\n\t\t$query->matching($query->logicalAnd($this->queryConstraints));\r\n//$parser = \\TYPO3\\CMS\\Core\\Utility\\GeneralUtility::makeInstance('TYPO3\\\\CMS\\\\Extbase\\\\Persistence\\\\Generic\\\\Storage\\\\Typo3DbQueryParser'); \r\n//$queryParts = $...
[ "0.6250108", "0.6185094", "0.61618644", "0.615679", "0.6058112", "0.60319144", "0.5982455", "0.59697056", "0.5920368", "0.5917904", "0.5851279", "0.57925206", "0.5758291", "0.57459176", "0.57459176", "0.5719912", "0.5719252", "0.57156044", "0.56793094", "0.5604979", "0.558605...
0.79873455
0
Ensure that there is an element associated with this query. If an element was not specified previously, then the value of the $maxElement counter is taken, after which the counter is incremented. After running this method, access $this>element to get the element for this query.
Убедитесь, что есть элемент, связанный с этим запросом. Если элемент не был указан ранее, то берется значение счётчика $maxElement, после чего счётчик увеличивается. После выполнения этого метода для получения элемента этого запроса используйте $this>element.
protected function ensureElement() { if (!isset($this->element)) { $this->element = self::$maxElement++; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function element($element) {\n $this->element = $element;\n if ($element >= self::$maxElement) {\n self::$maxElement = $element + 1;\n }\n return $this;\n }", "public function getElement()\n {\n if ($this->element_id != 0) {\n return $this->getTable('Element')->find(...
[ "0.5964784", "0.5357925", "0.50644064", "0.4962703", "0.49060234", "0.48278916", "0.47818917", "0.47798473", "0.47637352", "0.47472525", "0.47171396", "0.47048208", "0.46634024", "0.46560735", "0.4614244", "0.46005583", "0.45747018", "0.45729205", "0.45625028", "0.4561932", "...
0.71617216
0
Retrieve the count query for this pager. The count query may be specified manually or, by default, taken from the query we are extending.
Получите запрос на подсчет количества для этого пейджер. Запрос на подсчет количества может быть указан вручную или, по умолчанию, взят из запроса, который мы расширяем.
protected function getCountQuery() { if ($this->customCountQuery) { return $this->customCountQuery; } else { return $this->query->countQuery(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCountQuery()\n {\n return $this->countQuery;\n }", "public function getCountQuery()\n {\n return $this->countQuery;\n }", "protected function getCountQuery()\n {\n return $this->countQuery;\n }", "protected function getCountQuery() {\n\t\tif ($this->c...
[ "0.8068159", "0.8068159", "0.8054466", "0.78640115", "0.74739486", "0.7460455", "0.73688495", "0.73621696", "0.7330248", "0.7289218", "0.7261413", "0.72547334", "0.71317893", "0.6983933", "0.6971573", "0.69672716", "0.69645023", "0.6931318", "0.6926835", "0.692479", "0.688684...
0.8488802
0
Disconnect from the POP3 server
Отключиться от сервера POP3
public function Disconnect () { $this->sendString('QUIT'); fclose($this->pop_conn); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function smtp_disconnect() \n {\t\n \tif ($this->_connection_state) {\n \t\t$this->_connection_state = false; \n $this->smtp_command(\"QUIT\");\n \t} \n $this->disconnect(); \n $this->_socket = socket_create($this->_domain ,$this->_type ,$this->_protoc...
[ "0.6977452", "0.6900887", "0.67586625", "0.6512655", "0.6500653", "0.6500653", "0.6500653", "0.6500653", "0.6500653", "0.6500653", "0.6500653", "0.6500653", "0.64577556", "0.640666", "0.64054483", "0.62996286", "0.6234445", "0.62091017", "0.6196536", "0.6137463", "0.6137132",...
0.738391
0
/////////////////////////////////////////////// Private Methods /////////////////////////////////////////////// Get the socket response back. $size is the maximum number of bytes to retrieve
/////////////////////////////////////////////// Внутренние методы /////////////////////////////////////////////// Получить ответ сокета обратно. $size - максимальное количество байтов для получения
private function getResponse ($size = 128) { $pop3_response = fgets($this->pop_conn, $size); return $pop3_response; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function getResponse() {\n\t\t$packed_len = stream_get_contents($this->id, 4); //The first 4 bytes contain our N-packed length\n\t\t$hdr = unpack('Nlen', $packed_len);\n\t\t$len = $hdr['len'];\n\t\t$this->xmlResponse = stream_get_contents($this->id, $len);\n\t}", "function getresp()\r\n {\r\n \tif ...
[ "0.6874265", "0.68127936", "0.6742335", "0.667589", "0.65963376", "0.6515555", "0.64523673", "0.634266", "0.61402225", "0.6084561", "0.60816604", "0.6066081", "0.6020609", "0.60091394", "0.6001398", "0.5968484", "0.58537245", "0.57763135", "0.57161", "0.5715979", "0.5700216",...
0.7507706
0
If debug is enabled, display the error message array
Если отладка включена, отображать массив сообщений об ошибках
private function displayErrors () { echo '<pre>'; foreach ($this->error as $single_error) { print_r($single_error); } echo '</pre>'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function displayErrors(){\n $ec = new EmailLabsConfig();\n if( $ec->getMode() == true && !empty( self::$errors ) ){\n $message = '';\n foreach( self::$errors as $item )\n $message .= '['.$item['lvl'].']['.$item['date'].']'.$item['msg'].\"\\n\";\n ...
[ "0.7567907", "0.6973507", "0.6956183", "0.6934916", "0.6886506", "0.684208", "0.67444825", "0.67311597", "0.6728404", "0.6646006", "0.6646006", "0.6643415", "0.6640837", "0.6632735", "0.66321504", "0.6512112", "0.6483784", "0.6402586", "0.6392361", "0.6369843", "0.63689214", ...
0.7465414
1
Name of the lock version column.
Название столбца версии блокировки.
protected static function lockVersionColumn() { return 'lock_version'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getVersionName() {\n\t\treturn $this->versionName;\n\t}", "public function currentLockVersion()\n {\n return $this->getAttribute(static::lockVersionColumn());\n }", "protected function generateLockableColumnComment()\n {\n return 'true if data is locked';\n }", "publ...
[ "0.6849466", "0.6735615", "0.64572364", "0.6156815", "0.6057773", "0.60546035", "0.6046908", "0.60356075", "0.6015754", "0.598701", "0.59859216", "0.5949807", "0.5894819", "0.5894819", "0.58608943", "0.58383685", "0.5833127", "0.5826332", "0.579703", "0.5786252", "0.578105", ...
0.87903714
0
Current lock version value.
Текущее значение версии блокировки.
public function currentLockVersion() { return $this->getAttribute(static::lockVersionColumn()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCurrentVersion();", "function &getCurrentVersion() {\n\t\treturn $this->currentVersion;\n\t}", "function get_version() {\n\n\t\treturn $this->version;\n\n\t}", "public function getVersion() {\n\t\tif($this->version == \"\")\n\t\t$this->version = \"0.0.0\";\n\t\treturn $this->version;\n\t}"...
[ "0.7349992", "0.729602", "0.7274374", "0.72716635", "0.723368", "0.72330534", "0.7219201", "0.72117406", "0.72117406", "0.72117406", "0.72117406", "0.72117406", "0.72117406", "0.72117406", "0.72117406", "0.72117406", "0.72117406", "0.72016484", "0.7181403", "0.7179484", "0.71...
0.864215
0
Default lock version value.
Значение по умолчанию версии блокировки.
protected static function defaultLockVersion() { return 1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDefaultVersion()\n {\n return $this->default_version;\n }", "public function currentLockVersion()\n {\n return $this->getAttribute(static::lockVersionColumn());\n }", "public static function defaultVersion()\n {\n return static::where('default', true)->fir...
[ "0.71904975", "0.71036094", "0.666148", "0.6509819", "0.6499821", "0.62115484", "0.62074155", "0.61688626", "0.61524695", "0.6108102", "0.61041284", "0.61041284", "0.61041284", "0.61041284", "0.6104115", "0.6092577", "0.60648316", "0.6064605", "0.60612243", "0.60387015", "0.6...
0.86795175
0
Get the model's menu generator
Получить генератор меню модели
public function getMenuGenerator() : MenuGenerator;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getModel()\n {\n return new Menu();\n }", "protected function generateMenu() {}", "protected function generateMenu() {}", "protected function generateMenu() {}", "protected function generateMenu() {}", "protected function generateMenu() {}", "protected function generateMenu...
[ "0.7515546", "0.73175424", "0.73175424", "0.73175424", "0.73175424", "0.73175424", "0.73175424", "0.70551926", "0.70238835", "0.70117074", "0.6889378", "0.6889378", "0.68247", "0.6750251", "0.67359024", "0.6729318", "0.6671636", "0.6534206", "0.65034187", "0.6494218", "0.6488...
0.8471131
0
Read templates from a string
Чтение шаблонов из строки
function readTemplates( $input ) { $this->_currentInput = $input; $templates = $this->parseString( $input ); return $templates; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function load_string(&$string){ // loading template from string\n\t$this->template = array();\n\tforeach (preg_split('/\\r?\\n/', $string) as $tmp) array_push($this->template, $tmp.\"\\n\");\n\tunset($this->result);\n\tunset($this->filename);\n}", "function readTemplates( $input )\r\n {\r \tglobal $CONFIG;...
[ "0.75081766", "0.7256578", "0.64054865", "0.6319472", "0.62950593", "0.6001094", "0.5924592", "0.58728284", "0.58470243", "0.58160496", "0.5755646", "0.57551914", "0.5736653", "0.57243156", "0.57237726", "0.56871694", "0.5672185", "0.5666977", "0.5645984", "0.5637914", "0.560...
0.7410487
1
US dates are formatted MM/DD/YYYY
США даты форматируются как MM/DD/YYYY
public function testFormatUsDate() { $this->assertEquals('04/30/2013', StringFilter::formatUsDate('2013-04-30')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function sc_us_date_format($date){\n\treturn date('m/d/Y', $date);\n}", "public static function getDateFormats()\n {\n return array( 'm/d/y' => 'mm/dd/yy', 'd/m/y' => 'dd/mm/yy' );\n }", "function _field_date_us($fval) \n {\n $f_date = \"\";\n if ($fval) {\n list($m,...
[ "0.78", "0.71433634", "0.69336474", "0.69065404", "0.68084675", "0.6753667", "0.67482543", "0.6724718", "0.6680608", "0.6680289", "0.65230346", "0.6514825", "0.6494433", "0.64854354", "0.64417416", "0.6405138", "0.64023507", "0.6378348", "0.6371357", "0.63325876", "0.63251954...
0.72355586
1
Strings pass through joinValues without changes
Строки проходят через joinValues без изменений
public function testJoinSingleString() { $this->assertEquals('5', StringFilter::joinValues('5')); $this->assertEquals('5,6', StringFilter::joinValues('5,6')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function join($values);", "function map_joins($join){\n //\n //return field to str\n return $join->to_str();\n }", "public function join()\n {\n $result = array();\n\n if (method_exists($this, 'convert')) {\n $data = $this-...
[ "0.7156058", "0.68450135", "0.65763825", "0.622245", "0.62181324", "0.6036053", "0.6003941", "0.59903777", "0.58289385", "0.5786242", "0.5736383", "0.57193935", "0.56992316", "0.56891817", "0.56528205", "0.5651981", "0.5572524", "0.555904", "0.5529215", "0.5525868", "0.552568...
0.72615457
0
joinValues converts ints to strings
joinValues преобразует ints в строки
public function testJoinSingleInt() { $this->assertEquals('5', StringFilter::joinValues(5)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function join($values);", "public function idsToString($ids)\n {\n if(is_scalar($ids)) {\n return $this->escapeFieldValue(strval($ids));\n }\n $out = array();\n foreach ($values as $id) {\n $out .= $this->escapeFieldValue($id);\n }\n retur...
[ "0.68408936", "0.6352906", "0.629171", "0.60546005", "0.6033377", "0.5857467", "0.58266693", "0.58023274", "0.57904506", "0.57569057", "0.57002133", "0.5667889", "0.5630345", "0.5566824", "0.5506414", "0.54628175", "0.5461893", "0.5450022", "0.54468846", "0.5422219", "0.54190...
0.714465
0
uses slug or title to return a filename with extension
использует слаг или заголовок для возврата имени файла с расширением
private function getFilename(array $post): string { return array_get($post, 'slug', str_slug(array_get($post, 'title'))) . '.' . $this->extension; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function slug_filename($filename,$name,$random) {\n $data = pathinfo($filename);\n $result = $this->slug($name).$this->slug_random($random).'.'.$data['extension'];\n return strtolower($result);\n\t}", "public function getFilename();", "public function getFilename();", "protected function ___filename...
[ "0.7208278", "0.7194359", "0.7194359", "0.7058615", "0.7045432", "0.6991893", "0.698653", "0.6920093", "0.69126177", "0.68713206", "0.68301094", "0.6785063", "0.6779778", "0.6779778", "0.6779778", "0.673715", "0.67220724", "0.6713859", "0.667409", "0.66449577", "0.6626719", ...
0.7428157
0