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
Declares an association between this object and a ChildTblProdPricing object.
Объявляет ассоциацию между этим объектом и объектом ChildTblProdPricing.
public function setTblProdPricing(ChildTblProdPricing $v = null) { if ($v === null) { $this->setProdPriceId(NULL); } else { $this->setProdPriceId($v->getProdPriceId()); } $this->aTblProdPricing = $v; // Add binding for other direction of this n:n rel...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setTblProdPrices(ChildTblProdPrices $v = null)\n {\n if ($v === null) {\n $this->setProdId(NULL);\n } else {\n $this->setProdId($v->getProdId());\n }\n\n $this->aTblProdPrices = $v;\n\n // Add binding for other direction of this 1:1 relati...
[ "0.5932853", "0.589223", "0.57133454", "0.56799984", "0.55095327", "0.5463812", "0.5450568", "0.5410425", "0.52214575", "0.51516396", "0.5081539", "0.5068964", "0.503356", "0.4991991", "0.49831095", "0.4912381", "0.4882917", "0.487314", "0.4843328", "0.4822642", "0.48085475",...
0.7180729
0
Get the associated ChildTblProdPricing object
Получить связаный объект ChildTblProdPricing
public function getTblProdPricing(ConnectionInterface $con = null) { if ($this->aTblProdPricing === null && ($this->prod_price_id !== null)) { $this->aTblProdPricing = ChildTblProdPricingQuery::create()->findPk($this->prod_price_id, $con); /* The following can be used additionally to...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPricing() {\r\n\t\t\treturn $this->_pricing;\r\n\t\t}", "public function setTblProdPricing(ChildTblProdPricing $v = null)\n {\n if ($v === null) {\n $this->setProdPriceId(NULL);\n } else {\n $this->setProdPriceId($v->getProdPriceId());\n }\n\n ...
[ "0.6585547", "0.64412904", "0.6298926", "0.628615", "0.6239225", "0.62340397", "0.61298776", "0.61049235", "0.60788137", "0.59433645", "0.59053785", "0.5872398", "0.58614546", "0.5850542", "0.57735664", "0.56533194", "0.56014764", "0.5586905", "0.55719686", "0.5564868", "0.55...
0.7456949
0
Get the associated ChildTblProdSmaller object
Получить связанный объект ChildTblProdSmaller
public function getTblProdSmaller(ConnectionInterface $con = null) { if ($this->aTblProdSmaller === null && ($this->prod_id !== null)) { $this->aTblProdSmaller = ChildTblProdSmallerQuery::create()->findPk($this->prod_id, $con); // Because this foreign key represents a one-to-one rela...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setTblProdSmaller(ChildTblProdSmaller $v = null)\n {\n if ($v === null) {\n $this->setProdId(NULL);\n } else {\n $this->setProdId($v->getProdId());\n }\n\n $this->aTblProdSmaller = $v;\n\n // Add binding for other direction of this 1:1 rel...
[ "0.63195765", "0.58784056", "0.55714196", "0.5557377", "0.55366707", "0.55361897", "0.537516", "0.5317671", "0.5232316", "0.5226625", "0.5226625", "0.5226625", "0.5226625", "0.522193", "0.5190114", "0.51654303", "0.5153909", "0.5153823", "0.5143266", "0.5140183", "0.51077807"...
0.73373497
0
Get the associated ChildTblShippingCategories object
Получить связанную сущность ChildTblShippingCategories
public function getTblShippingCategories(ConnectionInterface $con = null) { if ($this->aTblShippingCategories === null && ($this->prod_category_shipping !== null)) { $this->aTblShippingCategories = ChildTblShippingCategoriesQuery::create()->findPk($this->prod_category_shipping, $con); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getShippingCategoryId();", "public function getProdCategoryShipping()\n {\n return $this->prod_category_shipping;\n }", "public function getCategory() {\n return $this->hasOne(Category::className(), ['id' => 'category_id']); // second - field in dependent table\n }", "p...
[ "0.73087746", "0.7071618", "0.60448307", "0.60062724", "0.58968705", "0.5847817", "0.57620245", "0.57533", "0.57533", "0.57349205", "0.57349205", "0.57349205", "0.566958", "0.56336474", "0.56125754", "0.5608226", "0.5597498", "0.5596045", "0.55864865", "0.5584981", "0.5573286...
0.7219948
1
Function select random player and print message to inform
Функция выбирает случайного игрока и выводит сообщение для информирования
protected function selectPlayer(){ $this->currentPlayer = rand(1,2); selectRandPlayerMsg($this->currentPlayer); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract function onPlayerSelect();", "public function play($choice){\n $yourChoice = trim(strtoupper($choice));\n if($yourChoice == 'ROCK'){\n $playerOne = 1;\n $playerTwo = rand(1,3);\n $this->checkForWinner($playerOne,$playerTwo);\n }elseif($yourCho...
[ "0.6402196", "0.62477463", "0.61383677", "0.6131086", "0.6088489", "0.6057457", "0.60531896", "0.580598", "0.58006644", "0.57715154", "0.57694703", "0.5689289", "0.56084937", "0.55991423", "0.5590919", "0.54940724", "0.5458018", "0.5455137", "0.5443015", "0.54023033", "0.5392...
0.8639816
0
Function verify that the choosen column is not full in case of a full column user message print to user
Функция проверяет, что выбранная колонка не заполнена, в случае сообщения пользователя о полной колонке выводит сообщение пользователю
public function validateIsFullColumn($selectedColumn){ //in case of a full Column if($this->board->gameBoard[0][$selectedColumn-1] != Board::CELL){ columnIsFullMsg($this->currentPlayer); return true; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function takesTwoColumns() {\n return false;\n }", "private function validate_columns(){\n\n for($i=0;$i<9;$i++){\n $col = array_column($this->sudoku_array, $i);\n\n if(count($col) !=9 || count(array_unique($col)) !=9){\n return false;\n }\n...
[ "0.63556224", "0.63001317", "0.61818135", "0.6166093", "0.61368483", "0.60902923", "0.6022151", "0.597522", "0.5947488", "0.59334356", "0.5822366", "0.5815296", "0.5812504", "0.5800726", "0.5780297", "0.5759884", "0.5736777", "0.5713075", "0.56630063", "0.56569", "0.564339", ...
0.72448236
0
Function verify that the board is not full in case of a full Board message print to user
Функция проверяет, что доска не заполнена, в случае сообщения о заполненной доске выводит сообщение пользователю
public function validateIsFullBoard(){ //in case of a full Column for($index=0; $index < Board::COLUMNS; $index++){ //if there is an empty cell if($this->board->gameBoard[0][$index] == Board::CELL){ //board is not full return false; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function isBoardFull() {\n if ((count($this->_markers[self::X_MARK]) + count($this->_markers[self::O_MARK])) == 9) {\n echo $this->promptMessage('board_full') . PHP_EOL;\n return TRUE;\n }\n ret...
[ "0.7831933", "0.69444954", "0.68854916", "0.6503552", "0.63835657", "0.60957617", "0.60837924", "0.59440345", "0.5932222", "0.5927926", "0.58390486", "0.58316", "0.5805093", "0.5747443", "0.57416934", "0.5708741", "0.5684389", "0.56755435", "0.5658349", "0.56398714", "0.56395...
0.7821319
1
Function check Horizontal winning [X][X][X][X] In case of sequence 4 of the current player in a row player won
Функция проверки горизонтальной победы [X][X][X][X] В случае последовательности 4 текущего игрока подряд игрок выигрывает
public function checkHorizontalWin($userMove){ $HorizontalCounter = self::ZERO; $gameBoards = $this->board->gameBoard; $row = $this->lastRowInsert; $current_player = "[$this->currentPlayer]"; for($col = $userMove-1; $col > -1 ; $col-- ){ if($gameBoards[$row]...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function checkWin($board) {\n $values = array();\n // horizontal\n for($r = 0; $r < 6; $r++) {\n $values[] = '';\n $i = count($values) - 1;\n for($c = 0; $c < 6; $c++) {\n $values[$i] .= $board[$r][$c];\n }\n }\n // vertical\n for($c = 0; $c < 6; $c++) {\n ...
[ "0.6832586", "0.6633101", "0.66100883", "0.6586113", "0.6439534", "0.64226496", "0.64079475", "0.639375", "0.6374308", "0.6293329", "0.62067664", "0.6015634", "0.5979617", "0.59258115", "0.59214294", "0.59026545", "0.5896327", "0.588674", "0.58455724", "0.58320796", "0.578149...
0.74083453
0
Function check Negative Diagonal winning [X] [X] [X] [X] function run from the point the user choose to type his discs check : first start to search on the upper right side of the selected userMove, then starts to search below left of the userMove selection In case of sequence at least 4 of the current player in a Diag...
Функция проверки отрицательной диагонали [X] [X] [X] [X] функция запускается с точки, которую пользователь выбирает для ввода своих дисков: сначала начинается поиск в верхней правой части выбранного пользователем хода, затем начинается поиск ниже и слева от выбранного пользователем хода. В случае последовательности как...
public function checkNegativeDiagonalWin($userMove){ $diagonalCounter = self::ZERO; $gameBoards = $this->board->gameBoard; $current_player = "[$this->currentPlayer]"; for($row = $this->lastRowInsert-1 ,$col = $userMove; $row > -1 && $col < Board::COLUMNS ; $row--, $col++ ){ ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function winCheck($userMove){\r\n // Check if we have reached the minimum steps to have a win\r\n if($this->totalMoves < Board::COLUMNS){\r\n return false;\r\n }\r\n //check vertical Horizontal Positive Diagonal Negative Diagona win\r\n if(($this->checkVertic...
[ "0.6600075", "0.6290938", "0.62222743", "0.61987793", "0.6095502", "0.60868734", "0.5933043", "0.584326", "0.57317954", "0.5723613", "0.56872284", "0.56503785", "0.5627409", "0.5589535", "0.55676717", "0.55502504", "0.5538387", "0.5535532", "0.5506976", "0.54482555", "0.54315...
0.7485393
0
Player Set current player
Player Set текущий игрок
public function setCurrentPlayer($player){ $this->currentPlayer = $player; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setPlayer(Player $player);", "public function setCurrentPlayer($player) {\n $this->game->set_current_turn($player);\n }", "public function switchActivePlayer()\n\t{\n\t\t$activeplayer = $this -> activePlayer;\n\t\t$playerX = $this -> playerX;\n\t\t$playerO = $this -> playerO;\n\t\tif ...
[ "0.8006255", "0.7876374", "0.68962395", "0.6857048", "0.6619847", "0.6473134", "0.63770133", "0.62825596", "0.62732565", "0.6243762", "0.61989444", "0.61837643", "0.61639684", "0.6089696", "0.6029448", "0.6025325", "0.6009613", "0.6009613", "0.6009613", "0.5985696", "0.592805...
0.87652165
0
Return an array of files with their full paths contained in a directory and its subdirectories
Вернуть массив файлов с их полными путями, содержащими в директории и её поддиректориях
public function directoryFiles($path) { $contents = []; // Scan directory $directoryFiles = scandir($path); foreach ($directoryFiles as $index => $filePath) { // Ommit . and .. if ( ! in_array($filePath, ['.', '..'])) { // Check if this is a directory if (is_dir($path...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function papi_get_all_files_in_directory( $directory = '' ) {\n\t$result = [];\n\n\tif ( empty( $directory ) || ! is_string( $directory ) ) {\n\t\treturn $result;\n\t}\n\n\tif ( file_exists( $directory ) && $handle = opendir( $directory ) ) {\n\t\twhile ( false !== ( $file = readdir( $handle ) ) ) {\n\t\t\tif ( ! ...
[ "0.7470955", "0.74113894", "0.739653", "0.7379512", "0.73318774", "0.7309054", "0.7257001", "0.71673524", "0.7162255", "0.71231693", "0.7106282", "0.7070243", "0.7036096", "0.7017344", "0.6989162", "0.69792134", "0.6940224", "0.6939942", "0.6930784", "0.69298387", "0.6923743"...
0.79096025
0
Dependency rule groups for a particular serviceCode.
Группы правил зависимостей для определенного serviceCode.
public function getServiceCodeDependencyRuleGroups(): ?array { return $this->serviceCodeDependencyRuleGroups; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setServiceCodeDependencyRuleGroups(?array $serviceCodeDependencyRuleGroups): self\n {\n $this->initialized['serviceCodeDependencyRuleGroups'] = true;\n $this->serviceCodeDependencyRuleGroups = $serviceCodeDependencyRuleGroups;\n\n return $this;\n }", "public function te...
[ "0.6945669", "0.5391789", "0.53563416", "0.51035523", "0.5008549", "0.50082374", "0.4981849", "0.4923943", "0.48742232", "0.4836029", "0.48235476", "0.48104113", "0.47624975", "0.47624975", "0.4750398", "0.47161323", "0.46397656", "0.46376863", "0.46341503", "0.4630065", "0.4...
0.70263803
0
otp send to user
otp отправляется пользователю
public function sendOTP(Request $request){ $user = $this->_getUserByCondtion(['email'=>$request->email]); if(!$user){ return Response('This email is not associated with us!',406); } $request->session()->put('changePasswordEmail',$user->email); $otp=rand(1000,9999); $request->session()->...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function send_otp_to_user($email=null,$phone=null,$otp)\n {\n //send if phone number not null\n if($phone != null)\n {\n $otprequest = \"http://tra.bulksmsinhyderabad.co.in/websms/sendsms.aspx?userid=BIGEQP&password=BIGEQP&sender=BIGEQP&mobileno=\".$phone.\"&msg=\".urlenc...
[ "0.70574176", "0.6981252", "0.6954572", "0.6924916", "0.69024247", "0.68983245", "0.67402047", "0.6695809", "0.6576659", "0.64790624", "0.64414567", "0.64370304", "0.6410705", "0.6351671", "0.634918", "0.6342847", "0.63409424", "0.6253137", "0.6247669", "0.6241211", "0.623929...
0.7402916
0
Creates a new States model. If creation is successful, the browser will be redirected to the 'view' page.
Создает новый модель States. Если создание успешно, браузер будет перенаправлен на страницу 'view'.
public function actionCreate() { $model = new States(); if ($model->load(Yii::$app->request->post()) && $model->save()) { return $this->redirect(['view', 'id' => $model->id]); } else { return $this->render('create', [ 'model' => $model, ])...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function actionCreate()\n {\n $model = new callStates();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]...
[ "0.7756728", "0.7726155", "0.7225145", "0.7225145", "0.70582044", "0.701823", "0.69757575", "0.69082063", "0.6899653", "0.6861414", "0.68595314", "0.68527156", "0.6807314", "0.6777306", "0.6776655", "0.6759942", "0.67380154", "0.67326474", "0.66638076", "0.6638897", "0.661631...
0.8731533
0
Gets a booking from the database
Получает бронирование из базы данных
function wpbs_get_booking($booking) { return wp_booking_system()->db['bookings']->get_object($booking); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getBookingDetailsByBookingId($bookingid) {\n $query = \"SELECT * FROM `bookingdetails` WHERE BookingId='\".$bookingid.\"'\";\n $result = Database::selectQuery($query);\n if($result == null) {\n return null;\n } else {\n return $result;\n }\n }", ...
[ "0.68165016", "0.6689585", "0.6688761", "0.6624235", "0.6612698", "0.6609452", "0.66028154", "0.65940285", "0.6566788", "0.6486003", "0.6486003", "0.6486003", "0.6486003", "0.6486003", "0.64596516", "0.6439326", "0.6397243", "0.63886625", "0.6357851", "0.6353273", "0.6336224"...
0.7391453
0
Inserts a new booking into the database
Вставляет новую бронь в базу данных
function wpbs_insert_booking($data) { return wp_booking_system()->db['bookings']->insert($data); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addBooking()\r\n {\r\n $loggedin = isset($_SESSION['user']);\r\n if(! $loggedin)\r\n {\r\n return redirect('');\r\n }\r\n $user = $_SESSION['user']->account_no;\r\n\r\n $showtime = $_POST['showtime'];\r\n $num_seats = $_POST['num_seats'];\r\n\r\n App::get('database')->...
[ "0.72324854", "0.7022042", "0.6997521", "0.6811457", "0.6730472", "0.65867186", "0.65729856", "0.6424492", "0.64137965", "0.63904387", "0.63881373", "0.637843", "0.63579226", "0.6351279", "0.6337271", "0.6236255", "0.62203753", "0.6162544", "0.6160961", "0.61572355", "0.61406...
0.7374026
0
Updates a booking from the database
Обновляет бронирование из базы данных
function wpbs_update_booking($booking_id, $data) { return wp_booking_system()->db['bookings']->update($booking_id, $data); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateBooking(Request $request, $id)\n{\n $booking = Booking::find($id);\n $booking->update($request->all());\n\n $response = [\n 'message'=>'Update Succesfully',\n 'booking' => $booking,\n \n \n ];\n\n return response($response); \n}", "public function...
[ "0.75703937", "0.7483067", "0.7483067", "0.7483067", "0.7483067", "0.7483067", "0.73871624", "0.71963525", "0.70911264", "0.7053978", "0.70034367", "0.70034367", "0.70034367", "0.70034367", "0.70034367", "0.70034367", "0.69936186", "0.6969666", "0.69580436", "0.69411355", "0....
0.7757144
0
Deletes a booking from the database
Удаляет бронирование из базы данных
function wpbs_delete_booking($booking_id) { return wp_booking_system()->db['bookings']->delete($booking_id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function actionDelete($id)\n\t{\n\t\t$id = (int) $id;\n\t\tYii::app()->db->createCommand(\"DELETE FROM booking WHERE id='{$id}'\")->execute();\n\t}", "public function destroy(Booking $booking)\n {\n //\n }", "public function destroy(Booking $booking)\n {\n //\n }", "public fu...
[ "0.7600376", "0.7498229", "0.7498229", "0.7498229", "0.7390713", "0.7155909", "0.7040999", "0.70099884", "0.68403435", "0.6787544", "0.67712027", "0.67559654", "0.673261", "0.67140347", "0.6641528", "0.65998256", "0.65989393", "0.65809923", "0.6577738", "0.65526277", "0.65205...
0.7692047
0
Inserts a new meta entry for the booking
Вставляет новую мета-запись для бронирования
function wpbs_add_booking_meta($booking_id, $meta_key, $meta_value, $unique = false) { return wp_booking_system()->db['bookingmeta']->add($booking_id, $meta_key, $meta_value, $unique); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function insert()\n {\n $this->_checkItem();\n $service = $this->getService();\n $entry = $service->newItemEntry();\n $this->setEntry($entry);\n $this->_prepareEnrtyForSave();\n $this->getEntry()->setItemType($this->_getItemType());\n $entry = $service->in...
[ "0.6270945", "0.6206249", "0.6186913", "0.6150272", "0.6046951", "0.60208124", "0.5947092", "0.58898914", "0.588254", "0.58805084", "0.58191466", "0.5761349", "0.5738335", "0.5727745", "0.57005835", "0.5673149", "0.5660738", "0.5649115", "0.5607448", "0.5578807", "0.5577788",...
0.7134083
0
Updates a meta entry for the booking
Обновляет мета-запись для бронирования
function wpbs_update_booking_meta($booking_id, $meta_key, $meta_value, $prev_value = '') { return wp_booking_system()->db['bookingmeta']->update($booking_id, $meta_key, $meta_value, $prev_value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function update_booking_meta( $meta ) {\n foreach ( $meta as $key => $value ) {\n if ( $key !== 'services' ) {\n update_post_meta( $this->id, '_' . $key, $value );\n } else {\n wp_set_post_terms( $this->id, $value, YITH_WCBK_Post_Types:...
[ "0.705349", "0.6823063", "0.68111444", "0.66619456", "0.6560141", "0.6476049", "0.63927746", "0.6223144", "0.6060355", "0.6024493", "0.5988447", "0.5980762", "0.596906", "0.58837885", "0.58753985", "0.58753985", "0.58753985", "0.58753985", "0.58753985", "0.585582", "0.5834761...
0.75284314
0
Returns a meta entry for the booking
Возвращает мета-запись для бронирования
function wpbs_get_booking_meta($booking_id, $meta_key = '', $single = false) { return wp_booking_system()->db['bookingmeta']->get($booking_id, $meta_key, $single); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_booking_meta() {\n $meta = array();\n foreach ( $this->get_default_meta_data() as $key => $value ) {\n if ( $key !== 'services' ) {\n $meta[ $key ] = get_post_meta( $this->id, '_' . $key, true );\n } else {\n $me...
[ "0.66069955", "0.6369954", "0.61451024", "0.6119425", "0.6099613", "0.6099613", "0.6096732", "0.5950852", "0.59049326", "0.59042037", "0.5893344", "0.5893344", "0.58485353", "0.58485353", "0.58227235", "0.58227235", "0.58227235", "0.58227235", "0.58227235", "0.5778372", "0.57...
0.7402602
0
Returns the translated meta entry for the booking
Возвращает переведенную мета-запись для бронирования
function wpbs_get_translated_booking_meta($booking_id, $meta_key, $language_code) { $translated_meta = wpbs_get_booking_meta($booking_id, $meta_key . '_translation_' . $language_code, true); if (!empty($translated_meta)) { return $translated_meta; } return wpbs_get_booking_meta($booking_id, $m...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function wpbs_get_booking_meta($booking_id, $meta_key = '', $single = false)\n{\n\n return wp_booking_system()->db['bookingmeta']->get($booking_id, $meta_key, $single);\n\n}", "function get_booking_meta() {\n $meta = array();\n foreach ( $this->get_default_meta_data() as $key => $value )...
[ "0.67563593", "0.61785555", "0.5706054", "0.5674821", "0.5674821", "0.5669658", "0.5592495", "0.5554754", "0.5520171", "0.5511923", "0.5511923", "0.54742587", "0.5471152", "0.5466725", "0.5466725", "0.5459793", "0.545514", "0.5429134", "0.54226637", "0.5405048", "0.53978944",...
0.71295846
0
Removes a meta entry for the booking
Удаляет мета-запись для бронирования
function wpbs_delete_booking_meta($booking_id, $meta_key, $meta_value = '', $delete_all = '') { return wp_booking_system()->db['bookingmeta']->delete($booking_id, $meta_key, $meta_value, $delete_all); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function magazine_remove_entry_meta() {\n\tif ( ! is_single() ) {\n\t\tremove_action( 'genesis_entry_footer', 'genesis_entry_footer_markup_open', 5 );\n\t\tremove_action( 'genesis_entry_footer', 'genesis_post_meta' );\n\t\tremove_action( 'genesis_entry_footer', 'genesis_entry_footer_markup_close', 15 );\n\t}\n\n}"...
[ "0.6817855", "0.6588423", "0.65615815", "0.6523105", "0.6522162", "0.6520677", "0.6477579", "0.6446941", "0.64313036", "0.6418483", "0.63549185", "0.63247377", "0.6246762", "0.62242144", "0.62033534", "0.61713517", "0.6099392", "0.602397", "0.59930724", "0.59737945", "0.59490...
0.7063796
0
Loads the fixtures files and return the loaded objects.
Загружает файлы фикстур и возвращает загруженные объекты.
public function load(array $fixturesFiles, array $parameters = [], array $objects = [], PurgeMode $purgeMode = null): array;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function myLoadFixtures()\n {\n $em = $this->getDatabaseManager();\n\n // load fixtures\n $client = static::createClient();\n $classes = array(\n // classes implementing Doctrine\\Common\\DataFixtures\\FixtureInterface\n 'Demofony2\\AppBundle\\DataFixtur...
[ "0.7155395", "0.6856502", "0.67478627", "0.66942835", "0.66443974", "0.6579319", "0.6578975", "0.65382236", "0.65232474", "0.64497346", "0.64298904", "0.6341999", "0.6339953", "0.63045686", "0.62995315", "0.6273572", "0.62697446", "0.62552804", "0.62326115", "0.6231441", "0.6...
0.7392318
0
Search for similar usernames using LIKE.
Используйте LIKE для поиска похожих имен пользователей.
private function searchUsingLike(string $username) { $exactMatches = static::where($this->getUsernameColumnName(), $username)->get(); if ($exactMatches) { return static::where($this->getUsernameColumnName(), 'LIKE', $username.'%')->get(); } return $exactMatches; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function findSimilarUsernames(string $username)\n {\n $preferRegexp = $this->preferRegexp ?? $this->getModelGeneratorConfig()->getConfig('prefer_regexp', false);\n\n if (!$preferRegexp) {\n return $this->searchUsingLike($username);\n }\n\n try {\n return ...
[ "0.73186076", "0.6943806", "0.6847151", "0.6836033", "0.66249436", "0.658887", "0.65877783", "0.6481886", "0.6288706", "0.625853", "0.62211645", "0.62122476", "0.6207571", "0.6172583", "0.61368746", "0.61207384", "0.610137", "0.6099805", "0.6097742", "0.60674465", "0.6035184"...
0.73956454
0
Alias for getUsernameColumnName for backwards compatibility.
Алиас для getUsernameColumnName для обеспечения обратной совместимости.
private function getColumn(): string { return $this->getUsernameColumnName(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getUsernameColumnName(): string\n {\n return $this->usernameColumn ?? $this->getModelGeneratorConfig()->getConfig('column', 'username');\n }", "public function getColumnName();", "public function getFrontEndUserGroupColumnName() {}", "public function column_username($user)\n ...
[ "0.833809", "0.74434745", "0.68835133", "0.68434656", "0.6806118", "0.6771873", "0.67511886", "0.67086375", "0.6689292", "0.665468", "0.6491683", "0.64727765", "0.6428062", "0.640624", "0.63698393", "0.63567996", "0.635169", "0.6328611", "0.6318929", "0.6293386", "0.62755406"...
0.79381543
1
Get the username column name.
Получить имя столбца username.
public function getUsernameColumnName(): string { return $this->usernameColumn ?? $this->getModelGeneratorConfig()->getConfig('column', 'username'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function getColumn(): string\n {\n return $this->getUsernameColumnName();\n }", "public function username()\n {\n return backpack_authentication_column();\n }", "public static function username() {\n return 'user_id';\n }", "public function username() {\n re...
[ "0.8438552", "0.77026516", "0.7644313", "0.7595003", "0.74217266", "0.73610795", "0.73353124", "0.7290394", "0.7233597", "0.71988547", "0.71946585", "0.7169115", "0.71624476", "0.71230555", "0.70969915", "0.70937234", "0.7084786", "0.70772237", "0.7074892", "0.7073811", "0.70...
0.879286
0
Get the model specific generator config. Since a model could extend the GeneratesUsernames trait, we need to check if it has any specific config that would change the behaviour of this trait. Eventually will deprecate the generatorConfig and change it to simply return an array that will then be passed to the generator.
Получите конфигурацию генератора, специфичную для модели. Поскольку модель может расширять признак GeneratesUsernames, необходимо проверить, есть ли у нее специфическая конфигурация, которая изменит поведение этого признака. В дальнейшем конфигурация generatorConfig будет deprecated и заменена на возвращение простого м...
private function getModelGeneratorConfig(): Generator { $generator = new Generator(); if (method_exists($this, 'generatorConfig')) { $this->generatorConfig($generator); } return $generator; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getGeneratorConfig()\n {\n return $this->database->getGeneratorConfig();\n }", "protected function coreGenerators()\n {\n return [\n 'ultimate' => ['class' => 'dlds\\giixer\\generators\\ultimate\\Generator'],\n 'model' => ['class' => 'dlds\\giixer\\gen...
[ "0.728027", "0.5777113", "0.5775435", "0.5678496", "0.56554544", "0.5619798", "0.5557239", "0.55403304", "0.5513188", "0.55023575", "0.5497083", "0.547021", "0.5453373", "0.5358906", "0.5358226", "0.5326922", "0.5326106", "0.5317825", "0.5314144", "0.5311939", "0.5292985", ...
0.71254706
1
Show ProductAttributeList edit page.
Показать страницу редактирования ProductAttributeList.
public function edit(ProductAttributeList $attribute) { echo json_encode($attribute); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function edit(ProductAttributes $productAttributes)\n {\n //\n }", "public function listAction() {\n\t\t$this->view->title = $this->translator->translate(\"Product Attributes\");\n\t\t$this->view->description = $this->translator->translate(\"Here you can see all the attributes.\");\n\t\t$this...
[ "0.7554106", "0.7398569", "0.7341087", "0.72376263", "0.6745065", "0.6731754", "0.6693674", "0.66428506", "0.66301566", "0.6622368", "0.6608486", "0.6559132", "0.65579516", "0.6517996", "0.6506437", "0.6474655", "0.64603204", "0.64603204", "0.64603204", "0.64603204", "0.64603...
0.74865043
1
Gets the coachmarkLocation The coachmark location.
Получает положение маркера-наставника.
public function getCoachmarkLocation() { if (array_key_exists("coachmarkLocation", $this->_propDict)) { if (is_a($this->_propDict["coachmarkLocation"], "\Beta\Microsoft\Graph\Model\CoachmarkLocation") || is_null($this->_propDict["coachmarkLocation"])) { return $this->_propDict["c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setCoachmarkLocation($val)\n {\n $this->_propDict[\"coachmarkLocation\"] = $val;\n return $this;\n }", "public function getLocation() {\n\t\treturn($this->location);\n\t}", "public function getLocation()\n\t{\n\t\treturn $this->location;\n\t}", "public function getLocatio...
[ "0.6907085", "0.6463573", "0.63533944", "0.63533944", "0.63533944", "0.63533944", "0.63495487", "0.63153625", "0.63101465", "0.63101465", "0.63101465", "0.63101465", "0.63101465", "0.63101465", "0.63101465", "0.63101465", "0.63101465", "0.63101465", "0.63101465", "0.63101465", ...
0.85421234
0
Sets the coachmarkLocation The coachmark location.
Устанавливает расположение вспомогательной подсказки coachmarkLocation.
public function setCoachmarkLocation($val) { $this->_propDict["coachmarkLocation"] = $val; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCoachmarkLocation()\n {\n if (array_key_exists(\"coachmarkLocation\", $this->_propDict)) {\n if (is_a($this->_propDict[\"coachmarkLocation\"], \"\\Beta\\Microsoft\\Graph\\Model\\CoachmarkLocation\") || is_null($this->_propDict[\"coachmarkLocation\"])) {\n retu...
[ "0.6356563", "0.56165236", "0.5455847", "0.539666", "0.52562803", "0.52390504", "0.5126067", "0.50752324", "0.5073", "0.50416464", "0.50416464", "0.5037526", "0.49231446", "0.48471037", "0.48150584", "0.47880453", "0.47329837", "0.47106293", "0.47086388", "0.47046208", "0.469...
0.7585093
0
View module controller actions
Просмотр действий контроллера модуля
public function viewactionsAction(){ $moduleId = $this->getRequest()->getParam('moduleId'); $moduleObj = new Modules_Model_Modules(); $moduleItem = $moduleObj->findById($moduleId); $controllerId = $this->getRequest()->getParam('controllerId'); $controllerObj = new Modules_Model_Controllers(); $controller...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function actionView() {}", "public function actionView() {}", "public function viewAction()\r\n {\r\n $this->indexAction();\r\n }", "public function indexAction () {\r\n $this->_helper->viewRenderer->setNoRender(false);\r\n $this->_helper->layout()->enableLayout();\r\n ...
[ "0.7992516", "0.7992516", "0.79832315", "0.7858633", "0.7796232", "0.76896656", "0.7637314", "0.7578816", "0.74148715", "0.738777", "0.7324321", "0.73125964", "0.7303295", "0.7303295", "0.7303295", "0.7303295", "0.7303295", "0.7303295", "0.7303295", "0.7303295", "0.7303295", ...
0.80764145
0
Lists all Incident entities.
Список всех сущностей Инцидентов.
public function indexAction() { $em = $this->getDoctrine()->getManager(); $entities = $em->getRepository('ComDaufinBundle:Incident')->findAll(); return $this->render('ComDaufinBundle:Incident:index.html.twig', array( 'entities' => $entities, )); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function index()\n {\n return IncidentResource::collection(Incident::all());\n }", "public function index()\n {\n //\n return Incidencies::get();\n }", "public function indexAction() {\n $em = $this->getDoctrine()->getManager();\n\n $entities = $em->getRepo...
[ "0.7005375", "0.64993304", "0.6474207", "0.6351045", "0.6330612", "0.6325362", "0.62754", "0.62179345", "0.604176", "0.60272324", "0.59795886", "0.59509426", "0.5944533", "0.5941982", "0.5938184", "0.59238094", "0.5922805", "0.5902203", "0.5880296", "0.5874867", "0.58739233",...
0.70976186
0
Creates a form to create a Incident entity.
Создает форму для создания сущности Инцидент.
private function createCreateForm(Incident $entity) { $form = $this->createForm(new IncidentType(), $entity, array( 'action' => $this->generateUrl('com_incident_create'), 'method' => 'POST', )); $form->add('submit', 'submit', array('label' => 'Créer','attr'=>array('c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function newAction()\n {\n $entity = new Incident();\n $form = $this->createCreateForm($entity);\n\n return $this->render('ComDaufinBundle:Incident:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public...
[ "0.7192309", "0.68735206", "0.68468374", "0.6635487", "0.66038954", "0.65442777", "0.65247846", "0.6472963", "0.64462566", "0.6418852", "0.6418213", "0.63939124", "0.6363234", "0.6362272", "0.6343542", "0.6338978", "0.63089514", "0.6285326", "0.62333995", "0.6231594", "0.6212...
0.74190396
0
Displays a form to create a new Incident entity.
Показывает форму для создания нового сущности Инцидент.
public function newAction() { $entity = new Incident(); $form = $this->createCreateForm($entity); return $this->render('ComDaufinBundle:Incident:new.html.twig', array( 'entity' => $entity, 'form' => $form->createView(), )); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function newAction()\n {\n $entity = new Customer();\n $form = $this->createForm(new CustomerType(), $entity);\n\n return $this->render('EnterpriseBundle:Default:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView()\n ));\n ...
[ "0.70455056", "0.7045127", "0.7003517", "0.69731975", "0.6914362", "0.68953305", "0.68729633", "0.681382", "0.6805253", "0.6802053", "0.67273897", "0.66950154", "0.6684786", "0.6684345", "0.66575485", "0.66535896", "0.6651636", "0.66473633", "0.66428775", "0.66112876", "0.658...
0.82271135
0
Displays a form to edit an existing Incident entity.
Показывает форму для редактирования существующего сущности Инцидент.
public function editAction($id) { $em = $this->getDoctrine()->getManager(); $entity = $em->getRepository('ComDaufinBundle:Incident')->find($id); if (!$entity) { throw $this->createNotFoundException('Unable to find Incident entity.'); } $editForm = $this->create...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function editAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('AcmeInvoiceBundle:Invoice')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Invoice entity.');\n }\n\n $editForm ...
[ "0.6804953", "0.6797847", "0.6790573", "0.67861074", "0.67824024", "0.6764167", "0.6758988", "0.67570597", "0.6756569", "0.6752052", "0.67458874", "0.67458874", "0.6735235", "0.6734836", "0.67290646", "0.6704641", "0.6695267", "0.666571", "0.6652674", "0.6652674", "0.6647207"...
0.76934713
0
Creates a form to edit a Incident entity.
Создает форму для редактирования сущности Инцидент.
private function createEditForm(Incident $entity) { $form = $this->createForm(new IncidentType(), $entity, array( 'action' => $this->generateUrl('com_incident_update', array('id' => $entity->getId())), 'method' => 'PUT', )); $form->add('submit', 'submit', array('labe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function createEditForm(Resident $entity)\n {\n $form = $this->createForm(new ResidentType(), $entity, array(\n 'action' => $this->generateUrl('resident_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', arr...
[ "0.7342424", "0.6961575", "0.6939798", "0.69292074", "0.68942547", "0.6856624", "0.68178684", "0.679424", "0.6787024", "0.67820334", "0.6758182", "0.67476124", "0.6735985", "0.6683128", "0.6670898", "0.66447186", "0.6642921", "0.66244024", "0.6619014", "0.6599569", "0.6597531...
0.7549447
0
Creates a form to delete a Incident entity by id.
Создает форму для удаления сущности Incident по идентификатору.
private function createDeleteForm($id) { return $this->createFormBuilder() ->setAction($this->generateUrl('com_incident_delete', array('id' => $id))) ->setMethod('DELETE') ->add('submit', 'submit', array('label' => 'Supprimer','attr'=>array('class'=>'btn btn-danger','styl...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('resident_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\...
[ "0.74156785", "0.72755706", "0.7257462", "0.7250423", "0.7204331", "0.7203511", "0.7182645", "0.7179833", "0.71696275", "0.71631914", "0.71582997", "0.71538776", "0.7147314", "0.7133575", "0.7127885", "0.7127556", "0.711653", "0.7115973", "0.7111385", "0.71107155", "0.7107131...
0.75169045
0
Test dispatch and notifier supports event
Тестирование диспетчера и уведомителя поддерживает событие
public function testDispatchWithNotifierSupportEvent() { $event = new EventTested(); $this->eventDispatcher->expects($this->once()) ->method('dispatch') ->with('foo', $event) ->will($this->returnValue($event)); $this->notifier->expects($this->once()) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function test_event_notification()\n {\n $this->event_notification_helper('event_method', true);\n }", "public function testDispatchEvents()\n {\n $this->uut->dispatch($this->buildRequest('/default'));\n\n $this->assertArrayHasKey(OnPreDispatch::class, self::$lastEvents);\n ...
[ "0.7251876", "0.6926086", "0.68950593", "0.68823737", "0.6845733", "0.67082274", "0.65592337", "0.6544384", "0.65202934", "0.64910245", "0.6483528", "0.6480512", "0.64468634", "0.6420582", "0.6403316", "0.6342289", "0.6320253", "0.621622", "0.617445", "0.6100438", "0.6085242"...
0.7587493
0
require_once "RSMtestsFunctionsLibrary.php"; Get relations for the round and subject passed
require_once "RSMtestsFunctionsLibrary.php"; Получить отношения для прошедшего круга и предмета
function getRelations($theRoundID, $theSubjectID, $clientID) { global $definitions; //get item type $relationsItemTypeID = getClientItemTypeID_RelatedWith_byName($definitions['roundSubjectsTestRelations'], $clientID); //get properties $relationsRoundPropertyID = getClientPropertyID_Relate...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getRelations($theRoundID, $theSubjectID, $clientID) {\n global $definitions;\n\n $relationsItemTypeID = getClientItemTypeID_RelatedWith_byName($definitions['roundSubjectsTestRelations'], $clientID);\n\n $relationsRoundPropertyID = getClientPropertyID_RelatedWith_byName($definitions['roundSubjects...
[ "0.72404677", "0.5648223", "0.56259716", "0.5612863", "0.5479739", "0.54645437", "0.54273313", "0.536446", "0.53118503", "0.53118503", "0.53082985", "0.5284517", "0.5284517", "0.52818125", "0.5240556", "0.52320874", "0.5208981", "0.51988804", "0.5197865", "0.5194668", "0.5153...
0.7326091
0
This function returns all the testcases inside one group (and inside their categories and subcategories)
Эта функция возвращает все тесткейсы внутри одной группы (и внутри их категорий и подкатегорий)
function getAllTestCasesInsideAGroup($groupID, $clientID) { global $definitions; //get item type $itemTypeTestCasesID = getClientItemTypeID_RelatedWith_byName($definitions['testcases'], $clientID); //get property $testCasesParentPropertyID = getClientPropertyID_RelatedWith_byName($definitions['te...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getTestCasesInsideACategory($testCategoryID, $theSubjectID, $roundID, $clientID) {\n global $definitions;\n\n $categoriesItemTypeID = getClientItemTypeID_RelatedWith_byName($definitions['testcasescategory'], $clientID);\n $categoryParentPropertyID = getClientPropertyID_RelatedWith_byName($definit...
[ "0.70565355", "0.6960221", "0.6703277", "0.6524542", "0.6343473", "0.62679315", "0.6077294", "0.6069568", "0.6024369", "0.5877993", "0.58598197", "0.58119255", "0.57896143", "0.57848513", "0.5781865", "0.57703596", "0.57599324", "0.5756043", "0.57417434", "0.574049", "0.57175...
0.7521374
0
This function returns all the testcases inside one parent category and their subcategories
Эта функция возвращает все тесткейсы внутри одной родительской категории и их подкатегорий
function getAllTestCasesInsideCategory($parentCategoryID, $clientID) { global $definitions; //get item type $itemTypeTestCasesID = getClientItemTypeID_RelatedWith_byName($definitions['testcases'], $clientID); //get property $testCasesParentPropertyID = getClientPropertyID_RelatedWith_byName($defi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getAllTestCategoriesInsideACategory($parentCategoryID, $clientID) {\n\n global $definitions;\n\n //get item type\n $itemTypeTestCasesCategoriesID = getClientItemTypeID_RelatedWith_byName($definitions['testcasescategory'], $clientID);\n\n //get property\n $testCategoryParentPropertyID = getC...
[ "0.7586548", "0.73783547", "0.71820617", "0.7177901", "0.7008018", "0.6816272", "0.6548999", "0.65266335", "0.65198386", "0.6519264", "0.6501634", "0.64544076", "0.64261615", "0.62595737", "0.6247661", "0.61789495", "0.6156544", "0.6150775", "0.6107434", "0.6097609", "0.60720...
0.77038574
0
This function returns the testcases inside one parent category only (not subcategories)
Эта функция возвращает тесткейсы только внутри одной родительской категории (не подкатегорий)
function getTestCasesInsideCategory($parentCategoryID, $clientID) { global $definitions; //get item type $itemTypeTestCasesID = getClientItemTypeID_RelatedWith_byName($definitions['testcases'], $clientID); //get property $testCasesParentPropertyID = getClientPropertyID_RelatedWith_byName($definit...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getAllTestCasesInsideCategory($parentCategoryID, $clientID) {\n\n global $definitions;\n\n //get item type\n $itemTypeTestCasesID = getClientItemTypeID_RelatedWith_byName($definitions['testcases'], $clientID);\n\n //get property\n $testCasesParentPropertyID = getClientPropertyID_RelatedWith...
[ "0.7650469", "0.7343272", "0.734251", "0.72037286", "0.71789485", "0.68887734", "0.6658828", "0.66286737", "0.657201", "0.65059453", "0.64021194", "0.6396007", "0.63922936", "0.6322818", "0.6291699", "0.61062264", "0.60999966", "0.60893714", "0.6061898", "0.6060847", "0.60547...
0.7512762
1
Returns path to image. Gallery is define by ID.
Возвращает путь к изображению. Галерея определяется идентификатором.
abstract public function getPathImage($id, $filename);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getImagePath () {\n return luxbum::getImage($this->dir, $this->file);\n }", "function ImageFile()\n\t{\treturn $this->imagedir . (int)$this->id . \".jpg\";\n\t}", "public function getImagePath()\n {\n return $this->getImagesFolder() . '/' . $this->getRootImagePath();\n }", "publi...
[ "0.70817566", "0.6955634", "0.67909914", "0.67677885", "0.67656475", "0.6746698", "0.67443603", "0.67343765", "0.6726124", "0.6713007", "0.66791016", "0.6635203", "0.66279024", "0.6602257", "0.65997326", "0.65807176", "0.6576765", "0.65731096", "0.6536184", "0.65257263", "0.6...
0.7338167
0
get name of currently active menu
получить имя текущего активного меню
private function getCurrentMenuName(){ if(!$this->currentmenuname) $this->setCurrentMenuName(); return $this->currentmenuname; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function menu_get_active_title()\n {\n return menu_get_active_title();\n }", "protected function _getMenuName()\n\t{\n\t\treturn self::$_sMenuName;\n\t}", "private function setCurrentMenuName(){\n \n $currentmenuname = NULL;\n \n foreach(array_keys(menu_ui_get_menus()) as $menun...
[ "0.8192552", "0.7741272", "0.74787724", "0.7426227", "0.7187578", "0.70964164", "0.70712155", "0.70094985", "0.69799507", "0.69750637", "0.6937813", "0.6934306", "0.69078887", "0.676227", "0.67540586", "0.6704641", "0.66280884", "0.66134053", "0.65600723", "0.6549534", "0.653...
0.844474
0
set name of currently active menu
установить имя активного меню
private function setCurrentMenuName(){ $currentmenuname = NULL; foreach(array_keys(menu_ui_get_menus()) as $menuname){ $activelink = \Drupal::service('menu.active_trail')->getActiveLink($menuname); if(!empty($activelink)) $currentmenuname = $menuname; } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function activate_menu_item($name)\n\t{\n\t\t$this->_active_item = $name;\n\t}", "private function getCurrentMenuName(){\n \n if(!$this->currentmenuname)\n $this->setCurrentMenuName();\n \n return $this->currentmenuname;\n \n }", "public function setNameMenu( $name = NULL ){\n\t\t$t...
[ "0.73577625", "0.72689193", "0.72062", "0.6825129", "0.6769948", "0.66666394", "0.63398755", "0.62708247", "0.6180183", "0.6150929", "0.61056125", "0.6017139", "0.6016042", "0.600131", "0.5976361", "0.59685475", "0.5942405", "0.5936161", "0.5909389", "0.59001833", "0.5896184"...
0.83405966
0
set tree menu output
установить дерево меню вывода
private function setTreeOutput(){ $item = $this->item; $treeoutput = NULL; $menuname = NULL; $parameters = NULL; $menutree = \Drupal::menuTree(); if($item->menu_name == 'active-menu'){ $menuname = $this->getCurrentMenuName(); if($menuname) $param...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function menu_tree_output($tree)\n {\n return menu_tree_output($tree);\n }", "abstract protected function getMenuTree();", "function show_tree(){\n\t\t\t\t\tswitch(LINK_TYPE){\n\t\t\t\t\t\tcase \"static\":\n\t\t\t\t\t\t\treturn $this->show_tree_static();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcas...
[ "0.74459684", "0.73401934", "0.7000974", "0.6971639", "0.687586", "0.67948323", "0.67288136", "0.67284083", "0.6727923", "0.6727923", "0.66981566", "0.666226", "0.66375524", "0.6573268", "0.65616155", "0.65614253", "0.65428555", "0.65063876", "0.649541", "0.6465559", "0.64205...
0.8216575
0
Perform a selfchange password request
Запрос на изменение пароля самому себе
public function selfChangePassword() { if (!$this->userService->changePassword(Input::all())) { return Redirect::route('user-profile', array('tab' => 'account'))->withErrors($this->userService->errors())->withInput(); } Alert::success('Your password has been successfully changed.')->flash(); return Redi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function changePassword() {}", "private function changePassword()\n {\n try\n {\n global $userquery; \n\n $request = $_REQUEST;\n\n if(!userid())\n throw_error_msg(\"Please login to perform this action\");\n\n if(!isset($reques...
[ "0.7385647", "0.6946307", "0.6879779", "0.6693084", "0.6605285", "0.65734404", "0.656932", "0.6548491", "0.65362495", "0.6536129", "0.6530542", "0.65269536", "0.6497222", "0.6487361", "0.6462839", "0.6461272", "0.64552706", "0.64057016", "0.63971883", "0.6395171", "0.639308",...
0.73346704
1
Read all category endpoints to extract products endpoints.
Считайте все категории конечных точек для извлечения конечных точек продуктов.
public function read(\Traversable $categoryEndpoints) :array { $this->productsEndpoints = []; foreach($categoryEndpoints as $endpoint){ /** @var Endpoint $endpoint */ $this->firstPage = $this->currentPage = $this->lastPage = 1; $this->style->text(vsprintf('Readin...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function getEndpoints();", "public static function route_products_and_categories()\n\t{\n\t\tforeach(ORM::factory('product')->find_all() as $object)\n\t\t{\n\t\t\tKohana::config_set('routes.' . $object->show_path(false), inflector::plural($object->object_name) . '/show/' . $object);\n\t\t}\n\t\t\...
[ "0.6458531", "0.63298553", "0.6302737", "0.6299358", "0.6050368", "0.59567225", "0.59119076", "0.58100474", "0.5800538", "0.5738983", "0.5716174", "0.5709875", "0.57030153", "0.5698487", "0.56896275", "0.5689594", "0.5635815", "0.56319785", "0.56288624", "0.56185794", "0.5616...
0.7007666
0
Registers the custom post type with WordPress if it does not already exists.
Регистрирует пользовательский тип записи в WordPress, если он еще не существует.
public function registerCustomPostType() { if (!post_type_exists($this->slug)) { register_post_type($this->slug, $this->arguments); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function register_post_type() {\n\t\tadd_action( 'init', array( $this, 'post_registration_callback' ), 0, 0 );\n\t}", "public function register_post_type() {\n\t\t// make sure the post type info is set - none of this will work without it!\n\t\tif ( is_null( $this->post_type ) or is_null( $this->post_type_...
[ "0.7911114", "0.7758154", "0.7661058", "0.7630418", "0.7593939", "0.7571871", "0.7562517", "0.75430495", "0.7474007", "0.7469335", "0.74665034", "0.746017", "0.7450408", "0.7431948", "0.7394482", "0.7367333", "0.7367333", "0.73577774", "0.7355499", "0.7352057", "0.7351799", ...
0.8714965
0
Test that an invalid page cannot be passed to the constructor.
Тестирование невозможности передачи недопустимой страницы в конструктор.
public function testInvalidPage() { $this->setExpectedException(\InvalidArgumentException::class); new XmlSitemapWriter($this->sitemap, 'invalid'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testGetShowPageWithInvalidData()\n {\n $resp = $this->getMockBuilder('Acme\\Http\\Response')\n ->setConstructorArgs([$this->request, $this->signer,\n $this->blade, $this->session])\n ->setMethods(['render'])\n ->getMock();\n\n // over...
[ "0.6741501", "0.66459084", "0.64610624", "0.6359607", "0.6358735", "0.62769055", "0.6220618", "0.61645335", "0.6139091", "0.61272395", "0.60980564", "0.6085131", "0.60685724", "0.6056345", "0.60298026", "0.6008254", "0.5976627", "0.5976627", "0.59700674", "0.59246576", "0.591...
0.7546506
0
Tests the writeElement() method.
Проверяет метод writeElement().
public function testWriteElement() { $writer = new XmlSitemapWriter($this->sitemap, '1'); $writer->openMemory(); $writer->writeElement('url', [ 'item1' => 'value1', [ 'key' => 'item2', 'value' => '<value2>', ], [ 'key' => 'item3', 'value' => [ ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testWrite()\n {\n //Tries some values\n foreach ([\n ['first', 'second'],\n [],\n [true],\n [false],\n [null],\n ] as $value) {\n $this->assertTrue($this->SerializedArray->write($value));\n $result ...
[ "0.6594411", "0.62281907", "0.6161681", "0.61572105", "0.610757", "0.59129375", "0.59129375", "0.578263", "0.5731701", "0.5684551", "0.5590043", "0.557673", "0.55603814", "0.5523057", "0.5517346", "0.55029833", "0.5499105", "0.54597044", "0.5455645", "0.5354365", "0.5336838",...
0.7116637
0
Prepare actions attribute value
Подготовить значение атрибута actions
protected function prepareActionAttributeValue($actions) { $condition = $this->actionFactory->create($actions['type']); $attributes = $condition->loadAttributeOptions()->getAttributeOption(); if (isset($attributes[$actions['attribute']])) { $condition->setAttribute($actions['att...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function prepareActionAttributeValue($actions)\n {\n $condition = $this->actionFactory->create($actions['type']);\n $attributes = $condition->loadAttributeOptions()->getAttributeOption();\n\n if (isset($attributes[$actions['attribute']])) {\n $condition->setAttribute($a...
[ "0.69672364", "0.6375995", "0.6265252", "0.60958993", "0.599421", "0.59652597", "0.59637576", "0.59184337", "0.58816284", "0.58715135", "0.5850302", "0.5815708", "0.578759", "0.57814676", "0.57397443", "0.5704639", "0.5695379", "0.5673382", "0.5672905", "0.5671205", "0.564901...
0.7000416
0
Get QuestString value with default value if querystring is not set
Получить значение QuestString с значением по умолчанию, если querystring не задан
function GetQueryString($name, $default="") { return ValidRequiredQueryString($name) ? $_GET[$name] : $default; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_query_var($query_var, $default_value = '')\n {\n }", "public function get($query_var, $default_value = '')\n {\n }", "function get_query_str_value($name) {\n\n return (array_key_exists($name, $_GET) ? $_GET[$name] : null);\n}", "public function query_string($default = '', ...
[ "0.7102541", "0.6804903", "0.67102396", "0.65627486", "0.6550244", "0.6384389", "0.635669", "0.6310451", "0.62901837", "0.62821704", "0.62745273", "0.62443584", "0.6207515", "0.61467254", "0.61238575", "0.6121417", "0.61206925", "0.6101068", "0.6099851", "0.60926443", "0.6090...
0.74760604
0
Check that query string param is not empty
Проверьте, что параметр запроса не пустой
function ValidRequiredQueryString($name) { return isset($_GET[$name]) && $_GET[$name] != ""; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isEmpty()\n {\n return (!is_array($this->params) || count($this->params) == 0);\n }", "Public static function parametersEmpty(){\n\n throw new \\yii\\web\\HttpException(206, 'Query parameters Should not empty', 405);\n\n\n }", "private function verify_parameters(){\n if( e...
[ "0.67162734", "0.6675367", "0.6554458", "0.6476091", "0.643055", "0.6389102", "0.6387113", "0.6334984", "0.63314694", "0.6294919", "0.6288418", "0.62765974", "0.62431735", "0.6224884", "0.62146294", "0.61709404", "0.61601925", "0.61416894", "0.6111461", "0.6107865", "0.603202...
0.77078784
0
Check that post param is not empty
Проверьте, что параметр post не пустой
function ValidRequiredPost($name) { return isset($_POST[$name]) && $_POST[$name] != ""; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function checkEmpty(){\n\t\tif(!empty($_POST)){\n\t\t\treturn true;\n\t\t}else{\n\t\t\treturn false;\n\t\t}\n\t}", "public function isPostLeeg()\n {\n return empty($_POST);\n }", "function checkPOST() : bool\n {\n if (!(isset($_POST['firstName']) && isset($_POST['secondName'])))\n {\n ...
[ "0.7423945", "0.71076137", "0.70415545", "0.7016539", "0.6903644", "0.68790364", "0.68191296", "0.6761175", "0.67490524", "0.6694592", "0.66818935", "0.66723293", "0.6665045", "0.66259265", "0.6602465", "0.657979", "0.6578675", "0.6455953", "0.64507854", "0.6442074", "0.64322...
0.7182731
1
Register Convers8 user in Wordpress
Зарегистрировать пользователя Convers8 в WordPress
function register_wordpress_user($convers8_user, $secret) { $wp_user_id = wp_insert_user(array( 'user_pass' => md5($convers8_user["id"] . $secret), 'user_login' => $convers8_user["id"], // make sure no illegal characters occur in user_nicename, since it is also in the member's URL 'user_nicename' => sanit...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function wp_newUser( $args ) {\n \n global $wp_xmlrpc_server, $wp_roles;\n $wp_xmlrpc_server->escape($args);\n\n $blog_ID = (int) $args[0]; // for future use\n $username = $args[1];\n $password = $args[2];\n ...
[ "0.6712727", "0.65420777", "0.6436557", "0.63906527", "0.6331135", "0.6331101", "0.63111013", "0.63081783", "0.6228033", "0.61851543", "0.6169087", "0.6152797", "0.6145179", "0.61308134", "0.6096465", "0.6089725", "0.6088785", "0.60845447", "0.60621464", "0.6053979", "0.60467...
0.78215736
0
/ end po15 head cleanup remove WP version from RSS
/ end po15 head cleanup удалить версию WP из RSS
function po_rss_version() { return ''; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function theme_rss_version() { return ''; }", "function mdwpfp_rss_version() { return ''; }", "function wpgrade_rss_version() { return ''; }", "function spartan_rss_version() { return ''; }", "function bulledev_rss_version() { return ''; }", "function bones_rss_version() { return ''; }", "public functi...
[ "0.8088184", "0.8031337", "0.7991728", "0.7916498", "0.78290415", "0.77846205", "0.75705534", "0.7520781", "0.7428136", "0.74133563", "0.7149772", "0.6792606", "0.6727403", "0.6712296", "0.65957093", "0.6594163", "0.6594163", "0.6574723", "0.6574168", "0.6573446", "0.65106386...
0.8056424
1
/ end po theme support MENUS Register Navigation Menus
/ end po theme support MENUS Register Navigation Menus
function register_po_nav_menus() { $locations = array( 'main-navi' => __( 'Site main navigations', 'text_domain' ), 'footer-link' => __( 'Site secondary links', 'text_domain' ), 'cart-link' => __( 'Cart links', 'text_domain' ), 'socmed-link' => __( 'Social media links', 'text_domain...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function omega_register_menus() {\n\tregister_nav_menu( 'primary', _x( 'Primary', 'nav menu location', 'omega' ) );\n}", "function basetheme_nav_init()\n{\n\n\tregister_nav_menus( array(\n 'header' => 'Header',\n 'footer' => 'Footer'\n\t) );\n\n}", "function get_registered_nav_menus()\n {\n ...
[ "0.82180166", "0.80616295", "0.80543405", "0.80352944", "0.7975038", "0.7938911", "0.7935851", "0.7917127", "0.7909255", "0.78959507", "0.7885589", "0.7883832", "0.7880348", "0.7833404", "0.78095996", "0.78090054", "0.77852374", "0.7782849", "0.77618474", "0.7755041", "0.7740...
0.8133599
1
Returns value of 'ip' property
Возвращает значение свойства 'ip'
public function getIp() { $value = $this->get(self::ip); return $value === null ? (string)$value : $value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getIp()\n {\n return $this->get(self::IP);\n }", "public function getIp()\n {\n return $this->get(self::IP);\n }", "public function ip()\n {\n return $this->rule('ip');\n }", "public function getIp(): string\n {\n return $this->ip;\n }", "...
[ "0.82780486", "0.82780486", "0.8274773", "0.82162684", "0.82162684", "0.82154155", "0.82154155", "0.82154155", "0.82154155", "0.82154155", "0.82154155", "0.82154155", "0.82134926", "0.81861377", "0.8166144", "0.81520605", "0.7890118", "0.7861993", "0.7834562", "0.7822492", "0...
0.8473826
0
Returns value of 'port' property
Возвращает значение свойства 'port'
public function getPort() { $value = $this->get(self::port); return $value === null ? (string)$value : $value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPort() {\n return @$this->attributes['port'];\n }", "public function getPort()\n {\n return (int)$this->port;\n }", "public function getPort()\r\n\t{\r\n\t\treturn $this->port;\r\n\t}", "public function getPort()\n {\n return $this->port;\n }", "public funct...
[ "0.88199407", "0.85959375", "0.8585278", "0.85842", "0.85842", "0.85842", "0.85842", "0.85842", "0.85842", "0.85842", "0.85842", "0.85842", "0.85842", "0.85842", "0.8583538", "0.8540972", "0.8540972", "0.85364634", "0.85364634", "0.84758043", "0.8436434", "0.8414167", "0....
0.86042583
1
Returns value of 'module' property
Возвращает значение свойства 'module'
public function getModule() { $value = $this->get(self::module); return $value === null ? (string)$value : $value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function module() {\n return $this->module;\n }", "public function getModule(){\n return $this->module;\n }", "public function getModule()\n {\n return $this->module;\n }", "public function getModule() {\n\t\treturn $this->module;\n\t}", "public function getModule() {\n\t\tretur...
[ "0.8210132", "0.78804106", "0.7852057", "0.7813826", "0.7813826", "0.7753828", "0.7753828", "0.7725103", "0.77203333", "0.76537687", "0.764463", "0.7525357", "0.752002", "0.74772567", "0.74126697", "0.7340175", "0.73386526", "0.7257938", "0.7257938", "0.714476", "0.7050012", ...
0.817467
1
test using an object as a filter; an object fiter will retain its state between calls to its filters
тестирование с использованием объекта в качестве фильтра; объект фильтра сохраняет свое состояние между вызовами его фильтров
function test_object_filter() { $var = new LiquidVariable('var | instance_test_one'); $this->context->set('var', 1000); $this->context->add_filters( new TestClassFilter()); $this->assertIdentical('set', $var->render($this->context)); $var = new LiquidVariable('var | instance_test_two'); $this->assertI...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract function filter();", "public function test_apply_filter_within_class_instance( $hook ) {\n $var = rand_str();\n $filtered = yourls_apply_filter( $hook, $var );\n $this->assertNotSame( $var, $filtered );\n\t}", "public function filter();", "public function testFilter() ...
[ "0.6586772", "0.65611553", "0.6426967", "0.6378053", "0.6339948", "0.63219154", "0.62681127", "0.625397", "0.62239796", "0.6219945", "0.6202439", "0.614001", "0.6104981", "0.6101359", "0.6061781", "0.60586596", "0.6026564", "0.60031074", "0.6001481", "0.59855956", "0.5980194"...
0.753174
0
Add list item property
Добавить свойство элемента списка
function addListItemProperty($a_txt, $a_val) { $this->list_properties[] = array("txt" => $a_txt, "val" => $a_val); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createProperty()\n {\n $prop = new LiquibaseProperty();\n $this->properties[] = $prop;\n\n return $prop;\n }", "public function addProperty(Property $property)\n {\n $this->properties[(string)$property->getFqsen()] = $property;\n }", "public function addP...
[ "0.5936487", "0.5896852", "0.5895679", "0.5698185", "0.56643826", "0.56640047", "0.56227416", "0.5620114", "0.5614472", "0.5489306", "0.54886883", "0.54606956", "0.5449175", "0.54440165", "0.54290044", "0.5401295", "0.5377366", "0.5342354", "0.52892697", "0.5271184", "0.52328...
0.7517841
0
Collect properties and actions
Собирать свойства и действия
function collectPropertiesAndActions() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function assignProperties() {\n\t\t$hash = $this->__action;\n\t\tforeach ($hash as $key => $value) {\n\t\t\tif (!isset($value)) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif (preg_match('/^_.*/i', $key)) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t$this->assignProperty($key, $value);\n\t\t}\n\t}", "public function _getPr...
[ "0.65198797", "0.6388199", "0.638078", "0.62434894", "0.618067", "0.6049998", "0.6049998", "0.6049998", "0.6049375", "0.60099375", "0.59695625", "0.59150213", "0.5841149", "0.58391273", "0.58391273", "0.58391273", "0.58391273", "0.58391273", "0.58391273", "0.5828223", "0.5791...
0.90468657
0
Collect standard properties and actions
Собирать стандартные свойства и действия
function collectStandardPropertiesAndActions() { $cat_info = $this->getCatInfo(); //we can move this to the factory. if($cat_info['editable'] and !$this->appointment['event']->isAutoGenerated()) { $this->ctrl->clearParametersByClass('ilcalendarappointmentgui'); // $this->ctrl->setParameterByClass('ilcale...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function collectPropertiesAndActions()\n\t{\n\n\t}", "public function _getProperties() {}", "function properties()\n {\n }", "function assignProperties() {\n\t\t$hash = $this->__action;\n\t\tforeach ($hash as $key => $value) {\n\t\t\tif (!isset($value)) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif...
[ "0.8810592", "0.6445596", "0.644509", "0.6407183", "0.6366273", "0.62556255", "0.6227583", "0.6152637", "0.6152637", "0.6152637", "0.6152103", "0.61252975", "0.6114845", "0.6023548", "0.6023548", "0.6023548", "0.6023548", "0.6023548", "0.6023548", "0.5967956", "0.5967956", ...
0.70133436
1
Get readable ref ids
Получить читаемые идентификаторы ссылок
function getReadableRefIds($a_obj_id) { if (!isset($this->readable_ref_ids[$a_obj_id])) { $ref_ids = array(); foreach (ilObject::_getAllReferences($a_obj_id) as $ref_id) { if ($this->access->checkAccess("read", "", $ref_id)) { $ref_ids[] = $ref_id; } } $this->readable_ref_ids[$a_obj...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getReferenceIdsList(){\n return $this->_get(2);\n }", "public function getReferences();", "public function getReferencesList(){\n return $this->_get(1);\n }", "public function getIds();", "public function getIds();", "public function getDefinedObjectIds() {}", "public func...
[ "0.7446031", "0.6592448", "0.65029806", "0.6434908", "0.6434908", "0.64225173", "0.64218223", "0.64218223", "0.634521", "0.63354915", "0.6313947", "0.6222172", "0.621776", "0.6198486", "0.61848336", "0.618409", "0.61287004", "0.6108813", "0.6063347", "0.60613656", "0.60613656...
0.7715353
0
Download files from an appointment ( Modals )
Скачать файлы из встречи (Модалки)
function downloadFiles() { $appointment = $this->appointment; //calendar in the sidebar (marginal calendar) if(empty($appointment)) { $entry_id = (int)$_GET['app_id']; $entry = new ilCalendarEntry($entry_id); //if the entry exists if($entry->getStart()) { $appointment = array( "event" ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function downloadFile();", "public function download()\n\t{\n\t\tR::selectDatabase('oxid');\n\t\t$files = $this->getFilesByName(Flight::request()->query->file);\n\t\tif (empty($files)) $this->redirect('/');\n\t\t$file = reset($files);\n\t\t$dwnloadDir = substr($file['OXSTOREHASH'], 0, 2);\n\t\t$dwnloadFil...
[ "0.6597378", "0.65054774", "0.64853954", "0.6481185", "0.64392763", "0.6373567", "0.63659817", "0.6301281", "0.6253963", "0.6248563", "0.6192465", "0.61775964", "0.6139654", "0.6127384", "0.60666096", "0.6053498", "0.60405105", "0.60267556", "0.6007248", "0.59849405", "0.5981...
0.7904505
0
Get the total results count.
Получите общее количество результатов.
public function getTotalResults() { return isset($this['info']['results']) ? (int) $this['info']['results'] : 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTotalResults() : int\n {\n return $this->totalResults;\n }", "public function totalResults()\n {\n\t\treturn (int) $this->totalResultsReturned;\n }", "public function getTotalResults(): int\n {\n return $this->totalResults;\n }", "public function getTotalNum...
[ "0.8893402", "0.8884857", "0.8872842", "0.87649435", "0.8741128", "0.8674973", "0.86277914", "0.8570707", "0.8570707", "0.8527656", "0.847599", "0.8427657", "0.8361371", "0.83166695", "0.82680714", "0.8250403", "0.8212007", "0.82115483", "0.81814116", "0.81425965", "0.8130029...
0.8944239
0
Returns the raw http request response status string.
Возвращает сырую строку статуса ответа http-запроса.
public function getRawStatus() { return (isset($this->headers) && isset($this->headers[0])) ? $this->headers[0] : ''; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getStatus() {\n\t\treturn http_response_code();\n\t}", "protected function httpStatusLine()\r\n {\r\n return sprintf('HTTP/%s %s', $this->protocol_version, $this->status);\r\n }", "public function getResponseStatus()\n\t\t{\n\t\t\treturn $this->getHeader( \"status\" );\n\t\t...
[ "0.747659", "0.7338915", "0.72885865", "0.7229605", "0.72246015", "0.7130166", "0.7130166", "0.70649326", "0.7020941", "0.70006806", "0.6997883", "0.6986414", "0.69494677", "0.6917115", "0.6915716", "0.68983614", "0.6888168", "0.68615156", "0.68483233", "0.68483233", "0.68483...
0.7926654
0
InviteHistoryHandler::buildConditionQuery() To set sql query condition
InviteHistoryHandler::buildConditionQuery() Для установки условия sql-запроса
public function buildConditionQuery() { $this->sql_condition = ' user_id='.$this->CFG['user']['user_id']; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function setConditions() {\r\n if( count($this->sqlConditions) ) {\r\n $this->sql .= ' WHERE ' . $this->sqlStrConditions;\r\n }\r\n }", "protected function buildQuery()\n\t{\n\t\t$this->query = count($this->conditions) ? 'WHERE ' . implode(' AND ', $this->conditions) : '';\n...
[ "0.68864834", "0.68085957", "0.680683", "0.6734019", "0.6692721", "0.6644008", "0.6426997", "0.63803226", "0.6374544", "0.6348217", "0.62887436", "0.62869596", "0.6280701", "0.62404245", "0.6223", "0.62116224", "0.62072766", "0.6181086", "0.61724585", "0.61554337", "0.6152544...
0.80201805
0
InviteHistoryHandler::displayHistory() To set display values
InviteHistoryHandler::displayHistory() Для установки значений отображения
public function displayHistory() { $data_arr = array(); $inc = 0; while($row = $this->fetchResultRecord()) { $uDetails = $this->isMemberJoined($row['email']); $statusClass = ''; $status = $this->LANG['invitation_history_email_status_not_joined']; if ($uDetails) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show(history $history)\n {\n //\n }", "public function actionHistory()\n {\n $model= User::findOne(['id' => Yii::$app->user->identity->getId()]);\n $orders = Order::find()->where(['id_user' => $model->id])->with('orderProds')->orderBy('date DESC')->all();\n re...
[ "0.66208935", "0.6466929", "0.6424235", "0.6414146", "0.6334227", "0.632705", "0.63133687", "0.6247761", "0.61642486", "0.6122847", "0.61162496", "0.6106598", "0.6073928", "0.6055157", "0.5997709", "0.59951407", "0.59410864", "0.5932784", "0.5884896", "0.5867076", "0.5835536"...
0.7041204
0
InviteHistoryHandler::removeInvitation() Remove the selected id values from the users invitation table
InviteHistoryHandler::removeInvitation() Удалить выбранные значения id из таблицы приглашений пользователей
public function removeInvitation($id = 0) { $sql = 'DELETE FROM '.$this->CFG['db']['tbl']['users_invitation']. ' WHERE invitation_id='.$this->dbObj->Param($id); $stmt = $this->dbObj->Prepare($sql); $rs = $this->dbObj->Execute($stmt, array($id)); if (!$rs) trigger_db_error($this->dbObj);...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function delete_invitation($invitation_id){\n if ($stmt = $this->connection->prepare('DELETE FROM device_invitations WHERE id = ?')) {\n $stmt->bind_param('i', $invitation_id);\n $status = $stmt->execute();\n $stmt->close();\n if($status === false){\n ...
[ "0.63812023", "0.63320655", "0.63320655", "0.61196965", "0.61079216", "0.6080901", "0.6058572", "0.5993449", "0.59723175", "0.5952885", "0.5831872", "0.58262736", "0.5737469", "0.5592862", "0.5579184", "0.5575338", "0.55662894", "0.555556", "0.5549032", "0.5542388", "0.553965...
0.7160969
0
returns developer if in db, or adds and returns it if it isn't
возвращает разработчика, если он есть в базе данных, или добавляет и возвращает его, если его нет
function getOrAddDeveloper($gbDeveloper) { // get developer from db $developer = $this->getDeveloperByGBID($gbDeveloper->id); // if developer isn't in db if($developer == null) { // developer was not found, get from Giant Bomb $this->load->model('Gian...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function addDeveloper($developer)\n {\n $data = array(\n 'GBID' => $developer->id,\n 'Name' => $developer->name,\n 'API_Detail' => $developer->api_detail_url,\n 'GBLink' => $developer->site_detail_url,\n 'Image' => is_object($developer->image) ? $develop...
[ "0.6750118", "0.61055195", "0.60061026", "0.5925797", "0.5872146", "0.5800288", "0.5493585", "0.5472753", "0.5423313", "0.54073495", "0.5304799", "0.53044593", "0.5299693", "0.5227754", "0.51487607", "0.50664824", "0.50611484", "0.5041275", "0.5038148", "0.49967074", "0.49835...
0.7040459
0
add developer to database
Добавить разработчика в базу данных
function addDeveloper($developer) { $data = array( 'GBID' => $developer->id, 'Name' => $developer->name, 'API_Detail' => $developer->api_detail_url, 'GBLink' => $developer->site_detail_url, 'Image' => is_object($developer->image) ? $developer->image->s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function registerToDatabase() {\n\t\t\tif ($this->id != null && $this->id != 0) return false;\n\n\t\t\t$this->conn = connectToDb(\"db_avalanche_store\");\n\n\t\t\t$add_query = \"INSERT INTO tbl_dev_info \n\t\t\t(user_id, \n\t\t\t dev_name,\t\n\t\t\t dev_desc) \n\t\t\tVALUES \n\t\t\t('$this->dev_id', \n\t\t\t '$thi...
[ "0.60217", "0.5969905", "0.58614874", "0.57840854", "0.5682054", "0.5603042", "0.55695295", "0.5543228", "0.54279214", "0.5363747", "0.53559154", "0.5355493", "0.5354834", "0.5351193", "0.5330794", "0.53240174", "0.5309294", "0.5276008", "0.527083", "0.5256675", "0.52309", ...
0.7022394
0
Constructor. Initializes a new instance of the Control class.
Конструктор. Инициализирует новый экземпляр класса Control.
function Control($name = "") { $this->Name = $name; $this->_state = WEB_CONTROL_CONSTRUCTED; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __construct()\n\t{\n\t\tparent::__construct();\n\t\t$this->setAdapter(new TJuiControlAdapter($this));\n\t}", "public function __construct()\n\t{\n\t\tparent::__construct();\n\t\t$this->setAdapter(new TActiveControlAdapter($this));\n\t}", "public function __construct()\n\t{\n\t\tparent::__constr...
[ "0.73567444", "0.6724498", "0.6724498", "0.66757464", "0.65305096", "0.65044117", "0.64593035", "0.6362783", "0.6345811", "0.6306116", "0.61643845", "0.61347216", "0.6054457", "0.60443056", "0.6039964", "0.6039964", "0.6039964", "0.6031953", "0.59967244", "0.59701306", "0.593...
0.71430963
1
Method Removes the specified Control object from the controls collection.
Метод удаляет указанный объект Control из коллекции controls.
function RemoveControl(&$object) { //echo 'here'; if (!is_object($object) || !is_object($this->FindControl($object->Name))) return; unset($object->Parent); unset($this->Controls[$object->Name]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function remove_control($id)\n {\n }", "public function deleteControl($name);", "public function destroy(backupcontrols $backupcontrols)\n {\n //\n }", "public function remove(LabelTemplate $labelTemplate);", "public function remove()\n {\n $arg = func_get_args()...
[ "0.6533316", "0.62502456", "0.55944717", "0.5424647", "0.5274031", "0.52098316", "0.51489204", "0.50818485", "0.5077212", "0.50703186", "0.50672567", "0.505403", "0.505188", "0.5017671", "0.5017671", "0.5017671", "0.5017671", "0.49994475", "0.49988776", "0.4950321", "0.491549...
0.75417274
0
Method finds control by its name
Метод находит контроль по его имени
function &FindControl($controlName) { if (isset($this->Controls[$controlName])) return $this->Controls[$controlName]; if ($this->HasControls()) { $keys = array_keys($this->Controls); for ($i = 0; $i < count($this->Controls); $i++) { @$control = &$this->Con...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getControl($name);", "public function get_control($name)\n\t{\n\t\tif (!array_key_exists($name, $this->controls)) throw new Exception(\"Control '$name' not found\");\n\t\treturn $this->controls[$name];\n\t}", "public function checkControlExists($name);", "public function testFindSimpleControl...
[ "0.7661887", "0.70866567", "0.67597723", "0.6366229", "0.6070919", "0.6061565", "0.5963723", "0.56296945", "0.5626426", "0.56045246", "0.55911255", "0.5561188", "0.54828167", "0.5472097", "0.54472244", "0.54472244", "0.5339303", "0.53190047", "0.53190047", "0.53190047", "0.52...
0.7391364
1
Method checks if Instance has controls
Метод проверяет, имеет ли экземпляр элементы управления
function HasControls() { return (count($this->Controls) > 0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function checkControlExists($name);", "static function hasCurrent() {\n\t\treturn is_object(self::$_ctrl);\n\t}", "public function controls()\n {\n }", "public static function checkPreconditions() {\n /**\n * @var $ilCtrl ilCtrl\n * @var $ilPluginAdmin ilPluginAdmi...
[ "0.66844016", "0.6625151", "0.623702", "0.61716133", "0.61647433", "0.6073021", "0.6056189", "0.60411435", "0.60091525", "0.59959954", "0.598452", "0.5909895", "0.5878007", "0.58705086", "0.584485", "0.58116984", "0.5809447", "0.5786876", "0.57811844", "0.5714378", "0.5713354...
0.7874779
0
Method Processes recursive initialization of control and all of it's children.
Метод осуществляет рекурсивную инициализацию управления и всех его потомков.
function initRecursive() { if ($this->HasControls()) { $keys = array_keys($this->Controls); $count = count($this->Controls); for ($i = 0; $i < $count; $i++) { @$control = &$this->Controls[$keys[$i]]; @$control->Page = &$this->Page; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function initChildrenRecursive() {\n $this->initChildControls();\n if ($this->HasControls()) {\n $keys = array_keys($this->Controls);\n $count = count($this->Controls);\n for ($i = 0; $i < $count; $i++) {\n @$control = &$this->Controls[$keys[$i]];\n...
[ "0.81341165", "0.73886466", "0.70972496", "0.70422703", "0.6903976", "0.68299353", "0.66472375", "0.60718066", "0.60718066", "0.6004551", "0.59578294", "0.5954055", "0.5934141", "0.5878264", "0.5873288", "0.5860215", "0.58510524", "0.58357114", "0.5807293", "0.5804017", "0.57...
0.7962084
1
Method Processes recursive load of control and all of it's children.
Метод обрабатывает рекурсивную загрузку управления и всех его потомков.
function loadRecursive() { $this->ControlOnLoad(); if ($this->HasControls()) { $keys = array_keys($this->Controls); $count = count($this->Controls); for ($i = 0; $i < $count ; $i++) { @$control = &$this->Controls[$keys[$i]]; $control->l...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function loadedChildren()\r\n {\r\n //Calls childrens loaded recursively\r\n reset($this->components->items);\r\n while (list($k,$v)=each($this->components->items))\r\n {\r\n $v->loaded();\r\n }\r\n }", ...
[ "0.69315404", "0.6532891", "0.64469945", "0.6173224", "0.609219", "0.60787094", "0.60412425", "0.5981586", "0.5907624", "0.5798729", "0.5756233", "0.5732483", "0.5731456", "0.5598184", "0.55416304", "0.55388695", "0.5474632", "0.54571885", "0.5452959", "0.5384407", "0.5330753...
0.78501093
0
Method Processes recursive unload of control and all of it's children.
Метод обрабатывает рекурсивную разгрузку контроля и всех его потомков.
function unloadRecursive() { if ($this->HasControls()) { $keys = array_keys($this->Controls); for ($i = 0; $i < count($this->Controls); $i++) { @$control = &$this->Controls[$keys[$i]]; if(method_exists($control, "unloadRecursive")){ $co...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function loadRecursive() {\n $this->ControlOnLoad();\n if ($this->HasControls()) {\n $keys = array_keys($this->Controls);\n $count = count($this->Controls);\n for ($i = 0; $i < $count ; $i++) {\n @$control = &$this->Controls[$keys[$i]];\n ...
[ "0.5949833", "0.58542114", "0.5674282", "0.56486", "0.552239", "0.546008", "0.54356617", "0.54264224", "0.53199714", "0.5303473", "0.52730656", "0.5243749", "0.5230473", "0.52192104", "0.52123576", "0.5171038", "0.5169273", "0.51460487", "0.51393014", "0.5067857", "0.5052398"...
0.797926
0
Notifies server controls that use compositionbased implementation to create any child controls they contain in preparation for posting back or rendering.
Уведомляет серверные управления, которые используют реализацию на основе композиции, о создании любых дочерних элементов, которые они содержат, в подготовке к отправке обратно или отрисовке.
function CreateChildControls() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function InitChildControls() {\n }", "function RenderChildren() {\n if ($this->HasControls()) {\n foreach($this->Controls as $control) {\n $control->Render();\n }\n }\n }", "function CreateChildControls()\n {\n if ($this->debug_mode)\n ...
[ "0.6940392", "0.68212813", "0.6582931", "0.64314353", "0.63754994", "0.6372557", "0.627751", "0.61483157", "0.6148234", "0.6125975", "0.60619944", "0.59553146", "0.5952499", "0.59170574", "0.5850471", "0.58358806", "0.58178544", "0.5813324", "0.57976645", "0.5747824", "0.5731...
0.7211219
0
Handles the OnUnload event
Обрабатывает событие OnUnload
function ControlOnUnload() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function onUnload($param) {\r\n\t\tPrado::trace(\"OnUnload\",'System.Web.Services.TPageService');\r\n\t\t$this->raiseEvent('OnUnload',$this,$param);\r\n\t}", "public function unload()\n {\n // cannot unload started sessions\n if ($this->isStarted()) {\n return;\n }\n ...
[ "0.7558383", "0.6633253", "0.6398019", "0.63769275", "0.60731906", "0.60731906", "0.59652287", "0.5948548", "0.5940119", "0.5842744", "0.5822535", "0.5793563", "0.5744869", "0.5725611", "0.5725611", "0.56765044", "0.5647521", "0.5647521", "0.56395996", "0.56166637", "0.561666...
0.8091386
0
Validate the input XML.
Проверьте входной XML.
private function validate_xml($xml) { // Validate the inserted XML libxml_use_internal_errors(true); $doc = simplexml_load_string($xml); $xml_lines = explode("\n", $xml); if ($doc === FALSE) { $errors = libxml_get_errors(); $exception = ""; foreach ($errors as $e...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function validate()\n {\n $this->validateNode($this->tree);\n }", "public function validate($input) {\r\n $xml = parent::validate($input);\r\n \r\n if ($xml) {\r\n\r\n // very simple validation - just search for customers inside\r\n if (!count($xml->...
[ "0.7008044", "0.68345875", "0.67447317", "0.66803414", "0.65806305", "0.6577348", "0.64889973", "0.64641654", "0.6355312", "0.6295257", "0.62886715", "0.6226436", "0.6196032", "0.6191542", "0.6052681", "0.60203004", "0.60157335", "0.6010046", "0.5995027", "0.5990739", "0.5960...
0.7067662
0
/ Get FieldTypes that aren't supported by DashCols
/ Получить FieldTypes, которые не поддерживаются DashCols
public function getUnsupportedFieldTypes() { return array( 'Rich Text', 'Table', 'Matrix' ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_field_types()\n {\n }", "public static function getFieldTypes() {\n\t\treturn self::$FIELD_TYPES;\n\t}", "public static function getFieldTypes() {\n\t\treturn self::$FIELD_TYPES;\n\t}", "public static function getFieldTypes() {\n\t\treturn self::$FIELD_TYPES;\n\t}", "public function getC...
[ "0.7281465", "0.6923287", "0.6923287", "0.6923287", "0.6826621", "0.6812844", "0.67540234", "0.6718503", "0.668403", "0.6551885", "0.6538861", "0.6472996", "0.64675003", "0.6444275", "0.640267", "0.6374321", "0.6368725", "0.63615316", "0.6361297", "0.6358128", "0.63580394", ...
0.74431455
0
/ Get custom field by handle
/ Получить пользовательское поле по обработке
public function getCustomFieldByHandle( $handle ) { return isset( $this->_customFields[ $handle ] ) ? $this->_customFields[ $handle ] : false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_field(/* .... */)\n {\n return $this->_field;\n }", "function getFieldValue($field);", "public function getField($field_name);", "public function fetchField();", "public abstract function FetchField();", "public function getField();", "public function getField();", "p...
[ "0.6743048", "0.66129315", "0.658516", "0.6584583", "0.6552164", "0.6547368", "0.6547368", "0.6547368", "0.64589196", "0.64382464", "0.6419736", "0.64177483", "0.6411223", "0.63991964", "0.6340991", "0.6310624", "0.62988573", "0.62436473", "0.62436473", "0.62366986", "0.62221...
0.7060629
0
/ Get all sortable fields
/ Получить все поля, которые можно сортировать
public function getSortableFields() { $sortableAttributeTypes = array( AttributeType::Number, AttributeType::DateTime, AttributeType::String, AttributeType::Bool, ); $sortableFields = $this->getMetaFields(); $customFields = $this->ge...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function sortFields()\n {\n return property_exists($this, 'sortable') ? $this->sortable : [];\n }", "protected function get_sortable_columns()\n {\n }", "protected function get_sortable_columns()\n {\n }", "protected function get_sortable_columns()\n {\n...
[ "0.795977", "0.6703822", "0.6703822", "0.670277", "0.65621424", "0.65620124", "0.6542344", "0.6506944", "0.6506915", "0.65033907", "0.6495714", "0.6448686", "0.6435488", "0.64239335", "0.64187163", "0.6380019", "0.6378172", "0.6358737", "0.63552016", "0.63318133", "0.63232094...
0.75853676
1
Funtion to get the orientation and size (width & height) of source and target image
Функция для получения ориентации и размера (ширина & высота) исходного и целевого изображений
private function _calculate_size($source = array(), $target = array()) { $return = $target; switch($target['orientation']) { case 'portrait' : if($source['orientation'] == 'portrait') { if($source['height'] > $target['height']) { $test_width = $source['width'] / ($source['height'] / $t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function wp_image_matches_ratio($source_width, $source_height, $target_width, $target_height)\n {\n }", "function get_intermediate_image_sizes()\n {\n }", "public function _get_img_info()\n {\n if ( ! file_exists($this->source_file) || ! filesize($this->source_file)) {\n return...
[ "0.65955704", "0.6293387", "0.62654376", "0.60870034", "0.60772336", "0.60467917", "0.6022207", "0.59446186", "0.5915781", "0.5891282", "0.58888495", "0.5829087", "0.5817982", "0.580959", "0.5809302", "0.57964665", "0.5788052", "0.5767061", "0.5764752", "0.5748477", "0.573905...
0.72320074
0
Close file db connection
Закрыть соединение с файлом db
private function closeConnection(){ $this->file_db = null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function close()\n {\n $this->db = null;\n }", "function closeDbConnection() {\n global $objDb;\n\n if (isset($objDb)) {\n @$objDb->Close();\n }\n }", "public function close(){\r\n\t\tself::$dbh = null;\r\n\t\tself::$db = null;\r\n\t}", "private function...
[ "0.74138427", "0.7256991", "0.7221398", "0.7221372", "0.71733254", "0.7165144", "0.7143436", "0.7102166", "0.7099516", "0.7094162", "0.7094162", "0.7090901", "0.70108014", "0.69957393", "0.6973319", "0.6968854", "0.6959267", "0.6924283", "0.6920764", "0.6920764", "0.6912208",...
0.84680706
0
end mombo_color function Title Color
end mombo_color функция Заголовок Цвет
public function mombo_main_headings_color() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function color()\n {\n }", "function header_textcolor()\n {\n }", "public function colour();", "public static function title_style() {\n\t\techo self::get_title_style();\n\t}", "function wpvideocoach_get_introduction_title_color()\r\n{\r\n\tglobal $wpvideocoach_introduction_title_color;...
[ "0.7096249", "0.70107734", "0.6979684", "0.66814655", "0.6673122", "0.65584165", "0.65584165", "0.65584165", "0.65584165", "0.6505964", "0.6499117", "0.6499117", "0.64491725", "0.642134", "0.6413471", "0.6411118", "0.6364862", "0.63640344", "0.63510656", "0.61426854", "0.6141...
0.7443092
0
Get data release id.
Получить идентификатор выпуска данных.
public function getDataReleaseId(): string { return $this->dataReleaseId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getReleaseId()\n {\n return $this->releaseId;\n }", "public function getReleaseId()\n {\n return $this->releaseId;\n }", "public function getOpenLibraryId()\n\t\t{\n\t\t\tif(is_null($this->data))\n\t\t\t\treturn null;\n\t\t\t\n\t\t\treturn $this->data['id'];\n\t\t}", ...
[ "0.7695248", "0.7695248", "0.64955163", "0.6300455", "0.62680334", "0.61314946", "0.60505235", "0.60342413", "0.6019357", "0.60134554", "0.6009943", "0.6007542", "0.59380174", "0.59291166", "0.59287125", "0.591493", "0.591493", "0.5857901", "0.5844902", "0.58355254", "0.58354...
0.8414799
0
Print a filter based on the given $templateFile which points to a Twig template
Выведите фильтр на основе заданного $templateFile, который указывает на шаблон Twig
public function printFilter($templateFile= 'filterInTable.tpl'){ $template = Template::getTwig()->loadTemplate($templateFile); return $template->render( array( 'name' => $this->name, 'values' => $this->printValues() ) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function twig_raw_filter($string)\n{\n return $string;\n}", "public function renderFile(Environment $twig): string;", "private function filterPHP($file) {\n ob_start();\n\n // The variable $template can be used in the script as $this is used here\n $template = $this;\n require $file;\n\n...
[ "0.6113867", "0.6056232", "0.5937417", "0.5924085", "0.59157926", "0.57483596", "0.56511116", "0.56497365", "0.5554979", "0.55074346", "0.5492174", "0.5479007", "0.53762245", "0.5374541", "0.5355738", "0.5327672", "0.5319593", "0.53074265", "0.530409", "0.529241", "0.52806795...
0.76564646
0
Create where statement by the given value which depends on the implementor class. It can be a valueId, or the given value.
Создайте условие where на основе заданного значения, которое зависит от класса реализатора. Оно может быть значением valueId или заданным значением.
public function createWhere($value) { return $this->createWhereByValue( $this->findValueById($valueId) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function createWhereByValue($value){\n $filterDbOfValue = $value->getFilterDB();\n if(is_null($filterDbOfValue)){\n $filterDbOfValue = $this->id .\"='\".$value->getId().\"'\";\n }\n return $filterDbOfValue;\n }", "public function createWhere($valueId){\n r...
[ "0.7251644", "0.6701346", "0.6478626", "0.644625", "0.64044714", "0.6368244", "0.6313666", "0.6309462", "0.6287369", "0.62851363", "0.62437606", "0.6237217", "0.62060475", "0.61912864", "0.61772203", "0.6133428", "0.6099568", "0.6094826", "0.6043162", "0.60377264", "0.6023463...
0.73254764
0
Action to allow a user to add a new expense.
Действие для разрешения пользователю добавить новый расход.
public function add() { $entry = $this->getEntryToAdd('clov_expense'); // Default to the logged-in user. $loggedInUser = new User; $entry->setAttribute('clov_expense_payer', $loggedInUser->getUserID()); // If the user got here from a project page, pre-fill the project // attribute. Loader::helper('...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addExpenseAction()\n\t{\n\t\t$expense = new Expense($_POST);\n\t\t\n\t\tif ($expense->addExpense()) {\n\t\t\tFlash::addMessage('Add expense successful!');\n\t\t\t\n\t\t\t$this->redirect('/profile/expenseForm');\n\t\t} else {\n\t\t\tFlash::addMessage('Add expense unsuccessful, please try again!', Fl...
[ "0.8273928", "0.76954234", "0.70365936", "0.6929456", "0.68369997", "0.6636071", "0.6512573", "0.6475286", "0.6455503", "0.6442551", "0.64412916", "0.6402608", "0.6362004", "0.63363075", "0.6334624", "0.6318255", "0.63086754", "0.6304994", "0.62851876", "0.6274362", "0.625846...
0.77033734
1
Determine if the client has exceeded their rate limit.
Определите, превысил ли клиент их лимит скорости.
protected function exceededRateLimit() { return $this->cache->get($this->config['keys']['requests']) > $this->config['limit']; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function isRateLimitReached()\n {\n if (!$this->getRateLimit()) {\n throw new InstagramThrottleException('400 Bad Request : You have reached Instagram API Rate Limit', 400);\n }\n }", "public function isLimitExceeded();", "public function isAPICallLimitErr() {\n //...
[ "0.76984394", "0.7511876", "0.7430753", "0.7338698", "0.705702", "0.70023066", "0.6976481", "0.6953007", "0.6891207", "0.6840113", "0.6775359", "0.6755924", "0.6675948", "0.66168153", "0.6584276", "0.6497298", "0.6490639", "0.6482962", "0.64381623", "0.6385098", "0.6330897", ...
0.83757097
0
Determine if rate limiting is disabled.
Определите, отключено ли ограничение скорости.
protected function rateLimitingDisabled() { return $this->config['limit'] == 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isRateLimitEnabled(): bool\n {\n return $this->rateLimitEnabled === true;\n }", "protected function exceededRateLimit()\n {\n return $this->cache->get($this->config['keys']['requests']) > $this->config['limit'];\n }", "public function isDisabled() {}", "public functi...
[ "0.80362725", "0.6431033", "0.6367116", "0.6316369", "0.6316369", "0.6316369", "0.62642473", "0.6238752", "0.62275565", "0.62133664", "0.61785895", "0.6177483", "0.611829", "0.6115391", "0.60724354", "0.60677505", "0.6042399", "0.602266", "0.60194993", "0.60177106", "0.599801...
0.85676414
0
$status = Post::where('id', $post_id)>pbpgs()>where('id', $pbpg_id)>pivot('status');
$status = Post::where('id', $post_id)>pbpgs()>where('id', $pbpg_id)>pivot('status');
public static function check($post_id, $pbpg_id) { $post = Post::where('id', $post_id)->first(); $status = $post->pbpgs->where('id', $pbpg_id)->first()->pivot->status; return $status; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function blue()\n {\n return $this->users()->wherePivot('team','modry');\n }", "public function bimbingan($status = null)\n {\n $bimbingan = $this->belongsToMany(\n 'PMW\\Models\\Proposal',\n 'bimbingan',\n 'id_pengguna',\n 'id_tim')\n ...
[ "0.5501788", "0.52438015", "0.5222567", "0.52159816", "0.51492894", "0.5148914", "0.5147015", "0.5012503", "0.4995222", "0.49465474", "0.4939952", "0.49022", "0.48716477", "0.48268053", "0.482571", "0.4820807", "0.48160303", "0.47997707", "0.4796085", "0.47931153", "0.4780666...
0.7210851
0
Test the Str::words method.
Проверьте метод Str::words.
public function testStringCanBeLimitedByWords() { $this->assertEquals('Taylor...', Str::words('Taylor Otwell', 1)); $this->assertEquals('Taylor___', Str::words('Taylor Otwell', 1, '___')); $this->assertEquals('Taylor Otwell', Str::words('Taylor Otwell', 3)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testWords()\n {\n $str = new Str($this->testString);\n $result = $str->words();\n $this->assertTrue(is_array($result));\n $this->assertTrue($result[0] === 'The');\n }", "public function testWordsSplitByLetter()\n {\n $str = new Str($this->testString);\n...
[ "0.89038986", "0.7695834", "0.73315555", "0.6994336", "0.68159896", "0.6677628", "0.65418047", "0.63699687", "0.6306306", "0.62634677", "0.6254097", "0.6239441", "0.6131041", "0.6090806", "0.6044039", "0.6042382", "0.6040891", "0.6029683", "0.60265565", "0.6017956", "0.598955...
0.774362
1
Sets value of 'ShipmentReceiptDate' property
Устанавливает значение свойства 'ShipmentReceiptDate'
public function setShipmentReceiptDate($value) { return $this->set(self::SHIPMENTRECEIPTDATE, $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function _setShipmentDate($shipmentDate) {\n\t\t$this->_shipmentDate = $shipmentDate;\n\t}", "public function setShipmentDate($shipmentDate) {\n\t\t$this->_setShipmentDate($shipmentDate);\n\t\treturn $this;\n\t}", "public function setTransactionDate($value) {\n\t\tself::$_transactionDate = $value;\n\t}"...
[ "0.74200964", "0.6654912", "0.6488629", "0.6466877", "0.6368711", "0.6300263", "0.6219233", "0.6219233", "0.621476", "0.6195307", "0.61938936", "0.61670035", "0.6157223", "0.61491805", "0.6140335", "0.61354905", "0.6111516", "0.6048797", "0.6037445", "0.601876", "0.60152745",...
0.8229721
0