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
Triggered when action is not found. if controller doesn't have method "onActionNotFound"
Вызывается, когда действие не найдено. если контроллер не имеет метода "onActionNotFound"
public function onActionNotFound() { if ( method_exists( $this->controller, "onActionNotFound" ) ) { $this->controller->onActionNotFound(); } else { $closure = $this->onActionNotFound; if ( is_object( $closure ) && get_class( $closure ) == "Closure" ) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function actionNotFound()\n\t{\n\t\tzf::halt(\"You can't call this function \\\"actionNotFound\\\" directly. You must redefine it in your controller.\");\n\t}", "public function actionNotfound()\n {\n $this->actionSlug = 'notfound';\n $this->actionParams = [];\n $this->breadcrum...
[ "0.8200284", "0.75735843", "0.7523969", "0.744795", "0.7212939", "0.7189569", "0.712357", "0.7060668", "0.701341", "0.69762284", "0.69751865", "0.6972506", "0.69546443", "0.69293904", "0.6921104", "0.68982506", "0.68345684", "0.6807876", "0.6789096", "0.6714224", "0.66829944"...
0.88339907
0
This function gets the user birthday by its email and returns it.
Эта функция получает дату рождения пользователя по его электронной почте и возвращает её.
public function get_user_birthday($em){ $this->db->select('birthday'); $this->db->where('email', $em); $query = $this->db->get('users'); foreach ($query->result() as $row) { return $row->birthday; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getUserBirthday()\n {\n $result = $this->getUserAttribute(static::ATTRIBUTE_BIRTHDAY);\n\n if (!empty($result)) {\n return date('d.m.Y', strtotime($result));\n }\n\n return $result;\n }", "function getDayOfBirth() {\n global $USER;\n\t$dayOfBirt...
[ "0.78818345", "0.7452691", "0.7328138", "0.6954628", "0.6954628", "0.6954628", "0.6954628", "0.6954628", "0.68719155", "0.67188144", "0.66937107", "0.6666835", "0.6606115", "0.6548203", "0.65137327", "0.65082216", "0.6486689", "0.6472257", "0.6466059", "0.6375052", "0.6360599...
0.7953278
0
Retrive the basic auth information
Получить информацию о базовой аутентификации
public function getBasicAuth() { return $this->basicAuth; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function action_basic() {\n\tif (Input::server(\"PHP_AUTH_USER\", null) == null) {\n\t $response = new Response();\n\t $response->set_header('WWW-Authenticate', 'Basic realm=\"Authenticate for eventual.org\"');\n\t return $response;\n\t} else {\n\t $response = Response::forge(\"You are authentic...
[ "0.7755064", "0.7495499", "0.747326", "0.7439773", "0.7166392", "0.7127217", "0.71247303", "0.70620805", "0.7003454", "0.6997809", "0.6997809", "0.69411474", "0.6920242", "0.68635803", "0.6853791", "0.68242365", "0.6775406", "0.6736744", "0.67364615", "0.67290574", "0.6666379...
0.7915193
0
Adds a clipboard entry for a given mime type and the current user
Добавляет запись в буфер обмена для заданного типа mime и текущего пользователя
public function actionAdd( string $mime_type, string $data) { $userId = $this->getActiveUser()->id; $entry = ClipboardContent::find() ->where(['UserId' => $userId]) ->andWhere(['mime_type' => $mime_type]) ->one(); if( ! $entry ){ $entry = new ClipboardContent([ 'mime_type' ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function initClipboard() {}", "public function initClipboard() {}", "public function saveClipboard() {}", "protected function initializeClipboard() {}", "public function initializeClipboard() {}", "public function actionGet( string $mime_type )\n {\n $userId = $this->getActiveUser()->id;\n ...
[ "0.5753028", "0.5750789", "0.56422657", "0.56063986", "0.5524514", "0.53294975", "0.52456415", "0.5183147", "0.51180845", "0.49511483", "0.47748965", "0.47465938", "0.4641097", "0.45725915", "0.45563638", "0.45350805", "0.45190352", "0.44856045", "0.44612747", "0.4416811", "0...
0.74247754
0
Returns the current user's clipboard data for a given mime type
Возвращает данные буфера обмена текущего пользователя для заданного типа mime
public function actionGet( string $mime_type ) { $userId = $this->getActiveUser()->id; return ClipboardContent::find() ->where(['UserId' => $userId]) ->andWhere(['mime_type' => $mime_type]) ->one(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function actionAdd( string $mime_type, string $data)\n {\n $userId = $this->getActiveUser()->id;\n $entry = ClipboardContent::find()\n ->where(['UserId' => $userId])\n ->andWhere(['mime_type' => $mime_type])\n ->one();\n if( ! $entry ){\n $entry = new ClipboardContent([\n ...
[ "0.5967268", "0.5673411", "0.56535596", "0.5479339", "0.54510057", "0.54510057", "0.54510057", "0.54510057", "0.54510057", "0.54301435", "0.5401031", "0.5401031", "0.5401031", "0.5401031", "0.5399834", "0.53810203", "0.534368", "0.53414166", "0.5324336", "0.53208613", "0.5305...
0.7175413
0
get rpLinks with given node source id
получить rpLinks с заданным идентификатором источника узла
public function getRpLinksByNode($id){ try{ $rpLinks = RpLinkLocationQuery::create()->filterBySourceNodeID($id)->find(); $arrayOfRpLinks = new sArrayOfRpLinks(); if($rpLinks != null){ foreach($rpLinks as $rpLink){ $arrayOfRpLinks->arrayOfRpLinks[] = $rpLink->getSoapClass(); } } return $arr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getRelatedLinks($params) {\n $collection = $GLOBALS[\"collection_links\"];\n \n //check if we have all the necessary params:\n if(!$params[\"node_id\"]) {\n echo \"node_id is required\";\n exit;\n }\n $target = isset($params[\"target\"]) && $params[\"target\"] ? $params[\"t...
[ "0.60888165", "0.5925378", "0.59004444", "0.5874571", "0.5871013", "0.5788351", "0.57769597", "0.57633793", "0.5672174", "0.5653899", "0.5653899", "0.5653899", "0.5632791", "0.56286424", "0.56116354", "0.55687904", "0.5559441", "0.5551534", "0.5551534", "0.5549579", "0.553599...
0.7154051
0
update the rating of the task.
Обновите рейтинг задачи.
function updateTask() { $rating = $this -> getTaskRating(); if (!is_null($this -> data)) { if (!empty($this -> data)) { //if user has not missed any events and not added any events rate his task with 1 if ($this -> missed == 0) { if (empty($this -> rating)) { $rating = 1; } } $sql...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateRating(){\r\n\t\t$mysqli = \\Database::Instance()->get();\r\n\r\n\t\t$rating = $this->rating;\r\n\r\n\t\t$stmt = $mysqli->prepare(\"SELECT SUM(`stars`)/COUNT(`stars`) AS `rating` FROM `ratings` WHERE `hotspot` = ?\");\r\n\t\t$stmt->bind_param(\"i\",$this->id);\r\n\t\tif($stmt->execute()){\r\n...
[ "0.71541727", "0.6574108", "0.623497", "0.6221462", "0.61676437", "0.6123572", "0.6023945", "0.59897935", "0.5970893", "0.59681857", "0.59649867", "0.5962027", "0.5913664", "0.5903856", "0.5890327", "0.5882892", "0.58157945", "0.573636", "0.5727751", "0.57197654", "0.56802857...
0.74987924
0
calculate the task rating with all rating of events + the number of missed events 0.5
вычислите рейтинг задачи с учетом всех рейтингов событий плюс количество пропущенных событий 0.5
function getTaskRating() { $rating = -$this -> missed * 0.5; foreach ($this->data as $i => $row) { //if a event does belong to a ground truth event take the calculated value. Otherwise set its rating to -0.5 if (!is_null($row['EventId'])) { if (array_key_exists($i, $this -> rating)) { $rating = $rati...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function UpdateEvents() {\n\t\tforeach ($this->data as $i => $row) {\n\t\t\tif (!is_null($row['EventId'])) {\n\t\t\t\t//check wheter event is assigned to calculated event. If it is take the calculated rating, otherwise set the rating to -0.5\n\t\t\t\tif (array_key_exists($i, $this -> rating)) {\n\t\t\t\t\t$rating ...
[ "0.6069816", "0.58135545", "0.5786988", "0.57347107", "0.5675612", "0.56560266", "0.5640166", "0.55297744", "0.54928464", "0.5488339", "0.54788125", "0.5376738", "0.53501105", "0.53274786", "0.5306884", "0.5256214", "0.52557325", "0.52480716", "0.5244005", "0.52330387", "0.52...
0.8542532
0
update the campaign. set it finished.
обновить кампанию. установить её как завершённую.
function updateCampaign() { $sql = "Update campaign set finished=1 where CampaignId=" . $this -> id; $stmt = $this -> DB -> prepare($sql); if ($stmt -> execute()) { //send email to user with information that campaign has been finished include_once "Email.php"; new Email('success', '', $this -> id); } e...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateCampaign($params)\r\n {\r\n }", "public function finished() {\n $this->setFinishedAt(new MongoDate());\n $this->save();\n }", "public function completed() {\n\t}", "protected function _set_update_complete()\n {\n clearos_profile(__METHOD__, __LINE__);\n\n $...
[ "0.59562826", "0.59512174", "0.58104837", "0.57952315", "0.57905793", "0.5690132", "0.56049", "0.55866736", "0.5585457", "0.5566855", "0.5554553", "0.55231416", "0.5511546", "0.5474466", "0.54693025", "0.5451289", "0.5446492", "0.543571", "0.5428436", "0.54105496", "0.5406580...
0.8139048
0
This variable function twitter grabs the URL and the Title by calling the Post function. It also has a Tweet variable function that has CSS style embedded to it where Share on Twitter is a link. When user clicks on Share on Twitter link, it returns the Tweet variable function. Finally, this shortcode is now added.
Эта переменная функция twitter получает URL и заголовок, вызывая функцию Post. Она также имеет переменную функцию Tweet, в которую встроено CSS-стиль, где "Share on Twitter" является ссылкой. Когда пользователь нажимает на ссылку "Share on Twitter", возвращается переменная функция Tweet. Наконец, этот короткий код тепе...
function twitter($atts, $content=null){ $post_url = get_permalink($post->ID); $post_title = get_the_title($post->ID); $tweet = '<a style="color:blue; font-size: 20px;" href="http://twitter.com/home/?status=Read' . $post_title . 'at' . $post_url . '"> <b>Share on Twitter </b></a>'; return $tweet; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function lc_shortcode_twitter($atts, $content = null) {\n \tglobal $post;\n \textract(shortcode_atts(array(\t'url' => '',\n \t\t\t\t\t\t\t\t\t'style' => '',\n \t\t\t\t\t\t\t\t\t'source' => '',\n \t\t\t\t\t\t\t\t\t'text' => '',\n \t\t\t\t\t\t\t\t\t'related' => '',\n \t\t\t\t\t\t\t\t\t'lang' => '',\n ...
[ "0.7841646", "0.7782702", "0.74518794", "0.7395946", "0.7234704", "0.71936715", "0.7135862", "0.7099848", "0.7090601", "0.70596445", "0.7025939", "0.6941521", "0.67899835", "0.6789405", "0.67868614", "0.6778646", "0.6733781", "0.6712559", "0.6691896", "0.6684983", "0.6677786"...
0.8174803
0
Unsets idempotency key field.
Удаляет поле ключа идемпотентности.
public function unsetIdempotencyKey(): self { $this->instance->unsetIdempotencyKey(); return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function unsetKey(string $key);", "public function setIdempotencyKey(string $idempotencyKey): void\n {\n $this->idempotencyKey = $idempotencyKey;\n }", "public function setIdempotencyKey(string $idempotencyKey): void\n {\n $this->idempotencyKey = $idempotencyKey;\n }", "publi...
[ "0.6812717", "0.67909837", "0.67909837", "0.6718892", "0.6718892", "0.66933185", "0.66501105", "0.6600436", "0.6538344", "0.6538344", "0.6531919", "0.6515847", "0.6480213", "0.64420885", "0.64020437", "0.64020437", "0.64020437", "0.64020437", "0.64020437", "0.63721305", "0.63...
0.7525568
0
get details for one intership
получить детали для одного стажировки
public static function getDetails($id_internship){ $result = DB::table("internships") ->join("users","users.id","=","internships.framer") ->join("managers","managers.id","=","internships.company_framer") ->join("companies","managers.company","=","compa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDetail();", "abstract public function getDetails();", "public function getInformation();", "public function getEx1() {\n $incidents = \\DB::table('incidents')->get();\n\n // Output the results\n foreach ($incidents as $incident) {\n echo $incident->neighborh...
[ "0.70381266", "0.70196855", "0.6472764", "0.6246396", "0.62457633", "0.6144742", "0.61430264", "0.6080357", "0.6079135", "0.6056657", "0.6056657", "0.6048618", "0.5956551", "0.59315485", "0.59159106", "0.58893925", "0.58871675", "0.58823955", "0.5877632", "0.58628756", "0.583...
0.7054398
0
fake the existence of a gemoji image
Притворитесь, что существует изображение gemoji
public function testGemoji() { $this->assertTrue( @mkdir(BASE_PATH . $this->gemoji_path . '/images/emoji', 0777, true) ); $this->assertTrue( @touch(BASE_PATH . $this->gemoji_path . '/images/emoji/neckbeard.png') ); $emojify = new Emojify(''); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function image_exist( $img ) \r\n\t\t{\r\n\t\t\tif( @file_get_contents( $img,0,NULL,0,1) ){ return 1; } else{ return 0; }\r\n\t\t\t\r\n\t\t}", "public function test_missing_image_file() {\n\t\t$out = wp_read_image_metadata( DIR_TESTDATA . '/images/404_image.png' );\n\t\t$this->assertFalse( $out );\n\t}", "priv...
[ "0.6249938", "0.6207538", "0.6141033", "0.6127696", "0.6091679", "0.6009656", "0.6005597", "0.5982771", "0.5981967", "0.5981967", "0.59753656", "0.59460497", "0.5938914", "0.590836", "0.5889057", "0.58840704", "0.58747965", "0.5867495", "0.5832634", "0.577054", "0.5769469", ...
0.72038645
0
Add filter by store
Добавить фильтр по магазину
abstract public function addStoreFilter($store, $withAdmin = true);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addStoreToFilter($store)\n\t{\n\t\t$this->getSelect()\n\t\t\t->where('SELECT FIND_IN_SET((?),main_table.store_id)', $store);\n\n\t\treturn $this;\n\t}", "public function addStoreFilter($store)\r\n {\r\n if ($store instanceof Mage_Core_Model_Store) {\r\n $store = array (\r\n ...
[ "0.73095125", "0.727127", "0.71921897", "0.695275", "0.68891644", "0.68493044", "0.6772439", "0.6685945", "0.6685945", "0.6663103", "0.6476065", "0.6435952", "0.63144505", "0.6285231", "0.61830324", "0.61680233", "0.6121697", "0.6090963", "0.5985191", "0.59667885", "0.5963492...
0.8182646
0
Returns the boolean state of show_title
Возвращает логическое состояние show_title
public function isShow_title() { $this->getShow_title(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getShowTitle()\n {\n return !$this->HideTitle;\n }", "public function getIsDisplayedInTitle()\n {\n return $this->isDisplayedInTitle;\n }", "public function getShowTitleAttribute($show_title)\n {\n return $show_title == 1 ? true : false;\n }", "public fu...
[ "0.84033805", "0.7892728", "0.785901", "0.7712492", "0.7431374", "0.74164784", "0.7353534", "0.7286615", "0.7106192", "0.6987834", "0.69667095", "0.687644", "0.6762432", "0.6752631", "0.67348033", "0.6707881", "0.66792965", "0.6573152", "0.6552093", "0.65275425", "0.6525052",...
0.8545536
0
Returns the boolean state of mandatory_correct
Возвращает логическое состояние mandatory_correct
public function isMandatory_correct() { $this->getMandatory_correct(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function isCorrect()\r\n {\r\n if ( $this->IsCorrect == 1 )\r\n return true;\r\n elseif ( $this->IsCorrect == 0 )\r\n return false;\r\n }", "public function isCorrect() {\n\t\treturn $this->getCorrectAnswer();\n\t}", "public function isValid() : bool\n {\n ...
[ "0.76641786", "0.7059262", "0.6927422", "0.67010325", "0.6651081", "0.6646602", "0.6633494", "0.66319984", "0.6610108", "0.6607125", "0.6587801", "0.6563806", "0.65439236", "0.6534407", "0.6515108", "0.6502439", "0.65015554", "0.6500888", "0.6500487", "0.64980423", "0.6495988...
0.8113883
0
Returns the boolean state of closed_randomanswers
Возвращает логическое состояние closed_randomanswers
public function isClosed_randomanswers() { $this->getClosed_randomanswers(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hasAnswers();", "public function hasAnswers()\n {\n return !$this->answers->isEmpty();\n }", "public function getIsClosed(): bool\n {\n return $this->isClosed;\n }", "public function isCorrectAnswer() {\n\t\t$this->getCorrectAnswer();\n\t}", "public function getIsC...
[ "0.6437278", "0.57736206", "0.57202464", "0.5697304", "0.5691226", "0.5658572", "0.56154495", "0.56121707", "0.56048375", "0.55819356", "0.55718", "0.55408007", "0.55391043", "0.55127615", "0.5502095", "0.55012584", "0.5501223", "0.5500123", "0.5491353", "0.5491156", "0.54874...
0.7810863
0
Returns the boolean state of dependancy_simple
Возвращает логическое состояние dependancy_simple
public function isDependancy_simple() { $this->getDependancy_simple(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isDependant() {\n return $this->isDependant;\n }", "public function has_active_dependencies(): bool;", "public function isDependant();", "public function has_inactive_dependencies(): bool;", "public function has_dependencies(): bool;", "public function dependencyExist(): bool\n ...
[ "0.7110584", "0.6970415", "0.69064623", "0.67554665", "0.66704506", "0.6633157", "0.65759426", "0.6563147", "0.6536541", "0.6508873", "0.64606184", "0.63001287", "0.628687", "0.62285596", "0.61369944", "0.6035431", "0.6032044", "0.6010184", "0.5972925", "0.59679306", "0.59547...
0.76690006
0
Class Constructor Constructs L8M_Doctrine_Cache_Db instance. Further to the parent class constructor, the passed connection can be a string representing the name of a connection.
Класс Конструктор создает экземпляр L8M_Doctrine_Cache_Db. Далее, в отличие от конструктора родительского класса, переданный соединение может быть строкой, представляющей имя соединения.
public function __construct($options = array()) { if (isset($options['connection']) && is_string($options['connection'])) { try { $options['connection'] = Doctrine_Manager::getInstance()->getConnection($options['connection']); } catch (Doctrine_Exception $exception) { throw new L8M_Doct...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __construct($filepath, $cache_name = 'doctrine_cache', $connection_name = null)\n\t{\n\t\t$this->_dbfile = $filepath;\n\t\t$this->_cache_name = $cache_name;\n\t\t$this->_connection_name = $connection_name;\n\t}", "public function __construct()\n\t{\n\n\t\ttry {\n\n\t\t\t$dsn = sprintf(\n\t\t\t\t'...
[ "0.71888083", "0.68212974", "0.66433877", "0.65976954", "0.6551142", "0.6518271", "0.64962655", "0.64678365", "0.64155924", "0.6409811", "0.63335663", "0.63331956", "0.62653863", "0.62623817", "0.62598747", "0.62577224", "0.62396675", "0.62337697", "0.62295884", "0.62292093", ...
0.72308385
0
Displays a form to create a new Player entity.
Показывает форму для создания новой сущности Player.
public function newAction() { $entity = new Player(); $form = $this->createForm(new PlayerType(), $entity); return array( 'entity' => $entity, 'form' => $form->createView() ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createAction()\n {\n $entity = new Player();\n $request = $this->getRequest();\n $form = $this->createForm(new PlayerType(), $entity);\n $form->bindRequest($request);\n\n if ($form->isValid()) {\n $em = $this->getDoctrine()->getEntityManager();\n...
[ "0.8342438", "0.7348389", "0.72393954", "0.72289246", "0.7193388", "0.70717096", "0.70517963", "0.6954501", "0.67709625", "0.65315384", "0.6516707", "0.6496219", "0.6465003", "0.64638335", "0.6448825", "0.643503", "0.64052576", "0.6398359", "0.6394526", "0.6385057", "0.638447...
0.81724334
1
Creates a new Player entity.
Создаёт новую сущность Player.
public function createAction() { $entity = new Player(); $request = $this->getRequest(); $form = $this->createForm(new PlayerType(), $entity); $form->bindRequest($request); if ($form->isValid()) { $em = $this->getDoctrine()->getEntityManager(); $e...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createEntity();", "static function createPlayer(Player $player) {\n CommonDao::connectToDb();\n $query = \"insert into player(first_name, last_name, mlb_team_id, birth_date, sportsline_id)\n values (\\\"\" .\n $player->getFirstName() . \"\\\", \\\"\" . $player->g...
[ "0.68255156", "0.67934155", "0.67231286", "0.6683129", "0.6648335", "0.6572207", "0.6450956", "0.6434289", "0.63634044", "0.6237387", "0.6215859", "0.6189383", "0.6185076", "0.61733556", "0.61119497", "0.6097387", "0.60637563", "0.6015827", "0.6004304", "0.59588236", "0.59128...
0.7668256
0
Test case for addItemCategoryAudit Add new audit for an itemCategory
Тест-кейс для addItemCategoryAudit Добавить новый аудит для категории товара
public function test_addItemCategoryAudit() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testAddItemSubCategoryAudit()\n {\n }", "public function test_updateItemCategory() {\n\n }", "public function test_addItemCategory() {\n\n }", "public function test_addItemCategoryTag() {\n\n }", "function addCategory() {\n var_dump($this->request->data);\n if (...
[ "0.74119955", "0.6336058", "0.62546796", "0.61347896", "0.6085698", "0.6058726", "0.6030042", "0.59778816", "0.5933324", "0.5878103", "0.5831397", "0.58297515", "0.57817566", "0.5729841", "0.56912774", "0.5677681", "0.5656927", "0.56459904", "0.5645091", "0.56235296", "0.5619...
0.7242222
1
Test case for deleteItemCategoryTag Delete a tag for an itemCategory.
Тестовый случай для deleteItemCategoryTag Удаление тега для категории товара.
public function test_deleteItemCategoryTag() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testDeleteItemSubCategoryTag()\n {\n }", "public function test_can_delete_items_by_category_id()\n {\n $response = $this->delete('/api/items/destroy/1');\n\n $response->assertStatus(200);\n\n $response->assertSee(0);\n }", "public function test_deleteItemCategor...
[ "0.76374936", "0.708935", "0.6669597", "0.66250587", "0.64845634", "0.64589113", "0.64578485", "0.64236087", "0.6402583", "0.64006084", "0.6393688", "0.6380383", "0.6338093", "0.63202274", "0.62695575", "0.62617624", "0.6252205", "0.62271184", "0.6173879", "0.6161398", "0.614...
0.7583075
1
Test case for getDuplicateItemCategoryById Get a duplicated an itemCategory by id
Тест-кейс для getDuplicateItemCategoryById Получить дублированную категорию элемента по идентификатору
public function test_getDuplicateItemCategoryById() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testGetDuplicateItemSubCategoryById()\n {\n }", "function getDuplicateCategory($category,$id=\"\"){\n\t\t\n\t\tif ($id !=\"\") {\n\t\t\t$this->db->where('choice_category_id !=',$id);\n\t\t\t$this->db->where('choice_category_name',$category);\n\t\t}else{\n\t\t\t$this->db->where('choice_categ...
[ "0.7104709", "0.70663434", "0.6077019", "0.59055185", "0.58932495", "0.5833155", "0.5773944", "0.57427174", "0.5741078", "0.5721403", "0.5707869", "0.56814224", "0.56797653", "0.56427735", "0.5606473", "0.5578822", "0.5570325", "0.5533235", "0.5511212", "0.551044", "0.5485771...
0.7749438
0
Test case for getItemCategoryByFilter Search itemCategorys by filter
Тест-кейс для getItemCategoryByFilter Поиск itemCategorys по фильтру
public function test_getItemCategoryByFilter() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testGetItemSubCategoryByFilter()\n {\n }", "public function test_products_can_be_filtered_by_category()\n {\n $products = factory(Product::class, 2)->create();\n \n // and the first proudct has a category\n $products->first()->categories()->save($category = fa...
[ "0.7182934", "0.70384", "0.6665742", "0.6418676", "0.6315056", "0.6237386", "0.6221826", "0.6171401", "0.61620206", "0.61513424", "0.61242855", "0.6121666", "0.6085163", "0.6061326", "0.6007618", "0.599261", "0.59851456", "0.5939245", "0.5931621", "0.59156317", "0.5899427", ...
0.76800436
0
Test case for updateItemCategory Update an itemCategory
Тест-кейс для updateItemCategory Обновление категории товара
public function test_updateItemCategory() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testUpdateItemSubCategory()\n {\n }", "public function test_can_create_and_update_items()\n {\n // Firstly we creating category\n $category = [\n 'name' => 'Test category'\n ];\n\n $responseCategory = $this->json('POST', '/api/categories', $category...
[ "0.7745001", "0.7295166", "0.6911821", "0.67526215", "0.66292137", "0.65555346", "0.65555346", "0.65541714", "0.64963424", "0.6481747", "0.640225", "0.6381014", "0.63782305", "0.6345436", "0.6338449", "0.6266603", "0.6259734", "0.62261754", "0.6224398", "0.62053657", "0.61913...
0.80248344
0
Return the repository object by its name $repositoryName If $repositoryName is null, it will try to guess it
Верните объект репозитория по его имени $repositoryName. Если $repositoryName равен null, попытается угадать его.
protected function getRepository($repositoryName = null) { $guesser = new ClassGuesser($this); // try to find automatically the repository name if (!$repositoryName) { $repositoryName = $guesser->getClass(array('Manager', 'Controller')); $repositoryName = sprintf('%s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getRepository($repositoryName=\"\")\n {\n if(empty($repositoryName)) {\n $repositoryName = $this->repositoryName;\n }\n return $this->_em->getRepository($repositoryName);\n }", "public function getRepository($repositoryName = null) {\r\n\t if($repositor...
[ "0.8118662", "0.7687358", "0.7652069", "0.7309239", "0.70775306", "0.6834825", "0.6800868", "0.6792947", "0.6728271", "0.6652538", "0.6644082", "0.66062486", "0.6597908", "0.6578719", "0.6544095", "0.6514356", "0.6512274", "0.64951456", "0.64940053", "0.6480562", "0.6473056",...
0.78304756
1
Return the teams related to Idol
Верните команды, связанные с Идолом
public function relatedTeams($idol) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTeams();", "public function getTeam();", "public function teams()\n {\n return $this->hasMany('Fantasee\\Team');\n }", "public function teams()\n {\n return $this->hasManyThrough('App\\Models\\Championship\\Team', 'App\\Models\\Championship\\Tournament');\n }", ...
[ "0.7406357", "0.69824463", "0.6747676", "0.6731842", "0.6701567", "0.66581935", "0.6643352", "0.6638474", "0.66206956", "0.659491", "0.6566823", "0.6557499", "0.6475263", "0.64736795", "0.6436745", "0.64349747", "0.6401648", "0.63552594", "0.6314095", "0.63011974", "0.629683"...
0.7646255
0
Return the next idol
Верните следующего идола
public function next($idol) { $query = $this->_em->createQuery(' SELECT i FROM \Dodici\Fansworld\WebBundle\Entity\Idol i WHERE i.id > :idolId ORDER BY i.id DESC ') ->setParameter('idolId', $idol->getId()) ->setMaxResults(1); re...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getNext();", "public function nextId() {\n\t}", "public function getNext();", "public function getNext();", "public function getNext() {}", "public function getNext() {}", "public function get_next_object() { \n\n\t\t$tmp_id = Dba::escape($this->id);\n\t\t$order = \" ORDER BY tmp_playlist_data...
[ "0.68637186", "0.68603635", "0.68533003", "0.68533003", "0.6756437", "0.67551374", "0.6678201", "0.6674956", "0.6610633", "0.66037637", "0.65745795", "0.6564401", "0.6497665", "0.6497665", "0.6497665", "0.6497665", "0.64232326", "0.64151317", "0.64102095", "0.640144", "0.6371...
0.76578736
0
Sets the appDisplayName property value. Display name of the application object on which this extension property is defined. Readonly.
Устанавливает значение свойства appDisplayName. Отображаемое имя объекта приложения, на котором определено это расширяемое свойство. Только для чтения.
public function setAppDisplayName(?string $value): void { $this->getBackingStore()->set('appDisplayName', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setAppDisplayName($val)\n {\n $this->_propDict[\"appDisplayName\"] = $val;\n return $this;\n }", "public function getAppDisplayName()\n {\n if (array_key_exists(\"appDisplayName\", $this->_propDict)) {\n return $this->_propDict[\"appDisplayName\"];\n ...
[ "0.7864538", "0.6689486", "0.6583255", "0.64423263", "0.634984", "0.61737686", "0.6172985", "0.6172985", "0.616488", "0.616488", "0.616488", "0.616488", "0.616488", "0.616488", "0.616488", "0.616488", "0.616488", "0.616488", "0.616488", "0.616488", "0.616488", "0.616488", ...
0.71934074
1
Sets the dataType property value. Specifies the data type of the value the extension property can hold. Following values are supported. Not nullable. Binary 256 bytes maximumBooleanDateTime Must be specified in ISO 8601 format. Will be stored in UTC.Integer 32bit value.LargeInteger 64bit value.String 256 characters max...
Устанавливает значение свойства dataType. Определяет тип данных значения, которое может хранить расширяемое свойство. Поддерживаются следующие значения. Не может быть пустым. Binary Максимум 256 байт Boolean DateTime Должно быть указано в формате ISO 8601. Будет храниться в UTC. Integer 32-битное значение. LargeInteger...
public function setDataType(?string $value): void { $this->getBackingStore()->set('dataType', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setDataType($dataType) {\n\t\t\t$this->limit = false;\n\t\t\t$this->offset = false;\n\n\t\t\t$this->dataType = $dataType;\n\t\t}", "public function setDataType($value)\n\t{\n\t\t$this->setViewState('DataType',TPropertyValue::ensureEnum($value,'TValidationDataType'),TValidationDataType::String);\n...
[ "0.72569835", "0.7191591", "0.6913058", "0.67532045", "0.6660441", "0.6456031", "0.6363851", "0.63029754", "0.6302677", "0.6302677", "0.6302677", "0.6302677", "0.62648696", "0.62584937", "0.6157934", "0.6156586", "0.6039782", "0.59780717", "0.5952312", "0.585169", "0.58373475...
0.7360025
0
Get all bank account in one company
Получить все банковские счета в одной компании
public function getAll($companyId) { return DB::table('company_bank_accs') ->select( 'company_id as companyId', 'bank_id as bankId', 'acc_number as accNumber', 'acc_name as accName' ) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function all(): array\n {\n return Billingo::get('bank_accounts');\n }", "public function getAllCompanyAccounts()\n { \n // select all fields and columns form the 'companies' table and return is as an array of objects\n $companies = Company::all();\n\n // if the leng...
[ "0.731031", "0.71449167", "0.7136703", "0.67941475", "0.67519665", "0.66621864", "0.6648692", "0.6614557", "0.6602965", "0.6592894", "0.65611833", "0.6534308", "0.65187764", "0.65170944", "0.6502511", "0.65022665", "0.6468244", "0.6424254", "0.64171743", "0.6411135", "0.64038...
0.71517426
1
verifcation en base si le pseudo est dispo , renvoie true si dispo , false sinon
проверка в базе, если псевдоним доступен, возвращает true, если доступен, false в противном случае
public function is_dispo_pseudo($pseudo) { $sql="SELECT ut_id FROM utilisateur WHERE ut_pseudo=?"; $tuple = $this->executerRequete($sql,array($pseudo)); $numRows = $tuple->rowCount(); if($numRows>0) { return false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function existePseudo($pseudo) //test si le pseudo est deja utilisé\n {\n if( isset($pseudo) && !empty($pseudo) )\n {\n global $erreur;\n $erreur[] = \"Ce pseudo est déjà pris.\";\n return true;\n }\n else\n return false;\n }", "publi...
[ "0.67658144", "0.6499287", "0.6027963", "0.5959464", "0.5887085", "0.5816317", "0.5798082", "0.57752365", "0.575716", "0.5669146", "0.5598083", "0.559697", "0.5595472", "0.5589064", "0.54869795", "0.5443585", "0.5410442", "0.5383441", "0.5334361", "0.5331912", "0.53309435", ...
0.70643014
0
Generates an MD5 salt for use in `lithium\security\Password::hash()`.
Генерирует MD5-соль для использования в `lithium\security\Password::hash()`.
protected static function _genSaltMD5() { return '$1$' . static::random(6, array('encode' => static::ENCODE_BASE_64)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected static function _generateSaltMd5() {\n\t\treturn '$1$' . Random::generate(6, ['encode' => Random::ENCODE_BASE_64]);\n\t}", "private function generateSalt(){\n return substr(md5(rand(0, 999)), 0, 5);\n }", "public function getSalt()\n {\n return md5(random_bytes(50));\n }", "p...
[ "0.83162385", "0.78830606", "0.78509516", "0.764651", "0.7606044", "0.75916827", "0.7586587", "0.75708574", "0.75164574", "0.74880093", "0.7424639", "0.73977077", "0.73743016", "0.73183405", "0.7308173", "0.7306141", "0.7288844", "0.7237307", "0.7212919", "0.7202189", "0.7197...
0.8409745
0
Filter the query on the tranchemax column Example usage: $query>filterByTranchemax(1234); // WHERE tranchemax = 1234 $query>filterByTranchemax(array(12, 34)); // WHERE tranchemax IN (12, 34) $query>filterByTranchemax(array('min' => 12)); // WHERE tranchemax > 12
Фильтрация запроса по столбцу tranchemax Пример использования: $query>filterByTranchemax(1234); // WHERE tranchemax = 1234 $query>filterByTranchemax(array(12, 34)); // WHERE tranchemax IN (12, 34) $query>filterByTranchemax(array('min' => 12)); // WHERE tranchemax > 12
public function filterByTranchemax($tranchemax = null, $comparison = null) { if (is_array($tranchemax)) { $useMinMax = false; if (isset($tranchemax['min'])) { $this->addUsingAlias(DegressifProductsTableMap::TRANCHEMAX, $tranchemax['min'], Criteria::GREATER_EQUAL); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function filterMaxValue(int $max);", "public function max($type, $column, IFilterable $filter) {\n return Functions::retype($this->_dataHandler->aggregate('MAX', $column, $this->_table, $filter->resultFilter()), $type);\n }", "function getColumnFilter ( &$where = array(),\n ...
[ "0.68681914", "0.58890784", "0.58771163", "0.5791564", "0.563236", "0.559477", "0.55915093", "0.5528905", "0.5511383", "0.5491816", "0.54513824", "0.5416338", "0.541319", "0.5352687", "0.5343878", "0.53315115", "0.53241485", "0.53241485", "0.531068", "0.5287451", "0.52777046"...
0.7130753
0
Get add to cart controller url for afbt.
Получить URL контроллера "Добавить в корзину" для afbt.
public function getCartAddUrl() { return $this->getUrl("afbt/cart/add"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAddToCartAction()\r\n {\r\n return $this->getUrl(\"mpads/advertise/addtocart\", ['_secure' => $this->getRequest()->isSecure()]);\r\n }", "function add_to_shopping_cart_url() {\n\t\tglobal $apptivo_ecommerce;\n\t\t$url = add_query_arg('add-to-cart', $this->id.'+'.$this->_apptivo_it...
[ "0.72975767", "0.70552015", "0.6806759", "0.6748667", "0.6710779", "0.6699967", "0.65571856", "0.6548791", "0.6500399", "0.63704956", "0.62862635", "0.62774295", "0.624726", "0.62423706", "0.6215876", "0.6211463", "0.6199772", "0.61562824", "0.60930127", "0.6092842", "0.60538...
0.8338108
0
/ Complete the 'nonDivisibleSubset' function below. The function is expected to return an INTEGER. The function accepts following parameters: 1. INTEGER k 2. INTEGER_ARRAY s
Завершите функцию 'nonDivisibleSubset' ниже. Функция ожидает вернуть ЦЕЛОЕ ЧИСЛО. Функция принимает следующие параметры: 1. ЦЕЛОЕ ЧИСЛО k 2. МАССИВ ЦЕЛЫХ ЧИСЕЛ s
function nonDivisibleSubset($k, $s) { $set = array_map(function($item) use($k) {return $item % $k;}, $s); $numbers = array_pad([], $k, 0); foreach($s as $item) { $numbers[$item % $k]++; } ksort($numbers); $hasEvenlyDivisible = $numbers[0] ? 1 : 0; $result = 0; unset($numbers...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getSubsets($arr) {\n if (empty($arr)) {\n return [];\n }\n $result = [];\n for ($i=0; $i < sizeof($arr); $i++) { \n \n $subArr = array_slice($arr, $i);\n if (!in_array($subArr, $result)) {\n $result[] = $subArr;\n }\n \n }...
[ "0.5950075", "0.5595903", "0.5562244", "0.5425746", "0.54214007", "0.53510517", "0.5305261", "0.5269764", "0.5215168", "0.5206846", "0.52002937", "0.5105583", "0.508579", "0.49945533", "0.4986502", "0.48976907", "0.48677006", "0.48671466", "0.47952577", "0.479061", "0.4788470...
0.78713626
0
/ Get level_subject by id
/ Получить level_subject по id
function get_level_subject($id) { return $this->db->get_where('level_subjects',array('id'=>$id))->row_array(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function subjects_get($id = \"0\")\n {\n $sutil = new CILServiceUtil();\n $from = 0;\n $size = 10;\n \n $temp = $this->input->get('from', TRUE);\n if(!is_null($temp))\n {\n $from = intval($temp);\n }\n $temp = $this->input->get('size', TRUE);\n i...
[ "0.71696305", "0.7162972", "0.69988036", "0.68729085", "0.6807011", "0.6767195", "0.67028767", "0.66257584", "0.66097444", "0.6602595", "0.65858483", "0.65082127", "0.6505566", "0.63236177", "0.6278434", "0.62701494", "0.62573445", "0.62212527", "0.6155838", "0.60712945", "0....
0.8682131
0
/ Get all level_subjects
/ Получить все level_subjects
function get_all_level_subjects() { $this->db->select('*'); $this->db->from('level_subjects'); $this->db->join('subjects', 'subjects.id = level_subjects.subjects_id'); $this->db->join('academic_levels', 'academic_levels.id = level_subjects.level_id'); return $this->db->get()-...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSubjectLevelList() {\n\t\techo json_encode($this->model_question->get_subjectlevel_list());\n\t}", "function get_level_subject($id)\n {\n return $this->db->get_where('level_subjects',array('id'=>$id))->row_array();\n }", "public function getSubjects()\n {\n return $thi...
[ "0.7729657", "0.74198633", "0.71725625", "0.6931386", "0.6663642", "0.656794", "0.6544996", "0.6516842", "0.6506753", "0.6493974", "0.63768", "0.63573056", "0.6318644", "0.630505", "0.6301105", "0.62751275", "0.6254473", "0.6214131", "0.62015104", "0.61953413", "0.6171924", ...
0.79683316
0
/ function to add new level_subject
Функция для добавления нового уровня предмета
function add_level_subject($params) { $this->db->insert('level_subjects',$params); return $this->db->insert_id(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create($level, Subject $subject = null)\n {\n if(!$subject){\n $subject = Subject::find(2);\n }\n \n $subjects=Subject::where('level', $level)->get();\n $ica_types=IcaType::get()->pluck('name','id')->toArray();\n $students = Student::where('level'...
[ "0.65501136", "0.65394455", "0.6273496", "0.62691104", "0.6260683", "0.6114559", "0.59111756", "0.5898931", "0.5887741", "0.5860948", "0.58579874", "0.58504146", "0.5812897", "0.5753291", "0.5747332", "0.5726219", "0.572114", "0.5678042", "0.5636904", "0.5608623", "0.5590362"...
0.76059484
0
/ function to update level_subject
Функция для обновления level_subject
function update_level_subject($id,$params) { $this->db->where('id',$id); return $this->db->update('level_subjects',$params); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function update(SplSubject $subject)\n {\n // TODO: Implement update() method.\n print_r($subject);\n}", "function update_subject($subject) {\n global $db;\n\n $errors = validate_subject($subject);\n if(!empty($errors)) {\n return $errors;\n }\n\n $old_subject = find_s...
[ "0.64059156", "0.6378555", "0.6279602", "0.62746453", "0.62746453", "0.62746453", "0.62746453", "0.6274254", "0.6274254", "0.597634", "0.5961145", "0.5922546", "0.5907963", "0.5849551", "0.5821799", "0.57956755", "0.5724698", "0.57124805", "0.5705996", "0.5670824", "0.5658771...
0.7000117
0
/ function to delete level_subject
Функция для удаления level_subject
function delete_level_subject($id) { return $this->db->delete('level_subjects',array('id'=>$id)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function destroy(Subject $subject)\n {\n //where('id', 1)->wherePivot('year', 2011)->detach(1);\n \n $subject->delete();\n $subject->tutors()->detach();\n return redirect()->route('subject.index');\n }", "function deletecouse_subjects(){\n\n\t\t$course_Module_id =...
[ "0.6644699", "0.6627241", "0.6613038", "0.64672786", "0.6410561", "0.63837165", "0.6357323", "0.62886083", "0.61878604", "0.61622894", "0.61319613", "0.6082144", "0.60770655", "0.6049758", "0.60379404", "0.6036124", "0.60280406", "0.601255", "0.5989238", "0.5989238", "0.59892...
0.82017034
0
Tries to guess the fullname format set at the site
Пытается угадать формат полного имени, установленный на сайте
protected function helper_fullname_format() { $fake = new stdClass(); $fake->lastname = 'LLLL'; $fake->firstname = 'FFFF'; $fullname = get_string('fullnamedisplay', '', $fake); if (strpos($fullname, 'LLLL') < strpos($fullname, 'FFFF')) { return 'lf'; } else {...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function vFullName( $name ) \r\n\t\t{\r\n\t\t\t return preg_match ('/^[A-Z \\',.-]{1,750}$/i', $name);\r\n\t\t\t\t\t\t \r\n\t\t}", "public static function parse_name($full_name) {\n # Remove leading/trailing whitespace\n $full_name = trim($full_name);\n # Setup default vars\n extract(array('salutati...
[ "0.65318245", "0.64787394", "0.6395448", "0.63339716", "0.6246992", "0.62387925", "0.6137735", "0.61106503", "0.6100019", "0.60653746", "0.60603905", "0.60058016", "0.5979973", "0.592615", "0.59177715", "0.59041584", "0.58885443", "0.5883528", "0.58748484", "0.5864042", "0.58...
0.7805834
0
/Esta funcion sirve para asignarle a un alumno un coordinador dentro de la base de datos, con base al llenado de un formulario previo, una vez que realiza la operacion redirige a la pagina de AsignarCoordinador
Эта функция служит для назначения студенту координатора в базе данных на основе заполнения предварительной формы. После выполнения операции пользователь перенаправляется на страницу "AsignarCoordinador".
public function AsignarAlumnoCoordinador(){ $UsCg = new HomeController(); $UsCdatos = array(); array_push($UsCdatos, $_POST["id"]); array_push($UsCdatos, $_POST["coordinador"]); $UsCvalidado = $UsCg->ValidarNoVacio($UsCdatos); if ($UsCvalidado) { DB::table("alumno")->where("idAlumno",$_POST["id"])->updat...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function asignarCamposRelacionales() {\n foreach($this->campos as $nombre=>$campo) {\n if($campo->tipo!='relacional'||($campo->relacion!='1:1'&&$campo->relacion!='1:0')) continue;\n $columna=$campo->columna;\n if(is_object($this->consultaValores->$nombre)) {\n ...
[ "0.5974648", "0.5910409", "0.59096104", "0.5873862", "0.5859844", "0.5856916", "0.5827198", "0.58143693", "0.5777128", "0.5770317", "0.573578", "0.57278067", "0.5724644", "0.57100374", "0.5702241", "0.56629586", "0.5660348", "0.5649623", "0.564625", "0.563591", "0.56204414", ...
0.7097534
0
Get (or create, if needed) a CalendarBag.
Получите (или создайте, если это необходимо) объект CalendarBag.
private function getOrCreateCalendarBag() { $bag = $this->getCalendarBagFromStore(); if (null === $bag) { $newBag = new CalendarBag(); $nodename = strtolower($newBag->getSemanticNodeType()); $newBag->setNodename($nodename); $this->setCalendarNodes($new...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function getCalendarBagFromStore()\n {\n $bag = $this->calendarBag;\n\n return $bag;\n }", "private function setCalendarBagToStore(CalendarStoreInterface $bag)\n {\n $bag = $this->addChildIfMissing($bag);\n $this->calendarBag = $bag;\n\n return $this;\n }", ...
[ "0.77613413", "0.5817708", "0.5768944", "0.57452655", "0.5632337", "0.5559001", "0.5507793", "0.5492474", "0.5266087", "0.50600004", "0.50469154", "0.49988246", "0.4978079", "0.49670795", "0.49419236", "0.4904092", "0.48897228", "0.48654866", "0.48503345", "0.4827946", "0.482...
0.85323435
0
Get all Calendar Nodes.
Получить все узлы Календаря.
public function getCalendarNodes() { return $this->getOrCreateCalendarBag(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getNodes(){\n $now = new DrupalDateTime('now');\n $plusMonth = new DrupalDateTime('now +2 weeks');\n\n $fromDate = $now->format(\"Y-m-d\") .' 00:00:01';\n $toDate = $plusMonth->format(\"Y-m-d\") .' 23:59:59';\n\n $urlParams = '{\"from\":\"'.$fromDate.'\",\"to\":\"'.$toDate.'\",\"c...
[ "0.6571171", "0.6509728", "0.6339898", "0.6237129", "0.6038368", "0.59910333", "0.59910333", "0.59910333", "0.59910333", "0.59910333", "0.59910333", "0.59887105", "0.5940305", "0.59028834", "0.5835127", "0.57985264", "0.57917064", "0.57877475", "0.5750839", "0.570038", "0.570...
0.8511123
0
Add a Calendar Node.
Добавьте узел Календаря.
public function addCalendarNode(CalendarInterface $node) { $bag = $this->getOrCreateCalendarBag(); return $bag->addCalendarNode($node); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function addCalendar($calendar) {\n return $this->databaseInsertRecord(\n $this->tableCalendars,\n 'calendar_id',\n $calendar\n );\n }", "public function add(){\n\n $this->set('add', true);\n\n if($this->request->is('post')){\n $this->request->data['CalendarEntry'][...
[ "0.6149165", "0.58304757", "0.56128234", "0.5292168", "0.5258837", "0.5198804", "0.5142226", "0.51239055", "0.5080954", "0.50645876", "0.5058206", "0.505215", "0.5028278", "0.49255693", "0.4918926", "0.48955712", "0.48899823", "0.48723912", "0.48556358", "0.48461556", "0.4841...
0.7132887
0
Test if a Calendar Nodename exists.
Проверить, существует ли Календарь Nodename.
public function hasCalendarName(string $nodename) { $bag = $this->getOrCreateCalendarBag(); return $bag->hasCalendarName($nodename); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function is_calendar() {\n\tglobal $wp_query;\n\tif ( 'calendar' == $wp_query->queried_object->taxonomy )\n\t\treturn true;\n}", "public function getCalendarFor($name);", "public function hasCalendarInCalendarHome(string $principalUri, string $calendarUri): bool;", "public function hasCalendarTrashName(strin...
[ "0.6131221", "0.5717898", "0.5490101", "0.5469792", "0.5463248", "0.54477954", "0.53515035", "0.53435475", "0.52901345", "0.51272553", "0.5093875", "0.50823236", "0.50664544", "0.5045068", "0.5042319", "0.50067693", "0.49988654", "0.4995934", "0.49761063", "0.49747935", "0.49...
0.7099738
0
Remove a Calendar Node.
Удалить узел календаря.
public function removeCalendarNode(CalendarInterface $node) { $bag = $this->getOrCreateCalendarBag(); return $bag->removeCalendarNode($node); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function removeNode()\n {\n }", "public function removeCalendarName(string $nodename)\n {\n $bag = $this->getOrCreateCalendarBag();\n\n return $bag->removeCalendarName($nodename);\n }", "public function removeCalendarTrashName(string $nodename)\n {\n re...
[ "0.6480007", "0.62128234", "0.59933496", "0.5436254", "0.5396504", "0.53703237", "0.5342148", "0.5309263", "0.52386206", "0.52347964", "0.52201736", "0.51950973", "0.51760423", "0.516384", "0.5104409", "0.5101671", "0.5094749", "0.50830257", "0.50816536", "0.50816536", "0.508...
0.7124413
0
Remove a Calendar Nodename.
Удалить имя узла календаря.
public function removeCalendarName(string $nodename) { $bag = $this->getOrCreateCalendarBag(); return $bag->removeCalendarName($nodename); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function removeCalendarTrashName(string $nodename)\n {\n return $this->removeChildKey($nodename);\n }", "public function destroy(Calendar $calendar)\n {\n //\n }", "public function delete($calendario);", "public function destroy(InternCalendar $internCalendar)\n {\n ...
[ "0.632592", "0.6073433", "0.6014809", "0.5953916", "0.590074", "0.5895698", "0.5595129", "0.5581312", "0.5537519", "0.5461472", "0.5432369", "0.53691787", "0.53313726", "0.53020775", "0.52945536", "0.5219931", "0.52119815", "0.52119815", "0.52119815", "0.52119815", "0.5211981...
0.72017777
0
Set a Calendar Nodename and Node.
Установите имя узла и узел календаря.
public function setCalendarNode(string $nodename, CalendarInterface $node) { $bag = $this->getOrCreateCalendarBag(); return $bag->setCalendarNode($nodename, $node); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setNodename(string $nodename);", "public function setNodename(string $nodename)\n {\n return $this->innerSetNodename($nodename);\n }", "public function setCalendarName($value)\n {\n return $this->set('CalendarName', $value);\n }", "public function setCalendarTrashNod...
[ "0.64302945", "0.577434", "0.5595953", "0.5501655", "0.5484661", "0.54454523", "0.5386371", "0.5188501", "0.516318", "0.5159262", "0.514747", "0.5070958", "0.50379187", "0.50084776", "0.5008247", "0.5008247", "0.5007774", "0.50076455", "0.50076455", "0.50076455", "0.50076455"...
0.7517959
0
Check if method has been marked as async.
Проверьте, отмечено ли метод как асинхронный.
public function isAsync();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isAsync(): bool\n {\n return $this->async;\n }", "public function isAsync()\n {\n return $this->async;\n }", "public function isAsynchronous(): bool\n {\n return true;\n }", "public function has_async_action() {\n\t\treturn false;\n\t}", "public functi...
[ "0.7640065", "0.76036024", "0.7245639", "0.7016239", "0.6121273", "0.6036775", "0.5987694", "0.59560424", "0.5907703", "0.58454716", "0.5806506", "0.57157665", "0.57046056", "0.5661587", "0.56520855", "0.56221014", "0.56103873", "0.55832946", "0.55439353", "0.55266136", "0.54...
0.7937748
0
constructor of this class This method reads the global configuration and calls the setter methods
конструктор этого класса. Этот метод читает глобальную конфигурацию и вызывает методы установки значений
public function __construct() { // get global configuration $extConf = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['roadworks']); if (is_array($extConf) && count($extConf)) { // call setter method foreach configuration entry foreach($extConf as $key => $...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function __construct() {\n $this->getSystemConfig();\n }", "public function init() {\n //TODO override and put config intialization code here\n }", "protected function __construct()\n {\n // Define the constants\n define('VALIB_CONFIG', $this->loadConfig());\n }", "pub...
[ "0.77824605", "0.74799794", "0.74534464", "0.74271506", "0.7378183", "0.73730314", "0.7318581", "0.7318127", "0.7307496", "0.7272949", "0.7232884", "0.72150457", "0.72007555", "0.71632", "0.7158337", "0.7157199", "0.71448225", "0.7142851", "0.7138813", "0.71019167", "0.709230...
0.76640266
1
Get the niveau noeud.
Получить уровень узла.
public function getNiveauNoeud(): ?int { return $this->niveauNoeud; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getNiveau() {\r\n\t\treturn $this->_niveau;\r\n\t}", "public function info_niveau()\r\n\t{\r\n\t\tif ($this->niveau == \"LP\")\t\t\r\n\t\t\treturn $this->niveau . \":\" . $this->groupe;\r\n\t\t\r\n\t\telse\r\n\t\t\treturn $this->niveau;\r\n\t}", "public function getNerve()\n {\n return $this...
[ "0.7832394", "0.6759017", "0.661198", "0.654822", "0.64706457", "0.63771576", "0.63506293", "0.63294435", "0.63105714", "0.63048935", "0.62945443", "0.6282453", "0.626679", "0.62559044", "0.6240078", "0.6234415", "0.6234415", "0.62093353", "0.61826694", "0.61679983", "0.61349...
0.7267031
1
Get the noeud local.
Получить локальный узел.
public function getNoeudLocal(): ?bool { return $this->noeudLocal; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getLocal(){ }", "public function local()\n {\n return Local::getinstance();\n }", "public function getLocal();", "public function getNuTelefone()\n\t{\n\t\treturn $this->nu_telefone;\n\t}", "public function getLocalidade()\n\t{\n\t\t/**\n\t\t * retorna localidade\n\...
[ "0.63631874", "0.62454957", "0.618405", "0.60735387", "0.60548097", "0.58621013", "0.5837822", "0.58300304", "0.5773675", "0.57423943", "0.57054603", "0.559339", "0.55897343", "0.5567009", "0.5563019", "0.5541518", "0.5541518", "0.5493292", "0.54193985", "0.5402242", "0.54007...
0.71646905
0
Get the num devis.
Получить число делителей.
public function getNumDevis(): ?string { return $this->numDevis; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDernierNumeroDemandeur()\r\n\t{\r\n\t\t$req = \"select max(num_recu) from demandeurs\";\r\n\t\t$res = PdoFredi::$monPdo->query($req);\r\n\t\tif($res->rowCount() != 0)\r\n\t\t\t$num = $res->fetchColumn();\r\n\t\telse\r\n\t\t\t$num = 0;\r\n\t\treturn $num;\r\n\t}", "public function getNbDuree()\...
[ "0.6673717", "0.6654605", "0.655735", "0.6537085", "0.6479399", "0.626766", "0.6255158", "0.6255158", "0.61600447", "0.61133343", "0.6111532", "0.61033744", "0.60957706", "0.60957706", "0.60957706", "0.60957706", "0.60957706", "0.6077941", "0.6068661", "0.60583", "0.6042339",...
0.75938815
0
Get the numero noeud.
Получить номер узла.
public function getNumeroNoeud(): ?int { return $this->numeroNoeud; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getNiveauNoeud(): ?int {\n return $this->niveauNoeud;\n }", "public function getNossoNumero();", "public function getNumero()\n {\n return $this->numero;\n }", "public function getNumero() {\n return $this->numero;\n }", "function getNota_num()\n {\n ...
[ "0.79266614", "0.79240024", "0.79207414", "0.79191583", "0.7899768", "0.7899768", "0.77419794", "0.74757576", "0.72570544", "0.72547436", "0.72336644", "0.7209645", "0.7171539", "0.7166843", "0.71633965", "0.7161234", "0.71510434", "0.71510434", "0.7021645", "0.70202136", "0....
0.8296875
0
Request a new verification email. POST
Запросить новый email для подтверждения. POST
public function requestVerificationEmail() { if (!$this->request->is('post')) { $this->_respondWithMethodNotAllowed(); return; } $user = $this->Guardian->user(); if (!$user->verified) { $this->Users->Tokens->expireTokens($user->id, TokensTable::TY...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function sendEmailVerificationNotification();", "function verify_email()\n\t{\n\t\tlog_message('debug', 'Account/verify_email');\n\t\t$data = filter_forwarded_data($this);\n\t\t$data['msg'] = get_session_msg($this);\n\t\tlog_message('debug', 'Account/verify_email:: [1] post='.json_encode($_POST));\n\t\t# ...
[ "0.7019465", "0.6845316", "0.6746348", "0.6650957", "0.66434336", "0.66213185", "0.6593213", "0.6554849", "0.65201443", "0.651185", "0.64708084", "0.64626944", "0.6453992", "0.64317304", "0.6420877", "0.6380468", "0.63672423", "0.6356667", "0.6323448", "0.63188285", "0.630210...
0.77199656
0
Lost password action POST
Действие "Потерянный пароль" POST
public function lostPassword() { if (!$this->request->is('post')) { $this->_respondWithMethodNotAllowed(); return; } $user = $this->Users->findByEmail($this->request->getData('email')); if ($user) { $token = $this->Tokens->create($user, TokensTab...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function lostpasswordAction()\n {\n $user = $this->_user;\n\n $form = new User_Form_LostPassword();\n\n $data = $this->_request->getPost();\n if(!$data){\n // Display empty form\n $this->view->form = $form;\n return;\n }\n\n if (!...
[ "0.75521785", "0.74684775", "0.7271282", "0.7206989", "0.71494555", "0.70869356", "0.70368135", "0.7029698", "0.7024", "0.7024", "0.70140636", "0.7000353", "0.69922835", "0.6976192", "0.69467264", "0.69289273", "0.6901677", "0.68898076", "0.68862534", "0.68838453", "0.6878336...
0.7844245
0
Generate a notarization certificate
Создать сертификат нотариации
public function generateNotarizeCertAction(Request $request) { $res = $this->get('app.model.data')->notarizationCertificate($request->get('t'), $this->getUser()->getIdUser()); $res['lang'] = $request->getLocale() == 'es_ES' ? 'ES' : 'EN'; $res['baseUrl'] = $request->getSchemeAndHttpHost(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function certificateapi_generate_keypair($dn = null, $days=28) {\n global $CFG, $USER, $DB;\n\n $keypair = array();\n\n if (is_null($dn)) {\n return false;\n }\n\n $dnlimits = array(\n 'countryName' => 2,\n 'stateOrProvinceName' => 128,\n 'locali...
[ "0.6823032", "0.659047", "0.6342735", "0.6329146", "0.62225735", "0.61076474", "0.60623085", "0.6044711", "0.5974638", "0.59354633", "0.5923036", "0.5855799", "0.57454354", "0.57351416", "0.57252103", "0.5682139", "0.5645851", "0.56394106", "0.5637897", "0.56051147", "0.55943...
0.7424322
0
Generate a signature certificate
Создать сертификат подписи
public function generateSignCertAction(Request $request) { if ($this->get('security.authorization_checker')->isGranted('IS_AUTHENTICATED_REMEMBERED')) { $idUser = $this->getUser()->getIdUser(); $userType = 'U'; } elseif ($request->get('u') and $request->get('ut') and $this->g...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function generate_signature()\n {\n $phrase = implode('', func_get_args());\n /**\n * Sign data and make final signature\n */\n $signature = '';\n $private_key_id = openssl_pkey_get_private($this->private_key);\n if (!openssl_sign($phrase, $signature, $...
[ "0.67181635", "0.6491644", "0.6462484", "0.64457905", "0.6415347", "0.63934237", "0.63930845", "0.63592935", "0.6327763", "0.6248613", "0.61464226", "0.607052", "0.596732", "0.5924935", "0.5909162", "0.5880674", "0.5835987", "0.58173096", "0.58069634", "0.57638186", "0.573163...
0.7412023
0
renders an example php file
отображает пример файла php
function render_example($filename) { $file = trailingslashit(dirname(__FILE__)) . $filename; $output = '<pre><code>'; $output .= file_exists($file) ? htmlentities(file_get_contents($file)) : 'File "' . $file . '" not found.'; $output .= '</code></pre>'; echo $output; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function run()\n\t{\n\t\techo vsprintf($this->template,$this->_contents);\n\t}", "public function renderHTML() \n\t{\n\t\t$viewTemplate = file_get_contents('view_file.html');\n\t\techo $viewTemplate;\n\t}", "public function render($file);", "function display_content(){\n echo '<!DOCTYPE html>\n ...
[ "0.6384346", "0.6226333", "0.62143326", "0.61954653", "0.61918235", "0.6156753", "0.61531764", "0.61430156", "0.61235815", "0.6122005", "0.60894614", "0.6076712", "0.60755754", "0.6044554", "0.60430425", "0.6022521", "0.60216653", "0.60214937", "0.60139656", "0.6010375", "0.6...
0.7429791
0
Create relationship to model image
Создать связь для модели изображения
public function image() { return $this->hasMany('App\Models\Image'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function image()\n {\n \treturn $this->belongsTo('App\\Models\\Image');\n }", "public function image()\n {\n return $this->belongsTo('App\\Image');\n }", "public function image(){\n return $this->belongsTo(Image::class);\n }", "public function Image() {\n return $t...
[ "0.7007659", "0.68500704", "0.679472", "0.67915267", "0.67738056", "0.676518", "0.66288155", "0.648929", "0.6437766", "0.6426283", "0.6425293", "0.64020395", "0.63970476", "0.6381166", "0.636924", "0.63691074", "0.63295174", "0.6279446", "0.6279446", "0.6279446", "0.6279446",...
0.7124224
0
Create relationship to model gumshoe
Создать связь для модели gumshoe
public function gumshoe() { return $this->hasMany('App\Models\Gumshoe'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function run()\n {\n factory('App\\Relationship', 3)->create();\n }", "private function createRelation()\n {\n $this->createBuilder();\n }", "public function isAddToRelationship();", "public function create(Shoe $shoe)\n {\n //\n return view('add_shoe');\n }...
[ "0.619883", "0.5923928", "0.5750168", "0.5682342", "0.56433034", "0.55780524", "0.55737364", "0.5545827", "0.55099607", "0.54710805", "0.5452148", "0.54459226", "0.5418027", "0.54134697", "0.5411026", "0.5362685", "0.5342043", "0.53244007", "0.53244007", "0.53244007", "0.5324...
0.71588516
0
Create relationship to model bookRoom
Создать связь для модели bookRoom
public function bookRoom() { return $this->hasMany('App\Models\BookRoom'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function room()\n {\n return $this->hasMany('App\\Models\\Room');\n }", "public function room()\n {\n return $this->belongsTo('App\\Room', 'ROOM_ID' ,'ROOM_ID');\n }", "public function create()\n {\n // $bookings = Room::get();\n // return view('rooms.create',['...
[ "0.6907331", "0.6574628", "0.65223604", "0.6323684", "0.6182882", "0.617833", "0.61729604", "0.61657923", "0.61640465", "0.6158572", "0.60816216", "0.59935665", "0.586343", "0.586343", "0.58441985", "0.5842282", "0.5837214", "0.58164877", "0.5789353", "0.5787132", "0.574141",...
0.7509056
0
Create relationship to model visitorBookRoom
Создать связь для модели visitorBookRoom
public function visitorBookRoom() { return $this->hasMany('App\Models\VisitorBookRoom'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function bookRoom()\n {\n return $this->hasMany('App\\Models\\BookRoom');\n }", "public function room()\n {\n return $this->hasMany('App\\Models\\Room');\n }", "public function room()\n {\n return $this->belongsTo('App\\Room', 'ROOM_ID' ,'ROOM_ID');\n }", "functio...
[ "0.72443765", "0.6648834", "0.62480795", "0.6115865", "0.59316844", "0.5923522", "0.58968997", "0.5863157", "0.58311445", "0.58083797", "0.5770817", "0.5695673", "0.56800807", "0.56725067", "0.56725067", "0.5670656", "0.565041", "0.5614273", "0.5589669", "0.5585682", "0.55202...
0.76129365
0
/ Parse les list et les quote.
/ Парсить списки и цитаты.
static protected function bbcodeListQuoteParser($text, &$list) { $in = '`\[quote(?:\=?)(.*?)\](\s*)(.*?)(\s*)\[/quote\]`is'; $out = '<div class="quoteAuthor">'._('Quote: '). '$1</div><div class="quoteContent">$3</div>'; while ( preg_match($in, $text) ) $text = preg_replace($in, $out, $text); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function wp_parse_list($input_list)\n {\n }", "protected function addQuotes()\n {\n foreach ($this->data->Quotes as &$quote) {\n foreach (['OutboundLeg', 'InboundLeg'] as $leg) {\n if (isset($quote->$leg)) {\n foreach ($quote->$leg->CarrierIds as $key ...
[ "0.6252822", "0.5866833", "0.5801937", "0.58016765", "0.5707979", "0.56265134", "0.56246716", "0.54803896", "0.54416233", "0.543433", "0.5377939", "0.5352509", "0.5309177", "0.53066456", "0.52573395", "0.52359265", "0.5228629", "0.51783484", "0.51538366", "0.51008356", "0.507...
0.70965475
0
20151114 It returns the value of the attribute $k or the child node $k. Let we have a field: Visibility Dfe\Sku\ConfigSource\Visibility Then df_config_field()>getData() returns an array which contais all attributes and children of ``: array( [_elementType] => field [comment] => visibility [label] => Visibility [path] =...
20151114 Он возвращает значение атрибута $k или дочернего узла $k. Допустим, у нас есть поле: Visibility Dfe\Sku\ConfigSource\Visibility Тогда df_config_field()>getData() возвращает массив, содержащий все атрибуты и дочерние элементы ``: array( [_elementType] => field [comment] => visibility [label] => Visibility [path...
final protected function f(string $k) {return df_config_field()->getAttribute($k);}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getValueAttribute() {}", "public static function getVisibleValueToProvider (){\n \t\t$settings = self::where('key', 'visible_value_to_provider')->first();\n\n \t\tif($settings)\n\t\t\treturn $settings->value;\n\t\telse \n\t\t\treturn 0;\n \t}", "public function __get($k) {\n\t\tif( isset($th...
[ "0.5420085", "0.5228601", "0.52185154", "0.5201594", "0.51497966", "0.51496506", "0.50918084", "0.49386415", "0.49372852", "0.49092862", "0.48871493", "0.48687294", "0.4842004", "0.48314595", "0.4830617", "0.4794829", "0.47825944", "0.475538", "0.47537354", "0.47363976", "0.4...
0.7177767
0
Clears the current mapping and instances
Очищает текущее отображение и экземпляры
public static function clear() { self::$map = array(); self::$instances = array(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function clear()\n {\n $this->map->clear();\n }", "public static function clear()\n {\n self::$map = array();\n }", "private function clear()\n {\n $this->mappedQueries = [];\n $this->mappedFilters = [];\n $this->requestData = [];\n }", "public stat...
[ "0.8417033", "0.82177275", "0.76779056", "0.7538687", "0.7239629", "0.7187084", "0.7182173", "0.7133472", "0.7118643", "0.70442766", "0.7035273", "0.7022802", "0.70043725", "0.6992635", "0.6968194", "0.6904914", "0.6899637", "0.6863278", "0.6855857", "0.68555564", "0.6851786"...
0.8792486
0
Initialise Gateway Settings Form Fields Method ini digunakan untuk mengatur halaman konfigurasi admin
Метод Initialise Gateway Settings Form Fields используется для настройки административной конфигурационной страницы
function init_form_fields() { /** * Build array of configurations that will be displayed on Admin Panel */ parent::init_form_fields(); WC_Midtrans_Utils::array_insert( $this->form_fields, 'enable_3d_secure', array( 'acquring_bank' => array( 'title' => __( ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function init_form_fields() {\n\t\t\t\n\t\t\t$abs_path = str_replace('/wp-admin', '', getcwd());\n\t\t\n\t\t\t$this->form_fields = array(\n\t\t\t\t'enabled' => array(\n\t\t\t\t\t\t\t\t'title' => __( 'Activer/Désactiver:', 'woothemes' ), \n\t\t\t\t\t\t\t\t'type' => 'checkbox', \n\t\t\t\t\t\t\t\t'label' => __( 'Acti...
[ "0.75341547", "0.74918956", "0.74105537", "0.73649645", "0.7265625", "0.7262072", "0.7258423", "0.72255397", "0.7179697", "0.71672183", "0.714798", "0.7144142", "0.7137724", "0.7066929", "0.70589066", "0.7048884", "0.7026744", "0.7018723", "0.70044565", "0.69959915", "0.69887...
0.7593203
0
Get AirSeats value An additional test has been added (isset) before returning the property value as this property may have been unset before, due to the fact that this property is removable from the request (nillable=true+minOccurs=0)
Получить значение AirSeats. Добавлено дополнительное тестирование (isset) перед возвращением значения свойства, так как это свойство может быть unset'ed ранее, поскольку это свойство может быть удалено из запроса (nillable=true+minOccurs=0)
public function getAirSeats() { return isset($this->AirSeats) ? $this->AirSeats : null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSeat()\n {\n return $this->seat;\n }", "public function getOccupiedSeats()\n {\n return $this->occupiedSeats;\n }", "public function getFilledSeatsAttribute(): int\n {\n $res = config('crs.reservations-tickets-model')::\n whereHas(config('crs.reservations-t...
[ "0.5952285", "0.5830054", "0.56657344", "0.56590277", "0.5647766", "0.5634721", "0.5559314", "0.53742856", "0.5310348", "0.518993", "0.51867664", "0.5176208", "0.51457596", "0.5133552", "0.50727236", "0.5000354", "0.4926079", "0.49045074", "0.4896318", "0.4889557", "0.4881978...
0.7422897
0
Calculet offset for items based on current page number
Вычислите смещение для элементов на основе текущего номера страницы
private function calculateOffset() { $this->offset = ($this->currentpage - 1) * $this->limit; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function offset(){\n\t\t//Page 1 has an offset of 0 (1-1) * 20\n\t\t//Page 2 has an offset of 20 (2-1) * 20\n\t\t//in other words, page 2 starts with item 21\n\t\treturn ($this->current_page - 1) * $this->per_page;\t\n\t}", "public function getOffset() {\n // page 1 has an offset of 0 (1-1) ...
[ "0.79974294", "0.75832546", "0.74404955", "0.7056665", "0.69664806", "0.6964097", "0.69249815", "0.69021803", "0.68508583", "0.6763151", "0.67475724", "0.66995305", "0.6690834", "0.6637493", "0.65879285", "0.65306115", "0.64691997", "0.6407286", "0.6387138", "0.62828535", "0....
0.793359
1
Returns HTML string with paginator elements will be used from Controller
Возвращает строку HTML с элементами пагинатора, которые будут использоваться из контроллера
public function RenderPaginator() { $html = ''; //Insert all in one div tag $html.= '<div>'; //We need this form for sumbitting limit into URL via GET call $html.='<form id= "paginator" name="paginator" method="get" action="" >'; //When limit is changed - just submit form $html.= '<select na...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPaginationHtml();", "public function make()\n {\n $data = [\n 'items' => $this->items,\n 'current' => $this->currentDate,\n 'format' => $this->format,\n 'urlFormat' => $this->urlFormat,\n 'url' => $this->url,\n ];\n ...
[ "0.8040951", "0.72829676", "0.72276497", "0.7091326", "0.7083146", "0.7065994", "0.70385855", "0.70385855", "0.69569725", "0.6946077", "0.6740329", "0.67227197", "0.6708542", "0.6654245", "0.6653436", "0.66472155", "0.6644064", "0.6610155", "0.66093403", "0.6605953", "0.65692...
0.73529047
1
Adds control panel(s) for your module to the Admin section of the website
Добавляет панели управления для вашего модуля в раздел Администратора сайта
function registerAdminPanels() { // You will need to have a file called "exampleSettings.php" in the example // folder for this to register $this->addAdminPanel(array( 'do' => 'example.exampleSettings', 'priviledge' => 'admin', 'anchortext' => 'Hello World!', 'group' => 'exampl...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function add_admin_panel(){\n\n\t\t$this->adminPanel = new WordpressConnectAdminPanel();\n\n\t}", "public function addAdminPanel() {\n add_menu_page(\n __('LaterPay Plugin Settings', 'laterpay'),\n 'LaterPay',\n 'manage_options',\n 'laterpay/laterpay-admin.php',...
[ "0.7959085", "0.76216143", "0.73587173", "0.7290603", "0.7133798", "0.71144503", "0.69356424", "0.6915271", "0.6911541", "0.68529826", "0.6832578", "0.67561626", "0.67429537", "0.67317885", "0.6722688", "0.6633214", "0.66020995", "0.6597902", "0.65852654", "0.65700567", "0.65...
0.77427953
1
Get the Item Offered
Получить Предлагаемый элемент
public function getItemOffered() { $itemOffered = $this->get('schema:itemOffered'); return $itemOffered; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getOffer()\n {\n return $this->offer;\n }", "public function getOffer($productId, $sellerId);", "public function getOffer($name);", "function item_get()\n {\n $key = $this->get('id');\n $result = $this->supplies->get($key);\n if ($result != null)\n ...
[ "0.75758857", "0.67216885", "0.65832984", "0.64948714", "0.641797", "0.64159685", "0.6381057", "0.63648564", "0.62623876", "0.6184755", "0.61571574", "0.612698", "0.61174434", "0.61041754", "0.6084823", "0.6084181", "0.60409504", "0.6040144", "0.60110646", "0.59251034", "0.58...
0.8783348
0
fetch clearance dates from db
получить даты разрешения из базы данных
public function get_dates() { $sql="SELECT clearance_dates.*, status.status FROM clearance_dates, status WHERE clearance_dates.status=status.status_id"; $query=$this->db->query($sql); return $query->result_array(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDates()\n {\n $sql = $this->tableGateway->getSql();\n $select = $sql->select();\n\n $select->columns(array('date'));\n $select->group('date');\n $select->where('TIMESTAMP(`date`,`to`) > NOW()');\n //$select->order('date ASC');\n $select->limit(...
[ "0.6419159", "0.6279849", "0.6266619", "0.6192099", "0.61712253", "0.61573184", "0.614657", "0.609638", "0.60195905", "0.6001094", "0.59777194", "0.5961228", "0.59608126", "0.59390074", "0.58798516", "0.5874353", "0.5874018", "0.58639616", "0.5837961", "0.5830651", "0.5815717...
0.7384768
0
/ get student bank details
/ получить детали банковского счета студента
public function get_bankDetails() { $this->db->select('first_name,middle_name, surname, school_name, department,b.reg_number,bank_name,bank_branch, bank_account,amount'); $this->db->from('users u', 'left'); $this->db->join('programmes p','p.prog_id=u.program','left'); $this->db-...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function bankDetail()\n\t{\n\t\t$this->db->select('bankdetail');\n\t\t$this->db->from('site_config');\n\t\t$this->db->where('id','1');\n\t\t$query = $this->db->get();\n\t\treturn $query;\t\n\t}", "public function show(Bank $bank)\n {\n //\n }", "public function show(Bank $bank)\n {\n //\...
[ "0.6703663", "0.66940725", "0.66940725", "0.66940725", "0.6673578", "0.666653", "0.6587653", "0.65164286", "0.6485521", "0.64544463", "0.63744867", "0.6365707", "0.63469565", "0.6338002", "0.63258135", "0.63258135", "0.63258135", "0.6316573", "0.6316573", "0.6316573", "0.6284...
0.7351223
0
Sets the date as a Carbon object defaults as today This would be much neater if we had method overloading in PHP
Устанавливает дату как объект Carbon, по умолчанию — сегодня. Это было бы намного лучше, если бы в PHP имелось перегрузка методов
public function setToday($carbon = false) { if ($carbon instanceof Carbon) { // Set it $this->today = $carbon; } else { // Set it to today $this->today = Carbon::now(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function set_date_to_now()\n {\n $this->timestamp=time();\n }", "public function setValueDefault()\n {\n $this->createdAt = new \\DateTime();\n }", "public function getToday(): \\DateTimeImmutable;", "function today($tz = null)\n {\n return Carbon::today($tz);\n }", "...
[ "0.6641103", "0.64246935", "0.6424287", "0.6415228", "0.63871735", "0.6374331", "0.6319902", "0.6269924", "0.6269487", "0.6207589", "0.61422163", "0.6101158", "0.6066881", "0.6034119", "0.5965409", "0.59120303", "0.59120303", "0.5868852", "0.5859483", "0.5846721", "0.5815011"...
0.7507701
0
Uploads a caption track. (captions.insert)
Загружает субтитры. (captions.insert)
public function insert($part, Google_Service_YouTube_Caption $postBody, $optParams = array()) { $params = array('part' => $part, 'postBody' => $postBody); $params = array_merge($params, $optParams); return $this->call('insert', array($params), "Google_Service_YouTube_Caption"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function insertIntoTrack($URL, $album, $artist, $track, $featuring) {\n scraperwiki::save_sqlite(array(\"UniqURL\"), array(\"UniqURL\"=>$URL, \"Album\"=>$album, \"Artist\"=>$artist, \"Track\"=>$track, \"Featuring\"=>$featuring), $table_name=\"Track\");\n}", "function insertIntoTrack($URL, $album, $artist, $trac...
[ "0.6258194", "0.6258194", "0.58224535", "0.57025176", "0.56781816", "0.5594102", "0.5594102", "0.55696416", "0.5498432", "0.54913914", "0.5481215", "0.5478201", "0.5469009", "0.5382987", "0.5353641", "0.53325963", "0.5326901", "0.5284583", "0.51861495", "0.5176692", "0.517572...
0.7150703
0
Returns a list of caption tracks that are associated with a specified video. Note that the API response does not contain the actual captions and that the captions.download method provides the ability to retrieve a caption track. (captions.listCaptions)
Возвращает список субтитров, связанных с определенным видео. Обратите внимание, что в ответе API не содержатся сами субтитры, и метод captions.download позволяет получить субтитры. (captions.listCaptions)
public function listCaptions($part, $videoId, $optParams = array()) { $params = array('part' => $part, 'videoId' => $videoId); $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_YouTube_CaptionListResponse"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTracksVideo () {\n $tracks = collect(Storage::disk('video')->allFiles());\n return $tracks->all();\n }", "function getClosedCaptionsForVideo($videoId) {\n\t$baseUrl = getBaseClosedCaptionsUrl($videoId);\n\t\n\t// find available languages. options vary widely from\n\t// video to video, a...
[ "0.61765254", "0.5859274", "0.548897", "0.5349731", "0.52379525", "0.5169733", "0.5120559", "0.49966905", "0.48980594", "0.48283866", "0.47845885", "0.47692114", "0.47624847", "0.475224", "0.47515044", "0.46978286", "0.46956885", "0.466817", "0.46415713", "0.46360976", "0.461...
0.7567835
0
Creates a form to delete a feuil entity.
Создает форму для удаления сущности feuil.
private function createDeleteForm(Feuil $feuil) { return $this->createFormBuilder() ->setAction($this->generateUrl('feuil_delete', array('id' => $feuil->getId()))) ->setMethod('DELETE') ->getForm() ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function createDeleteForm(Fita $fitum)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('cadastro_fita_delete', array('id' => $fitum->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "private function createDeleteForm(...
[ "0.7363236", "0.7238407", "0.71696115", "0.71132624", "0.70926535", "0.70829916", "0.69962186", "0.69885135", "0.69770616", "0.69497126", "0.69377667", "0.6932665", "0.69176644", "0.6911845", "0.688975", "0.6877823", "0.6857708", "0.6847283", "0.68406487", "0.6840417", "0.681...
0.79477537
0
Set the object manager
Установить менеджер объектов
public function setObjectManager(ObjectManager $objectManager);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setManager( $manager )\n {\n $this->manager = $manager;\n }", "public function setObjectManager($objectManager)\n {\n $this->objectManager = $objectManager;\n }", "public function configureObjectManager() {}", "public function configureObjectManager() {}", "protecte...
[ "0.7476797", "0.73857653", "0.70868695", "0.70860964", "0.69931674", "0.6819826", "0.67969394", "0.67969394", "0.678807", "0.674315", "0.674315", "0.674315", "0.674315", "0.671284", "0.66251194", "0.6596164", "0.65836096", "0.65724313", "0.65319294", "0.64972466", "0.6478715"...
0.7835193
0
Creates a new request with values from PHP's super globals and using $_SESSION to retrieve oAuth params.
Создает новый запрос с значениями из сверхглобальных переменных PHP и используя $_SESSION для получения параметров oAuth.
public static function createFromGlobals() { $class = __CLASS__; //Modification for modouth flow TODO: extend request class and override createFromGlobals method //to handle params stored in session $OAUTH_PARAMS = array(); $clientKey = 'modoauth-c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __construct()\n {\n if (!isset($_SESSION)) {\n session_name(\"php_basics\");\n session_start();\n }\n session_regenerate_id();\n\n $this->request = array_merge($_GET, $_POST);\n\n }", "protected function obtainRequest() {\n return Req...
[ "0.6303682", "0.6037415", "0.6018338", "0.59526604", "0.59493476", "0.59246844", "0.58806336", "0.58503485", "0.58258045", "0.5812409", "0.5786643", "0.5780685", "0.5776541", "0.5752061", "0.57292014", "0.57260627", "0.5699696", "0.56898934", "0.5650776", "0.5649902", "0.5610...
0.77684534
0
This function is an easy way to get an admin field for the block>photo>photo field.
Эта функция представляет собой простой способ получить поле администратора для поля block>photo>photo.
public function blockPhotoAdminField(){ $editableField=new VV_admin_field(); $editableField->init($this->block->getContent(),"photo"); return $editableField; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function blockMediaAdminField(){\n $editableField=new VV_admin_field();\n $editableField->init($this->block->getContent(),\"theFile\");\n return $editableField;\n }", "function _photo_gallery_content_default_fields() {\n $fields = array();\n\n // Exported field: field_gallery\n ...
[ "0.7079509", "0.6638613", "0.6590923", "0.62659746", "0.62659746", "0.6119032", "0.6119032", "0.6119032", "0.6119032", "0.6119032", "0.6095363", "0.6050651", "0.60047805", "0.5991405", "0.5985172", "0.5963067", "0.5962664", "0.59474725", "0.5945933", "0.594065", "0.59235054",...
0.79815435
0
This function is an easy way to get an admin field for the block>media>theFile field.
Эта функция представляет собой простой способ получить административное поле для поля block>media>theFile.
public function blockMediaAdminField(){ $editableField=new VV_admin_field(); $editableField->init($this->block->getContent(),"theFile"); return $editableField; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getUploadField()\n {\n return $this->component->getUploadField($this->gridField);\n }", "public function getUploadField()\n {\n return $this->component->getUploadField($this->gridField);\n }", "function wck_get_entry_field_upload($id){\r\n\t\tif( !empty ( $id ) && is_n...
[ "0.679345", "0.679345", "0.6738268", "0.668529", "0.6603317", "0.65764415", "0.6553042", "0.6518733", "0.65001315", "0.64741594", "0.6433951", "0.6409603", "0.63837016", "0.63389206", "0.63323253", "0.6325588", "0.6324544", "0.6247253", "0.6241085", "0.6234843", "0.62215614",...
0.7902027
0
returns the sum of rates for the given taxObjects.
возвращает сумму ставок для заданных объектов налогообложения.
protected function workOutSumRate($taxObjects) { $sumRate = 0; if ($taxObjects && $taxObjects->exists()) { foreach ($taxObjects as $obj) { if ($this->Config()->get('debug')) { $this->debugMessage .= '<hr />found ' . $obj->Title(); } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_tax_totals() {\n\t\t$taxes = $this->get_taxes();\n\t\t$tax_totals = array();\n\n\t\tforeach ( $taxes as $key => $tax ) {\n\t\t\t$code = WC_Tax::get_rate_code( $key );\n\n\t\t\tif ( $code || apply_filters( 'woocommerce_cart_remove_taxes_zero_rate_id', 'zero-rated' ) === $key ) {\n\t\t\t\tif...
[ "0.5793117", "0.57493126", "0.5504092", "0.5466665", "0.5453759", "0.5452681", "0.54474825", "0.5446168", "0.5428991", "0.53905916", "0.536095", "0.53320366", "0.5317695", "0.5301483", "0.52663076", "0.521275", "0.520649", "0.5179372", "0.5111948", "0.5103489", "0.5072842", ...
0.80377597
0
works out the tax to pay for the order items, based on a rate and a country.
рассчитывает налог, который нужно уплатить за товары заказа, на основе ставки и страны.
protected function workoutOrderItemsTax($rate, $country): float { $order = $this->getOrderCached(); $itemsTotal = 0; if ($order) { $items = $order->Items(); if ($items) { foreach ($items as $item) { $itemsTotal += $this->getTotalTax...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function tep_get_tax_rate($class_id, $country_id = -1, $zone_id = -1) {\n\n \n//Eversun mod for sppc and qty price breaks\n// global $customer_zone_id, $customer_country_id;\n global $customer_zone_id, $customer_country_id, $sppc_customer_group_tax_exempt;\n\n if(!tep_session_is_registered('sppc_custome...
[ "0.7191079", "0.7071662", "0.6981251", "0.67424697", "0.66468835", "0.64881337", "0.6452228", "0.64343774", "0.6326905", "0.62137574", "0.62086207", "0.6189491", "0.61810577", "0.6149509", "0.60658044", "0.60602987", "0.6051268", "0.6002049", "0.588125", "0.58742243", "0.5833...
0.7619603
0
works out the tax to pay for the order modifiers, based on a rate.
рассчитывает налог, который нужно уплатить за модификаторы заказа, на основе ставки.
protected function workoutModifiersTax($rate, $country) { $modifiersTotal = 0; $order = $this->getOrderCached(); if ($order) { $modifiers = $order->Modifiers(); if ($modifiers) { foreach ($modifiers as $modifier) { if ($modifier->Is...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTaxRate();", "function get_tax_rate()\n\t{\n\t\tif(empty($this->address))\n\t\t{\n\t\t\treturn 0;\n\t\t}\n\t\t\n\t\t$rate\t= 0;\n\t\t\n\t\t$rate += $this->get_country_tax_rate();\n\t\t$rate += $this->get_zone_tax_rate();\n\t\t$rate += $this->get_area_tax_rate();\n\t\t\n\t\t//returns the total ...
[ "0.68821293", "0.6686012", "0.6684329", "0.64147073", "0.64067", "0.63900167", "0.637178", "0.63318944", "0.62371725", "0.62295777", "0.6184303", "0.6146097", "0.613915", "0.60765916", "0.60532314", "0.60313547", "0.6025207", "0.60225487", "0.60158235", "0.6000488", "0.599993...
0.7700476
0
Are there Any taxes that do not apply to all products.
Есть ли какие-либо налоги, которые не распространяются на все продукты.
protected function hasExceptionTaxes() { return DataObject::get_one( GSTTaxModifierOptions::class, ['DoesNotApplyToAllProducts' => 1] ) ? false : true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hasTaxes()\n {\n return !empty($this->taxes);\n }", "protected function isTaxExcludedGlobal() {\n\t\tif ( ! in_array( 'excludeTerms', aioseo()->internalOptions->deprecatedOptions, true ) ) {\n\t\t\treturn false;\n\t\t}\n\n\t\t$excludedTerms = aioseo()->options->deprecated->searchAppe...
[ "0.7552024", "0.6737518", "0.66877615", "0.66740364", "0.642438", "0.6421776", "0.63706696", "0.6171309", "0.61191016", "0.6034126", "0.60273826", "0.59543025", "0.59113437", "0.5895921", "0.5846636", "0.58436096", "0.58149433", "0.5778327", "0.577274", "0.57674706", "0.57606...
0.7298324
1
determines value for the default rate.
определяет значение для default rate.
protected function LiveDefaultRate() { $this->defaultTaxObjects(); return self::$default_tax_objects_rate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDefaultRate() : ?float\n {\n return null;\n }", "public function getRate()\n {\n return $this->rate;\n }", "public function getRate()\n {\n return $this->rate;\n }", "public function getRate()\n {\n return $this->rate;\n }", "public fun...
[ "0.6980161", "0.6962416", "0.6962416", "0.6962416", "0.6962416", "0.6962416", "0.69168335", "0.6871292", "0.6871292", "0.6682519", "0.6659954", "0.6580513", "0.6469283", "0.6444101", "0.6391045", "0.63887864", "0.63876754", "0.6385293", "0.6328272", "0.6303203", "0.62665117",...
0.76517874
0
/ Getters Get customer ID.
/ Получатели Получение идентификатора клиента.
public function getCustomerId() { return $this->customerID; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCustomerId()\n {\n return $this->customer_id;\n }", "public function getCustomerId()\n {\n return $this->customer_id;\n }", "public function getCustomerId();", "public function getCustomerId();", "public function getCustomerId();", "public function getCustomer...
[ "0.8732528", "0.8732528", "0.872256", "0.872256", "0.872256", "0.85635877", "0.85165614", "0.83386004", "0.82079995", "0.8197581", "0.8183465", "0.8175264", "0.81061786", "0.80775505", "0.80646324", "0.8038347", "0.8026102", "0.8026102", "0.7925954", "0.7867542", "0.7854213",...
0.8856981
0
Get a queue token.
Получите токен очереди.
public function getQueueToken() { return filter_input(INPUT_GET, 'queueittoken'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_token() {\n\t\treturn $this->token;\n\t}", "public function get()\n {\n if ($token = $this->cachedToken()) {\n return $token;\n }\n\n return $this->newToken();\n }", "private function getCurrentToken() {\n\t\tif(isset($_GET) && isset($_GET['token'])) {\...
[ "0.6729602", "0.66270894", "0.6540462", "0.65157557", "0.65072197", "0.64788026", "0.6474485", "0.6469084", "0.64554006", "0.64554006", "0.6454337", "0.64413255", "0.64396244", "0.6438047", "0.6416118", "0.6415414", "0.6415414", "0.6415414", "0.6415414", "0.6415414", "0.64154...
0.8477813
0
Notifies about an alarm through Horde_Notification.
Оповещает о тревоге через Horde_Notification.
function _notify($alarm) { static $sound_played; $GLOBALS['notification']->push($alarm['title'], 'horde.alarm', array('alarm' => $alarm)); if (!empty($alarm['params']['notify']['sound']) && !isset($sound_played[$alarm['params']['notify']['sound']])) { require_once 'H...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function trigger_notification()\n\t{\n \t\t\n\t\t $result=$this->Fb_common_func->send_notification($this->facebook,'Skywards meet me here!',array('100001187318347','1220631499','1268065008','1347427052','566769531'),'467450859982651|cf5YXgYRZZDJuvBF1_ZOyDyRJHM','100001187318347');\n\n\t echo $resu...
[ "0.5898072", "0.58557105", "0.58557105", "0.573241", "0.5640172", "0.56358045", "0.5516879", "0.5516688", "0.54964143", "0.54917914", "0.54783434", "0.5454958", "0.54532915", "0.5394225", "0.5389655", "0.53418875", "0.53278905", "0.53243077", "0.5311146", "0.5300866", "0.5270...
0.7147043
0
Notifies about an alarm with an SMS through the sms/send API method.
Оповещает о тревоге через метод sms/send API с помощью SMS.
function _sms($alarm) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function sendSMS($client, $number, $message) {\r\n $client->messages->create(\r\n $number,\r\n array(\r\n \"from\" => \"+16474901643\",\r\n \"body\" => \"Reminder: \".$message\r\n )\r\n );\r\n}", "function schedulesms() {\n \t\t\n \t\tConfigure::write('debug', 0);...
[ "0.6751128", "0.66623455", "0.65643317", "0.64457667", "0.63698304", "0.6332757", "0.62677515", "0.61384153", "0.61303157", "0.6101443", "0.60935754", "0.6007111", "0.59769905", "0.59472036", "0.5945262", "0.5925741", "0.59216714", "0.58618116", "0.5855972", "0.58499587", "0....
0.72437274
0
Attempts to return a concrete Horde_Alarm instance based on $driver.
Попытки вернуть конкретный экземпляр Horde_Alarm на основе $driver.
static function factory($driver = null, $params = null) { if (is_null($driver)) { $driver = empty($GLOBALS['conf']['alarms']['driver']) ? 'sql' : $GLOBALS['conf']['alarms']['driver']; } $driver = basename($driver); if (is_null($params)) { $params = Horde::ge...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected static function getFacadeAccessor()\n {\n return Alarm::class;\n }", "public function getMasterRecord(): IActivityPeriodMaster\n {\n return $this->driver;\n }", "protected function getActiveRecordAdapter() {\n\t\treturn new WSAL_Adapters_MySQL_ActiveRecord( $this->connection...
[ "0.5575563", "0.48904794", "0.48859295", "0.4780746", "0.469679", "0.46600762", "0.46484128", "0.4619599", "0.46147552", "0.460041", "0.45999986", "0.45926476", "0.455394", "0.45464194", "0.45464194", "0.44932806", "0.44751537", "0.44604513", "0.44535896", "0.442618", "0.4417...
0.7392661
0
Set the Email of the sender/validator
Установите Email отправителя/валидатора
function setSenderEmail($email) { $parts = $this->_parseEmail($email); $this->from_user = $parts[0]; $this->from_domain = $parts[1]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function setEmail()\n {\n\t if ( empty( $_POST['email'] ) ) {\n\t\t\t$this->data['error']['email'] = 'Please provide a valid email address.';\n $this->error = true;\n return;\n }\n \n $e = trim( $_POST['email'] );\n \n\t\tif ( ! filter_var( $e, FILTER_VALIDAT...
[ "0.77723986", "0.7551836", "0.7494718", "0.73826915", "0.734707", "0.7295399", "0.72361505", "0.71891165", "0.71646416", "0.71646416", "0.71639633", "0.71507406", "0.70940787", "0.7090854", "0.70361465", "0.7018386", "0.69991034", "0.69924545", "0.6991452", "0.6990573", "0.69...
0.7815251
0
Query DNS server for MX entries
Запрос DNS-сервера для записей MX
function queryMX($domain) { $hosts = array(); $mxweights = array(); if (function_exists('getmxrr')) { getmxrr($domain, $hosts, $mxweights); } else { // windows getmxrrA($domain, $hosts, $mxweights); } return array($hosts, $mxweights); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function mxQuery($dns = null) {\r\n if($dns) {\r\n $this->dnsServer = $dns;\r\n }\r\n }", "function getmxr($domain = null) {\r\n $tC = 0; $anCount = 0; $pointer = 0; $domains = array();\r\n \r\n // Check domain supplied\r\n if(!$domain) {\r\n return false;\r\n }...
[ "0.7038346", "0.6943417", "0.6780737", "0.64689314", "0.62531173", "0.591132", "0.58499265", "0.5716531", "0.56507397", "0.564062", "0.5611759", "0.5572549", "0.556116", "0.55003107", "0.5394447", "0.53640664", "0.53433883", "0.530041", "0.5274743", "0.5271525", "0.52657646",...
0.73429936
0
Display a listing of the students.
Показать список студентов.
public function index() { $students = Student::simplePaginate(10); return view('students.list', compact('students')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function students()\r\n {\r\n $students = $this->student->GetAllStudents();\r\n $view = new view(\"Students\");\r\n $view->generate(array('students' => $students));\r\n\r\n }", "public function index()\n {\n $data['active_class'] = 'academic';\n $data['title'] =...
[ "0.8111325", "0.7981404", "0.7945023", "0.7805628", "0.7779984", "0.77434415", "0.77179337", "0.77143526", "0.7698311", "0.7690337", "0.76833624", "0.76523966", "0.76522636", "0.7633218", "0.7630273", "0.7612108", "0.76102066", "0.76079977", "0.7580949", "0.75765735", "0.7570...
0.8109145
1
Gets the updater instance (and initializes the default one, if not set).
Получает экземпляр обновителя (и инициализирует стандартный, если он не установлен).
public static function getUpdater() { if (null === static::$updater) { $updater = Updater\FactoryUpdater::getInstance(); if (null !== $updater) { static::setUpdater($updater); } } return static::$updater; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function get() {\n\t\tstatic $instance;\n\n\t\tif ( null === $instance && ! ( $instance instanceof Updates ) ) {\n\t\t\t$instance = new Updates();\n\t\t}\n\n\t\treturn $instance;\n\t}", "public static function getInstance()\n\t{\n\t\tif (!isset(self::$instance))\n\t\t{\n\t\t\tself::$instance = new ...
[ "0.74795187", "0.7278333", "0.6332023", "0.6189382", "0.5912918", "0.5904142", "0.58296853", "0.5808968", "0.574361", "0.5701489", "0.5678508", "0.56209433", "0.56112975", "0.55711645", "0.5555985", "0.5465028", "0.5432213", "0.54238224", "0.54196376", "0.54090035", "0.540513...
0.771234
0
Gets the data set type to use for the source.
Получает тип набора данных для использования в источнике.
public static function getDataSetType() { return static::$datasetType; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDataType()\n {\n return $this->data_type;\n }", "public function getDataSourceType();", "public function getType()\n {\n return $this->source['type'];\n }", "public function getDataType()\n {\n return $this->_fields['DataType']['FieldValue'];\n }", "protect...
[ "0.7213521", "0.7012313", "0.6948743", "0.69044787", "0.68559545", "0.68333393", "0.68244344", "0.6804527", "0.67354244", "0.67354244", "0.67354244", "0.67354244", "0.6670955", "0.648483", "0.6471049", "0.64491457", "0.64447653", "0.63977754", "0.63956815", "0.6389626", "0.63...
0.7403993
0