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
Get a descriptive name for this task (shown to admins).
Получите описательное имя для этой задачи (показывается администраторам).
public function get_name() { return \enrol_oes_string::display('sync_taskname'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_task_name()\n\t{\n\t\treturn $this->task_name;\n\t}", "public function get_task_name()\n\t{\n\t\treturn $this->task_name;\n\t}", "public function getTaskName() : string\n {\n return $this->taskName;\n }", "public function getTaskName() : string {\n return $this->taskNa...
[ "0.8249345", "0.8249345", "0.8241932", "0.82180387", "0.81940645", "0.8153734", "0.8105926", "0.79118145", "0.7903746", "0.75865936", "0.7561378", "0.7529209", "0.74503607", "0.7356569", "0.7314809", "0.72717917", "0.7208717", "0.71992356", "0.7166518", "0.7154664", "0.713355...
0.8317246
0
Returns all attachment ids from campaign post content.
Возвращает все идентификаторы вложений из содержимого кампании.
function get_campaign_attachments( $post_ids ) { global $wpdb; if ( empty( $post_ids ) ) { return []; } $sql = ' SELECT id FROM %1$s WHERE post_type = \'attachment\' AND post_parent IN (' . generate_list_placeholders( $post_ids, 2 ) . ')'; $prepared_sql = $wpdb->prepare( $sql, // phpcs:ignore Wor...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_campaign_attachments( $post_ids ) {\n\n\tglobal $wpdb;\n\n\t// phpcs:disable\n\t$sql = 'SELECT ID, guid, post_parent FROM %1$s WHERE post_type = \\'attachment\\'';\n\t$prepared_sql = $wpdb->prepare(\n\t\t$sql,\n\t\t[\n\t\t\t$wpdb->posts,\n\t\t] );\n\t$attachments = $wpdb->get_results( $prepared_sql, O...
[ "0.7554445", "0.6689919", "0.6390449", "0.62081563", "0.61456585", "0.6078144", "0.603941", "0.60375905", "0.5978405", "0.5978405", "0.59721494", "0.5916814", "0.5877942", "0.58172756", "0.5813561", "0.5813561", "0.57794034", "0.57610387", "0.5757832", "0.57562226", "0.573355...
0.7345611
1
Quick and dirty testing for setting grades.
Быстрое и грубое тестирование установки оценок.
public function setGradeTest($grade) { array_push($this->grades, intval($grade)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function supports_mygrades() {\n return true;\n }", "public function test_update_grade_item() {\n\n $testarray = $this->csv_load($this->oktext);\n $testobject = new phpunit_gradeimport_csv_load_data();\n\n // We're not using scales so no to this option.\n $verb...
[ "0.65037787", "0.64960814", "0.62365294", "0.61997145", "0.6183774", "0.6165204", "0.6148016", "0.6141794", "0.6090361", "0.60559404", "0.59892577", "0.5920316", "0.59165", "0.5895564", "0.5872203", "0.586496", "0.58520716", "0.58312577", "0.5775063", "0.5760082", "0.5728543"...
0.72267103
0
Additional columns to be loaded for datatables.
Дополнительные столбцы для загрузки в datatables.
public static function laratablesAdditionalColumns() { return ['status', 'id_card_verified']; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function laratablesAdditionalColumns()\n\t\t{\n\t\t\treturn ['coa_name'];\n\t\t}", "protected function loadColumns(){\n\t\t\t$this->columns = array_diff(\n\t\t\t\tarray_keys(get_class_vars($this->class)),\n\t\t\t\t$this->getIgnoreAttributes()\n\t\t\t);\n\t\t}", "abstract public function loadColum...
[ "0.71819973", "0.7153961", "0.6938912", "0.6901446", "0.6901446", "0.6901446", "0.6901446", "0.6899875", "0.6899875", "0.6826075", "0.67785925", "0.6743412", "0.6719635", "0.66889673", "0.66668034", "0.6617515", "0.6600445", "0.65730035", "0.65610987", "0.6545175", "0.6536961...
0.7305986
0
Get the value of idComment
Получить значение idComment
public function getIdComment() { return $this->idComment; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getId()\n {\n return $this->_commentId;\n }", "public function getCommentId() {\n\t\treturn ($this->commentId);\n\t}", "public function getCommentId()\n {\n return $this->comment_id;\n }", "public function getCommentID()\n {\n return $this->commentID;\n ...
[ "0.77629614", "0.7647409", "0.7621724", "0.75461257", "0.74374074", "0.7299962", "0.72960067", "0.7252211", "0.7140838", "0.7090016", "0.69937277", "0.69281614", "0.68813413", "0.6874812", "0.67452264", "0.67139757", "0.6666918", "0.6629133", "0.6615956", "0.66136724", "0.659...
0.78875077
1
Get the value of commentTitle
Получить значение commentTitle
public function getCommentTitle() { return $this->commentTitle; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function title() { \n $title = $this->content()->get('title');\n if($title != '') {\n return $title;\n } else {\n $title->value = $this->uid();\n return $title;\n }\n }", "public function getTitle()\n {\n if (!isset($this->_title)) {\n $this->_title = \"...
[ "0.7487197", "0.7468829", "0.74534893", "0.74098784", "0.72647816", "0.7253575", "0.72442836", "0.72433007", "0.7241647", "0.7202421", "0.71797794", "0.71767336", "0.7175112", "0.7175071", "0.7156923", "0.7148174", "0.7133329", "0.7130334", "0.71272916", "0.71272916", "0.7127...
0.8281304
0
Get the value of commentContent
Получить значение commentContent
public function getCommentContent() { return $this->commentContent; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCommentContent(): string {\n\t\treturn ($this->commentContent);\n\t}", "function get_content() {\n\t\treturn $this->get_data( 'comment_content' );\n\t}", "public function getCommentText() {\n\t\treturn $this->commentText;\n\t}", "public function getCommentText()\n {\n return...
[ "0.83538353", "0.8313828", "0.74351543", "0.7423645", "0.7409425", "0.73491067", "0.72722405", "0.72394246", "0.7126029", "0.7066186", "0.70327747", "0.69928706", "0.69481915", "0.69407284", "0.69407284", "0.69407284", "0.69407284", "0.69407284", "0.69407284", "0.69407284", "...
0.8370874
0
Get the value of idRecipe
Получить значение idRecipe
public function getIdRecipe() { return $this->idRecipe; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getIdRecipe() {\n return $this->id_recipe;\n }", "function getRecipe($id)\r\n {\r\n //define query\r\n $query = \"SELECT * FROM recipe\r\n WHERE recipe_id = :id\";\r\n\r\n //prepare statement\r\n $statement = $this->_db->prepare($query);\r...
[ "0.83640516", "0.7151916", "0.7017809", "0.68790793", "0.682439", "0.66365945", "0.6509934", "0.6475224", "0.6462162", "0.63958013", "0.62428695", "0.6203188", "0.6155964", "0.6151898", "0.6139722", "0.61279637", "0.61110395", "0.6106148", "0.6106148", "0.60986435", "0.609776...
0.8289109
1
Sets this collection to be immutable once and for all
Устанавливает эту коллекцию в неизменное состояние навсегда
public final function setImmutable() { $this->isImmutable = true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function immutable()\n {\n return new self($this->readers, $this->writers, true);\n }", "public function immutableCache()\n {\n return $this->addAction(Flag::immutableCache());\n }", "function setImmutable($immutable) {\n $this->immutable = $immutable;\n }", "protec...
[ "0.64550287", "0.6205345", "0.617174", "0.60920304", "0.5970816", "0.5839465", "0.5746966", "0.5707203", "0.5706575", "0.56980777", "0.5693463", "0.5689852", "0.56843716", "0.564376", "0.56021035", "0.55926687", "0.5567276", "0.554698", "0.554685", "0.5542179", "0.5527742", ...
0.71181655
0
Performs checks on restrictions before changing the value of this collection
Проверяет ограничения перед изменением значения этой коллекции
protected function checkRestrictionsBeforeChange() { if ($this->isImmutable) { throw new \BadMethodCallException('This collection is immutable.'); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function constrainOnly($flag);", "private function _applyEditableParam()\n {\n if ($this->editable) {\n // Limit the query to only the global sets the user has permission to edit\n $editableSetIds = Craft::$app->getGlobals()->getEditableSetIds();\n $this->subQuer...
[ "0.5725328", "0.5603723", "0.5603723", "0.55768776", "0.55684996", "0.53296727", "0.5323205", "0.528363", "0.5259653", "0.524178", "0.52088773", "0.5201181", "0.5184355", "0.5112135", "0.5105114", "0.5092856", "0.5088048", "0.50828505", "0.50538194", "0.50471437", "0.5037162"...
0.71002674
0
/ addCalenderData function is called taht time when user create new schedule there are four parameters in $_REQUEST like from_time, to_time, schedule , date_hidden
Функция addCalenderData вызывается в тот момент, когда пользователь создает новый расписание, там четыре параметра в $_REQUEST, как from_time, to_time, schedule, date_hidden
function addCalenderData(Request $request){ /* * from time means start time * to_time means end time * date_hidden means your selected schedule date * schedule either 0 ,1 or 2 * 1 means monday to friday * 2 means monday to saturday * 3 means daily ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function add_shedule(){\n\t\t\n\t\trequire_once(\"dbconnection.php\");\n\t\t$obj=new dbconnection();\n\t\t$con=$obj->getcon();\n\t\t\n\t\t\n\t\t$dbh=$obj->get_pod();\n\n\t\t$act_mode \t= mysqli_real_escape_string($con,$_POST['act_mode']);\n\t\t$cmbtype \t\t= mysqli_real_escape_string($con,$_POST['cmbtype']);\n\t\t...
[ "0.665284", "0.6614354", "0.65140843", "0.6470651", "0.6466253", "0.6435226", "0.6425836", "0.6293973", "0.62724364", "0.62689316", "0.6236893", "0.6214921", "0.6205331", "0.6174934", "0.6111102", "0.609358", "0.6072556", "0.59779507", "0.5975258", "0.5942163", "0.5918675", ...
0.70999044
0
/ calenderHolidayDel function is call that time when user mark schedule as a holiday or delete there are two parameters in $_REQUEST like date_hidden,schedule date_hiiden means selected schedule day schedule is either 1 or 2 1 means holiday and 2 means delete
Функция calenderHolidayDel вызывается в тот момент, когда пользователь помечает расписание как выходной день или удаляет его. В $_REQUEST есть два параметра, например, date_hidden и schedule. date_hidden означает выбранный день расписания. Расписание может быть либо 1, либо 2. 1 означает выходной день, а 2 означает уда...
function calenderHolidayDel(Request $request){ $id = Auth::user()->id; $date = $request->date_hidden; $action = $request->schedule; if($action==1){ CalendarHoliday::create(['user_id'=>$id, 'holiday_date'=>$date]); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function employee_holidays() {\n $this->data['title'] = \"Kelola Hari Libur\";\n $this->data['subtitle'] =\"Kelola Hari Libur\";\n $this->data['message'] = (validation_errors() ? validation_errors() : ($this->ion_auth->errors() ? $this->ion_auth->errors() : $this->session->flashdata...
[ "0.6365389", "0.5880762", "0.5845328", "0.58289045", "0.58289045", "0.5797461", "0.5789376", "0.5728371", "0.5726872", "0.5719753", "0.568778", "0.56652856", "0.5637293", "0.56364197", "0.5607723", "0.5591405", "0.5555638", "0.5546818", "0.5512482", "0.5468298", "0.5465086", ...
0.73122454
0
/ changeSchedule function is call when user change schedule time There are three parameters in $_REQUEST like start time,end time and today date
Функция changeSchedule вызывается, когда пользователь изменяет время расписания. В $_REQUEST есть три параметра: время начала, время окончания и сегодняшняя дата.
function changeSchedule(Request $request){ $id = Auth::user()->id; $from_time = $request->from_time; $to_time = $request->to_time; $today_date = date('Y-m-d'); /* * update end time using to_time variable * according to logged id */ ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateSchedule(Request $req)\n\t{\n\t\t$selectedDays = explode(\" - \", $req->days);\n\t\t$date_from = strtotime($selectedDays[0]); // Convert date to a UNIX timestamp\n\t\t$date_to = strtotime($selectedDays[1]); // Convert date to a UNIX timestamp\n\t\t$days = array();\n\t\tfor ($i = $date_from; $...
[ "0.66659254", "0.65835875", "0.65764564", "0.64076054", "0.63796544", "0.63662434", "0.63432854", "0.6336525", "0.6336525", "0.6336525", "0.6312242", "0.6295488", "0.62710726", "0.626871", "0.6225493", "0.62149525", "0.61881405", "0.6151509", "0.6139939", "0.6108373", "0.6102...
0.7545806
0
Returns the id of the payment method configuration.
Возвращает идентификатор конфигурации метода оплаты.
public function getPaymentMethodConfigurationId() { return $this->_paymentMethodConfigurationId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPaymentMethodId();", "public function getPaymentId()\n {\n return $this->_getValue('oepaypal_paymentid');\n }", "public function getServiceConfigId()\n {\n return $this->service_config_id;\n }", "public function getIdconfig()\n {\n return $this->idconfig...
[ "0.7648721", "0.69091266", "0.6882788", "0.6865458", "0.6830397", "0.6794658", "0.66661173", "0.6609008", "0.6508471", "0.6470761", "0.6303148", "0.6295842", "0.6277136", "0.619672", "0.6192481", "0.6158457", "0.60733944", "0.6020274", "0.6008001", "0.59806424", "0.59570193",...
0.8683274
0
Returns the payment method configuration.
Возвращает конфигурацию метода оплаты.
public function getPaymentMethodConfiguration() { if ($this->_paymentMethodConfiguration == null) { $this->_paymentMethodConfiguration = Mage::getModel( 'postfinancecheckout_payment/entity_paymentMethodConfiguration')->load( $this->_paymentMethodConfigurationId); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPaymentMethodConfigurationId()\n {\n return $this->_paymentMethodConfigurationId;\n }", "public function getConfig()\n {\n\n $methodCode = self::CODE;\n $config = [];\n\n $testMode = $this->_config->getValue('payment/brick/test_mode');\n $publicTestK...
[ "0.75777453", "0.75674", "0.7381567", "0.73125285", "0.7307551", "0.72640365", "0.7257031", "0.72051096", "0.7010639", "0.6985636", "0.6951192", "0.6940241", "0.6929824", "0.6917494", "0.68885744", "0.6887468", "0.683851", "0.6786996", "0.6776377", "0.6776377", "0.6766729", ...
0.83638227
0
Returns whether there is an existing refund job for the given order.
Возвращает наличие существующей задачи возврата средств для заданного заказа.
protected function hasExistingRefundJob($order) { /* @var PostFinanceCheckout_Payment_Model_Entity_RefundJob $existingRefundJob */ $existingRefundJob = Mage::getModel('postfinancecheckout_payment/entity_refundJob'); $existingRefundJob->loadByOrder($order); return $existingRefundJob->...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function checkExistingRefundJob(Mage_Sales_Model_Order $order)\n {\n /* @var PostFinanceCheckout_Payment_Model_Entity_RefundJob $existingRefundJob */\n $existingRefundJob = Mage::getModel('postfinancecheckout_payment/entity_refundJob');\n $existingRefundJob->loadByOrder($order);\n...
[ "0.7344658", "0.70023465", "0.68404955", "0.6252571", "0.6059617", "0.5994858", "0.5966403", "0.596431", "0.59266174", "0.59163165", "0.5819851", "0.57154167", "0.5709076", "0.56458646", "0.5638768", "0.5580314", "0.5524379", "0.552231", "0.5515488", "0.5447247", "0.54364884"...
0.83637035
0
Returns whether this payment method can be used with the given quote. It will perform an online check on PostFinance Checkout.
Возвращает, может ли этот способ оплаты использоваться с заданным котированным значением. Он выполнит онлайн-проверку на PostFinance Checkout.
public function isAvailable($quote = null) { $isAvailable = parent::isAvailable($quote); if (! $isAvailable) { return false; } if ($quote != null && $quote->getGrandTotal() < 0.0001) { return false; } $client = $this->getHelper()->getApiClien...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isAvailable($quote = null)\n {\n // Check Magento's internal methods allow us to run\n if (parent::isAvailable($quote)) {\n // Should the method be hidden from the checkout?\n if (!$this->getIsSetupRequiredCall() && $this->_getConfig('disable_checkout') === 1)...
[ "0.77292526", "0.7617641", "0.75822717", "0.7568712", "0.7523579", "0.7437796", "0.7412199", "0.7354921", "0.72583663", "0.7186141", "0.7125511", "0.7089598", "0.7085736", "0.7066469", "0.68535835", "0.68254435", "0.68039584", "0.6791791", "0.67739356", "0.67293245", "0.66727...
0.77729344
0
Accepts the payment by marking the delivery indication as suitable.
Принимает платеж, отмечая индикацию доставки как подходящую.
public function acceptPayment(Mage_Payment_Model_Info $payment) { parent::acceptPayment($payment); Mage::getSingleton('postfinancecheckout_payment/service_deliveryIndication')->markAsSuitable($payment); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function acceptPayment($receipt)\n\t{\n\t}", "public function acceptPayment() {\n $paymentResponse = new PayWayMessage(\\Drupal::request()->query->all());\n\n // 'POST' indicates that it is a one time response after the payment has been made, in our case, to send an email\n if ($paymentResponse->...
[ "0.7213732", "0.71798277", "0.6999568", "0.67269933", "0.6378734", "0.63549733", "0.6350468", "0.63501394", "0.61724764", "0.61605763", "0.6095004", "0.608575", "0.60521805", "0.59910643", "0.5909966", "0.5889469", "0.5883363", "0.5853349", "0.5847222", "0.58224607", "0.58045...
0.77163404
0
Creates a new refund job for the given order and refund.
Создает новый задание на возврат для заданного заказа и возврата.
protected function createRefundJob(Mage_Sales_Model_Order $order, \PostFinanceCheckout\Sdk\Model\RefundCreate $refund) { /* @var PostFinanceCheckout_Payment_Model_Entity_RefundJob $refundJob */ $refundJob = Mage::getModel('postfinancecheckout_payment/entity_refundJob'); $refundJob->s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function CreateRefund($transferId, $refund, $idempotencyKey = null)\n {\n return $this->CreateObject('transfers_createrefunds', $refund, '\\MangoPay\\Refund', $transferId, null, $idempotencyKey);\n }", "protected function checkExistingRefundJob(Mage_Sales_Model_Order $order)\n {\n /...
[ "0.62944394", "0.62536377", "0.60474825", "0.59276277", "0.59244746", "0.58436084", "0.58091515", "0.5790636", "0.5710887", "0.56786114", "0.5664097", "0.56163424", "0.5595191", "0.5541357", "0.55353993", "0.5531913", "0.54716533", "0.54541886", "0.54415774", "0.5435193", "0....
0.7428825
0
Checks if there is an existing refund job for the given order. If yes, the refund is sent to the gateway and an exception is thrown.
Проверяет, существует ли уже работа по возврату средств для заданного заказа. Если да, возврат отправляется в шлюз и генерируется исключение.
protected function checkExistingRefundJob(Mage_Sales_Model_Order $order) { /* @var PostFinanceCheckout_Payment_Model_Entity_RefundJob $existingRefundJob */ $existingRefundJob = Mage::getModel('postfinancecheckout_payment/entity_refundJob'); $existingRefundJob->loadByOrder($order); if...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function hasExistingRefundJob($order)\n {\n /* @var PostFinanceCheckout_Payment_Model_Entity_RefundJob $existingRefundJob */\n $existingRefundJob = Mage::getModel('postfinancecheckout_payment/entity_refundJob');\n $existingRefundJob->loadByOrder($order);\n return $existingR...
[ "0.7113045", "0.67847407", "0.6256904", "0.6127498", "0.611388", "0.60876817", "0.5992566", "0.59419", "0.5853449", "0.5841467", "0.578844", "0.5785396", "0.5779941", "0.5771396", "0.5770424", "0.57661164", "0.5707647", "0.56620026", "0.5633168", "0.56067395", "0.56047577", ...
0.7951616
0
First check: is the url just a domain name? (allow a slash at the end)
Первый проверочный шаг: является ли url просто доменным именем? (разрешить слэш в конце)
function is_valid_url($url) { $_domain_regex = "|^[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*(\.[A-Za-z]{2,})/?$|"; if (preg_match($_domain_regex, $url)) { return true; } // Second: Check if it's a url with a scheme and all $_regex = '#^([a-z][\w-]+:(?:/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function domain_name($url) {\n $pieces = parse_url($url);\n $domain = isset($pieces['host']) ? $pieces['host'] : '';\n if (preg_match('/(?P<domain>[a-z0-9][a-z0-9\\-]{1,63}\\.[a-z\\.]{2,6})$/i', $domain, $regs)) {\n return $regs['domain'];\n }\n return false;\n}", "public function testParse...
[ "0.76959115", "0.7444056", "0.7423606", "0.7332506", "0.7328598", "0.73059595", "0.72948855", "0.7275469", "0.7274936", "0.72316283", "0.72161055", "0.7188006", "0.7141955", "0.71239066", "0.7120396", "0.70635676", "0.70539063", "0.70251226", "0.70197874", "0.7014992", "0.700...
0.75133127
1
Gets Title of assessment
Получает заголовок оценки
public function getTitle() { return $this->assessment_desc; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_name()\r\n {\r\n \t$data = $this->get_exercise_data();\r\n \treturn $data['title'];\r\n }", "public function getTitle()\n {\n\treturn $this->get('SUMMARY');\n }", "public function get_title () {\r\n\t\treturn $this->get_info()['title'];\r\n\t}", "public function getTitle...
[ "0.76372427", "0.76220757", "0.7604553", "0.74747807", "0.7451009", "0.74169743", "0.7414871", "0.7412082", "0.74031204", "0.74031204", "0.74031204", "0.74031204", "0.7400334", "0.739913", "0.73911476", "0.737755", "0.737755", "0.737755", "0.737755", "0.737755", "0.737755", ...
0.8648546
0
Checks is Assessment Exist
Проверка наличия оценки
public function isAssessmentExists() { if ($this->as_refid) { return true; } else { return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testAssessmentIsCreated()\n {\n $this->withoutExceptionHandling();\n $response = $this->post(route('assessments.store'), $this->getData());\n\n $response->assertStatus(200);\n\n $this->assertCount(1, Assessment::all());\n }", "public function isUsedInAssessments(...
[ "0.65705013", "0.61213356", "0.60958827", "0.6047936", "0.6020934", "0.58932436", "0.5878053", "0.57236475", "0.57141525", "0.57109326", "0.5709613", "0.56833225", "0.5651049", "0.5632896", "0.56248343", "0.55193293", "0.55176777", "0.5490289", "0.5486137", "0.5482836", "0.54...
0.75955063
0
Register the exception handler extends the Dingo one
Зарегистрируйте обработчик исключений, расширяющий Dingo-обработчик
protected function registerExceptionHandler() { $this->app->singleton('api.exception', function ($app) { return new ApiExceptionsHandler($app['Illuminate\Contracts\Debug\ExceptionHandler'], config('api.errorFormat'), config('api.debug')); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function registerExceptionHandler()\n {\n set_exception_handler(function (\\Exception $exception) {\n $this->exception = $exception;\n $code = $this->exception->getCode();\n $statusCode = $this->response->getStatusCode();\n\n if (!is_int($code) || $co...
[ "0.7171188", "0.715382", "0.70514596", "0.69743645", "0.6957299", "0.69474554", "0.6918303", "0.6619551", "0.6550916", "0.6526674", "0.64979887", "0.6453283", "0.6451897", "0.63858783", "0.63695115", "0.63131", "0.6291597", "0.6254337", "0.6232337", "0.6225232", "0.61498106",...
0.7172824
0
Test all precedence values, they must all be integers.
Проверьте все значения приоритета, они должны быть целыми числами.
public function testPrecedenceIsInteger() { foreach ( $this->operators as $operator ) { self::assertThat( $operator->precedence, self::isType( 'integer' ), "Precendence for operator <" . get_class( $operator ) . "> must be an integer." ); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testPrecedenceIsInValidRange()\n {\n foreach ( $this->operators as $operator )\n {\n self::assertThat( $operator->precedence, self::greaterThan( 0 ), \"Precendence for operator <\" . get_class( $operator ) . \"> must be 1 or higher.\" );\n }\n }", "public fun...
[ "0.7075552", "0.632323", "0.5865539", "0.5755287", "0.57165086", "0.5529373", "0.54717535", "0.53753513", "0.5348181", "0.5251282", "0.52230185", "0.5163125", "0.5099674", "0.508786", "0.508619", "0.5044223", "0.4998249", "0.49849802", "0.49801737", "0.49611604", "0.49166933"...
0.7895533
0
Test all predence values for gaps, this means an operator is missing or a precedence has been wrongfully modified.
Проверьте все значения приоритетов для промежутков, это означает, что отсутствует оператор или приоритет был неправильно изменен.
public function testAllPrecedencesHasNoGaps() { $levels = array(); $min = false; $max = false; foreach ( $this->operators as $operator ) { $levels[$operator->precedence] = true; if ( $max === false || $operator->precedence > $max ) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testPrecedenceIsInValidRange()\n {\n foreach ( $this->operators as $operator )\n {\n self::assertThat( $operator->precedence, self::greaterThan( 0 ), \"Precendence for operator <\" . get_class( $operator ) . \"> must be 1 or higher.\" );\n }\n }", "function r...
[ "0.6379637", "0.56336284", "0.51174766", "0.5007275", "0.49857444", "0.49801564", "0.49569586", "0.49240762", "0.4922912", "0.48888075", "0.48658195", "0.4832642", "0.4772272", "0.47330707", "0.47065735", "0.4695936", "0.4689286", "0.46803674", "0.45767927", "0.4572918", "0.4...
0.71597886
0
Replaces the .sticky class for sticky posts with the .wpsticky class instead
Заменяет класс .sticky для стиковых постов на класс .wpsticky вместо этого
function start_replace_sticky_class( array $classes ) { if ( in_array( 'sticky', $classes, true ) ) { $classes = array_diff( $classes, array( 'sticky' ) ); $classes[] = 'wp-sticky'; } return $classes; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function remove_sticky_class( $classes ){\n\tif( in_array( 'sticky', $classes ) ){\n\t\t$classes = array_diff( $classes, array( \"sticky\" ) );\n\t\t$classes[] = 'wp-sticky';\n\t}\n\t\n\treturn $classes;\n}", "function flexfour_remove_sticky_class($classes) {\n$classes = array_diff($classes, array(\"sticky\"));\...
[ "0.7756317", "0.71812886", "0.6845037", "0.6556652", "0.60805976", "0.590301", "0.5792777", "0.5709917", "0.5681128", "0.5642611", "0.56261206", "0.5624841", "0.56036395", "0.55902153", "0.5577572", "0.5424552", "0.541745", "0.5398366", "0.5383074", "0.53828233", "0.53704786"...
0.7968001
0
Register the asset publisher service and command.
Зарегистрируйте службу публикования активов и команду.
protected function registerAssetPublisher() { $this->app->singleton('asset.publisher', function ($app) { $publicPath = $app->make('path.public'); $publisher = new AssetPublisher($app->make('files'), $publicPath); $publisher->setPackagePath($app->make('path.base') . '/src...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function registerAssetPublishCommand()\n {\n $this->app->singleton('command.asset.publish', function ($app) {\n return new AssetPublishCommand($app->make('asset.publisher'));\n });\n }", "protected function registerAssetCommand()\n {\n $this->app['command.torann...
[ "0.76091707", "0.7074273", "0.6711218", "0.63871044", "0.6210069", "0.61624044", "0.6148373", "0.61289746", "0.60630095", "0.60428363", "0.6037875", "0.59565187", "0.59517854", "0.5918937", "0.58736014", "0.5862636", "0.58559716", "0.58556795", "0.5850961", "0.5850676", "0.58...
0.7613915
0
Register the configuration publisher class and command.
Зарегистрируйте класс публикователя конфигурации и команду.
protected function registerConfigPublisher() { $this->app->singleton('config.publisher', function ($app) { $path = $app->make('path.config'); $publisher = new ConfigPublisher($app->make('files'), $path); $publisher->setPackagePath($app->make('path.base') . '/src'); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function registerConfigPublishCommand()\n {\n $this->app->singleton('command.config.publish', function ($app) {\n return new ConfigPublishCommand($app->make('config.publisher'));\n });\n }", "private function registerPublishing(): void\n {\n if ($this->app->runn...
[ "0.7533107", "0.6977734", "0.6898431", "0.68263304", "0.6804958", "0.6765623", "0.67649174", "0.672658", "0.67022777", "0.660483", "0.6563478", "0.6479851", "0.6471296", "0.6408069", "0.63914245", "0.6355667", "0.6343765", "0.6339492", "0.63377696", "0.63138705", "0.6282653",...
0.77412665
0
Register the view publisher class and command.
Зарегистрируйте класс издателя представления и команду.
protected function registerViewPublisher() { $this->app->singleton('view.publisher', function ($app) { $viewPath = $app->make('path.base') . '/resources/views'; $publisher = new ViewPublisher($app->make('files'), $viewPath); $publisher->setPackagePath($app->make('path.ba...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function registerViewPublishCommand()\n {\n $this->app->singleton('command.view.publish', function ($app) {\n return new ViewPublishCommand($app->make('view.publisher'));\n });\n }", "protected function registerViews()\n {\n // register views within the applicat...
[ "0.8091441", "0.6931096", "0.67781615", "0.66738975", "0.63080335", "0.6249045", "0.6240803", "0.62341213", "0.62149566", "0.61898816", "0.6171216", "0.6167375", "0.61211175", "0.611675", "0.6089748", "0.60874707", "0.6066112", "0.6051356", "0.6033764", "0.5985035", "0.598180...
0.8166424
0
Register the asset publish console command.
Зарегистрируйте команду консоли для публикации активного.
protected function registerAssetPublishCommand() { $this->app->singleton('command.asset.publish', function ($app) { return new AssetPublishCommand($app->make('asset.publisher')); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function registerAssetCommand()\n {\n $this->app['command.torann.assets'] = $this->app->share(function($app)\n {\n return new AssetsCommand($app['torann.assets'], $app['files'], $app['torann.manifest']);\n });\n }", "protected function registerConfigPublishCommand(...
[ "0.70786035", "0.70358616", "0.7035108", "0.6459416", "0.6260962", "0.6225648", "0.6215848", "0.61656946", "0.6007495", "0.59275293", "0.5926825", "0.5917424", "0.59150237", "0.58893615", "0.582482", "0.58227324", "0.5794735", "0.5768603", "0.5757896", "0.57516736", "0.567387...
0.86078393
0
Register the configuration publish console command.
Зарегистрируйте команду консоли для публикации конфигурации.
protected function registerConfigPublishCommand() { $this->app->singleton('command.config.publish', function ($app) { return new ConfigPublishCommand($app->make('config.publisher')); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function registerAssetPublishCommand()\n {\n $this->app->singleton('command.asset.publish', function ($app) {\n return new AssetPublishCommand($app->make('asset.publisher'));\n });\n }", "private function registerPublishing(): void\n {\n if ($this->app->runningI...
[ "0.7236059", "0.7189161", "0.7064842", "0.70468676", "0.69670457", "0.6842619", "0.67028034", "0.6639502", "0.6625327", "0.6571785", "0.6567898", "0.6566074", "0.6464756", "0.6406616", "0.6351922", "0.6318691", "0.6235793", "0.6196045", "0.61731714", "0.6154795", "0.6134027",...
0.8651696
0
Register the view publish console command.
Зарегистрируйте команду консоли для публикации представления.
protected function registerViewPublishCommand() { $this->app->singleton('command.view.publish', function ($app) { return new ViewPublishCommand($app->make('view.publisher')); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function registerAssetPublishCommand()\n {\n $this->app->singleton('command.asset.publish', function ($app) {\n return new AssetPublishCommand($app->make('asset.publisher'));\n });\n }", "protected function registerConfigPublishCommand()\n {\n $this->app->single...
[ "0.7374922", "0.7167881", "0.6830514", "0.6297671", "0.60726947", "0.5994038", "0.5969645", "0.59458375", "0.59344745", "0.58903354", "0.5803197", "0.57845926", "0.57784367", "0.57687956", "0.57505804", "0.57501477", "0.5736252", "0.567907", "0.56723124", "0.56692946", "0.565...
0.8769914
0
Simply returns an aggregate count of pages currently in database
Просто возвращает общее количество страниц, находящихся в базе данных
public function pagecount() { // Pretty easy: Return number of pages in this wiki return Page::all()->count(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function countPages(){\n return $this->db->count_all('page_attributes');\n }", "public function count()\n {\n return Page::count();\n }", "public function totalPage();", "public function total_pages()\n {\n if(isset($this->total_pages)) return $this->total_pages;\n $th...
[ "0.77080774", "0.7557297", "0.75109154", "0.7499286", "0.7474292", "0.73961926", "0.73505265", "0.7345236", "0.7323424", "0.7321206", "0.73006356", "0.7250944", "0.7208718", "0.7195943", "0.71595097", "0.71595097", "0.7157435", "0.7139136", "0.712983", "0.71265095", "0.708678...
0.75686157
1
Adds a table to the dataset The table will be given the passed name. $csvFile should be a path to a valid csv file (based on the arguments passed to the constructor.)
Добавляет таблицу в набор данных. Таблица получит переданное имя. $csvFile должен быть путем к допустимому файлу csv (в зависимости от аргументов, переданных в конструктор).
public function addTable($tableName, $csvFile): void { if (!\is_file($csvFile)) { throw new InvalidArgumentException("Could not find csv file: {$csvFile}"); } if (!\is_readable($csvFile)) { throw new InvalidArgumentException("Could not read csv file: {$csvFile}"); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createTable($table, $file){\n if ($result = $this->query(\"SHOW TABLES LIKE '\".$table.\"'\")) {\n if($result->num_rows == 1) {\n // echo \"Table exists. Skipping Creating table. Moving on to insertion\";\n return true;\n }\n }\n\n $file = fopen($f...
[ "0.61105", "0.5763686", "0.5407869", "0.5393118", "0.53849506", "0.5264936", "0.52604556", "0.5244347", "0.523495", "0.5215974", "0.5159306", "0.5148162", "0.5137392", "0.51245236", "0.5119747", "0.51144564", "0.5111923", "0.51069486", "0.5099487", "0.5073846", "0.50418913", ...
0.8111279
0
Check if glide preset is enabled.
Проверьте, включен ли предустановленный режим glide.
protected function isGlidePresetEnabled($preset) { $server = app(\League\Glide\Server::class); return collect($server->getPresets())->has($preset); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function should_load() {\n\t\tif ( ! current_user_can( 'manage_options' ) ) {\n\t\t\treturn false;\n\t\t}\n\n\t\t$theme_support = get_theme_support( 'themeisle-demo-import' );\n\n\t\tif ( empty( $theme_support ) ) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}", "function should_load() {\n\t\tinc...
[ "0.63394535", "0.6324525", "0.6232219", "0.61391056", "0.6119177", "0.6069085", "0.6046129", "0.5997027", "0.597379", "0.5957952", "0.59296614", "0.59158504", "0.59107226", "0.5892097", "0.5869552", "0.5856647", "0.58182955", "0.5804189", "0.5780981", "0.5751892", "0.5729786"...
0.70595974
0
The class constructor. By default, decorate an empty Agel_Payment_Gateway_RedirectContainer
Конструктор класса. По умолчанию, декорируйте пустой Agel_Payment_Gateway_RedirectContainer
public function __construct() { $this->_gatewayRedirect = new Agel_Payment_Gateway_RedirectContainer (); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __construct()\n {\n $guard = backpack_guard_name();\n \n $this->middleware(\"guest:$guard\", ['except' => 'logout']);\n // ----------------------------------\n // Use the admin prefix in all routes\n // ----------------------------------\n\n // If...
[ "0.653589", "0.64412445", "0.6311232", "0.61007833", "0.60554343", "0.5947758", "0.59442717", "0.5940703", "0.59296876", "0.5921553", "0.5888206", "0.5857725", "0.5855698", "0.58424526", "0.5836232", "0.5836098", "0.5823608", "0.5808905", "0.57997644", "0.57528985", "0.574798...
0.86255103
0
Returns a url that was generated by the gateway redirect object
Возвращает URL, сгенерированный объектом перенаправления шлюза
public function getUrl() { return $this->_gatewayRedirect->getUrl (); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getRedirectUrl();", "public function getRedirectUrl();", "public function getRedirectUrl();", "public function getRedirectUrl();", "public function getRedirectUrl();", "public function getRedirectUrl(): string;", "public function getRedirectUrl()\n {\n }", "public function Redir...
[ "0.81076735", "0.81076735", "0.81076735", "0.81076735", "0.81076735", "0.797654", "0.7920482", "0.77887285", "0.75986016", "0.7576904", "0.7555645", "0.7545206", "0.7531105", "0.7470917", "0.74618125", "0.7449627", "0.7403557", "0.7403441", "0.739261", "0.7388854", "0.7384485...
0.8555034
0
Inserts the post parameters into the session to later be consumed by the payment_gateway_redirect presentation class. Which will post and redirect the user to the bank's 3rd party website.
Вставляет параметры запроса в сессию для последующего использования классом представления payment_gateway_redirect. Этот класс выполнит отправку запроса и перенаправит пользователя на сайт третьей стороны банка.
public function setPostInSession() { $_SESSION ['gateway_redirect'] = array ( 'url' => $this->getUrl (), 'enctype' => $this->encType, 'pageTitle' => $this->pageTitle,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function submit() {\r\n\t\t$name_value_pairs = array();\r\n\t\tforeach ( $this->request_data as $key => $value ) {\r\n\t\t\t$name_value_pairs[] = $key . '=' . rawurlencode( $value );\r\n\t\t}\r\n\r\n\t\t$url = 'https://mms.paymentsensegateway.com/Pages/PublicPages/PaymentForm.aspx';\r\n\t\t$params = impl...
[ "0.64717096", "0.6205274", "0.61589575", "0.61527824", "0.60851216", "0.6049729", "0.6047134", "0.5923853", "0.59205854", "0.59102684", "0.5867411", "0.5866419", "0.582476", "0.5819522", "0.5814485", "0.57883906", "0.5737468", "0.5713338", "0.57086474", "0.56913364", "0.56909...
0.81904566
0
Generate an unique order reference
Создайте уникальный идентификатор заказа
public function generateOrderReference(OrderEvent $event) { $order = $event->getOrder(); $letters = chr(rand(65, 90)) . chr(rand(65, 90)) . chr(rand(65, 90)) . chr(rand(65, 90)); $numbers = rand(0, 9) . rand(0, 9) . rand(0, 9) . rand(0, 9); $reference = strtoupper($letters) . $number...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function regenerateOrderNumber()\n {\n \n }", "public static function genRefNum()\n {\n $strvalue = self::shuffleString(\"abcdefghijklmnopqrstuvwxyz1234567890\");\n\n $str_alph = substr(uniqid($strvalue),0,8);\n\n $today = date(\"Ymd\");\n $rand = strtoupper(sub...
[ "0.6774264", "0.6735795", "0.6725602", "0.66480076", "0.6592211", "0.6578811", "0.6553577", "0.63587713", "0.63472885", "0.6286339", "0.61868644", "0.61661136", "0.61502904", "0.61220324", "0.5944048", "0.5915856", "0.58892846", "0.5889065", "0.5872114", "0.5855105", "0.58465...
0.7232404
0
Add an order status update to the order
Добавить обновление статуса заказа
public function addOrderStatusUpdate(OrderEvent $event) { $order = $event->getOrder(); $statusUpdate = new OrderStatusUpdate(); $statusUpdate->setStatus($order->getStatus()); $statusUpdate->setOrigin($event->getOrigin()); $order->addStatusUpdate($statusUpdate); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateStatus()\n {\n $this->status = Cart::CART_STATUS_ORDERED;\n $this->save();\n }", "public function updateStatus(Request $request, Order $order)\n {\n $oldOrder = $order->replicate();\n $this->validate($request, [\n 'status' => 'bail|required|st...
[ "0.736455", "0.7322992", "0.72940147", "0.7285173", "0.7202688", "0.7139754", "0.71305275", "0.70694214", "0.706809", "0.706809", "0.70668226", "0.7034108", "0.7005594", "0.6966853", "0.696341", "0.6956363", "0.6949814", "0.6934086", "0.6924498", "0.6900451", "0.68450713", ...
0.76652384
0
Set the order "should be ready" date if order is new (meaning the order has been paid)
Установите дату "должна быть готова" заказа, если заказ новый (означает, что заказ был оплачен)
public function updateOrderReadyDate(OrderEvent $event) { $order = $event->getOrder(); if (Order::STATUS_NEW === (int)$order->getStatus()) { // get default production time setting value $productionTime = $this->entityManager->getRepository('AppBundle:Setting')->findOneByKey...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testCreateFromOrderShouldSetTheDateToInvoice()\n {\n $order = new Order();\n $invoice = $this->invoiceFactory->createFromOrder($order);\n $invoiceDate = $invoice->getInvoiceDate()->format('Y-m-d H:i:s');\n $currentDate = (new \\DateTime())->format('Y-m-d H:i:s');\n ...
[ "0.6325768", "0.6152137", "0.59336364", "0.59054756", "0.590117", "0.58485246", "0.584538", "0.58111256", "0.5808002", "0.5806396", "0.57667124", "0.5765419", "0.5737234", "0.57244974", "0.57180166", "0.56955546", "0.5655995", "0.5653298", "0.5648826", "0.5646495", "0.5594340...
0.7658932
0
Set the order token
Установите токен заказа
public function setTokenOrder (OrderEvent $event) { $order = $event->getOrder(); $token = $this->tokenGenerator->generateToken(); $order->setToken($token); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setOrder(?string $order): void\n {\n $this->order = $order;\n }", "public function setOrder(?string $order): void\n {\n $this->order = $order;\n }", "public function setOrder(string $order): void\n {\n $this->_order = $order;\n }", "function mORDER(){\n ...
[ "0.70330596", "0.70330596", "0.69468534", "0.68811363", "0.6853178", "0.6805746", "0.6695317", "0.6638474", "0.65774786", "0.6557135", "0.6554236", "0.655415", "0.6502474", "0.6453982", "0.6441751", "0.6427831", "0.63958836", "0.63925433", "0.6390322", "0.63764083", "0.637640...
0.8012213
0
Send email notifications upon order status update
Отправлять электронные письма при обновлении статуса заказа
public function sendStatusUpdateNotifications(OrderEvent $event) { $order = $event->getOrder(); switch ($order->getStatus()) { case Order::STATUS_AWAITING_SEPA: // send customer e-mail $customerEmailVars = array( 'customerName' => $...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function sendOrderChangeNotification()\n {\n if ($this->getSendNotificationFlag()) {\n \\XLite\\Core\\Mailer::getInstance()->sendOrderAdvancedChangedCustomer($this->getOrder());\n }\n }", "public function updated(Order $order)\n\t{\n\t\t$oldStatus = $order->getOriginal();...
[ "0.7514695", "0.7458988", "0.69368386", "0.6883313", "0.6848589", "0.67386544", "0.6675532", "0.6648271", "0.6583265", "0.6565075", "0.6560592", "0.6556058", "0.65312904", "0.648997", "0.64622563", "0.64525604", "0.6439578", "0.6421992", "0.6420949", "0.6387681", "0.638665", ...
0.8149546
0
Handle order cancellation (refund the customer, ...)
Обработка отмены заказа (возврат клиенту, ...)
public function handleCancellation(OrderEvent $event) { $order = $event->getOrder(); if (Order::STATUS_CANCELED === $order->getStatus()) { // refund customer $this->orderManager->refund($order); // update coupon count if necessary if (null !== $orde...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function cancelOrder(Mage_Sales_Model_Order $order)\n {\n try {\n // works for 1.8 and 1.9\n $order->registerCancellation();\n } catch (Mage_Core_Exception $e) {\n // exist for backward compatibility with Magento 1.7\n $cancelState = Mage_Sales_Mo...
[ "0.7258528", "0.7226291", "0.7163893", "0.713417", "0.69597745", "0.69474053", "0.6848765", "0.6843906", "0.68119556", "0.6811265", "0.68025076", "0.67306167", "0.67221385", "0.6708286", "0.66450477", "0.66341233", "0.6630646", "0.6614599", "0.6596405", "0.6593629", "0.659315...
0.7671002
0
/ PRIVATE METHODS Returns a references to the package cache. Should be called as follows: $cache =& $this>_get_package_cache();
/ ВНУТРЕННИЕ МЕТОДЫ Возвращает ссылку на кэш пакета. Должен вызываться следующим образом: $cache =& $this->_get_package_cache();
private function &_get_package_cache() { return $this->EE->session->cache[$this->_namespace][$this->_package_name]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function saveToPackageCache() {}", "public static function getCache() {}", "public function getCache();", "public function getCache()\r\n\t{\r\n\t\treturn \\Bitrix\\Main\\Data\\Cache::createInstance();\r\n\t}", "public function getCache()\r\n {\r\n \treturn $this->_cache;\r\n }", "prot...
[ "0.7136654", "0.7012844", "0.69072074", "0.6893167", "0.68829966", "0.6837031", "0.6822065", "0.681674", "0.6769723", "0.67093194", "0.66844875", "0.6681645", "0.6678107", "0.6678107", "0.6678107", "0.6678107", "0.6678107", "0.6678107", "0.6678107", "0.6676471", "0.66356075",...
0.8350881
0
Clears all the log entries for the specified site.
Очищает все журналы записей для указанного сайта.
public function clear_log($site_id = NULL) { $site_id = valid_int($site_id, 1) ? (int) $site_id : $this->get_site_id(); $this->EE->db->delete('omnilog_entries', array('site_id' => $site_id)); return TRUE; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function clear_log()\n\t{\n\t\tfile_put_contents( NHS_LOG_FILE );\n\t}", "public function flushlogs()\n\t{\n\t\t$this->deleteAll(array('1 = 1'));\n\t}", "public static function clearLog() \n\t{\n\t\ttry {\n\t\t\tVCDClassFactory::getInstance('logSQL')->clearLog();\n\t\t} catch (Exception $ex) {\n\t\t\tth...
[ "0.6755485", "0.6648822", "0.6558718", "0.6500558", "0.6429238", "0.63660794", "0.63406533", "0.63257164", "0.62527764", "0.62131935", "0.6200704", "0.6102674", "0.6063299", "0.605214", "0.6021218", "0.5975174", "0.5965449", "0.5869927", "0.58194685", "0.5814251", "0.5759896"...
0.7257532
0
Returns an array of addons with one or more log entries in the OmniLog table.
Возвращает массив дополнений с одним или несколькими записями в таблице OmniLog.
public function get_addons_with_an_omnilog_entry($site_id = NULL) { // Ensure we have a valid site ID. $site_id = valid_int($site_id, 1) ? (int) $site_id : $this->get_site_id(); $db_result = $this->EE->db ->select('addon_name') ->group_by('addon_name') ->order_by('addon_name', 'as...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_all_log() {\r\n\t\treturn $this->edb->selectAll ( \"log\" );\r\n\t}", "public static function adLogList()\n {\n $adLog = ORM::for_table('sales_inte_online_inquiries', 'ksi')\n ->find_array();\n\n return $adLog;\n }", "protected function get_log_entries( $l...
[ "0.72860485", "0.6897347", "0.6720128", "0.6655777", "0.6654344", "0.66380733", "0.6566929", "0.656359", "0.65309525", "0.65308285", "0.65093875", "0.64722425", "0.64607996", "0.64550537", "0.643392", "0.643392", "0.6405256", "0.6397679", "0.63976777", "0.6387476", "0.6369466...
0.7385091
0
Returns the default log 'limit'. That is, the number of log entries returned when calling the get_log_entries method.
Возвращает значение по умолчанию для лога 'limit'. То есть, количество записей лога, возвращаемых при вызове метода get_log_entries.
public function get_default_log_limit() { return $this->_log_limit; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getLimit()\n\t{\n\t\t$option_limit = $this->io->getOption('limit');\n\n\t\tif ( $option_limit !== null ) {\n\t\t\treturn $option_limit;\n\t\t}\n\n\t\treturn $this->getSetting(self::SETTING_LOG_LIMIT);\n\t}", "public static function getDefaultLimit()\n {\n return config('consts.DefaultLimit...
[ "0.7790581", "0.7662265", "0.7652399", "0.7605411", "0.7402544", "0.7359578", "0.70214295", "0.7002908", "0.68240625", "0.67454135", "0.67325073", "0.67320526", "0.6703681", "0.6698814", "0.6677555", "0.6677555", "0.6677555", "0.6677555", "0.6677555", "0.6677555", "0.6677555"...
0.84575397
0
Returns the installed package version.
Возвращает версию установленного пакета.
public function get_installed_version() { $db = $this->EE->db; $db_result = $db ->select('module_version') ->get_where( 'modules', array('module_name' => $this->get_package_name()), 1 ); return $db_result->num_rows() === 1 ? $db_result->row()->module_versi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getInstalledVersion() {}", "public function get_package_version()\n {\n return $this->_package_version;\n }", "public function getInstalledVersion() {\n return $this->installedVersion;\n }", "function version() {\n return app(\\PragmaRX\\Version\\Package\\Version::class)...
[ "0.8293738", "0.7901257", "0.7883691", "0.73681307", "0.7354583", "0.7283841", "0.7275142", "0.7209074", "0.7208654", "0.7183792", "0.7153626", "0.71418035", "0.7134026", "0.71273595", "0.7121247", "0.71054006", "0.70808196", "0.70578575", "0.7040753", "0.70336914", "0.703369...
0.8323721
0
Returns the total number of log entries for the specified site.
Возвращает общее количество записей логов для указанного сайта.
public function get_log_entries_count($site_id = NULL) { $site_id = valid_int($site_id, 1) ? (int) $site_id : $this->get_site_id(); return $this->EE->db ->where(array('site_id' => $site_id)) ->count_all_results('omnilog_entries'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function count_by_site($site_id = NULL) {\n $site_id = is_null($site_id) ? kohana::config('chapterboard.site_id') : $site_id;\n $result = $this->db->select('COUNT(*) as total')->from('finance_charges')->where('site_id', $site_id)->get()->current();\n return $result->total;\n }", "function getSit...
[ "0.7000025", "0.68972504", "0.66355914", "0.63886684", "0.62118727", "0.61180156", "0.61041385", "0.6100256", "0.60845643", "0.6081004", "0.607921", "0.60015315", "0.59946305", "0.5971886", "0.59710264", "0.5951458", "0.59458244", "0.5909176", "0.5894237", "0.5877228", "0.587...
0.8068013
0
Returns the package name.
Возвращает имя пакета.
public function get_package_name() { return $this->_package_name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPackageName()\n {\n return $this->package_name;\n }", "public function getPackagedName()\n {\n return Generator::getPackageName() . $this->getContextualPart() . ucfirst(self::uniqueName($this->getCleanName(), $this->getContextualPart()));\n }", "public function getN...
[ "0.83387315", "0.8184771", "0.80038345", "0.7964943", "0.7953524", "0.7545917", "0.74056655", "0.73583496", "0.72224236", "0.71802086", "0.71802086", "0.71106803", "0.70990974", "0.70679367", "0.70645344", "0.70457757", "0.70101166", "0.700779", "0.6973187", "0.68952733", "0....
0.8799802
0
Returns the package theme folder URL. Appends a forward slash if required.
Возвращает URL папки темы пакета. Добавляет слеш, если это необходимо.
public function get_package_theme_url() { $theme_url = $this->EE->config->item('theme_folder_url'); $theme_url .= substr($theme_url, -1) == '/' ? 'third_party/' : '/third_party/'; return $theme_url .$this->get_package_name() .'/'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function theme_folder_url()\n\t{\n\t\treturn $this->sc->addon_theme_url;\n\t}", "public function theme_folder_url()\n\t{\n\t\treturn $this->sc->addon_theme_url;\n\t}", "public function getThemeUrl()\n\t{\n\t\treturn ActiveSite::getLink('theme') . $this->theme . '/';\n\t}", "public function get_theme_...
[ "0.84751433", "0.84096074", "0.7769692", "0.7497981", "0.7494105", "0.7471115", "0.73227227", "0.7321098", "0.7274422", "0.716755", "0.7159447", "0.7138727", "0.7085141", "0.70374066", "0.70367223", "0.69801134", "0.69792885", "0.6974108", "0.6959581", "0.69504607", "0.694761...
0.84771454
0
Returns the package version.
Возвращает версию пакета.
public function get_package_version() { return $this->_package_version; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getVersion()\n {\n return $this->getNodeText('/p:package/p:version/p:release');\n }", "function version() \n {\n return \"@package_version@\";\n }", "public function get_version(): string\n {\n return $this->version;\n }", "function version() {\n ...
[ "0.83013153", "0.8234755", "0.8211189", "0.81472105", "0.80680233", "0.80317706", "0.80317706", "0.80317706", "0.80317706", "0.80317706", "0.80317706", "0.80317706", "0.80317706", "0.80317706", "0.80317706", "0.7992452", "0.79914933", "0.7985992", "0.7985992", "0.79707134", "...
0.85262036
0
Registers the module in the database.
Зарегистрировать модуль в базе данных.
public function install_module_register() { $this->EE->db->insert('modules', array( 'has_cp_backend' => 'y', 'has_publish_fields' => 'n', 'module_name' => ucfirst($this->get_package_name()), 'module_version' => $this->get_package_version() )); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function register(){\n $this->registration->execute([], $this);\n }", "public function register()\n {\n $this->registration->execute([],$this);\n }", "function registerToDatabase() {\n\t\t\tif ($this->id != null && $this->id != 0) return false;\n\n\t\t\t$this->conn = connectToDb(\"...
[ "0.634061", "0.6225472", "0.61178863", "0.6067252", "0.60478354", "0.60343164", "0.59736556", "0.59259856", "0.59208995", "0.5804917", "0.57988894", "0.57949036", "0.5768264", "0.56873095", "0.5684337", "0.56514835", "0.56473386", "0.56464285", "0.56291735", "0.56133145", "0....
0.7647842
0
Notifies the site administrator (via email) of the supplied OmniLog Entry.
Уведомляет администратора сайта (по электронной почте) о предоставленной записи OmniLog.
public function notify_site_admin_of_log_entry(Omnilog_entry $entry) { $this->EE->load->helper('text'); $this->EE->load->library('email'); $email = $this->EE->email; $lang = $this->EE->lang; $lang->loadfile('omnilog'); if ( ! $entry->is_populated()) { throw new Exception($lang-...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function notifyOwner()\n {\n global $config, $reefless, $account_info;\n\n $reefless->loadClass('Mail');\n\n $mail_tpl = $GLOBALS['rlMail']->getEmailTemplate(\n $config['listing_auto_approval']\n ? 'free_active_listing_created'\n : 'free_approval_list...
[ "0.6174106", "0.6108426", "0.5912737", "0.59057856", "0.58707", "0.5854978", "0.5815234", "0.58142775", "0.5786427", "0.57767206", "0.5656451", "0.56507206", "0.54952914", "0.54946476", "0.5439418", "0.54121095", "0.53909564", "0.5358861", "0.53540134", "0.5347071", "0.532552...
0.81138086
0
Saves the supplied OmniLog Entry to the database.
Сохраняет предоставленную запись OmniLog в базу данных.
public function save_entry_to_log(Omnilog_entry $entry) { /** * This method could conceivably be called when the module is * not installed, but the Omnilogger class is present. */ if ( ! $this->EE->db->table_exists('omnilog_entries')) { throw new Exception( $this->EE->lang->l...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function save(Entry $entry)\n {\n // Construct the queryBuilder\n $queryBuilder = $this->getQueryBuilder()\n ->insert(\"entry\")\n ->values([\n \"date\" => \"?\",\n \"start\" => \"?\",\n \"end\" => \"?\",\n \"...
[ "0.7488613", "0.72743237", "0.6731139", "0.65718657", "0.6520639", "0.6477418", "0.62889683", "0.6205523", "0.61145264", "0.60928714", "0.60826194", "0.6068859", "0.605908", "0.60569924", "0.59505296", "0.5909944", "0.5878335", "0.5792107", "0.57316214", "0.57183766", "0.5660...
0.74427384
1
function createNewEntry Creates a new row entry in the DB table for this object to manage. It also updates the Xlation tabel to mark the new entry as needing translation.
Функция createNewEntry создает новую запись в таблице базы данных для этого объекта. Она также обновляет таблицу перевода, чтобы отметить новую запись как требующую перевода.
function createNewEntry( $doAllowPrimaryKeyUpdate=false, $shouldIgnoreXlation=false ) { // make sure label is translated into UnicodeEntities $data = $this->getLabel(); $newData = Unicode_utf8ToUnicodeEntities ($data); $this->setLabel( $newData ); parent::cr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function newEntry(): Translation\n {\n $this->isDisabled = false;\n\n return $this->translation = $this->createTranslation(null, '');\n }", "public function newEntryModel();", "public function &make_entry($original, $translation)\n {\n }", "private function prepForNe...
[ "0.73432726", "0.6728953", "0.6613914", "0.6578059", "0.6546101", "0.643803", "0.6389701", "0.63536954", "0.63393366", "0.6295899", "0.6177758", "0.6131409", "0.6071764", "0.605169", "0.6040539", "0.6022156", "0.59538317", "0.5945381", "0.58692646", "0.5846234", "0.58395946",...
0.7293108
1
function getKey Returns the key of this label.
function getKey Возвращает ключ этого метки.
function getKey() { return $this->getValueByFieldName( 'label_key' ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getKey();", "public function getKey();", "public function getKey();", "public function getKey();", "public function getKey();", "public function getKey();", "public function getKey();", "public function getKey();", "public function getKey();", "public function getKey();", "publi...
[ "0.83229953", "0.83229953", "0.83229953", "0.83229953", "0.83229953", "0.83229953", "0.83229953", "0.83229953", "0.83229953", "0.83229953", "0.83229953", "0.83229953", "0.83229953", "0.83229953", "0.83229953", "0.83229953", "0.83229953", "0.83229953", "0.83229953", "0.83229953"...
0.8509142
0
function getLabelField Returns the field to use in the label routines.
Функция getLabelField возвращает поле, которое используется в процедурах подписи.
function getLabelField() { return "label_label"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getLabelField() {}", "function getLabelField() \n {\n return \"No Field Label Marked\";\n }", "function getLabelField() \n {\n return \"No Field Label Marked\";\n }", "function getLabelField() \n {\n return \"No Field Label Marked\";\n }", "function ge...
[ "0.86258966", "0.7884744", "0.7884744", "0.7884744", "0.7884744", "0.7884744", "0.7884744", "0.7757584", "0.76564765", "0.76393956", "0.75594556", "0.74390197", "0.74184644", "0.73947835", "0.7340159", "0.7120905", "0.7068261", "0.7057842", "0.70411986", "0.70384055", "0.7016...
0.86252636
1
function getModDate Returns the Modification Date of this label.
Функция getModDate возвращает дату последнего изменения этого ярлыка.
function getModDate() { return $this->getValueByFieldName( 'label_moddate' ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getModDate() \r\n { \r\n return $this->_modDate; \r\n }", "public function getModDate();", "public function getModate()\n {\n return $this->modate;\n }", "public function getModificationDate()\n {\n return $this->modificationDate;\n }", "publ...
[ "0.83978885", "0.8278838", "0.7834415", "0.7367355", "0.7334018", "0.7327672", "0.72600955", "0.7175386", "0.7170219", "0.7170219", "0.71176773", "0.7028842", "0.6953014", "0.6945097", "0.68734163", "0.6747318", "0.6694866", "0.667253", "0.6654608", "0.65936154", "0.6546402",...
0.9042308
0
function loadByKeyInfo loads a label by Page, Key and Language ID.
Функция loadByKeyInfo загружает метку по странице, ключу и идентификатору языка.
function loadByKeyInfo( $pageID='', $key='', $languageID='' ) { $condition = ""; if ($pageID != '') { $condition = 'page_id='.$pageID; } if ($key != '') { if ($condition != '' ) { $condition .= ' AND '; } $cond...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function loadPageLabels( $seriesKey='', $pageKey='' ) \n {\n // if no series key or page key is given, then all data will be loaded.\n // might not be what you want ...\n $whereClause = '';\n if ($seriesKey != '' ) {\n \n $whereClause = ' series_key=\"'.$seriesK...
[ "0.6250124", "0.59847033", "0.5841714", "0.5746442", "0.57197297", "0.5711929", "0.5678265", "0.5232075", "0.5181983", "0.5176271", "0.5170793", "0.5161489", "0.51331997", "0.5129278", "0.50166017", "0.5009064", "0.5008076", "0.49952367", "0.4985553", "0.49743322", "0.4959565...
0.79250985
0
function setKey Set the key of this label.
функция setKey Устанавливает ключ этого метки.
function setKey( $key ) { $this->setValueByFieldName( 'label_key', $key ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setKey($key);", "public function setKey(string $key);", "function setKey($value) {\r\n $this->key = $value;\r\n }", "public function setKey( $key )\r\n {\r\n $this->key = $key;\r\n }", "public function setKey($key)\n\t{\n\t\t$this->key = $key;\n\t}", "public function s...
[ "0.81226397", "0.79722345", "0.7915697", "0.7829997", "0.76666975", "0.76666975", "0.76666975", "0.7648317", "0.7648317", "0.7648317", "0.756283", "0.7535961", "0.7535961", "0.7535961", "0.7535961", "0.75253505", "0.75253505", "0.75253505", "0.75145406", "0.74867636", "0.7407...
0.8232378
0
function setLanguageID Set the ID of the language of this label.
function setLanguageID Устанавливает идентификатор языка этого метки.
function setLanguageID( $languageID ) { $this->setValueByFieldName( 'language_id', $languageID ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setLanguage($languageId)\n\t{\n\t\t$this->languageId = \\Bitrix\\Main\\Localization\\Loc::getCurrentLang();\n\t\t$dbLanguage = \\Bitrix\\Main\\Localization\\LanguageTable::getList([\n\t\t\t'select' => ['LID'],\n\t\t\t'filter' => [\n\t\t\t\t'=LID' => $languageId,\n\t\t\t\t'=ACTIVE' => 'Y'\n\t\t\t],\...
[ "0.7254578", "0.6957877", "0.68781674", "0.68494934", "0.67664784", "0.65868604", "0.6500874", "0.646718", "0.6430152", "0.6407913", "0.62942135", "0.62366104", "0.62366104", "0.62177974", "0.6193533", "0.618315", "0.6173307", "0.61352557", "0.6126568", "0.6118488", "0.609474...
0.8218909
0
function setPageID Set the ID of the parent page of this label.
function setPageID Установить ID родительской страницы этого ярлыка.
function setPageID( $pageID ) { $this->setValueByFieldName( 'page_id', $pageID ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function setPage_id($value)\n\t{\n\t\t$this->page_id = $value;\n\t}", "public function setPageID(){\n\t\t\n\t\t$id = 'page';\n\t\t$s = '-';\n\t\t$pound = (!self::USE_SPLASH)?'#':'';\n\t\t$prefix = $pound.$id.$s;\n\t\t$this->headerContainerId = $prefix.'header'.$s.'container';\n\t\t$this->headerId = $pr...
[ "0.7610768", "0.7359292", "0.72527826", "0.68882054", "0.6851632", "0.6719235", "0.6707801", "0.6637949", "0.66291755", "0.65481204", "0.6547438", "0.6547438", "0.6524153", "0.6484764", "0.64223593", "0.6373675", "0.6330353", "0.6244669", "0.6243201", "0.6139514", "0.61179906...
0.7464303
1
Generic exception handler Handles uncaught exceptions, such as database errors
Общий обработчик исключений Обрабатывает непойманные исключения, такие как ошибки базы данных
public static function handle_exception($e) { switch ( get_class($e) ) { case 'NumbatDBError': case 'PDOException': $type = 'db'; break; default: $type = 'uncaught'; break; } $config = array(); if($type == 'db' && get_class($e) == 'NumbatDBError') $config = $e->getConfig(); numba...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected function handleError(\\Exception $e);", "function handler($ex) {\n echo \"In exception handler\\n\";\n}", "function as_exception_handler($e){\n\t\t$msg = 'Error('.$e->getCode().') '. $e->getMessage().' in '. $e->getFile().':'. $e->getLine();\n\t\t$this->catch_error($msg, 'clickgs plugin cra...
[ "0.71104234", "0.7043534", "0.6936438", "0.67799383", "0.67501074", "0.6673991", "0.6663076", "0.6656456", "0.6640893", "0.6627453", "0.6620752", "0.6616705", "0.66163725", "0.64932686", "0.6492276", "0.645573", "0.6437243", "0.64237666", "0.64124805", "0.6381492", "0.6381492...
0.7256071
0
Get user middle name.
Получить отчество пользователя.
public function getMiddleName() { return $this->getProfile() ? $this->getProfile()->getMiddleName() : null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getMiddleName() {}", "public function getMiddleName()\n {\n return $this->middle_name;\n }", "public function getMiddleName()\n {\n return $this->middleName;\n }", "public function getMiddleName()\n {\n return $this->middleName;\n }", "public function ...
[ "0.8304451", "0.80946153", "0.8001596", "0.8001596", "0.8001596", "0.7987801", "0.7664211", "0.7582425", "0.7381173", "0.73359793", "0.72226727", "0.7154288", "0.713873", "0.71176076", "0.7013443", "0.69714534", "0.6950593", "0.69460934", "0.69090223", "0.68893254", "0.688410...
0.8279712
1
Get spouse first name.
Получить имя первого супруга.
public function getSpouseFirstName() { $spouse = $this->getSpouse(); return $spouse ? $spouse->getFirstName() : null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSpotifyFirstName()\n {\n return $this->spotifyFirstName;\n }", "public function getFirstName()\n {\n //Parse the name and set it\n $namePieces = preg_split(\"/\\s/\", $this->name);\n return $namePieces[0];\n }", "public function getFirstName()\n {\n...
[ "0.81878847", "0.78775465", "0.7851428", "0.78252125", "0.7808139", "0.7795866", "0.77696776", "0.77399945", "0.7734488", "0.7684469", "0.76747996", "0.7651957", "0.76512736", "0.7647756", "0.763583", "0.7627936", "0.76226646", "0.7621577", "0.76111007", "0.7608184", "0.76006...
0.83172154
0
Get spouse last name.
Получить фамилию супруга.
public function getSpouseLastName() { $spouse = $this->getSpouse(); return $spouse ? $spouse->getLastName() : null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSpotifyLastName()\n {\n return $this->spotifyLastName;\n }", "public function getLastName()\n {\n return $this->getProfile() ? $this->getProfile()->getLastName() : null;\n }", "public function getLastName() {\n\t\treturn $this->last_name;\n\t}", "public function g...
[ "0.81845284", "0.77651757", "0.76981604", "0.7672064", "0.7626657", "0.7626657", "0.7626657", "0.7626657", "0.7626657", "0.76255685", "0.76246643", "0.76083213", "0.76002735", "0.75989264", "0.7594937", "0.7548129", "0.75194967", "0.7471085", "0.7468144", "0.7464032", "0.7464...
0.8068664
1
Get spouse full name.
Получить полное имя супруга.
public function getSpouseFullName() { return $this->getSpouseFirstName().' '.$this->getSpouseLastName(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSpotifyRealName()\n {\n return $this->spotifyRealName;\n }", "public function fullName(): String\n {\n return $this->fullNames[$this->suit];\n }", "public function getFullname() {\n return $this->getName();\n }", "public function getFullname(): string\n ...
[ "0.72316074", "0.72118914", "0.71280694", "0.7088758", "0.7085023", "0.7082482", "0.7074064", "0.7065179", "0.7057119", "0.70306647", "0.7017789", "0.7004873", "0.6973304", "0.6947955", "0.69445974", "0.6914476", "0.6904952", "0.68828565", "0.68754256", "0.68733346", "0.68669...
0.75004816
0
Returns true if client is married and false otherwise.
Возвращает true, если клиент женат, и false в противном случае.
public function isMarried() { return $this->getProfile() ? $this->getProfile()->isMarried() : false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function isClient() {\n if ($this->getUserRole() == 2) {\n return TRUE;\n }\n return FALSE;\n }", "function isClient() {\n if (isset($_SESSION['role'])) {\n if ($_SESSION['role'] == \"client\") {\n return true;\n }\n }\n return false;\n...
[ "0.66500705", "0.6027777", "0.6017163", "0.59612983", "0.5892965", "0.58603036", "0.5746595", "0.57416075", "0.57188004", "0.5633102", "0.5625145", "0.5596749", "0.557899", "0.55143136", "0.5508238", "0.550192", "0.5493833", "0.54827446", "0.545486", "0.5451062", "0.54054666"...
0.76517403
0
Returns true if the client has approved final portfolio and false otherwise.
Возвращает true, если клиент одобрал окончательный портфель, и false в противном случае.
public function hasApprovedPortfolio() { if (!$this->hasRole('ROLE_CLIENT')) { throw new \Exception('User has not role: ROLE_CLIENT'); } foreach ($this->getClientPortfolios() as $clientPortfolio) { if ($clientPortfolio->getIsActive()) { return $client...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isApproved()\n {\n\n return false;\n }", "public function approved()\n\t{\n\t\treturn $this->response[0] === self::APPROVED;\n\t}", "function isApproved() {\n return $this->getStatus() == UserpointsTransaction::STATUS_APPROVED;\n }", "public function isApproved(): bool;", "...
[ "0.69484705", "0.6947688", "0.68149126", "0.6764662", "0.6647816", "0.6524307", "0.65184385", "0.64994323", "0.64849347", "0.6411706", "0.6400967", "0.6392893", "0.6292734", "0.6274123", "0.619423", "0.6177514", "0.6156848", "0.6142666", "0.6078742", "0.60513526", "0.604782",...
0.779093
0
Add Path Adds the given path to the front of the asset paths array
Add Path Добавляет заданный путь в начало массива путей к активам
public static function add_path($path) { array_unshift(self::$_asset_paths, str_replace('../', '', $path)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addPath($path);", "public function addPath($path);", "public function addPath($path)\n {\n if (!in_array($path, $this->_paths)) {\n $this->_paths[] = rtrim($path, '/\\\\');\n }\n }", "public function addPath($path)\n {\n if (!in_array($path, $this->pat...
[ "0.7050414", "0.7050414", "0.69921905", "0.6966708", "0.66638637", "0.6597855", "0.6596417", "0.6550178", "0.64161897", "0.622769", "0.6126109", "0.61248946", "0.6111622", "0.6078404", "0.60733825", "0.60330933", "0.6017572", "0.5963909", "0.595758", "0.5872142", "0.58660597"...
0.79964334
0
Remove Path Removes the given path from the asset paths array
Удалить Путь Удаляет заданный путь из массива путей к активам
public static function remove_path($path) { if (($key = array_search(str_replace('../', '', $path), self::$_asset_paths)) !== FALSE) { unset(self::$_asset_paths[$key]); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function remove($path);", "public function removeGlobalPath($path);", "public function removeEntryPath($path);", "public function removeByPathRemovesCorrectPathDataProvider() {}", "public function assetPath($path = '')\n\t{\n\t\treturn $this['path.asset'].ltrim($path, '/');\n\t}", "public function...
[ "0.6844549", "0.6831447", "0.67780286", "0.651073", "0.63145465", "0.6304634", "0.624484", "0.62191397", "0.6136411", "0.61298543", "0.6124286", "0.6008236", "0.5955612", "0.5946737", "0.5943609", "0.5940862", "0.5898419", "0.58796424", "0.5877341", "0.5833016", "0.58135015",...
0.8032288
0
Checks if two hashes are equal in an unoptimized way so as to prevent timechecking attacks.
Проверяет, равны ли два хеша неоптимизированным способом, чтобы предотвратить атаки с использованием времени проверки.
function hash_equals ($a, $b) { $a_length = strlen($a); if ($a_length !== strlen($b)) { return false; } $result = 0; for ($i = 0; $i < $a_length; $i++) { $result |= ord($a[$i]) ^ ord($b[$i]); } return $result === 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function hashEquals($a,$b){\n\tif(!val('s',$a,$b))return false;\n\t$m=microtime();\n\t$str1 = sha1($a.$m.$b);\n\t$str2 = sha1($b.$m.$a);\n\treturn hash_equals($str1, $str2);\n}", "protected static function hashEquals($a, $b) {\n if (function_exists('hash_equals'))\n return hash_equals($a, $b);\...
[ "0.7535745", "0.7017002", "0.68900406", "0.68331593", "0.6825834", "0.673581", "0.65165097", "0.64919275", "0.6244863", "0.6060688", "0.6045959", "0.60087", "0.60036534", "0.5959273", "0.59589756", "0.5949891", "0.592586", "0.58971363", "0.58931464", "0.5867354", "0.575751", ...
0.7019986
1
Returns true the given postfix unary operation has a higher priority than some operation in the given expression. In other words, if (expr) op != expr op, return true.
Возвращает истину, если заданная постфиксная унарная операция имеет более высокий приоритет, чем некоторая операция в заданном выражении. Иными словами, если (expr) op != expr op, возвращать истину.
private function postfixExprNeedsParentheses( /*UnaryOperator*/ $op, /*IExpression*/ $expr) /* : bool */ { if ($expr instanceof ConditionalExpression) { // let (expr) == (a ? b : c) // (a ? b : c) op != a ? b : c op in all cases return true; } if ($expr instanceof BinaryOpExpression) {...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function prefixExprNeedsParentheses(\n /*UnaryOperator*/ $op, /*IExpression*/ $expr) /* : bool */ {\n if ($expr instanceof ConditionalExpression) {\n // let (expr) == (a ? b : c)\n // op (a ? b : c) != op a ? b : c in all cases\n return true;\n }\n if ($expr instanceof BinaryOpEx...
[ "0.6646732", "0.6578795", "0.6396664", "0.61517715", "0.59130496", "0.5788302", "0.57805884", "0.56310827", "0.55813426", "0.5580236", "0.5572435", "0.557081", "0.5517231", "0.55018616", "0.5499538", "0.5454908", "0.54371434", "0.5394349", "0.5392754", "0.527809", "0.52590775...
0.73655844
0
Returns true the given prefix unary operation has a higher priority than some operation in the given expression. In other words, if op (expr) != op expr, return true.
Возвращает true, если заданная префиксная унарная операция имеет более высокий приоритет, чем какая-либо операция в заданном выражении. Иными словами, если op (expr) != op expr, возвращается true.
private function prefixExprNeedsParentheses( /*UnaryOperator*/ $op, /*IExpression*/ $expr) /* : bool */ { if ($expr instanceof ConditionalExpression) { // let (expr) == (a ? b : c) // op (a ? b : c) != op a ? b : c in all cases return true; } if ($expr instanceof BinaryOpExpression) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function postfixExprNeedsParentheses(\n /*UnaryOperator*/ $op, /*IExpression*/ $expr) /* : bool */ {\n if ($expr instanceof ConditionalExpression) {\n // let (expr) == (a ? b : c)\n // (a ? b : c) op != a ? b : c op in all cases\n return true;\n }\n if ($expr instanceof BinaryOpE...
[ "0.68805325", "0.646816", "0.6242528", "0.6170335", "0.60739726", "0.5968233", "0.59227", "0.5863405", "0.5708961", "0.5694942", "0.5581721", "0.5564998", "0.5523534", "0.54625916", "0.5389806", "0.53779715", "0.5317031", "0.5264334", "0.52505064", "0.5246012", "0.51944715", ...
0.7192633
0
catch (class variableName) block (no newline at end of block)
блок (нет новой строки в конце блока)
public function visitCatchStatement( /*ICatchStatement*/ $node) /*: mixed*/ { $this->blockIndent = ' '; $block = /*(string)*/$node->getBlock()->accept($this); $class = /*(string)*/$node->getClass()->accept($this); $variable_name = $node->getVariableName(); return " catch ($class \$$variable_na...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function _statementTryCatch($trycatch, $class = null, $method = null) {\n /* TODO \n * 1. Optimization, if an 'try' has no clauses we should just use a ';' rather than a '{ }' pair\n * 2. Optimization, if an 'try' has no clauses, than maybe it is 'dead code' and should be removed\n * NOTE:...
[ "0.5945312", "0.57894427", "0.55584186", "0.53457683", "0.52979875", "0.51052314", "0.5088608", "0.50226384", "0.49346432", "0.49254707", "0.49230385", "0.48840618", "0.48748425", "0.4868565", "0.48608625", "0.48330277", "0.47625577", "0.4720309", "0.471184", "0.4683427", "0....
0.733082
0
return anchor tag with li tag
возврат ссылки с тегом li
function anchor_li($uri = '', $title = '', $attributes = '', $li_attributes = '') { $return = '<li ' . $li_attributes . '>'; $return .= anchor($uri, $title, $attributes); $return .= '</li>'; return $return; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function renderTagAnchor($result);", "protected function getTag()\n {\n return 'ul';\n }", "public function create_links()\n {\n \t$txt = '<ul>';\n \t$last = end($this->breadcrumb);\n \tforeach($this->breadcrumb AS $breadcrumb)\n \t{\n \t\t$url = '';\n \t\t$class = FALS...
[ "0.66614765", "0.62212414", "0.6171266", "0.60621727", "0.60551596", "0.6051701", "0.6027756", "0.600613", "0.5970885", "0.594245", "0.589223", "0.5856903", "0.5851895", "0.5839884", "0.58353674", "0.58286613", "0.5818971", "0.57898027", "0.5786403", "0.57852817", "0.5779902"...
0.746641
0
get the fixure file
получить файл фикстуры
private function getFixure() { return dirname(__DIR__).DIRECTORY_SEPARATOR.'Fixures'.DIRECTORY_SEPARATOR.'test.xml'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFactuurFile() {\n\t\treturn $this->factuurFile;\n\t}", "public function getf() {\n return $this->file;\n }", "function get_file()\n\t{\n\t\treturn $this->file;\n\t}", "public static function getFile(){\n\t\t$file_name = base_path().\"/resources/views/DURC/durc_html.mustache\";\n\t\tret...
[ "0.69962627", "0.6730245", "0.6683745", "0.66785115", "0.6601793", "0.65597725", "0.6546444", "0.64861715", "0.6485986", "0.64609", "0.64609", "0.64609", "0.64609", "0.64609", "0.64609", "0.64609", "0.64609", "0.64609", "0.64609", "0.64609", "0.6453886", "0.6446189", "0.6...
0.7222649
0
Create an input[type="text"] element Accepted keys in $args: code (bool) Apply preformatted code styling? default (str) The default value name (str) The key within the bii_instagram theme option type (str) Input type (default: 'text')
Создать элемент input[type="text"] Допустимые ключи в $args: code (bool) Применять стиль предварительно сформатированного кода? default (str) Название значения по умолчанию (str) Ключ внутри опции bii_instagram темы type (str) Тип ввода (по умолчанию: 'text')
public function create_textfield( $args=array() ) { $settings = get_option( 'bii_instagram' ); $classes = ( isset( $args['code'] ) && $args['code'] ? 'regular-text code' : '' ); $type = ( isset( $args['type'] ) && $args['type'] ? $args['type'] : 'text' ); $default = ( isset( $args['default'] ) ? $args['...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function form_field_text ( $args ) {\n\t\t$options = $this->get_settings();\n\t\techo '<input id=\"' . esc_attr( $args['key'] ) . '\" name=\"' . $this->token . '[' . esc_attr( $args['key'] ) . ']\" size=\"40\" type=\"text\" value=\"' . esc_attr( $options[$args['key']] ) . '\" />' . \"\\n\";\n\t\tif ( isset(...
[ "0.68024546", "0.67161876", "0.6609234", "0.65675783", "0.65653545", "0.65595853", "0.6546735", "0.65022373", "0.6490026", "0.6438391", "0.6318718", "0.62543434", "0.6248938", "0.6240237", "0.62366104", "0.62273335", "0.62262124", "0.62078667", "0.61671585", "0.6143579", "0.6...
0.7962828
0
Print instructions before the fields for the bii_instagram_oauth settings section
Выводите инструкции перед полями для настройки bii_instagram_oauth
public function print_oauth_section_info() { printf( '<p>%s</p>', __( 'Set your Instagram API credentials here. You can generate them by <a href="http://instagram.com/developer/clients/register/" target="_blank">creating a new client</a>.', 'bii-instagram' ) ); printf( '<p>%s</p>', sprintf( __( 'Your OAuth <cod...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function admin_section_code_settings() {\n\t\t\techo '<p>' . esc_html( 'Insert Drip API Token & Account ID bellow' ) . '</p>';\n\t\t}", "public function page_init() {\n register_setting( 'bii_instagram', 'bii_instagram' );\n\n add_settings_section(\n 'bii_instagram_oauth',\n __( 'Authentic...
[ "0.7322873", "0.69562066", "0.6330224", "0.6225886", "0.6001283", "0.59866196", "0.59599996", "0.5959297", "0.59509325", "0.59050655", "0.58758104", "0.58668965", "0.58575696", "0.5832433", "0.5787675", "0.57862735", "0.57626843", "0.57626843", "0.57626843", "0.5758138", "0.5...
0.7962958
0
This function loads all data for the page with the specified GUID
Эта функция загружает все данные для страницы с указанным GUID
public function loadByGUID($guid) { global $db, $tags; $query = "SELECT p.*, DATE_FORMAT(p.date_published, '%d <span>%M %Y</span>') as nice_date, DATE_FORMAT(p.date_created, '%d <span>%M %Y</span>') as blog_date, t.template_php, t.template_type, s.style_css, msv.language, l.encoding, l.text_dir, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPageData();", "public function ee_breakouts_page_load() {}", "public function load($uuid, $webspaceKey, $languageCode, $loadGhostContent = false);", "function pageLoad () {\n\tglobal $pageBegin, $pageEnd, $tableRow;\n\t$page = page_load (\"search_results.html\");\n\n\t$tableRow = page_spli...
[ "0.5972309", "0.5802253", "0.5617419", "0.5582512", "0.5550506", "0.5452199", "0.54426485", "0.5411817", "0.54021823", "0.5339581", "0.532115", "0.53173465", "0.5304888", "0.5300927", "0.52660763", "0.52036816", "0.5193913", "0.5193271", "0.5185016", "0.5132164", "0.5131026",...
0.70371187
0
8th Jan 2009 Phil Redclift Reject current edits to a page.
8 января 2009 года Фил Редкливт Отклонить текущие правки на страницу.
public function rejectedits() { global $db, $user; $query = "delete from content where parent = '".$this->guid."' and revision_id=1"; //print "$query<br>\n"; if ($db->query($query)) { // We have rejected edits to the page addHistory($user->id, "", $this->guid, "Changes rejected", $this->template_ty...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function rejectAction() {\n\n //CHECK AUTH\n if( !$this->_helper->requireUser()->isValid() ) return;\n\n //PROCESS\n $viewer = Engine_Api::_()->user()->getViewer();\n \n //GET THE SITEPAGE ID FROM THE URL\n $page_id = $this->_getParam('page_id');\n $sitepage = Engine_Api::_()->getIte...
[ "0.67086595", "0.6571276", "0.61443585", "0.6008436", "0.5966437", "0.5954629", "0.5951773", "0.5940018", "0.5907363", "0.58804303", "0.58725554", "0.5869396", "0.58374953", "0.57896024", "0.5774736", "0.57629305", "0.5696715", "0.56958985", "0.56938785", "0.5680502", "0.5623...
0.745466
0
Return a list of page styles valid for a given template
Вернуть список стилей страниц, допустимых для заданного шаблона
public function getPageStyleList($template = null){ global $db; if (!is_null($template)) { $template = " AND template = $template"; } $query = "SELECT * FROM pages_style WHERE user_selectable=1".$template; //print "$query<br>\n"; $results = $db->get_results($query); return $results; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getStyles () {\n return array(\"template.css\");\n }", "public function get_styles() {\n\t\treturn [];\n\t}", "protected function get_styles()\n\t{\n\t\t$sql = 'SELECT style_id, style_path, style_parent_id, bbcode_bitfield FROM ' . $this->styles_table;\n\n\t\treturn $this->fetch_decoded_rows...
[ "0.670086", "0.62477005", "0.6162479", "0.6106915", "0.60990655", "0.60840136", "0.6063157", "0.60596526", "0.6037711", "0.60282886", "0.5895841", "0.5862483", "0.58250517", "0.5740582", "0.56951874", "0.5694055", "0.5662693", "0.5660958", "0.5562159", "0.55086553", "0.549634...
0.75753134
0
print "drawToolBar($pagestyle, $disableStyles, $toolmode)\n";
print "drawToolBar($pagestyle, $disableStyles, $toolmode)\n";
public function drawToolbar($pagestyle='', $disableStyles, $toolmode="page") { $template=2; $helptitle="Page edit toolbar"; if ($toolmode=="panel") { $template=6; $helptitle='Panel edit toolbar'; } else if ($toolmode=="landing") { $template=67; } $html = ' <div id="toolbar"> <div class=...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function ext_makeToolBar() {}", "function my_toolbars( $toolbars )\n{\n/*\n echo '< pre >';\n print_r($toolbars);\n echo '< /pre >';\n die;\n */\n\n // Add a new toolbar called \"Very Simple\"\n // - this toolbar has only 1 row of buttons\n $toolbars['Very Simple' ] = array();\...
[ "0.75918233", "0.6468942", "0.644945", "0.63916373", "0.629168", "0.6218519", "0.6154144", "0.6135826", "0.60676736", "0.60061306", "0.5941962", "0.5929393", "0.5891681", "0.58812374", "0.58516866", "0.5772789", "0.57314366", "0.5689893", "0.56862295", "0.56787366", "0.566264...
0.70597523
1
This returns the date_modified of a page
Это возвращает дату изменения страницы
public function getDateModified() { return $this->date_modified; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_date_modified();", "function get_date_mod(){\n\treturn date (\"F d Y H:i:s.\", filemtime(lastModifiedInFolder(ABSPATH . 'wp-content/')));\n}", "function get_timemodified() {\n return $this->timemodified;\n }", "function getDateModified() {\n\t\treturn $this->_DateModified;\n\t}"...
[ "0.8009395", "0.70217323", "0.69703156", "0.69510144", "0.6945405", "0.69387305", "0.6864403", "0.68248636", "0.6771027", "0.6753807", "0.67414176", "0.6736892", "0.6710283", "0.66857374", "0.66807216", "0.6649478", "0.66446185", "0.6622537", "0.6607237", "0.6597128", "0.6564...
0.70345086
1
This returns the date_published of a page
Это возвращает дату_опубликования страницы
public function getDatePublished() { return $this->date_published; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDatePublished() {\n\t\treturn date(\"d/m/Y\", strtotime($this->datePublished));\n\t}", "public function _getDatePublish()\n {\n return $this->_getArticleDataVal('pubDate');\n }", "function getDatePublished()\n {\n $datePublished = $this->get('schema:datePublished');\n ...
[ "0.77822345", "0.7510975", "0.7450933", "0.7420373", "0.7380542", "0.7327413", "0.722257", "0.722257", "0.72027016", "0.7115651", "0.700648", "0.6992941", "0.6836049", "0.6760571", "0.67370075", "0.67370075", "0.6684185", "0.66363037", "0.6633592", "0.6600987", "0.6567577", ...
0.77938765
0
This returns the name of the parent of a page
Это возвращает имя родителя страницы
public function getParentName() { $parent = new Page(); $parent->loadByGUID($this->parent); return $parent->name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getParentPageID () {return $this->getFieldValue ('parent_page_id');}", "function tutv_get_parent_title( $page = null ) {\n global $post;\n\n if ( ! $page ) {\n $page = $post->ID;\n }\n\n\n if ( empty( $post->post_parent ) ) { // if there is no parent...\n return get_the_title( $post->ID ); // ...
[ "0.8002085", "0.7823016", "0.7768092", "0.77258533", "0.75647813", "0.7255091", "0.7178818", "0.7154393", "0.7059287", "0.6985698", "0.6977002", "0.692844", "0.68896395", "0.68877876", "0.6795023", "0.6784463", "0.6783235", "0.6783235", "0.6779118", "0.6776789", "0.67319155",...
0.88501734
0
22nd Jan 2009 Phil Redclift Check if a particular guid has been locked for edit (by a set user)
22 января 2009 г. Phil Redclift Проверить, заблокирован ли определенный guid для редактирования (пользователем, назначенным в установке)
public function LockedForEdit($guid, $user_id=0) { global $db; $query="SELECT id FROM users WHERE lock_guid='$guid' "; if ($user_id>0) $query.="AND id=".$user_id; return $db->get_var($query); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function canEdit($user_guid = 0);", "public function isLocked();", "public function isLocked();", "public function isLocked();", "public function canEdit()\n {\n return $this->is_locked == 0;\n }", "public function isLocked() {}", "public function systemIsLocked($element, $...
[ "0.72576684", "0.6634916", "0.6634916", "0.6634916", "0.6627747", "0.6461544", "0.6289371", "0.6276954", "0.6260726", "0.6249591", "0.6221206", "0.616779", "0.6150013", "0.6136446", "0.61234426", "0.6083614", "0.60541", "0.6047813", "0.6045949", "0.6023215", "0.6020562", "0...
0.755736
0
This returns the title of the page specified by GUID
Это возвращает заголовок страницы, указанной GUID
public function drawTitleByGUID($guid) { global $db; $data = $db->get_var("SELECT title FROM pages WHERE guid = '$guid'"); return $data; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPageTitle(): string;", "static public function getTitle() {\n\t\treturn self::$page_title;\n\t}", "function get_page_title()\n {\n return $this->object->name;\n }", "abstract protected function getPageTitle(): string;", "private function getPageTitle() {\n return $thi...
[ "0.729507", "0.6987124", "0.69545066", "0.69179815", "0.6849779", "0.68297803", "0.6811563", "0.67787707", "0.67768097", "0.6758536", "0.67577624", "0.67433643", "0.6734872", "0.67278963", "0.6722135", "0.67178434", "0.6710486", "0.67103434", "0.6688377", "0.6680606", "0.6668...
0.7988288
0
This returns the parent of the page specified by the GUID
Это возвращает родительскую страницу, указанную идентификатором GUID
public function getParentByGUID($guid) { global $db; $query = "SELECT parent FROM pages WHERE guid = '$guid'"; $data = $db->get_var($query); return $data; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getParentPageID () {return $this->getFieldValue ('parent_page_id');}", "protected function getParentPageID(){\n if( $this->displayBeneath == self::DISPLAY_PAGES_BENEATH_CURRENT ){\n return Page::getCurrentPage()->getCollectionID();\n }\n return $this->pare...
[ "0.776622", "0.75383466", "0.7320044", "0.7288367", "0.712744", "0.71237224", "0.70921963", "0.70898247", "0.70707995", "0.7042733", "0.7019372", "0.695073", "0.69148016", "0.66854084", "0.6648798", "0.66443074", "0.6612277", "0.6608355", "0.65825313", "0.65469617", "0.653415...
0.8095994
0
This returns the grandparent of a page as a GUID
Это возвращает родителя родителя страницы в виде GUID
public function getGrandparent() { global $db; $data = $db->get_var("SELECT parent FROM pages WHERE guid = (SELECT parent FROM pages where guid = '{$this->guid}')"); return $data; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getParentPageID () {return $this->getFieldValue ('parent_page_id');}", "public function drawGrandparentByGUID($guid) {\n\t\t\tglobal $db;\n\t\t\t$data = $db->get_var(\"SELECT parent FROM pages WHERE guid = '{$this->getParentByGUID($guid)}'\");\n\t\t\treturn $data;\n\t\t}", "public function getParentNa...
[ "0.75686604", "0.7109888", "0.7093596", "0.70649695", "0.7006274", "0.6985742", "0.6950144", "0.6831107", "0.6819875", "0.673477", "0.67334604", "0.66945326", "0.66442055", "0.66441476", "0.6640586", "0.6633855", "0.66294026", "0.66294026", "0.66294026", "0.66241586", "0.6554...
0.8003583
0
This returns the grandparent of the page specified by the GUID
Это возвращает родителя родителя страницы, указанной идентификатором GUID
public function drawGrandparentByGUID($guid) { global $db; $data = $db->get_var("SELECT parent FROM pages WHERE guid = '{$this->getParentByGUID($guid)}'"); return $data; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getGrandparent() {\n\t\t\tglobal $db;\n\t\t\t$data = $db->get_var(\"SELECT parent FROM pages WHERE guid = (SELECT parent FROM pages where guid = '{$this->guid}')\"); \n\t\t\treturn $data;\n\t\t}", "public function getParentByGUID($guid) {\n\t\t\tglobal $db;\n\t\t\t$query = \"SELECT parent FROM pa...
[ "0.8253938", "0.7491439", "0.7414751", "0.7199634", "0.6980476", "0.6967594", "0.6954593", "0.6871052", "0.6724739", "0.6713657", "0.6651914", "0.66131294", "0.65764886", "0.652942", "0.6481049", "0.64641356", "0.64426905", "0.64108425", "0.640209", "0.6394858", "0.6394637", ...
0.7810837
1
This returns the guids of ALL the descendents of the page specified by the GUID, in an array
Это возвращает GUID-ы всех потомков страницы, указанной GUID, в массиве
public function getDescendentsByGUID($guid) { global $db; //, $page; $array = array(); if ($rows = $db->get_results("SELECT guid FROM pages WHERE parent = '$guid'")) { foreach ($rows as $row) { array_push($array,$row->guid); $array = array_merge($array,$this->getDescendentsByGUID($row->guid)); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function _wswwpx_page_get_descendant_ids ( $parent = 0, $inclusive=true ) {\n \tif ( $parent && $inclusive ) $descendants[] = $parent;\n \tif ( $children = _wswwpx_page_get_child_ids ( $parent ) ) {\n \t\tforeach ( $children as $child ) {\n \t\t\t$descendants[] = $child;\n \t\t\t$grandchildren = _wswwpx_page_get_c...
[ "0.6514598", "0.64603114", "0.61321515", "0.6065487", "0.6028037", "0.5967714", "0.59093225", "0.582889", "0.57838535", "0.5773632", "0.57420915", "0.57125634", "0.5708148", "0.57072484", "0.5695287", "0.5680997", "0.5644799", "0.5640032", "0.5640032", "0.56162536", "0.560223...
0.7445764
0
This function returns the GUID of the site to which the page belongs, whether that's a microsite or root
Эта функция возвращает GUID сайта, к которому относится страница, будь то микросайт или корневой сайт
public function getSiteGUID() { global $db; if ($site = $db->get_var("SELECT guid FROM sites WHERE guid = '{$this->guid}'")) { return $site; } else { if ($this->parent == 0 || $this->parent == 1) { return 1; } else { $parent = new Page; $parent->loadByGUID($this->parent); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSiteRootGUID($thispage = '',$type=false) {\n\t\t\tif(!$thispage){ $thispage= $this->guid;}\n\t\t\t// This function returns the root GUID of the site to which the page belongs, whether that's a microsite or root\n\t\t\t// The two functions below seem like they could be amalgamated and a switch co...
[ "0.732572", "0.724835", "0.712576", "0.712576", "0.7062376", "0.7018315", "0.6945985", "0.68616605", "0.68526685", "0.6791464", "0.6645053", "0.66224664", "0.6591846", "0.64326775", "0.6416074", "0.6411704", "0.64068776", "0.6358728", "0.63392663", "0.6324945", "0.6260944", ...
0.77918655
0
This function returns the name of the site to which the page belongs, whether that's a microsite or root
Эта функция возвращает имя сайта, к которому относится страница, будь то микросайт или корневой сайт
public function getSiteName() { // This is very similar to the above function, and the two could probably be merged in a much better way global $db; if ($row = $db->get_row("SELECT pages.name, pages.guid FROM sites, pages WHERE pages.lang='". $_COOKIE['lang'] ."' AND sites.guid = pages.guid && pages.guid = '{$...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static function get_site_name()\n {\n }", "public function meta_site_name();", "public function getSiteName();", "function get_site_name() {\n\t\tglobal $site_array;\n\t\tif (isset($site_array)) {\n\t\t\treturn $site_array[\"site_name\"];\n\t\t}\n\t}", "public static function getSiteN...
[ "0.80405027", "0.79676956", "0.78227663", "0.77782744", "0.77590775", "0.77585787", "0.77498394", "0.77414995", "0.76771474", "0.75617653", "0.75109494", "0.74322885", "0.7419641", "0.7382979", "0.7373724", "0.73350537", "0.72385776", "0.7238077", "0.72307867", "0.72190577", ...
0.8580365
0
This returns the content of a page's placeholder
Это возвращает содержимое плейсхолдера страницы
public function drawContent($placeholder) { // NOTE that this only returns the current content for now -- we'll need to change revision_id to '1' if we're editing a page global $db; $data = $db->get_var("SELECT content FROM content WHERE parent = '".$this->guid."' AND revision_id = 0 AND placeholder = '$placeh...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPageContent(): string {\n\t\treturn $this->m_pageContent;\n\t}", "public function getPlaceholder();", "public function currentPageContent()\n {\n return $this->pageGuide->getParsedContent($this->currentPage);\n }", "public function tempPageCacheContent() {}", "public functio...
[ "0.6605146", "0.6372364", "0.6148701", "0.6142214", "0.6105429", "0.60982287", "0.6016788", "0.59873474", "0.59198034", "0.59100556", "0.5907577", "0.5843562", "0.5838776", "0.5830994", "0.58293813", "0.5819779", "0.57740617", "0.57640827", "0.5750821", "0.5749322", "0.573305...
0.70457345
0
draws a link to the current page
проводит ссылку на текущую страницу
public function drawLink() { return $this->drawLinkByGUID($this->guid); global $db; $data = $db->get_row("SELECT parent,name FROM pages WHERE guid = '{$this->guid}'"); $location = array(); $html = ''; if ($data->parent == 0) { //$html .= '/'.$data->name.$html; $html = ''; } else { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function drawLink()\r\n\t{\r\n\t\tglobal $user;\r\n\t\tif(!$user) return;\r\n\t\t$forum_id = $this->topic->forum_id;\r\n\t\t\r\n\t\tif($this->subscription)\r\n\t\t{\r\n\t\t\t$this->drawIconLink($this->subscribedForumIcon, \"You are Currently Subscribed to all Topics in this Forum\", \r\n\t\t\t\t$forum_id);\r\n\t\t...
[ "0.67241204", "0.64281714", "0.64281714", "0.62718755", "0.624596", "0.6194429", "0.61796737", "0.61580276", "0.6112657", "0.6101462", "0.60403633", "0.59967077", "0.59899426", "0.595221", "0.5941149", "0.5928515", "0.58930814", "0.58877265", "0.5871034", "0.5851947", "0.5831...
0.7561607
0
draws a link to the page specified by the GUID
ссылается на страницу, указанную GUID
public function drawLinkByGUID($guid) { global $db, $site, $siteLink, $http; $query = "SELECT p.parent, p.name FROM pages p WHERE guid = '$guid'"; $data = $db->get_row($query); //echo "SELECT parent,name FROM pages WHERE guid = '$guid'<br />"; $location = array(); $html = ''; // Its a bit messy...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function drawLink() {\n\t\t\treturn $this->drawLinkByGUID($this->guid);\n\t\t\t\n\t\t\tglobal $db;\n\t\t\t$data = $db->get_row(\"SELECT parent,name FROM pages WHERE guid = '{$this->guid}'\");\n\t\t\t$location = array();\n\t\t\t$html = '';\n\t\t\tif ($data->parent == 0) {\n\t\t\t\t//$html .= '/'.$data->name....
[ "0.70534223", "0.59024376", "0.5776497", "0.57279086", "0.56900275", "0.56597596", "0.56207883", "0.55742484", "0.55579853", "0.555112", "0.55494875", "0.55317414", "0.55221874", "0.54681855", "0.54570544", "0.54319376", "0.54293054", "0.54262024", "0.5424044", "0.54216206", ...
0.7601138
0