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
Setter for private miles
Сеттер для приватных миль
function setMiles($new_miles) { $this->miles = $new_miles; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getMiles()\n {\n return $this->miles;\n }", "public function &setSmiles($smiles) {\n\t\t$this->smiles=$smiles;\n\t\treturn $this;\n\t}", "public function setMileage($value) {\n return $this->set(self::MILEAGE, $value);\n }", "public function setMileage($value)\n {\n re...
[ "0.67732", "0.63133293", "0.60233355", "0.590643", "0.5761558", "0.5716598", "0.5462038", "0.54413044", "0.52922094", "0.52546537", "0.51283056", "0.5088644", "0.50481683", "0.50445056", "0.49762404", "0.4970867", "0.49461687", "0.49068218", "0.48862824", "0.48784584", "0.482...
0.7666276
0
genereate session and form key
создать сессию и ключ формы
function generateSessionKey(){ // genereate session and form key $this->formSession['key'] = rand(); $GLOBALS["TSFE"]->fe_user->setKey('ses',$this->extKey, $this->formSession); $GLOBALS["TSFE"]->storeSessionData(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFormkey()\n {\n // generate the key and store it inside the class\n $this->formkey = $this->generateFormkey();\n // store the form key in the session\n $_SESSION['formkey'] = $this->formkey;\n // output the form key\n return \"<input type='hidden' nam...
[ "0.781944", "0.742085", "0.71514356", "0.70864606", "0.69766563", "0.6976595", "0.69587946", "0.6912166", "0.68557924", "0.6851927", "0.68401754", "0.6837951", "0.6806785", "0.6806595", "0.67806846", "0.67467606", "0.67209613", "0.65797734", "0.65732676", "0.65649", "0.652069...
0.8588646
0
clear the form key
очистить форму ключа
function clearFormKey(){ // session genereate key $this->formSession['key'] = null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function clearInput()\n {\n $this->newPassword = '';\n $this->newPasswordConfirmation = '';\n $this->currentPassword = '';\n }", "public function clear(string $key) : void;", "public function clear(/*string*/ $key) /*void*/\n {\n unset($_SESSION[self::KEY][$key]);\n...
[ "0.7059604", "0.68118227", "0.6601355", "0.6572244", "0.6474494", "0.64300543", "0.6373123", "0.62818336", "0.6250565", "0.6244337", "0.6240946", "0.6233312", "0.6229625", "0.6121275", "0.61193526", "0.6084725", "0.60825163", "0.6077097", "0.6077097", "0.6065231", "0.6055698"...
0.84970975
0
Returns the TableMap related to this object. This method is not needed for general use but a specific application could have a need.
Возвращает TableMap, связанный с этим объектом. Этот метод не требуется для общего использования, но конкретное приложение может иметь потребность в нем.
public static function getTableMap() { return Propel::getServiceContainer()->getDatabaseMap(MetaTableMap::DATABASE_NAME)->getTable(MetaTableMap::TABLE_NAME); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getTableMap()\n {\n return Propel::getServiceContainer()->getDatabaseMap(ItemTableMap::DATABASE_NAME)->getTable(ItemTableMap::TABLE_NAME);\n }", "public function getTableMap()\n {\n return $this->aTables;\n }", "public static function getTableMap()\n {\n ...
[ "0.7656332", "0.7633176", "0.7556668", "0.7547383", "0.7547383", "0.7547383", "0.7547383", "0.7547383", "0.7527291", "0.75024045", "0.7461885", "0.73794323", "0.7272856", "0.72666883", "0.7250619", "0.7237963", "0.71342504", "0.7131581", "0.7061312", "0.70287883", "0.7027691"...
0.7748421
0
Returns request info table
Возвращает таблицу информации о запросе
public function getRequestsTable() { return Mage::getResourceModel('mp_debug/requestInfo')->getMainTable(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTableStructure(Request $request) {\n $table = $request->table;\n return json_encode(DB::select(\"describe $table\"));\n }", "public function getTableInformation() {}", "public function getInfo() \n {\n return $this->requestInfo;\n }", "public function getListR...
[ "0.668056", "0.65945596", "0.62213683", "0.62172675", "0.6194118", "0.6160408", "0.6068965", "0.604819", "0.60102564", "0.59300107", "0.5895395", "0.5856982", "0.58289963", "0.58281136", "0.582055", "0.5815674", "0.5782675", "0.5740051", "0.57181734", "0.5706997", "0.5700029"...
0.7889726
0
Register custom edd_pup_email post type for storing sent updates
Регистрация пользовательского типа записи edd_pup_email для хранения отправленных обновлений
function edd_pup_post_types() { $edd_pup_email_labels = array( 'name' => __('Product Update Emails', 'post type general name', 'edd-pup' ), 'singular_name' => __('Product Update Email', 'post type singular name', 'edd-pup' ), 'add_new' => __( 'Add New', 'edd-pup' ), 'add_new_item' => __( 'Add New Up...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function addPostType()\n {\n WordPress::registerType('lbwp-nl', 'Newsletter', 'Newsletter', array(\n 'show_in_menu' => 'newsletter',\n 'publicly_queryable' => false,\n 'exclude_from_search' => true,\n 'supports' => array('title')\n ), 'n');\n }", "public function registerCus...
[ "0.63563013", "0.60867864", "0.5967338", "0.59473747", "0.58608115", "0.585454", "0.5831829", "0.5815284", "0.5811542", "0.5765343", "0.5751757", "0.5750803", "0.57366484", "0.572792", "0.570748", "0.5706455", "0.5685867", "0.5643686", "0.5627878", "0.562038", "0.56163037", ...
0.7173928
0
Returns a form to add a new grade letter to a given set.
Возвращает форму для добавления нового буквенного оценки в заданный набор.
public function addForm(GradeLetterSetInterface $grade_letter_set) { $grade_letter = $this->entityTypeManager() ->getStorage('grade_letter') ->create(['grade_letter_set' => $grade_letter_set->id()]); return $this->entityFormBuilder()->getForm($grade_letter, 'add'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create()\n {\n return view('admin.marks.grade.add');\n }", "public function create()\n {\n $data = [];\n foreach ($this->fields as $field => $default) {\n $data[$field] = old($field, $default);\n }\n $data['allGrades'] = Grade::lists('grade...
[ "0.62090445", "0.56181234", "0.5591897", "0.53484005", "0.532908", "0.53154874", "0.5289482", "0.5289482", "0.51657945", "0.51657265", "0.51602215", "0.5154638", "0.51522547", "0.507936", "0.507358", "0.5066151", "0.5044087", "0.503726", "0.5016711", "0.5006856", "0.4989982",...
0.73690534
0
This function logs off Admin using admin's id
Эта функция выходит из системы Admin с использованием идентификатора admin
public function logAdminOff() { //session must be started before anything session_start (); // Add the session name user_id to a variable $id $id = $_SESSION['user_id']; //if we have a valid session if ( $_SESSION['logged_in'] == TRUE ) { $lastAc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function logoff() {}", "public function logoff() {}", "public function logoff() {}", "public function logOff();", "public function logoff();", "public function logoutFromAdmin()\n {\n $this->getHelperWait()->waitForElementPresent('//a[@class=\"link-logout\"]');\n $this->getHelperC...
[ "0.73247254", "0.7324561", "0.7323886", "0.7278227", "0.7236932", "0.71489424", "0.71489424", "0.71393776", "0.6864469", "0.6864211", "0.68536705", "0.68169934", "0.6750211", "0.674706", "0.67367476", "0.66950923", "0.6636226", "0.659901", "0.65096974", "0.6439133", "0.642448...
0.788539
0
This method adminUpdatePass is used to change any admin level password and even user password
Этот метод adminUpdatePass используется для изменения любого пароля уровня администратора и даже пароля пользователя
public function adminUpdatePass($uid,$pass) { $uid = $this->secureInput($uid); $pass = $this->secureInput($pass); //Encrypt password for database $salt1 = 's+(_a*'; $salt2 = '@-)(%#'; $new_password = md5($salt1.$pass.$salt2); $sql = "UPDATE users SET password = '" . $new_password . "' WHE...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function update_password() {\n\t\t$old_password = $_POST['old_password'];\n\t\t$new_password = $_POST['new_password'];\n\t\tif (!empty($old_password) && !empty($new_password)) {\n\t\t\t$admin_records = $this -> conn -> get_table_row_byidvalue('pg_track_admin', 'admin_password', md5($old_password));\n\t\t\tif (!emp...
[ "0.75358766", "0.7421558", "0.7404768", "0.73266023", "0.7326007", "0.732272", "0.7262627", "0.7256923", "0.72232723", "0.718764", "0.7180864", "0.7168249", "0.7151536", "0.71377766", "0.709438", "0.70587313", "0.70568264", "0.70350397", "0.70310634", "0.7028615", "0.6990548"...
0.7526254
1
This method adminEditUserProfile is used to edit users in the Admin platform
Этот метод adminEditUserProfile используется для редактирования пользователей в платформе Администратора
public function adminEditUserProfile($id,$title,$full_name,$dob,$gender,$address,$phone) { $title = $this->secureInput($title); $full_name = $this->secureInput($full_name); $dob = $this->secureInput($dob); $gender = $this->secureInput($gender); $address = $this->secureInput($address); //$city ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function p_editProfile() {\n\t$_POST['modified'] = Time::now();\n \n $w = \"WHERE user_id = \".$this->user->user_id;\n\t\t\n\t# Insert\n\tDB::instance(DB_NAME)->update(\"users\", $_POST, $w);\n \n Router::redirect(\"/users/profile\");\n\n }", "public function actioneditProfi...
[ "0.73264414", "0.7244814", "0.704167", "0.67556953", "0.67549616", "0.6740283", "0.6709447", "0.6586142", "0.65252715", "0.6494943", "0.6443907", "0.6438174", "0.6436072", "0.64330643", "0.6429838", "0.64277494", "0.6426377", "0.6421336", "0.64068174", "0.640609", "0.6389824"...
0.7387842
0
This method adminSuspendUser is used to suspend user by the Admin
Этот метод adminSuspendUser используется для приостановки пользователя администратором
public function adminSuspendUser($id) { $sql = "SELECT id,active FROM users WHERE id = '".$id."'"; $res = $this->processSql($sql); if ($res){ $update = "UPDATE users SET active = 2 WHERE id = '".$id."'"; $result = $this->processSql($update); if ($result) return 99; return 1; } else return 2; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function suspend_user(User $user){\n //If the user is active suspend them if not reinstate them\n if ($user->active == 1) {\n $user->active = 0;\n $user->save();\n session()->flash('status', $user->username . ' was successfully suspended');\n return ...
[ "0.6922233", "0.6681482", "0.6630469", "0.65889746", "0.64379996", "0.63799727", "0.6273933", "0.62619567", "0.6259323", "0.61608636", "0.6151945", "0.6097674", "0.6021083", "0.59933406", "0.59037346", "0.587682", "0.5868132", "0.5859588", "0.57343274", "0.5627123", "0.562633...
0.723834
0
This method adminUnsuspendUser is used to unsuspend user by the Admin
Этот метод adminUnsuspendUser используется для разблокировки пользователя администратором
public function adminUnsuspendUser($id) { $sql = "SELECT id,active FROM users WHERE id = '".$id."'"; $res = $this->processSql($sql); if ($res){ $update = "UPDATE users SET active = 1 WHERE id = '".$id."'"; $result = $this->processSql($update); if ($result) return 99; return 1; } else return 2; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function unsuspendUser($user_id)\n\t{\n\t\tif($this->getUserStatusId($user_id) === 2)\n\t\t{\n\t\t\t$this->where('id', '=', $user_id)->update(['user_status' => 1]);\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "public function unsuspendUser($username)\n {\n $conn = new DBConnect();\n ...
[ "0.6534979", "0.6343875", "0.6299367", "0.6223075", "0.6145516", "0.61081266", "0.6107037", "0.5993959", "0.59900695", "0.5989623", "0.5984633", "0.5933161", "0.5931366", "0.5928358", "0.5899688", "0.5899688", "0.5890018", "0.5876326", "0.5866735", "0.5854037", "0.5842", "0...
0.7243841
0
This method adminShowUserStatus is used to display the active status of the user in the Admin Panel
Этот метод adminShowUserStatus используется для отображения активного статуса пользователя в Панели Администратора
public function adminShowUserActiveStatus($id) { $sql = "SELECT id,active FROM users WHERE id = '".$id."'"; $row = $this->fetchOne($sql); if($row['active'] == 0){$active = "<em><span style='color:#f40000;'>Not Confirmed</span></em>";} if($row['active'] == 1){$active = "<em><span style='color:#008...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show(User_status $userstatus)\n {\n //\n }", "public function getStatus() \n {\n if ($this->status) \n {\n \techo 'user status : присутствует<br><br><br>';\n }\n else\n {\n \techo 'user status : отсутствует<br><br><br>';\t\n ...
[ "0.72927225", "0.7060739", "0.6993221", "0.6936649", "0.6857118", "0.6703886", "0.66794753", "0.66788554", "0.6640974", "0.657097", "0.6564247", "0.65639675", "0.6480753", "0.64790833", "0.6469503", "0.6459574", "0.6426486", "0.6425466", "0.64028734", "0.6401621", "0.6397641"...
0.73365635
0
This method adminShowUserOnlineStatus is used to display the online status of the user in the Admin Panel
Этот метод adminShowUserOnlineStatus используется для отображения статуса онлайн пользователя в панели администратора
public function adminShowUserOnlineStatus($id) { $sql = "SELECT id,online FROM users WHERE id = '".$id."'"; $row = $this->fetchOne($sql); if($row['online'] == "ON"){$online = "<span style='color:#008040;'>Online</span>";} if($row['online'] == "OFF" || $row['online'] == "0"){$online = "<span style...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function um_online_show_user_status( $args ) {\n\t\tif ( $this->is_hidden_status( um_profile_id() ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\tUM()->Online()->enqueue_scripts();\n\n\t\t$args['is_online'] = UM()->Online()->is_online( um_profile_id() );\n\n\t\tob_start();\n\n\t\tUM()->get_template( 'online-marker.php', um_onl...
[ "0.7768013", "0.73282367", "0.7308808", "0.7203117", "0.7012117", "0.7003874", "0.6898104", "0.68629706", "0.68089515", "0.6733769", "0.6654864", "0.6612957", "0.653987", "0.6494962", "0.6490876", "0.64895713", "0.64105815", "0.63739973", "0.63658345", "0.63438535", "0.633699...
0.8179271
0
/ Creates or gets an object CITY
Создает или получает объект CITY
private function createCity() { // Checks/Creates a new CITY $nameCity = $_POST["name_city"]; if ((CityDAO::findOneBy("name_city", $nameCity)) == null) { $city = new City; $city->setName_city($_POST["name_city"]); if (($city->getValid_city()) == tru...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function city();", "public function getCity()\n {\n $res = $this->getEntity()->getCity();\n\t\tif($res == null)\n\t\t{\n\t\t\tSDIS62_Model_DAO_Abstract::getInstance($this::$type_objet)->create($this);\n\t\t\treturn $this->getEntity()->getCity();\n\t\t}\n\t\treturn $res;\n }", "publ...
[ "0.65880746", "0.6568893", "0.6429964", "0.62304544", "0.6218825", "0.6216072", "0.6169241", "0.61492217", "0.6050136", "0.60417056", "0.601241", "0.59102744", "0.5888355", "0.5839148", "0.5838323", "0.5838323", "0.5838323", "0.5838323", "0.580614", "0.5795519", "0.5740097", ...
0.7191974
0
Formats a property name
Форматирует имя свойства
public function formatPropertyName(string $propertyName): string;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function formatName($name);", "protected function getRealNameProperty(string $property) : string\n\t{\n\t}", "private function _propertyNameConverter($a_sProperty)\n {\n return ucfirst(preg_replace(\"/(_)(\\w)/e\", \"strtoupper('\\\\2')\", $a_sProperty));\n }", "protected static function ...
[ "0.68388075", "0.67244846", "0.666132", "0.6584001", "0.6570602", "0.6443444", "0.6443444", "0.6443444", "0.64387023", "0.64387023", "0.63829005", "0.6350105", "0.6289119", "0.62091076", "0.62049377", "0.613412", "0.6123073", "0.6115935", "0.6078977", "0.60524064", "0.6020561...
0.8041927
0
Remove the scope from the given Eloquent query builder.
Удалите область действия из заданного построителя запросов Eloquent.
public function remove(Builder $builder) { /** @var \Illuminate\Database\Eloquent\Model|ScopedByTenant $model */ $model = $builder->getModel(); $query = $builder->getQuery(); foreach ((array) $query->wheres as $key => $where) { // If the where clause is a tenant constraint, we will remove it from the qu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function remove(Builder $query, Model $model) {}", "public function remove(Builder $builder)\n\t{\n\t\t$query = $builder->getQuery();\n\n\t\t$column = $builder->getModel()->getQualifiedPublishedColumn();\n\n\t\t$bindingKey = 0;\n\n\t\tforeach ((array) $query->wheres as $key => $where)\n\t\t{\n\t\t\tif ($t...
[ "0.65368086", "0.6483229", "0.6292898", "0.6257863", "0.61098635", "0.60537565", "0.604043", "0.59647316", "0.59578437", "0.5855346", "0.58245295", "0.58234406", "0.5773652", "0.5762988", "0.5739198", "0.5729482", "0.572618", "0.5713466", "0.5713089", "0.559689", "0.5554645",...
0.7017195
0
Determine if the given where clause is a tenant constraint.
Определите, является ли заданный where-кlausула ограничением арендатора.
protected function isTenantConstraint(array $where, $model) { return $where['type'] == 'raw' && $where['sql'] == $model->getTenantWhereClause(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function wac_is_tenant($user=''){\n\t if ($user && !empty($user)) {\n\t\tif (!is_object($user)) {\n\t\t\t$user = new WP_User(absint($user));\n\t\t}\n\t\treturn (is_array($user->roles) && in_array('subscriber', $user->roles));\n\t} else {\n\t\treturn false;\n\t}\n}", "protected function isSubquery($constraint)\n\...
[ "0.61155045", "0.56254387", "0.5602561", "0.53432614", "0.52982426", "0.51760066", "0.4957612", "0.4832978", "0.48291656", "0.481554", "0.47444353", "0.47385257", "0.46842396", "0.4616265", "0.46128848", "0.46128705", "0.4595339", "0.45950687", "0.45690006", "0.45294273", "0....
0.7373448
0
TODO: Implement componentChuangTi() method.
TODO: Реализовать метод componentChuangTi().
public function componentChuangTi() { return $this->component->componentChuangTi()."并加了滚动条<<"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function CUX9002($component) {\n if ($component['parent_device_interface'] == 'CUxD' && $component['visible'] == 'true' && isset($component['TEMPERATURE'])) {\n $datapoints = array();\n \n if(isset($component['TEMPERATURE'])) {\n $datapoints[] = '<span class=\"info\" data-id=\"' ...
[ "0.5323066", "0.5265673", "0.52466875", "0.50726074", "0.503523", "0.5018427", "0.49438304", "0.4920958", "0.48846748", "0.48582053", "0.48265767", "0.48157826", "0.48023802", "0.47955188", "0.47786856", "0.47675002", "0.4763385", "0.47454122", "0.4729784", "0.47074646", "0.4...
0.7086113
0
Returns the maximum number of bytes required to display a column
Возвращает максимальное количество байтов, необходимых для отображения столбца
function db2_field_display_size($stmt, $column) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getColumnLength()\n {\n $columnLength = self::INITIAL_COLUMN_LENGTH;\n while ($columnLength < $this->maximumLength) {\n $columnLength *= self::COLUMN_LENGTH_STEPS;\n }\n\n return $columnLength;\n }", "public function getMaxColumnNameLength();", "publ...
[ "0.72303176", "0.69949406", "0.69189703", "0.6884645", "0.6730413", "0.67117816", "0.6702595", "0.66797954", "0.66477513", "0.66350555", "0.6591475", "0.65858424", "0.65858424", "0.6585286", "0.6585286", "0.6585286", "0.6583971", "0.6565333", "0.6560915", "0.64838666", "0.643...
0.7278497
0
Serializes the given array of parameters into a valid query string. Use this function instead of http_query_params() when submitting to the Salsa framework, because keys with multiple values should not have array brackets added to them. The parameters can either be an array of arrays where each inner array contains a s...
Сериализует заданный массив параметров в корректную строку запроса. Используйте эту функцию вместо http_query_params(), когда отправляете данные в фреймворк Salsa, поскольку ключи с несколькими значениями не должны иметь добавленных вокруг них скобок массива. Параметры могут быть либо массивом массивов, где каждый внут...
function serializeParams($params) { // Serialize the parameters ourselves so that multiple values are not wrapped $q = array(); foreach ($params as $key => $val) { if (is_array($val)) { foreach ($val as $k => $v) { // If the array is numerica...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function http_serialize_params($params) {\n\t\t$query_string = array();\n\t\tif(is_array($params)):\n\t\t\tforeach($params as $key => $value):\n\t\t\t\tif(is_array($value)):\n\t\t\t\t\tforeach($value as $k => $fieldvalue):\n\t\t\t\t\t\t$query_string[] = urlencode($key) . '=' . rawurlencode($fieldvalue);\n\t\t\t\t\...
[ "0.77913237", "0.74117875", "0.7366841", "0.7148972", "0.70763654", "0.6943893", "0.6941809", "0.6940649", "0.6938825", "0.69071275", "0.683627", "0.68131775", "0.6811471", "0.6713391", "0.6692591", "0.6658548", "0.6637812", "0.661461", "0.6542088", "0.649114", "0.6485011", ...
0.7662161
1
Saves this object to Salsa.
Сохраняет этот объект в Salsa.
public function save() { $conn = GFSalsaConnector::instance(); if ($conn) { $conn->saveObject($this->object, $this); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final function save() {\n }", "public function save() {}", "public function save() {}", "public function save() {}", "public final function save()\n {\n }", "public function save()\n {\n }", "public function save() {\n\t\t\t\n\t\t}", "public function save();"...
[ "0.7570095", "0.75594485", "0.75594485", "0.7558281", "0.74639535", "0.74569625", "0.7383238", "0.7375309", "0.7375309", "0.7375309", "0.7375309", "0.7375309", "0.7375309", "0.7375309", "0.7375309", "0.7375309", "0.7375309", "0.7375309", "0.7375309", "0.7375309", "0.7375309",...
0.81126297
0
Unpacks the list of details messages from an RPC status.
Распаковывает список сообщений деталей из статуса RPC.
public static function unpackStatusDetails($rpcStatus) { $ret = []; foreach ($rpcStatus->getDetails() as $det) { $ret[] = $det->unpack(); } return $ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function parseStatus($status) {\n $rpcStatus = new \\Google\\Rpc\\Status();\n if (isset($status->metadata['grpc-status-details-bin'])) {\n if (is_array($status->metadata['grpc-status-details-bin']) && count($status->metadata['grpc-status-details-bin']) > 0) {\n ...
[ "0.6145925", "0.55883074", "0.54974544", "0.51672685", "0.5161105", "0.5130639", "0.51132905", "0.5093189", "0.5000037", "0.49716765", "0.49681187", "0.4937946", "0.4927822", "0.4906892", "0.49065286", "0.48609373", "0.48331052", "0.48274112", "0.4823618", "0.48066503", "0.47...
0.7520613
0
Determine if Content is not given.
Определите, предоставлен ли контент или нет.
public function contentNotGiven() { return empty($this->content); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function noContent()\n {\n return is_null($this->content) || empty($this->content);\n }", "public function hasNoContent()\n {\n return $this->properties['content'] === null;\n }", "public function hasContent(){ return !empty($this->content); }", "public function hasContent()\...
[ "0.77942765", "0.75691473", "0.728232", "0.7028354", "0.6984877", "0.6954475", "0.68799704", "0.6762135", "0.66672355", "0.6613082", "0.6483971", "0.6455813", "0.6425926", "0.6299224", "0.6299224", "0.6235261", "0.6143375", "0.60713166", "0.60684365", "0.60565555", "0.6000562...
0.84199256
0
The number of pixels to crop from the top. The default is 0. Generated from protobuf field int32 top_pixels = 1;
Число пикселей для среза с верхней части. По умолчанию 0. Генерируется из поля protobuf int32 top_pixels = 1;
public function getTopPixels() { return $this->top_pixels; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setTopPixels($var)\n {\n GPBUtil::checkInt32($var);\n $this->top_pixels = $var;\n\n return $this;\n }", "public function top($top=10) {\n return $this->limit($top, 0);\n }", "public function getTopWidth() {\n return $this->topWidth;\n }", "public...
[ "0.78183144", "0.5869395", "0.5826788", "0.560903", "0.54920566", "0.54258245", "0.5353075", "0.51547664", "0.51093024", "0.5076525", "0.50702274", "0.5063386", "0.50165087", "0.50109863", "0.4957579", "0.4934075", "0.49149325", "0.48484072", "0.48225054", "0.4774411", "0.475...
0.7505231
1
The number of pixels to crop from the top. The default is 0. Generated from protobuf field int32 top_pixels = 1;
Число пикселей для среза с верхней части. По умолчанию 0. Сгенерировано из поля protobuf int32 top_pixels = 1;
public function setTopPixels($var) { GPBUtil::checkInt32($var); $this->top_pixels = $var; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTopPixels()\n {\n return $this->top_pixels;\n }", "public function top($top=10) {\n return $this->limit($top, 0);\n }", "public function getTopWidth() {\n return $this->topWidth;\n }", "public function top_down_crop( $args ) {\n\t\t\t$size = $this->get_dime...
[ "0.7506199", "0.5869752", "0.5827541", "0.56089354", "0.5492722", "0.54249483", "0.53541404", "0.5156555", "0.51109195", "0.50767887", "0.5070655", "0.5064516", "0.501633", "0.5011204", "0.49574482", "0.49340606", "0.49146357", "0.48486662", "0.4823193", "0.4774982", "0.47533...
0.7817146
0
The number of pixels to crop from the bottom. The default is 0. Generated from protobuf field int32 bottom_pixels = 2;
Число пикселей для среза с нижней части. По умолчанию 0. Генерируется из поля protobuf int32 bottom_pixels = 2;
public function getBottomPixels() { return $this->bottom_pixels; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setBottomPixels($var)\n {\n GPBUtil::checkInt32($var);\n $this->bottom_pixels = $var;\n\n return $this;\n }", "public function getTopPixels()\n {\n return $this->top_pixels;\n }", "public function setTopPixels($var)\n {\n GPBUtil::checkInt32($va...
[ "0.7410081", "0.5712564", "0.56967044", "0.5403689", "0.5251172", "0.5225131", "0.5225131", "0.5225131", "0.5225131", "0.5225131", "0.5214864", "0.52140945", "0.5112615", "0.5102811", "0.505641", "0.50516784", "0.50420356", "0.5020071", "0.50070626", "0.50031316", "0.4956012"...
0.724426
1
The number of pixels to crop from the bottom. The default is 0. Generated from protobuf field int32 bottom_pixels = 2;
Число пикселей для обрезки снизу. По умолчанию 0. Сгенерировано из поля protobuf int32 bottom_pixels = 2;
public function setBottomPixels($var) { GPBUtil::checkInt32($var); $this->bottom_pixels = $var; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getBottomPixels()\n {\n return $this->bottom_pixels;\n }", "public function getTopPixels()\n {\n return $this->top_pixels;\n }", "public function setTopPixels($var)\n {\n GPBUtil::checkInt32($var);\n $this->top_pixels = $var;\n\n return $this;\n...
[ "0.7243026", "0.571388", "0.5696839", "0.5400286", "0.52503675", "0.522488", "0.522488", "0.522488", "0.522488", "0.522488", "0.52154994", "0.5213884", "0.51136756", "0.5101056", "0.5057477", "0.5053238", "0.5042362", "0.502049", "0.5007128", "0.50030035", "0.49569115", "0....
0.740729
0
The number of pixels to crop from the left. The default is 0. Generated from protobuf field int32 left_pixels = 3;
Число пикселей для среза слева. По умолчанию 0. Сгенерировано из поля protobuf int32 left_pixels = 3;
public function getLeftPixels() { return $this->left_pixels; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setLeftPixels($var)\n {\n GPBUtil::checkInt32($var);\n $this->left_pixels = $var;\n\n return $this;\n }", "public function getLeftColumnSize(): int\n {\n return $this->leftColumnSize;\n }", "public function getLeft() {}", "public function getLeftCnt()\n...
[ "0.75383747", "0.6012024", "0.5606183", "0.5599118", "0.55883694", "0.5489636", "0.54555756", "0.54555756", "0.5425044", "0.5422692", "0.5407979", "0.54032046", "0.533785", "0.5299609", "0.5279458", "0.52545726", "0.5243257", "0.51992595", "0.51441187", "0.5127499", "0.512334...
0.73960835
1
The number of pixels to crop from the left. The default is 0. Generated from protobuf field int32 left_pixels = 3;
Число пикселей для среза слева. По умолчанию 0. Сгенерировано из поля protobuf int32 left_pixels = 3;
public function setLeftPixels($var) { GPBUtil::checkInt32($var); $this->left_pixels = $var; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getLeftPixels()\n {\n return $this->left_pixels;\n }", "public function getLeftColumnSize(): int\n {\n return $this->leftColumnSize;\n }", "public function getLeft() {}", "public function getLeftCnt()\n {\n return $this->get(self::_LEFT_CNT);\n }", "pu...
[ "0.7395889", "0.6012423", "0.560514", "0.56000024", "0.5588442", "0.5488483", "0.54552317", "0.54552317", "0.5426301", "0.54219174", "0.54082954", "0.54043895", "0.5336721", "0.5299679", "0.5280053", "0.5253579", "0.5243798", "0.5199345", "0.5144588", "0.51279", "0.5124281", ...
0.7537483
0
The number of pixels to crop from the right. The default is 0. Generated from protobuf field int32 right_pixels = 4;
Число пикселей для среза справа. По умолчанию 0. Генерируется из поля protobuf int32 right_pixels = 4;
public function getRightPixels() { return $this->right_pixels; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setRightPixels($var)\n {\n GPBUtil::checkInt32($var);\n $this->right_pixels = $var;\n\n return $this;\n }", "public function getRightColumnSize(): int\n {\n return $this->rightColumnSize;\n }", "function _fillRight()\n {\n return $this->_right -...
[ "0.75342387", "0.5966398", "0.5687922", "0.5541123", "0.52726257", "0.52210253", "0.52174103", "0.51583695", "0.5138109", "0.5112237", "0.5034175", "0.5034175", "0.50271606", "0.50037146", "0.496971", "0.489657", "0.484291", "0.47995794", "0.47890052", "0.47868595", "0.478583...
0.73755795
1
The number of pixels to crop from the right. The default is 0. Generated from protobuf field int32 right_pixels = 4;
Число пикселей для среза справа. По умолчанию 0. Генерируется из поля protobuf int32 right_pixels = 4;
public function setRightPixels($var) { GPBUtil::checkInt32($var); $this->right_pixels = $var; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getRightPixels()\n {\n return $this->right_pixels;\n }", "public function getRightColumnSize(): int\n {\n return $this->rightColumnSize;\n }", "function _fillRight()\n {\n return $this->_right - $this->_padding['right'];\n }", "public function getPadding...
[ "0.7375101", "0.5967311", "0.5685744", "0.5540168", "0.5270685", "0.5221875", "0.5216116", "0.515659", "0.51358575", "0.5110921", "0.50324863", "0.50324863", "0.5025464", "0.50018907", "0.49695528", "0.4895476", "0.48412743", "0.47977966", "0.47890064", "0.4785433", "0.478500...
0.75350577
0
Add given amount to the wallet's balance.
Добавить указанную сумму на баланс кошелька.
public function add(float $amount) { $this->balance += $amount; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function deposit($amount) {\n $this->balance += $amount;\n }", "public function update($amount)\n {\n $currentBalance = auth()->user()->balance->amount;\n $newAmount = $currentBalance + $amount;\n auth()->user()->balance()->update(['amount' => $newAmount]);\n }", "public fu...
[ "0.7237583", "0.7155315", "0.70709586", "0.70252115", "0.6732435", "0.6690789", "0.6642856", "0.63571393", "0.632327", "0.62026334", "0.61598295", "0.6017044", "0.60105515", "0.59672403", "0.59567493", "0.595033", "0.5860283", "0.5845227", "0.58408636", "0.58024466", "0.57690...
0.7998861
0
Subtract given amount from the wallet's balance.
Вычесть указанную сумму из баланса кошелька.
public function subtract(float $amount) { $this->balance -= $amount; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function decrementWalletBalanceBy(Deposit $deposit, $amount) : void\n {\n DB::transaction(function () use ($deposit, $amount) {\n $deposit->wallet->decrement('balance', $amount);\n });\n }", "function deposit($amount) {\n $this->balance += $amount;\n }", "public ...
[ "0.73041844", "0.6778433", "0.6609438", "0.6576733", "0.65555", "0.6495017", "0.6474183", "0.634022", "0.63376766", "0.6236585", "0.6143148", "0.61239904", "0.59572625", "0.5808311", "0.57343996", "0.5732986", "0.5708801", "0.5694564", "0.567307", "0.5650533", "0.5634415", ...
0.80076396
0
get list of invoice fields with description
получить список полей счета с описанием
public function fields() { $fullResult = $this->client->call( 'crm.invoice.fields' ); return $fullResult; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_fields()\n {\n return [\n \"isys_catg_invoice_list__denotation\" => \"LC__CMDB__CATG__TITLE\",\n \"isys_catg_invoice_list__amount\" => \"LC__CMDB__CATG__INVOICE__AMOUNT\",\n \"isys_catg_invoice_list__date\" ...
[ "0.7274115", "0.6763548", "0.67042637", "0.6695244", "0.6695244", "0.6695244", "0.6695244", "0.6695244", "0.6695244", "0.66423136", "0.65728533", "0.6552799", "0.6552799", "0.6552799", "0.6525986", "0.6525986", "0.6525986", "0.6525986", "0.6525986", "0.6523639", "0.64692956",...
0.74043864
0
Set Head and Data encrypt key
Установить заголовок и ключ шифрования данных
public function setKey($headKey,$dataKey){ $this->head_key = $headKey; $this->data_key = $dataKey; ## If head key == null, no encryption at all ## if(is_null($this->head_key)) $this->flag &= (self::FLAG_ENCRYPTION ^ 0xFF); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function _setupKey() {\n\t\tif ( ! isset( $this->key ) ) {\n\t\t\t$this->setKey( '' );\n\t\t}\n\n\t\t// Key has already been expanded in Crypt_RC2::setKey():\n\t\t// Only the first value must be altered.\n\t\t$l = unpack( 'Ca/Cb/v*', $this->key );\n\t\tarray_unshift( $l, $this->pitable[ $l['a'] ] | ( $l['b'...
[ "0.6520946", "0.6087283", "0.60700047", "0.60217834", "0.5934271", "0.59120196", "0.58619297", "0.58487666", "0.5840298", "0.58187973", "0.57934856", "0.5788164", "0.5785163", "0.5738115", "0.5703209", "0.5666118", "0.5665999", "0.56433344", "0.5637107", "0.5635322", "0.56312...
0.7957481
0
Finds and displays a Perfil entity.
Находит и отображает сущность Perfil.
public function showAction($id) { $this->get('session')->getFlashBag()->clear(); $em = $this->getDoctrine()->getManager(); $entity = $em->getRepository('UsuarioBundle:Perfil')->find($id); if (!$entity) { throw $this->createNotFoundException('No se ha podido encontrar la en...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show(Perfil $perfil)\n {\n //\n }", "public function actionPerfil($id)\n {\n return $this->render('perfil', [\n 'model' => $this->findModel($id),\n ]);\n }", "public function show($Perprof)\n {\n if(Auth()->guard()->check() && Auth::user()->pr...
[ "0.77946544", "0.6630333", "0.6584973", "0.65097666", "0.65093625", "0.64703286", "0.63999575", "0.63156223", "0.6314044", "0.6289836", "0.6258189", "0.62382877", "0.6219034", "0.6206361", "0.6197468", "0.6119564", "0.60810536", "0.60679233", "0.60515773", "0.60374165", "0.60...
0.74478984
1
Displays a form to create a new Perfil entity.
Показывает форму для создания новой сущности Perfil.
public function newAction() { $this->get('session')->getFlashBag()->clear(); $entity = new Perfil(); $form = $this->createForm(PerfilType::class, $entity); return $this->render('UsuarioBundle:Perfil:new.html.twig', array( 'entity' => $entity, 'for...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function actionCreate()\n {\n $model = new PerfilUsuario();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $m...
[ "0.74496865", "0.7315969", "0.7091535", "0.7061191", "0.7042456", "0.7010299", "0.7004303", "0.69816256", "0.6946137", "0.6901151", "0.6886123", "0.68705976", "0.68635625", "0.6860156", "0.6860156", "0.68388826", "0.6836366", "0.681081", "0.6809406", "0.67692304", "0.6735839"...
0.84691286
0
Displays a form to edit an existing Perfil entity.
Показывает форму для редактирования существующего сущности Perfil.
public function editAction($id) { $this->get('session')->getFlashBag()->clear(); $em = $this->getDoctrine()->getManager(); $entity = $em->getRepository('UsuarioBundle:Perfil')->find($id); if (!$entity) { throw $this->createNotFoundException('No se ha podido encontrar la en...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function edit(Perfil $perfil)\n {\n //\n }", "public function edit()\n {\n $user = Auth::user();\n $perfil = Perfil::find($user->perfil_id);\n if($user->perfil_id == null || !$perfil){\n return redirect()->route('app.registro');\n }\n return vi...
[ "0.782798", "0.7491285", "0.7452297", "0.74431556", "0.7436722", "0.7402764", "0.73588485", "0.7286256", "0.72851634", "0.721166", "0.7120933", "0.7093856", "0.70919305", "0.702277", "0.7012684", "0.70020497", "0.6995061", "0.69900155", "0.69880456", "0.69611454", "0.6951167"...
0.801416
0
Sets the allowAutoFilter property value. Represents the worksheet protection option of allowing using auto filter feature.
Устанавливает значение свойства allowAutoFilter. Представляет опцию защиты листа, позволяющую использовать функцию автоматического фильтра.
public function setAllowAutoFilter(?bool $value): void { $this->getBackingStore()->set('allowAutoFilter', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setAllow($value) {\r\n $this->allow = $value;\r\n }", "public function setFilter($filter)\n {\n if($filter==self::FILTER_ALL or\n $filter==self::FILTER_ACCESSIBLE or\n $filter==self::FILTER_PUBLIC) $this->options['filter']=$filter;\n\n if($this->options['userMode']==s...
[ "0.5925527", "0.53225154", "0.52137244", "0.5204544", "0.519892", "0.5113878", "0.508951", "0.5057619", "0.50349826", "0.5010782", "0.4989251", "0.49856418", "0.4970983", "0.49706158", "0.49438718", "0.49438718", "0.49438", "0.4886379", "0.48820034", "0.48763442", "0.48681644...
0.70581305
0
Sets the allowDeleteColumns property value. Represents the worksheet protection option of allowing deleting columns.
Устанавливает значение свойства allowDeleteColumns. Представляет опцию защиты листа, позволяющую удалять столбцы.
public function setAllowDeleteColumns(?bool $value): void { $this->getBackingStore()->set('allowDeleteColumns', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setAllowDeletions(bool $allowDeletions) : self\n {\n $this->initialized['allowDeletions'] = true;\n $this->allowDeletions = $allowDeletions;\n return $this;\n }", "function allowDelete($allow){\n\t\t$this->canDelete=$allow;\n\t}", "public function setAllowInsertColumn...
[ "0.5950046", "0.5890449", "0.5841001", "0.57903403", "0.5676563", "0.54180944", "0.5368394", "0.50802976", "0.5071956", "0.49379215", "0.48585194", "0.48417962", "0.4823687", "0.4715869", "0.46943343", "0.46924132", "0.4592714", "0.45750594", "0.4565971", "0.45096895", "0.450...
0.7294771
0
Sets the allowDeleteRows property value. Represents the worksheet protection option of allowing deleting rows.
Устанавливает значение свойства allowDeleteRows. Представляет опцию защиты листа рабочей книги, позволяющую удалять строки.
public function setAllowDeleteRows(?bool $value): void { $this->getBackingStore()->set('allowDeleteRows', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function allowDelete($allow){\n\t\t$this->canDelete=$allow;\n\t}", "public function setAllowFormatRows(?bool $value): void {\n $this->getBackingStore()->set('allowFormatRows', $value);\n }", "public function setAllowInsertRows(?bool $value): void {\n $this->getBackingStore()->set('allowInsertR...
[ "0.62545216", "0.5846641", "0.5784255", "0.52910304", "0.5195974", "0.51091963", "0.50455886", "0.49867865", "0.4981466", "0.49717027", "0.49549872", "0.49489304", "0.4936727", "0.49312142", "0.4919258", "0.4884218", "0.4853141", "0.48246723", "0.48138165", "0.48099166", "0.4...
0.72851735
0
Sets the allowFormatColumns property value. Represents the worksheet protection option of allowing formatting columns.
Устанавливает значение свойства allowFormatColumns. Представляет опцию защиты листа с возможностью форматирования столбцов.
public function setAllowFormatColumns(?bool $value): void { $this->getBackingStore()->set('allowFormatColumns', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setAllowFormatCells(?bool $value): void {\n $this->getBackingStore()->set('allowFormatCells', $value);\n }", "function enableFormatting($format = true)\n {\n $this->formatFields = $format;\n }", "public function setAllowDeleteColumns(?bool $value): void {\n $this->...
[ "0.5695502", "0.542236", "0.5405737", "0.5334911", "0.5234388", "0.5221826", "0.5087807", "0.5003635", "0.49762374", "0.49650043", "0.49639156", "0.49422345", "0.4890542", "0.4872179", "0.48303664", "0.47746363", "0.4736848", "0.47107637", "0.46985918", "0.46816823", "0.46683...
0.70476925
0
Sets the allowFormatRows property value. Represents the worksheet protection option of allowing formatting rows.
Устанавливает значение свойства allowFormatRows. Представляет опцию защиты листа с возможностью форматирования строк.
public function setAllowFormatRows(?bool $value): void { $this->getBackingStore()->set('allowFormatRows', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function enableFormatting($format = true)\n {\n $this->formatFields = $format;\n }", "public function setAllowFormatCells(?bool $value): void {\n $this->getBackingStore()->set('allowFormatCells', $value);\n }", "public function setAllow($allow) {\r\n\t\treturn $this -> allow = (array)$al...
[ "0.5622722", "0.5590575", "0.51335114", "0.51315325", "0.5056843", "0.49894592", "0.49873912", "0.4941452", "0.49378338", "0.4873483", "0.48092395", "0.48006082", "0.47676697", "0.47378662", "0.46661165", "0.46661165", "0.46586257", "0.46517926", "0.46499568", "0.46354848", "...
0.7202399
0
Sets the allowInsertColumns property value. Represents the worksheet protection option of allowing inserting columns.
Устанавливает значение свойства allowInsertColumns. Представляет опцию защиты листа, позволяющую вставлять столбцы.
public function setAllowInsertColumns(?bool $value): void { $this->getBackingStore()->set('allowInsertColumns', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setAllowDeleteColumns(?bool $value): void {\n $this->getBackingStore()->set('allowDeleteColumns', $value);\n }", "public function getAllowableColumns()\n\t{\n\t\treturn $this->_arrColumns;\n\t}", "public function setAllowFormatColumns(?bool $value): void {\n $this->getBackingSt...
[ "0.60530186", "0.58602875", "0.5782449", "0.57082343", "0.5362694", "0.5218457", "0.5208569", "0.497807", "0.497807", "0.49355802", "0.49227145", "0.48658213", "0.48605514", "0.4856851", "0.4824063", "0.47963122", "0.47334063", "0.4700938", "0.46467835", "0.46426192", "0.4624...
0.72751385
0
Sets the allowInsertHyperlinks property value. Represents the worksheet protection option of allowing inserting hyperlinks.
Устанавливает значение свойства allowInsertHyperlinks. Представляет опцию защиты листа с возможностью вставки гиперссылок.
public function setAllowInsertHyperlinks(?bool $value): void { $this->getBackingStore()->set('allowInsertHyperlinks', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAllowInsertHyperlinks(): ?bool {\n $val = $this->getBackingStore()->get('allowInsertHyperlinks');\n if (is_null($val) || is_bool($val)) {\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'allowInsertHyperli...
[ "0.54872", "0.52379644", "0.49146596", "0.48699942", "0.48645622", "0.4860976", "0.48375228", "0.48201442", "0.46735954", "0.46371892", "0.45623207", "0.45289797", "0.44884276", "0.4476447", "0.44753027", "0.44711658", "0.4467779", "0.44459116", "0.44298467", "0.44095448", "0...
0.75367516
0
Sets the allowInsertRows property value. Represents the worksheet protection option of allowing inserting rows.
Устанавливает значение свойства allowInsertRows. Представляет опцию защиты листа с возможностью вставки строк.
public function setAllowInsertRows(?bool $value): void { $this->getBackingStore()->set('allowInsertRows', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setAllowDeleteRows(?bool $value): void {\n $this->getBackingStore()->set('allowDeleteRows', $value);\n }", "public function setAllowFormatRows(?bool $value): void {\n $this->getBackingStore()->set('allowFormatRows', $value);\n }", "public function insert_rows($row=1, $numrow...
[ "0.59624255", "0.59082437", "0.55513334", "0.5327459", "0.5203638", "0.520222", "0.5091527", "0.5046903", "0.5039171", "0.5023839", "0.49943775", "0.49585068", "0.4940516", "0.4940516", "0.49382937", "0.4922686", "0.48744333", "0.48642144", "0.48157424", "0.4763051", "0.47610...
0.70606667
0
Sets the allowPivotTables property value. Represents the worksheet protection option of allowing using pivot table feature.
Устанавливает значение свойства allowPivotTables. Представляет опцию защиты листа с возможностью использования функции таблицы сводных данных.
public function setAllowPivotTables(?bool $value): void { $this->getBackingStore()->set('allowPivotTables', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setAllow($value) {\r\n $this->allow = $value;\r\n }", "public function isPivot(): bool\n {\n return true;\n }", "public function allowToSetOptions($allow){\n $this->allowToSetOptions = (bool)$allow;\n }", "public function getAllowPivotTables(): ?bool {\n ...
[ "0.5288091", "0.5246147", "0.50661004", "0.5032595", "0.4993113", "0.49776793", "0.47678944", "0.47020853", "0.46648976", "0.4641757", "0.46404558", "0.460904", "0.45961714", "0.45941105", "0.45598513", "0.45568207", "0.45516354", "0.45198503", "0.4491315", "0.448665", "0.447...
0.7523599
0
Sets the allowSort property value. Represents the worksheet protection option of allowing using sort feature.
Устанавливает значение свойства allowSort. Представляет опцию защиты листа, позволяющую использовать функцию сортировки.
public function setAllowSort(?bool $value): void { $this->getBackingStore()->set('allowSort', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function allowColumnReorder($val){\n\t\t$this->headerSortable=$val;\n\t}", "public function allowedSorts()\n {\n return [];\n }", "public function setSort($x) { $this->sort = $x; }", "public function setSort($value)\n {\n if (is_array($value)) {\n $config = ['class' => Sort:...
[ "0.6181463", "0.60906273", "0.59463906", "0.5871387", "0.5754957", "0.5746359", "0.57399654", "0.56595117", "0.5632989", "0.559002", "0.5586106", "0.55590856", "0.54950637", "0.54918736", "0.54741746", "0.5473151", "0.54327303", "0.54021007", "0.53778446", "0.53674567", "0.53...
0.7273288
0
Test repository method getUserRate
Метод тестирования репозитория getUserRate
public function testGetUserRate() { // $rate = $this->em // ->getRepository('WidgetBundle:Users') // ->getUserRate(1); // // $this->assertEquals(23, $rate[0]['rate']); $this->assertEquals(23, 23); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_my_rate($id) {\n $dql = \"SELECT r.user, u.username, count(r.sign) as cnt\n FROM AppGuestbookBundle:Rate r\n INNER JOIN AppUserBundle:User u\n WHERE u.id = r.user\n WHERE r.author = :id AND r.sign = 1\n GROUP BY r...
[ "0.68033165", "0.6739725", "0.6458764", "0.64047", "0.6158825", "0.6158825", "0.6139815", "0.6139815", "0.6139815", "0.6139815", "0.6139815", "0.61303025", "0.6114092", "0.60608786", "0.6044403", "0.59355843", "0.5923047", "0.5923047", "0.59197664", "0.58874923", "0.58788514"...
0.8168837
0
Handle the document "created" event.
Обработка события "created" документа.
public function created(Document $document) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function givenNewDocumentIsCreated()\n {\n }", "public static function created($callback)\n {\n self::listenEvent('created', $callback);\n }", "public function onCreated()\n {\n parent::onCreated();\n\n }", "public function onCreated()\n {\n parent::onCreat...
[ "0.66045624", "0.622778", "0.6096975", "0.6096975", "0.6038235", "0.5979925", "0.5867223", "0.5838981", "0.5838981", "0.5838981", "0.58366156", "0.57841736", "0.5776711", "0.56983906", "0.5663248", "0.56577706", "0.56277", "0.5620191", "0.5582137", "0.55768204", "0.5566712", ...
0.7634924
0
Handle the document "updated" event.
Обработка события "updated" документа.
public function updated(Document $document) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function handleUpdated(Updated $event): void\n {\n $entity = $event->entity();\n\n $this->scheduleCreatingNewDocuments($entity);\n $this->scheduleRemovingOldDocuments($entity);\n\n $this->elasticsearchManager->commit();\n }", "public function onUpdateRecord()\n {\n ...
[ "0.694832", "0.65528476", "0.6543152", "0.6444287", "0.6300758", "0.6300758", "0.6300758", "0.62854874", "0.62371033", "0.62371033", "0.6213151", "0.61925334", "0.6171606", "0.61399823", "0.6138751", "0.6133197", "0.6127765", "0.6125354", "0.61223173", "0.6095574", "0.6095574...
0.76224107
0
Handle the document "restored" event.
Обработка события "restored" документа.
public function restored(Document $document) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function onRestored()\n {\n return true;\n }", "function restore()\n {\n }", "public function undoRestore ()\n {\n if (file_exists ( $this->_previewFilename ))\n {\n unlink($this->_previewFilename);\n }\n }", "public function restore() {\n ...
[ "0.6413487", "0.61572343", "0.61281914", "0.60636044", "0.5993769", "0.5970906", "0.59535384", "0.59361774", "0.58420205", "0.5821794", "0.5806341", "0.5762178", "0.5722664", "0.5635696", "0.557679", "0.5553065", "0.54790056", "0.5474604", "0.5469068", "0.54620594", "0.546205...
0.7232875
0
Handle the document "force deleted" event.
Обработка события "силовое удаление" документа.
public function forceDeleted(Document $document) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function doDeleteDocument() {\n try{\n $this->service->remove($this->owner);\n }\n catch(NotFoundException $e)\n {\n trigger_error(\"Deleted document not found in search index.\", E_USER_NOTICE);\n }\n\n }", "public function deleteDocument() {...
[ "0.7502739", "0.73461854", "0.70802426", "0.7055709", "0.69611543", "0.69611216", "0.6902899", "0.6897119", "0.68208843", "0.6817443", "0.67831874", "0.67417634", "0.67088664", "0.6694708", "0.6646327", "0.66438305", "0.66282654", "0.66268647", "0.6569746", "0.6557649", "0.65...
0.7822314
0
Get displays for a given view.
Получить дисплеи для заданного представления.
public function getViewDisplays($view_name) { $displays = []; if (empty($view_name)) { return $displays; } $view = \Drupal::entityTypeManager()->getStorage('view')->load($view_name); foreach ($view->get('display') as $id => $display) { $enabled = !empty($display['display_options']['enab...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract function retrieveViewDisplays(Row $row);", "protected function getAllViewDisplayIds() {\n $types = Views::pluginList();\n $options = [];\n foreach ($types as $key => $type) {\n if ($type['type'] === 'display') {\n $options[str_replace('display:', '', $key)] = $type['title'...
[ "0.62964016", "0.6114281", "0.61055595", "0.6022141", "0.60165644", "0.5956571", "0.5688651", "0.5654336", "0.56130373", "0.55523014", "0.5535479", "0.5520189", "0.5511722", "0.54953635", "0.54735464", "0.5460641", "0.5438878", "0.5382909", "0.53625494", "0.536244", "0.531579...
0.73983955
0
Create a new sale location entry
Создать новую запись о месте продаж
public function create(SalesLocationsCreateOrUpdateEvent $event) { $saleLocation = new SalesLocationsModel(); $saleLocation ->setDispatcher($event->getDispatcher()) ->setCompany($event->getCompany()) ->setFirstname($event->getFirstname()) ->setLastna...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create(StoreLocationRequest $request)\r\n {\r\n $opening_hours = $this->formatOpeningHours($request);\r\n $disabled_dates = $this->formatDisabledDates($request);\r\n\r\n $location = $this->location->create([\r\n 'name' => $request->get('name'),\r\n ...
[ "0.67699426", "0.66872907", "0.6583848", "0.65425193", "0.63385093", "0.6321422", "0.62639344", "0.6218879", "0.6202417", "0.61987025", "0.6194191", "0.61271554", "0.61206174", "0.6093045", "0.6083791", "0.60799193", "0.60600364", "0.60597146", "0.60452306", "0.6043754", "0.6...
0.7167187
0
Highlights a given phrase in a text. You can specify any expression in highlighter that may include the \1 expression to include the $phrase found.
Выделяет заданную фразу в тексте. Вы можете указать любое выражение в выделителе, которое может включать выражение \1 для включения найденной $phrase.
public function highlight($text, $phrase, $format = '<span class="highlight">\1</span>', $regex = '|%s|iu') { if (empty($phrase)) { return $text; } if (is_array($phrase)) { $replace = []; $with = []; foreach ($phrase as $key => $segment) { $segment = '(' . preg_quote($segment, '|') . ')'; $s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function highlight_phrase($str, $phrase, $tag_open = '<mark>', $tag_close = '</mark>')\r\n\t{\r\n\t\treturn ($str !== '' && $phrase !== '')\r\n\t\t\t? preg_replace('/('.preg_quote($phrase, '/').')/i'.(UTF8_ENABLED ? 'u' : ''), $tag_open.'\\\\1'.$tag_close, $str)\r\n\t\t\t: $str;\r\n\t}", "public static function ...
[ "0.74331784", "0.70747364", "0.68049175", "0.64409864", "0.61963654", "0.6110609", "0.59963197", "0.5981626", "0.58896494", "0.5883394", "0.579358", "0.5772949", "0.5710183", "0.54785687", "0.54698575", "0.53842974", "0.5380845", "0.53246385", "0.52440315", "0.52351594", "0.5...
0.7722337
0
Extracts an excerpt from the text surrounding the phrase with a number of characters on each side determined by radius.
Извлекает фрагмент текста, окружающий фразу, с количеством символов с каждой стороны, определяемым радиусом.
public function excerpt($text, $phrase, $radius = 100, $end = '…') { if (empty($text) || empty($phrase)) { return self::truncate($text, $radius * 2, ['end' => $end]); } $append = $prepend = $end; $phraseLen = mb_strlen($phrase); $textLen = mb_strlen($text); $pos = mb_strpos(mb_strtolower($text), mb_st...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function wp_article_excerpt($text, $phrase, $radius = 100, $ellipsis = '...') {\r\n\tif (empty($text) || empty($phrase)) {\r\n\t\treturn wp_article_truncate($text, $radius * 2, array('ellipsis' => $ellipsis));\r\n\t}\r\n\r\n\t$append = $prepend = $ellipsis;\r\n\r\n\t$phraseLen = mb_strlen($phrase);\r\n\t$textLen =...
[ "0.7602098", "0.63253576", "0.6097303", "0.5969905", "0.57759833", "0.57385105", "0.5718606", "0.56723297", "0.56347984", "0.5613179", "0.5607442", "0.5603852", "0.558375", "0.558244", "0.5572754", "0.5492233", "0.5487198", "0.54841095", "0.5483074", "0.54802704", "0.5476075"...
0.734976
1
We clone the http headers when we clone the curren object
Мы копируем http заголовки, когда копируем текущий объект
public function __clone() { $this->headers = clone $this->headers; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __clone () {\r\n\t\t$this->Headers = clone $this->Headers;\r\n\t\t$this->Cookies = clone $this->Cookies;\r\n\t}", "public function clearHttpHeaders()\n {\n $this->headers = array();\n }", "function nocache_headers()\n {\n }", "abstract public function SetHeaders();", "public func...
[ "0.7636327", "0.69444245", "0.6913304", "0.6830726", "0.68207216", "0.6762735", "0.67334944", "0.67150074", "0.67047787", "0.6626857", "0.6607092", "0.6598655", "0.65778387", "0.65693045", "0.65629345", "0.6498055", "0.6411379", "0.64014125", "0.63961", "0.6381961", "0.635693...
0.8182132
0
Returns a list of metapackage builders.
Возвращает список построителей метапакетов.
protected function builders() { return [ DrupalCoreRecommendedBuilder::class, DrupalDevDependenciesBuilder::class, DrupalPinnedDevDependenciesBuilder::class, ]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getBuilders(): array\n {\n return [\n new RenameTemplates($this),\n new UpdateComposerJson($this),\n new UpdateReadme($this),\n new UpdateLicense($this),\n new UpdateSourceFileHeaders($this),\n new UpdateNamespace($this),\n...
[ "0.7342777", "0.6367912", "0.6258459", "0.6235427", "0.59164274", "0.5881666", "0.567643", "0.55630773", "0.54474694", "0.5403255", "0.53939813", "0.5371173", "0.5348861", "0.5344161", "0.53269035", "0.5319923", "0.52891004", "0.5282986", "0.52802706", "0.5278117", "0.5275179...
0.7386035
0
Returns the domain of the given $id page.
Возвращает домен страницы с заданным $id.
public function getDomainOfPage($id) { $id2 = null; $page2Domain = $this->getKrynCore()->getDistributedCache('core/node/toDomains'); if (!is_array($page2Domain)) { $page2Domain = $this->updatePage2DomainCache(); } $id = ',' . $id . ','; foreach ($page2D...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDomain($id)\n {\n return $this->_execute('/domain/' . $id . '/', self::METHOD_GET);\n }", "public static function page_url_get($id) {\n\n\t\t\t\t// $k = 0;\n\t\t\t\t// $pageUrl = '/';\n\t\t\t\t//\n\t\t\t\t// do {\n\t\t\t\t//\n\t\t\t\t// \t$sql = 'SELECT\n\t\t\t\t// \t\t\t\tparent_...
[ "0.7330781", "0.63465875", "0.6221067", "0.61054367", "0.60852045", "0.60632056", "0.6008932", "0.59432274", "0.59182954", "0.5834149", "0.5773145", "0.5756665", "0.5752635", "0.5682991", "0.56569815", "0.56490856", "0.5632301", "0.5628314", "0.56141984", "0.5611769", "0.5544...
0.83298194
0
Releases all locked aquired by this process. Will be called during process shutdown. (register_shutdown_function)
Освобождает все заблокированные, полученные этим процессом. Будет вызвано во время завершения процесса. (register_shutdown_function)
public function releaseLocks() { foreach ($this->lockedKeys as $key => $value) { self::appRelease($key); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __destruct()\n {\n foreach ($this->acquiredLocks as $key => $true) {\n $this->release($key);\n }\n }", "private function release(): void\n {\n if ($this->lock) {\n $this->lock->release();\n $this->lock = null;\n }\n }", "p...
[ "0.71152633", "0.6703821", "0.64991945", "0.64624995", "0.6440424", "0.6398026", "0.6287097", "0.6195872", "0.61939", "0.6113046", "0.6100914", "0.60864055", "0.60691756", "0.60613245", "0.60594404", "0.60155815", "0.60155815", "0.60155815", "0.60155815", "0.60155815", "0.596...
0.7234906
0
datatable verifikasi transaksi rembug
datatable верификации транзакций собрания
public function datatable_verifikasi_trx_rembug() { /* Array of database columns which should be read and sent back to DataTables. Use a space where * you want to insert a non-database field (for example a counter or static image) */ $branch_id = @$_GET['branch_id']; $branch_code = @$_GET['branch_c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function datatable_verifikasi_transaksi_kas_petugas()\n\t{\n\n\t\t$from_date = str_replace('/','',@$_GET['from_date']);\n\t\t$from_date = substr($from_date,4,4).'-'.substr($from_date,2,2).'-'.substr($from_date,0,2);\n\t\t$thru_date = str_replace('/','',@$_GET['thru_date']);\n\t\t$thru_date = substr($thru_...
[ "0.66840273", "0.6668304", "0.66328496", "0.65924084", "0.6560142", "0.65459955", "0.6532512", "0.65041924", "0.633446", "0.63340306", "0.6244683", "0.6238859", "0.6237984", "0.6226346", "0.6182707", "0.61717683", "0.61163753", "0.6114558", "0.6113364", "0.60850656", "0.60795...
0.7296796
0
AJAX GET DATA PENGAJUAN BY REGISTRATION NO
AJAX GET DATA ПЕРЕДАЧА ПО НОМЕРУ РЕГИСТРАЦИИ
function ajax_get_data_pengajuan_by_registration_no() { $registration_no=$this->input->post('registration_no'); $data=$this->model_transaction->get_data_pengajuan_by_registration_no($registration_no); echo json_encode($data); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_ajax_value_from_no_reg()\n\t{\n\t\t$cif_no = $this->input->post('cif_no');\n\t\t$data = $this->model_transaction->get_ajax_value_from_no_reg($cif_no);\n\n\t\techo json_encode($data);\n\t}", "function getRegistroAJAX() {\n switch (@$_POST['operacao']) {\n /**\n * ...
[ "0.67178434", "0.6583864", "0.65572786", "0.62899625", "0.62737375", "0.61827165", "0.6084496", "0.6059378", "0.6057687", "0.6052357", "0.59945935", "0.59898627", "0.59655386", "0.5953913", "0.594476", "0.5921933", "0.5882459", "0.58664733", "0.5855018", "0.58519685", "0.5844...
0.7110775
0
AJAX GET SEQUENCE NUMBER OF ACCOUNT SAVING NO
AJAX GET НОМЕР ПОСЛЕДОВАТЕЛЬНОСТИ СЧЕТА СОХРАНЕНИЕ НЕТ
function get_seq_account_saving_no() { $product_code=$this->input->post('product_code'); $cif_no=$this->input->post('cif_no'); $data=$this->model_transaction->get_seq_account_saving_no($product_code,$cif_no); $jumlah=(int)$data['jumlah']; if(count($data)>0){ $newseq=$jumlah+1; if($jumlah<10){ $news...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_seq_account_financing_no()\n\t{\n\t\t$product_code=$this->input->post('product_code');\n\t\t$cif_no=$this->input->post('cif_no');\n\t\t$data=$this->model_transaction->get_seq_account_financing_no($product_code,$cif_no);\n\t\t$jumlah=(int)$data['jumlah'];\n\t\tif(count($data)>0){\n\t\t\t$newseq=$jumlah...
[ "0.6781912", "0.61204624", "0.60750926", "0.60463876", "0.5989816", "0.5989816", "0.598144", "0.5971348", "0.5900139", "0.58957845", "0.58628964", "0.58603454", "0.58549565", "0.582057", "0.5814559", "0.5814559", "0.5799397", "0.5794567", "0.57906157", "0.5776012", "0.5775988...
0.71245205
0
AJAX GET SEQUENCE NUMBER OF ACCOUNT FINANCING NO
AJAX GET НОМЕР ПОСЛЕДОВАТЕЛЬНОСТИ СЧЕТА ФИНАНСИРОВАНИЯ НЕ
function get_seq_account_financing_no() { $product_code=$this->input->post('product_code'); $cif_no=$this->input->post('cif_no'); $data=$this->model_transaction->get_seq_account_financing_no($product_code,$cif_no); $jumlah=(int)$data['jumlah']; if(count($data)>0){ $newseq=$jumlah+1; if($jumlah<10){ ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_seq_account_saving_no()\n\t{\n\t\t$product_code=$this->input->post('product_code');\n\t\t$cif_no=$this->input->post('cif_no');\n\t\t$data=$this->model_transaction->get_seq_account_saving_no($product_code,$cif_no);\n\t\t$jumlah=(int)$data['jumlah'];\n\t\tif(count($data)>0){\n\t\t\t$newseq=$jumlah+1;\n\...
[ "0.71460027", "0.63934135", "0.63779765", "0.62020904", "0.6124516", "0.6124516", "0.61046284", "0.6083677", "0.6082606", "0.6006412", "0.59524333", "0.5854478", "0.58540463", "0.58228225", "0.5794217", "0.5791291", "0.5790428", "0.57806575", "0.5761429", "0.5754749", "0.5724...
0.7341702
0
END CETAK ULANG VALIDASI / | Modul : Update Tanggal Transaksi Jurnal | author : Sayyid Nurkilah | Date : 09/10/2014 10:29
Конец повторной печати проверки / | Модуль: Обновление даты транзакции журнала | автор: Саййид Нуркилах | Дата: 09/10/2014 10:29
public function jurnal_update_tanggal_transaksi() { $trx_gl_id = $this->input->post('trx_gl_id'); $trx_date = $this->input->post('trx_date'); $voucher_date = $this->input->post('voucher_date'); $jurnal_trx_type = $this->input->post('jurnal_trx_type'); $jurnal_trx_id = $this->input->post('jurnal_trx_id'); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function update_transaksi_jurnal()\n\t{\n\t\t// echo \"<pre>\";\n\t\t// print_r($_POST);\n\n\t\t$branch_code \t\t= $this->input->post('branch_code');\n\t\t$no_referensi \t\t= $this->input->post('no_referensi2');\n\t\t$deskripsi \t\t\t= $this->input->post('deskripsi2');\n\t\t$tanggal \t\t\t= $this->input->po...
[ "0.7954821", "0.7108667", "0.7101211", "0.6957295", "0.695274", "0.69244176", "0.6907992", "0.6905928", "0.69027317", "0.6831359", "0.6799427", "0.6780384", "0.675844", "0.6752985", "0.67409575", "0.67393124", "0.67179185", "0.66260636", "0.6623307", "0.6619407", "0.6616657",...
0.7645619
1
return first group object, there will be always single group.
вернуть первый объект группы, там всегда будет одна группа.
public function getGroupObject() { return $this->groups[0]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_first_group()\n {\n return ee()->db->select('MIN(group_id) AS group_id')\n ->get('category_groups')\n ->row('group_id');\n }", "private function getSingleGroup()\n {\n if (!$this->result) {\n throw new \\Exception('This ada...
[ "0.7915406", "0.7439646", "0.73598886", "0.7235052", "0.7093033", "0.70481825", "0.7033126", "0.6940074", "0.6870544", "0.6796795", "0.675143", "0.66974026", "0.66873115", "0.66102374", "0.6604649", "0.6597303", "0.6557311", "0.6557311", "0.6557311", "0.6557311", "0.6557311",...
0.80159634
0
return first group name, there will be always single group.
вернуть имя первой группы, всегда будет одна группа.
public function getGroup() { if(count($this->groups)) return $this->groups[0]->getName(); else return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getGroupName()\n {\n return $this->__get(self::FIELD_GROUP_NAME);\n }", "public function getGroupName(){\n\n\t global $db;\n\n\t #see if user is guest, if so, set gorpu name as simply guest.\n\t\tif($this->user == \"guest\"){\n\t\t\t$getGroupName = 'guest';\n\n\t\t\treturn($get...
[ "0.7562139", "0.75606275", "0.75508434", "0.75145626", "0.7409519", "0.7277238", "0.725331", "0.7227248", "0.7217999", "0.7196431", "0.7155138", "0.71531326", "0.7134795", "0.71303004", "0.70953596", "0.7089201", "0.70768595", "0.70669115", "0.70669115", "0.70503485", "0.6995...
0.7780106
0
Get a new query builder that returns only drafted resources.
Получите новый построитель запросов, возвращающий только черновые ресурсы.
public static function drafted() { return (new static )->newQueryWithoutScope(new ContentPublishingScope())->drafted(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function withDrafted()\n {\n return (new static )->newQueryWithoutScope(new ContentPublishingScope())->withDrafted();\n }", "public static function drafts()\n {\n return self::where('published', '=', false)->get();\n }", "public function scopeDraft($query)\n {\n ...
[ "0.82894474", "0.7376883", "0.69010913", "0.6726728", "0.66989183", "0.66858166", "0.6456149", "0.63458383", "0.6293496", "0.627346", "0.624663", "0.6196388", "0.61886245", "0.6161784", "0.6103881", "0.60969245", "0.59413123", "0.59307337", "0.5921801", "0.59133583", "0.58710...
0.80025053
1
Get a new query builder that only includes approved resources.
Получите новый построитель запросов, включающий только одобренные ресурсы.
public static function approved() { return (new static )->newQueryWithoutScope(new ContentPublishingScope())->approved(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function withApproved()\n {\n return (new static )->newQueryWithoutScope(new ContentPublishingScope())->withApproved();\n }", "public function scopeApproved(Builder $builder): Builder\n {\n return $builder->where('approved', true);\n }", "public function scopeApproved($q...
[ "0.71319693", "0.6602908", "0.6254938", "0.62363946", "0.61662954", "0.6020874", "0.6004069", "0.59751475", "0.58739203", "0.5757189", "0.57300603", "0.55975413", "0.5565583", "0.5458248", "0.5456789", "0.5393907", "0.53815264", "0.53566337", "0.5310454", "0.53056616", "0.530...
0.7033901
1
Get a new query builder that returns archived resources.
Получите новый построитель запросов, возвращающий архивные ресурсы.
public static function archived() { return (new static )->newQueryWithoutScope(new ContentPublishingScope())->archived(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function withArchived()\n {\n return (new static )->newQueryWithoutScope(new ContentPublishingScope())->withArchived();\n }", "public function archive()\n {\n return $this->client->requestWithResource($this, 'PUT', '/archived', [\n 'headers' => ['X-Contentful-Versi...
[ "0.7599686", "0.6372893", "0.5990331", "0.581294", "0.57721335", "0.5709322", "0.5686159", "0.56347865", "0.5583035", "0.55768424", "0.5528233", "0.54685986", "0.53829473", "0.5342265", "0.5336907", "0.53180575", "0.5309426", "0.5300387", "0.52652544", "0.52582985", "0.525706...
0.778653
0
Get a new query builder that includes drafted resources.
Получите новый построитель запросов, включающий черновые ресурсы.
public static function withDrafted() { return (new static )->newQueryWithoutScope(new ContentPublishingScope())->withDrafted(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function drafted()\n {\n return (new static )->newQueryWithoutScope(new ContentPublishingScope())->drafted();\n }", "public static function drafts()\n {\n return self::where('published', '=', false)->get();\n }", "public function scopeDraft($query)\n {\n return...
[ "0.75646013", "0.6760709", "0.6388133", "0.63626826", "0.6360245", "0.6350816", "0.62652904", "0.624249", "0.6138659", "0.61013436", "0.6046204", "0.6026111", "0.5980388", "0.59129435", "0.58803344", "0.58766204", "0.5856778", "0.58374184", "0.5787044", "0.5766981", "0.576275...
0.80597216
0
Get a new query builder that includes rejected resources.
Получите новый построитель запросов, включающий отклоненные ресурсы.
public static function withRejected() { return (new static )->newQueryWithoutScope(new ContentPublishingScope())->withRejected(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function rejected()\n {\n return (new static )->newQueryWithoutScope(new ContentPublishingScope())->rejected();\n }", "public function exclusions(): ExclusionsRequestBuilder {\n return new ExclusionsRequestBuilder($this->pathParameters, $this->requestAdapter);\n }", "public...
[ "0.67145145", "0.5949052", "0.5741755", "0.573434", "0.56796145", "0.5662049", "0.5637546", "0.56334823", "0.5537801", "0.54699165", "0.5466595", "0.54642975", "0.5434629", "0.53124684", "0.529033", "0.5281662", "0.5279054", "0.52736586", "0.5253193", "0.52185124", "0.521809"...
0.70962757
0
Get a new query builder that includes archived resources.
Получите новый построитель запросов, включающий архивные ресурсы.
public static function withArchived() { return (new static )->newQueryWithoutScope(new ContentPublishingScope())->withArchived(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function archived()\n {\n return (new static )->newQueryWithoutScope(new ContentPublishingScope())->archived();\n }", "public function archive()\n {\n return $this->client->requestWithResource($this, 'PUT', '/archived', [\n 'headers' => ['X-Contentful-Version' => $...
[ "0.7654924", "0.6238673", "0.61713624", "0.5965821", "0.5795015", "0.570144", "0.56571436", "0.56121606", "0.55951583", "0.55738527", "0.54851085", "0.5428319", "0.5397015", "0.53839076", "0.5376579", "0.53606427", "0.53576267", "0.5315637", "0.53049594", "0.52988166", "0.529...
0.7680675
0
Generated from protobuf field .io.token.proto.common.token.TokenPayload payload = 1;
Сгенерировано из поля protobuf .io.token.proto.common.token.TokenPayload payload = 1;
public function setPayload($var) { GPBUtil::checkMessage($var, \Io\Token\Proto\Common\Token\TokenPayload::class); $this->payload = $var; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function token(Payload $payload): Token;", "public function getPayload();", "public function getPayload();", "public function getPayload();", "public function setPayload($var)\n {\n GPBUtil::checkString($var, False);\n $this->payload = $var;\n\n return $this;\n }", "publ...
[ "0.71368736", "0.65416044", "0.65416044", "0.65416044", "0.6533731", "0.639544", "0.6326058", "0.63208973", "0.63208973", "0.63121504", "0.62031347", "0.62031347", "0.62031347", "0.62031347", "0.62031347", "0.61897755", "0.61570585", "0.61570585", "0.61205906", "0.6106009", "...
0.7488697
0
Generated from protobuf field repeated .io.token.proto.common.security.Signature signatures = 2;
Сгенерировано из поля protobuf repeated .io.token.proto.common.security.Signature signatures = 2;
public function setSignatures($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Io\Token\Proto\Common\Security\Signature::class); $this->signatures = $arr; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setSignatures($var)\n {\n $arr = GPBUtil::checkRepeatedField($var, \\Google\\Protobuf\\Internal\\GPBType::MESSAGE, \\Hyperledger\\Fabric\\Protos\\Common\\MetadataSignature::class);\n $this->signatures = $arr;\n\n return $this;\n }", "public function getSignatures(){\n ...
[ "0.67359525", "0.66626096", "0.6630228", "0.6630228", "0.6480664", "0.6401439", "0.6107469", "0.6032701", "0.6028046", "0.6028046", "0.5843656", "0.581622", "0.581622", "0.581622", "0.581622", "0.581622", "0.57765603", "0.5731545", "0.5727396", "0.57250094", "0.5687712", "0...
0.7811806
0
optional ID of the token request Generated from protobuf field string token_request_id = 3;
опциональный идентификатор запроса токена, сгенерированный из поля protobuf string token_request_id = 3;
public function getTokenRequestId() { return $this->token_request_id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTokenId()\n {\n return $this->_tokenId;\n }", "public function get_request_token($callback);", "public function get_request_token()\n {\n $sess_id = $_COOKIE[ini_get('session.name')];\n if (!$sess_id) $sess_id = session_id();\n $plugin = $this->plugins->exec_hook('requ...
[ "0.65012544", "0.64021987", "0.6228071", "0.6156865", "0.60377675", "0.5979686", "0.59765774", "0.59443426", "0.59191674", "0.5911735", "0.58664036", "0.5836352", "0.5831856", "0.5831214", "0.5811767", "0.5803022", "0.5794063", "0.57843274", "0.5766956", "0.5755333", "0.57508...
0.70523524
0
Create a new contact using factory.
Создайте новый контакт с помощью фабрики.
protected function createFactoryContactPerson() { return factory(ContactPerson::class)->create(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createContact($id = null);", "public function createAction()\n\t{\n\t\t$contact = new Contacts();\n\t\t$success = $contact->save($this->request->getPost(), array('name', 'phone', 'email'));\n\n\t\tif ($success) {\n\t\t\t$this->flash->success(\"Contact Successfully Saved!\");\n\t\t\t$this->dispatc...
[ "0.69098526", "0.690894", "0.6868324", "0.67055273", "0.6687254", "0.66218567", "0.6567968", "0.655115", "0.6534718", "0.6476932", "0.64314854", "0.6402779", "0.6397695", "0.6391093", "0.6377105", "0.63045615", "0.6287056", "0.6278638", "0.62699366", "0.6266172", "0.62607867"...
0.79278797
0
get EventVersion Returns:The version of this event.
get EventVersion Возвращает: Версия этого события.
public function getEventVersion() { return $this->getKey('EventVersion'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getVersion() {\r\n return $this->versione;\r\n }", "function getVersion() {\n\t\treturn $this->_Version;\n\t}", "public function get_version() { \n\n\t\treturn $this->version; \n\n\t}", "function get_version() {\n\n\t\treturn $this->version;\n\n\t}", "public function get_versi...
[ "0.77085334", "0.7593736", "0.7554144", "0.752213", "0.750819", "0.750819", "0.750819", "0.750819", "0.750819", "0.750819", "0.750819", "0.750819", "0.750819", "0.750819", "0.75050896", "0.74854565", "0.74817365", "0.74535555", "0.74292475", "0.742885", "0.742885", "0.74052...
0.8590427
0
get SessionID Returns:A unique identifier for the session in the service that raised the event.
get SessionID Возвращает: уникальный идентификатор сеанса в службе, которая вызвала событие.
public function getSessionID() { return $this->getKey('SessionID'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSessionID(){\r\n\t\treturn $this->sessionID;\r\n\t}", "public function getSessionid()\n {\n return $this->sessionid;\n }", "public function getSessionID()\n {\n return $this->sessionID;\n }", "public function getSessionID() {\n return $this->sessionID;\n ...
[ "0.78735155", "0.7844896", "0.7817253", "0.77709794", "0.77296287", "0.770833", "0.7670187", "0.76485157", "0.75961447", "0.7580321", "0.75647783", "0.75647783", "0.75647783", "0.75647783", "0.75647783", "0.75463784", "0.7520917", "0.74926984", "0.7480186", "0.7428986", "0.73...
0.78740203
0
get LocalAddress Returns:The address of the Asterisk service that raised the security event.
get LocalAddress Возвращает: Адрес службы Asterisk, вызвавшей событие безопасности.
public function getLocalAddress() { return $this->getKey('LocalAddress'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getAddress()\n {\n\n if( $_SERVER['REMOTE_ADDR'] == \"::1\" || $_SERVER['REMOTE_ADDR'] == \"localhost\" )\n {\n\n return gethostbyname( gethostname() );\n }\n\n return $_SERVER['REMOTE_ADDR'];\n }", "public function getAddr()\n {\n ret...
[ "0.69137514", "0.6843286", "0.6740068", "0.6706208", "0.66596365", "0.65942466", "0.6587557", "0.6571531", "0.6478382", "0.64742404", "0.6449861", "0.6449861", "0.64405996", "0.64125144", "0.64083177", "0.64027745", "0.636969", "0.6367718", "0.63561857", "0.63483423", "0.6343...
0.727768
0
get RemoteAddress Returns:The remote address of the entity that caused the security event to be raised.
get RemoteAddress Возвращает: Адрес удаленного субъекта, вызвавшего возникновение события безопасности.
public function getRemoteAddress() { return $this->getKey('RemoteAddress'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function remoteAddress() {\n return $_SERVER['REMOTE_ADDR'];\n }", "public function getRemoteAddr()\n {\n\t\treturn $this->_getSess('remoteip');\n }", "public static function getRemoteAddress() {\n\n return self::$remote_address;\n }", "public function getRemoteAddres...
[ "0.75323904", "0.71941197", "0.7122813", "0.7114685", "0.7058725", "0.6989428", "0.69882536", "0.65259314", "0.650928", "0.645019", "0.6436548", "0.6388691", "0.6381355", "0.6361718", "0.6335941", "0.6286204", "0.6205822", "0.6179283", "0.6151944", "0.6150395", "0.61363626", ...
0.727042
1
get SessionTV Returns:The timestamp reported by the session.
get SessionTV Возвращает: Временная метка, отчет о которой предоставляет сессия.
public function getSessionTV() { return $this->getKey('SessionTV'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSessionTime(){\n return $this->_session->get('time');\n }", "private function getSessionTimestamp()\n {\n if ($this->_phpsession && isset($_SESSION[$this->_sessionName]->SessionID))\n $timestamp = $_SESSION[$this->_sessionName]->SessionID;\n\n\n if ($this-...
[ "0.7343077", "0.71202886", "0.6660096", "0.6603789", "0.6583413", "0.646175", "0.6446914", "0.6376758", "0.6364913", "0.6359159", "0.6344098", "0.6332897", "0.6326408", "0.6322423", "0.6306919", "0.630048", "0.62789005", "0.62775797", "0.62674487", "0.62674487", "0.62674487",...
0.78865606
0
Retrieve a list of writable backends
Получить список записываемых бэкендов
function getWritableBackends () { global $abook; $write = array(); $backends = $abook->get_backend_list(); while (list($undef,$v) = each($backends)) { if ($v->writeable) { $write[$v->bnum]=$v->sname; } } return $write; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getEnabledBackends(){\n\t\t$backendMapper = $this->app['BackendMapper'];\n\t\treturn $backendMapper->getAll();\n\t}", "public function getRegisterBackends()\n {\n \treturn $this->backends;\n }", "function get_backend_list($type = '') {\n $ret = array();\n for ($i = 1 ; $i...
[ "0.6917876", "0.6834807", "0.606933", "0.6026906", "0.6025591", "0.5840202", "0.57328355", "0.56098604", "0.5494827", "0.5475094", "0.5469134", "0.5462318", "0.5448446", "0.54367346", "0.539683", "0.5376487", "0.5368703", "0.5327346", "0.5313529", "0.53024644", "0.52846396", ...
0.73940504
0
This function shows the address book sort button.
Эта функция отображает кнопку сортировки адресной книги.
function show_abook_sort_button($abook_sort_order, $alt_tag, $Down, $Up, $uri_extra=array() ) { global $form_url, $icon_theme_path; /* Figure out which image we want to use. */ if ($abook_sort_order != $Up && $abook_sort_order != $Down) { $img = 'sort_none.png'; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function sort_list()\r\n {\r\n return view( $this->_skin .'.web.help_sort');\r\n }", "function printSortOptions ($url) {\n print \"<p align='center'><b>Sort by:</b> \";\n foreach ($this->sort_opts as $s) {\n if ($s != $this->sort_opts[0]) {\n\t// print a separator between terms\n\t...
[ "0.6165472", "0.57144004", "0.57053214", "0.5670822", "0.55712503", "0.55667394", "0.5510971", "0.55108637", "0.54816544", "0.5434474", "0.5411508", "0.53929865", "0.53868675", "0.5353803", "0.52827674", "0.52760303", "0.5275414", "0.5249439", "0.52340376", "0.5233889", "0.52...
0.73691535
0
Return an array of backends of a given type, or all backends if no type is specified.
Вернуть массив бэкендов заданного типа или все бэкенды, если тип не указан.
function get_backend_list($type = '') { $ret = array(); for ($i = 1 ; $i <= $this->numbackends ; $i++) { if (empty($type) || $type == $this->backends[$i]->btype) { $ret[] = &$this->backends[$i]; } } return $ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "final public function getBackendByType($type) {\n\t\t$type = mb_strtolower($type);\n\t\tif (!array_key_exists($type, $this->map))\n\t\t\treturn NULL;\n\t\treturn $this->map[$type];\n\t}", "public function getRegisterBackends()\n {\n \treturn $this->backends;\n }", "public function allOfType($type)\n ...
[ "0.62297535", "0.61086404", "0.6092425", "0.58658695", "0.5762207", "0.5615554", "0.5597368", "0.5539429", "0.55185", "0.53789246", "0.5370866", "0.5333149", "0.53219485", "0.52964634", "0.52772176", "0.5256096", "0.52221125", "0.52012205", "0.51636535", "0.51247436", "0.5117...
0.78517234
0
/ ========================== Public ======================== Add a new backend.
/ ========================== Публичный ======================== Добавить новый бэкенд.
function add_backend($backend, $param = '') { static $backend_classes; if (!isset($backend_classes)) { $backend_classes = array(); } if (!isset($backend_classes[$backend])) { /** * Support backend provided by plugins. Plugin function must ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setBackend($backend) {}", "public abstract function getBackend();", "public function getBackend() {}", "public function getBackend() {}", "public function getBackend();", "public function registerBackend($displayName, $name, $protocol, $enabled){\n\t\t$backendMapper = $this->app['BackendM...
[ "0.63583857", "0.62303007", "0.6164912", "0.6164912", "0.61626923", "0.6161281", "0.61293167", "0.603831", "0.6012285", "0.5984017", "0.5871993", "0.5684049", "0.5673571", "0.5670556", "0.5667221", "0.56617045", "0.5645091", "0.5489426", "0.548247", "0.5468092", "0.5468092", ...
0.7241812
0
create string with name and email address This function takes a $row array as returned by the addressbook search and returns an email address with the full name or nickname optionally prepended.
Создать строку с именем и адресом электронной почты. Эта функция принимает массив $row, возвращаемый поиском в адресной книге, и возвращает адрес электронной почты с полным именем или прозвищем, необязательно предшествующим.
static function full_address($row) { global $data_dir, $username, $addrsrch_fullname; // allow multiple addresses in one row (poor person's grouping - bah) // (separate with commas) // $return = ''; $addresses = explode(',', $row['email']); foreach ($addresses as...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function email_fullname($user, $override=false) {\n\n\t// Drop all semicolon apears. (Js errors when select contacts)\n\treturn str_replace(',', '', fullname($user, $override));\n}", "public static function composeEmailAddress( ezcMailAddress $item )\r\n {\r\n $name = trim( $item->name );\r\n if...
[ "0.6166745", "0.6091679", "0.5950369", "0.5943497", "0.59290975", "0.5889513", "0.5833111", "0.5818343", "0.5738777", "0.5738242", "0.56916517", "0.5660092", "0.56448007", "0.56220955", "0.5568568", "0.5563451", "0.5559249", "0.55542034", "0.55506176", "0.553387", "0.55263233...
0.7778946
0
Returns the singular name without the namespaces
Возвращает единственное имя без именованных пространств
public function singular_name() { $name = explode('\\', parent::singular_name()); return trim(end($name)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function singular()\n {\n return $this->getNameInstance()->singular();\n }", "public function getSingularName()\n {\n return rtrim($this->name, 's');\n }", "public function singular_name()\n {\n $name = explode('\\\\', parent::singular_name());\n return trim(str_replac...
[ "0.81167", "0.80612475", "0.7836643", "0.77798927", "0.7734647", "0.7726174", "0.7726174", "0.7645113", "0.75634617", "0.75634617", "0.7503052", "0.7503052", "0.7433701", "0.71945906", "0.698688", "0.69850636", "0.67728895", "0.67678416", "0.6723544", "0.6718478", "0.6714884"...
0.8216782
1
Validate if the start and end date are in the past and the future
Проверьте, находятся ли дата начала и дата окончания в прошлом и будущем
public function validateDate() { if ( ($from = $this->getAvailableFrom()) && ($till = $this->getAvailableTill()) && $from->InPast() && $till->InFuture() ) { return true; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function validateDates(&$start, &$end) {\n $sixMonthsAgo = strtotime(\"-6 months\");\n $day = 86400;\n $end = time();\n \n if (!$start) {\n $start = strtotime(\"-7 days\");\n }\n \n $gap = $end - $start; \n ...
[ "0.7473661", "0.70979506", "0.70038974", "0.689244", "0.687374", "0.6823302", "0.6766566", "0.6755164", "0.66362476", "0.6605858", "0.6581508", "0.65705633", "0.653965", "0.6526464", "0.6507644", "0.64888954", "0.6485401", "0.64820397", "0.6477894", "0.6463335", "0.64275634",...
0.7154642
1
Get the ticket availability for this type A buyable always checks own capacity before event capacity
Получение доступности билетов для этого типа A покупаемого всегда проверяет собственную вместимость до вместимости события
public function getAvailability() { if ($this->Capacity !== 0) { $sold = OrderItem::get()->filter(['BuyableID' => $this->ID])->count(); $available = $this->Capacity - $sold; return $available < 0 ? 0 : $available; } // fallback to page availability if cap...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAvailability()\n {\n return $this->availability;\n }", "public function getAvailability()\n {\n return $this->availability;\n }", "private function get_availability()\n\t{\n\t\treturn $this->m_availability;\n\t}", "public function getAvailable()\n {\n re...
[ "0.67952836", "0.67952836", "0.66527873", "0.6518593", "0.6518593", "0.6512095", "0.6200683", "0.6199226", "0.6101215", "0.6087846", "0.60711825", "0.60711825", "0.60711825", "0.6069661", "0.6069661", "0.6069661", "0.6069661", "0.6069661", "0.6069661", "0.6069661", "0.6069661...
0.77772444
0
Get the event start date
Получить дату начала события
private function getEventStartDate() { $startDate = $this->TicketPage()->getEventStartDate(); $this->extend('updateEventStartDate', $startDate); return $startDate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getEventStartDate() {\n\t\treturn ($this->eventStartDate);\n\t}", "public function get_start_date()\n\t{\n\t\treturn $this->start_date;\n\t}", "public function getStart_date() {\n\t\treturn $this->_start_date;\n\t}", "public function getDateStart()\n {\n return $this->dateStart;\n ...
[ "0.8167655", "0.7805471", "0.7650524", "0.75991297", "0.75991297", "0.75991297", "0.75044954", "0.7452919", "0.7452522", "0.743893", "0.743893", "0.743893", "0.743893", "0.743893", "0.7435296", "0.7403511", "0.7393275", "0.73897636", "0.7373831", "0.73586106", "0.7317123", ...
0.8352445
0
/ Displays the HEAD tag and its attributes
Отображает тег HEAD и его атрибуты
public function show_head() { $output = '<head>'; if( empty( $this->title ) ) { $this->title = "No Title Available"; } $output .= '<title>' . $this->title . '</title>'; $output .= $this->get_header_elements(); $output .= "\n</head>"; echo $output; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function initialize () {\n $this->set_openingtag ( \"<HEAD[attributes]>\" );\n\t $this->set_closingtag ( \"</HEAD>\" );\n }", "function head()\n {\n print($this->_head);\n }", "public function head() {\n\t\treturn '';\n\t}", "private function renderHead() {\n\t\t\n\t\t\t$this->outputLine('<...
[ "0.7123546", "0.70284015", "0.7017039", "0.69447273", "0.6916125", "0.69063747", "0.6890879", "0.6838689", "0.68221796", "0.67863965", "0.6752934", "0.67423", "0.673253", "0.67173666", "0.6688712", "0.66629577", "0.66517055", "0.65999156", "0.6590683", "0.6574909", "0.6517952...
0.71008784
1
Gets an array of the flags present in the bitmask
Получает массив флагов, присутствующих в битовой маске
public function getFlags() : array { $arrFlags = []; foreach (self::FLAGS as $strFlag => $intBitValue) { if ($this->_checkFlag($strFlag)) { $arrFlags[] = self::OUTPUT[$strFlag]; } } return $arrFlags; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFlags(): array\n {\n return array_keys($this->_flags);\n }", "public function getFlags(): array\n {\n return $this->flags;\n }", "public static function getBitmaskFlags($bitmask,$flags = array()) \r\n {\r\n $flags_set = array();\r\n foreach($flags a...
[ "0.76039076", "0.75775355", "0.753407", "0.7465998", "0.7119763", "0.69031405", "0.69031405", "0.69031405", "0.69031405", "0.68013984", "0.67763865", "0.6757261", "0.6719192", "0.66437894", "0.6363713", "0.6343777", "0.633288", "0.6295094", "0.606224", "0.606224", "0.6049168"...
0.78170055
0
Get the image as a string, resize it to the desired dimensions and compress it in jpeg, upload it to S3.
Получите изображение в виде строки, измените его размер до нужных размеров и сжмите в jpeg, загрузите его на S3.
public function resizeAndUploadToS3($width, $height, $imageString, $destinationPath) { $isPictureString = starts_with( $imageString, 'data:image' ); if ( ! $isPictureString) { return $imageString; } $prefix = 'data:image/png;base64,'; $base64 = substr($imageStrin...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function upload_image($dst, $src) {\n global $amazonconfig;\n $s3 = new S3($amazonconfig->api->access_key, $amazonconfig->api->secret);\n\n $parts = explode('/', $dst);\n $bucket = $parts[1];\n $path = str_replace(\"/$bucket/\", '', $dst);\n $filename = $parts[sizeof($parts)-1];\n\n try{\n ...
[ "0.6516477", "0.6412712", "0.6372538", "0.6264244", "0.62625206", "0.62482667", "0.616112", "0.6150768", "0.6141412", "0.6135538", "0.60976106", "0.60818446", "0.60673755", "0.60564077", "0.6055686", "0.6037508", "0.60176927", "0.6012482", "0.5978586", "0.5976266", "0.5921861...
0.7244032
0
Activate a licence after validating if its valid
Активировать лицензию после проверки её действительности
public function activate() { $license = Licenses::find($this->key); $license->school_id = $this->auth_school_id; $license->activated_at = Carbon::now(); $license->used=LICENCE_KEY_USED; if($license->save()){ return $this->duration($license->duration); } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function activate_license() {\r\n\r\n\t$license_key = $this->get_license_option('license_key');\r\n\t$license_current_status = $this->get_license_option('license_status');\r\n\t\r\n\tif( !empty($license_key) && $license_current_status != 'valid' ){\r\n\r\n\t\t$license_data = $this->edd_api_request('activate...
[ "0.7343828", "0.6995132", "0.68805337", "0.6836708", "0.6623056", "0.6583681", "0.6541186", "0.6538204", "0.62695944", "0.61708844", "0.6168225", "0.6144257", "0.6084192", "0.6079196", "0.5978744", "0.5957083", "0.593454", "0.59314823", "0.591998", "0.5890411", "0.58839196", ...
0.7176772
1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// Alec's Fuck Yeah Let's Generate Html Helper Functions ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// / Takes in a string and an array of pr...
// Alec's Fuck Yeah Let's Generate Html Helper Functions ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// / Принимает строку и массив свойств. Вставляет каждое свойство в строку, заменяя вхождения имени свойства, окружённого символами '%' Пример использов...
function propertyStringReplace($htmlString, $array) { foreach($array as $property => $value) { $htmlString = str_replace('%'.$property.'%', $value, $htmlString); } return $htmlString; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function str_a_replace($array, $string) {\n foreach ($array as $from => $to)\n $string = str_replace($from, $to, $string);\n \n return $string;\n}", "public function html_format($string)\n\t\t{\n\t\t\t$string = str_ireplace(array_keys($this->bb_code_tags), array_values($this->bb_code_tags), $string);\...
[ "0.56585085", "0.5571918", "0.5530326", "0.5494251", "0.54573745", "0.5436381", "0.53634197", "0.5251164", "0.52306783", "0.51784784", "0.5165541", "0.51574117", "0.5126862", "0.511625", "0.51122254", "0.5084367", "0.50841665", "0.5080347", "0.50784045", "0.5044302", "0.50349...
0.8266953
0
/ Generates and compounds the HTML strings for each item in a list by running propertyStringReplace $skeletonHtml = Array of strings that need to be generated into Html. $items = List of Items, each with a matching set of properties $specialCases = Properties you want to apply to only certain members of the item list. ...
Генерирует и объединяет строки HTML для каждого элемента в списке, выполняя замену свойств $skeletonHtml = массив строк, которые необходимо сгенерировать в HTML. $items = список элементов, каждый из которых имеет совпадающий набор свойств. $specialCases = свойства, которые вы хотите применить только к определенным элем...
function generateCompoundedHtml($skeletonHtmlList, $items, $specialCases = null) { $nL = "\xA"; //new line $specialCaseSearchValues = array(); $returnHtml = array(); if(!is_array($skeletonHtmlList)) //if passed a single string, turn it into array with 1 element $skeletonHtmlList = array($...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function prepareHTML(){\n\t$first=true;\n\t\t\n\tforeach($this->objarr as $key=>$val){\n\t\t$a=\"\";\n\t if($val->getAClass()!=\"\") $a.=\" class=\\\"\".$val->getAClass().\"\\\"\";\n\t if($val->getAId()!=\"\") $a.=\" id=\\\"\".$val->getAId().\"\\\"\";\n\t $ul=\"\";\n\t if($val->getUlClass()!=\"...
[ "0.53790253", "0.52644885", "0.52328205", "0.5232002", "0.50728095", "0.50260943", "0.4908655", "0.4885623", "0.4881435", "0.4771228", "0.47453368", "0.47364703", "0.46979603", "0.46234742", "0.4614127", "0.46106648", "0.45712638", "0.45684335", "0.45565015", "0.4552883", "0....
0.763247
0
( hooks ) Fire the 'udesign_html_before' action Useful for , etc.
( хуки ) Срабатывает действие 'udesign_html_before' Полезно для , и т.д.
function udesign_html_before() { do_action('udesign_html_before'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function before_render_tealium_html() {\r\n \r\n }", "function udesign_page_content_before() {\r\n do_action('udesign_page_content_before');\r\n}", "function udesign_entry_before() {\r\n do_action('udesign_entry_before');\r\n}", "protected function onBeforeInputHtml()\n {\n }", "function ...
[ "0.7603335", "0.75397295", "0.7111367", "0.70741034", "0.70307064", "0.69635195", "0.6929272", "0.6911094", "0.69032496", "0.6856739", "0.68271935", "0.67791444", "0.6719466", "0.6628435", "0.6595907", "0.65741396", "0.65531254", "0.65307945", "0.6515536", "0.64980775", "0.64...
0.86029315
0