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
Flushes all after and before callbacks
Очищает все после и перед обратные вызовы
public static function flushAfterCallbacks() { static::$after = []; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function flushAll();", "function flushAll();", "public function flushAll()\n {\n }", "public function flushAll()\n {\n }", "public function flushAll(): void;", "public function flushAll();", "public function finish()\n {\n $this->flushAndClear();\n\n $this->reEnableLogging(...
[ "0.6776781", "0.6776781", "0.6767633", "0.6767633", "0.6729006", "0.6655772", "0.6590946", "0.65107304", "0.65009797", "0.65009797", "0.65009797", "0.65009797", "0.65009797", "0.6499808", "0.6499808", "0.6499808", "0.6499808", "0.6499808", "0.6499808", "0.6498561", "0.6498561...
0.7456281
0
Get Game Set ID Can be used to check if there is a live game
Получить идентификатор набора игры Может использоваться для проверки наличия живой игры
public function get_gameset_id($live_check = false) { return $this->model->gameset_id($live_check); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getGameId()\n {\n return $this->gameId;\n }", "public function getGameId()\n {\n return $this->session->get('gameId');\n }", "public function getId() {\n return $this->gameId;\n }", "protected function getId()\n {\n $setResults = $this->client->re...
[ "0.7351177", "0.7152395", "0.7030648", "0.6373369", "0.6248603", "0.6100535", "0.6065296", "0.6023046", "0.5946053", "0.5913602", "0.5890497", "0.58894306", "0.58262277", "0.57970715", "0.5787306", "0.578657", "0.5775672", "0.5775381", "0.57751733", "0.5748508", "0.5743295", ...
0.7806826
0
Get Live Style Bowstyle ID
Получить идентификатор Live Style Bowstyle
public function get_style_bowstyle_id(){ $action_m = $this->model->get_style_bowstyle_id(); $this->has_live_style = $action_m > 0; return $action_m; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_game_bowstyle_id() {\n\n return $this->model->game_bowstyle_id();\n }", "public function style_bowstyle_id(){\n $action_m = $this->model->get_style_bowstyle_id();\n $this->has_live_style = $action_m > 0;\n\n return $action_m;\n }", "public function style_id...
[ "0.76149577", "0.7450556", "0.6986631", "0.6664956", "0.6282178", "0.6266467", "0.61656356", "0.6101668", "0.6050844", "0.59805983", "0.5943938", "0.5943259", "0.59166026", "0.5847119", "0.58343405", "0.57855916", "0.57278186", "0.5727283", "0.570342", "0.57033193", "0.568687...
0.7492802
1
Get Live Style ID
Получить ID живого стиля
public function style_id(){ $action_m = $this->model->get_style_id(); $this->has_live_style = $action_m > 0; return $action_m; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_style_bowstyle_id(){\n $action_m = $this->model->get_style_bowstyle_id();\n $this->has_live_style = $action_m > 0;\n\n return $action_m;\n }", "public function style_bowstyle_id(){\n $action_m = $this->model->get_style_bowstyle_id();\n $this->has_live_sty...
[ "0.6981677", "0.6972972", "0.677369", "0.6612029", "0.6583603", "0.6539067", "0.6443468", "0.63163286", "0.6285657", "0.61799276", "0.6064171", "0.60551757", "0.60016006", "0.59326065", "0.59326065", "0.5930107", "0.58790797", "0.5874403", "0.5874403", "0.586798", "0.5852719"...
0.76695305
0
Check if Gameset is live
Проверить, активен ли Gameset
public function is_gameset_live($gameset_id){ if(is_array($gameset_id)){ if(empty($gameset_id)) return false; return in_array($this->get_gameset_id(),$gameset_id); } else if( is_numeric($gameset_id) || is_int($gameset_id) ){ if( $gameset_id == 0 ) return false...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isLive()\n\t{\n\t\treturn $this->isSaved() && $this->status == self::STATUS_LIVE;\n\t}", "public function isGameActive();", "public function isLive()\n {\n return 'live' == $this->getMode();\n }", "public function isLive()\n {\n return Director::isLive();\n }", "pu...
[ "0.7016417", "0.6780875", "0.6771124", "0.6739314", "0.6733525", "0.6693207", "0.6602792", "0.6520407", "0.65179217", "0.6482601", "0.6466322", "0.6440399", "0.63935703", "0.63909763", "0.6366066", "0.62541735", "0.6207929", "0.6143987", "0.609033", "0.60826415", "0.6074135",...
0.7353804
0
Get manufacturer rate of a product
Получить производственную ставку продукта
public function manufacturer_rate($product_id) { $this->db->select('manufacturer_price'); $this->db->from('product_information'); $this->db->where(array('product_id' => $product_id)); $query = $this->db->get(); return $query->result_array(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCarRate()\n {\n return $this->get(self::CARRATE);\n }", "public function getRate(): float;", "public function getRate();", "public function getRate();", "public function getRated() {\n\t\t$rate = ProductRate::where('product_id', '=', $this->id)->first();\n\t\tif($rate) {\n\t...
[ "0.6526702", "0.6501597", "0.64329696", "0.64329696", "0.64172906", "0.63062936", "0.62081826", "0.61951804", "0.61934847", "0.6138101", "0.6138101", "0.61361986", "0.61013025", "0.6094056", "0.6061411", "0.6035148", "0.5985828", "0.5985632", "0.5985632", "0.5985632", "0.5985...
0.80021036
0
Returns an array of Adwords_Countries objects corresponding to all countries within the table.
Возвращает массив объектов Adwords_Countries, соответствующих всем странам в таблице.
Public Function GetAllCountries() { $Output = array(); $Countries = $this->_db->fetchAll('SELECT * FROM bevomedia_adwords_countries'); foreach($Countries as $Country) $Output[] = new Adwords_Countries($Country->id); return $Output; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCountries()\n { \n $countries = $this->getCountryDao()->fetchAll();\n $country_array = array();\n foreach($countries as $country) {\n $country_array[$country->code] = $country->name;\n }\n \n return $country_array; \n }", "public stat...
[ "0.7992248", "0.78993237", "0.77905965", "0.7747716", "0.7733822", "0.7717324", "0.768209", "0.76649076", "0.7612652", "0.75748247", "0.7567133", "0.75596464", "0.75383836", "0.7520771", "0.7483433", "0.746586", "0.74598086", "0.7455302", "0.7431913", "0.7422916", "0.742122",...
0.8451095
0
Sets the specified $Property of this object with the specified $Value provided.
Устанавливает указанное свойство $Property этого объекта с указанным значением $Value.
Public Function Set($Property, $Value) { $this->{$Property} = $Value; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Public Function set($Property, $Value)\n\t{\n\t\t$this->{$Property} = $Value;\n\t\treturn $this;\n\t}", "public function Set($property, $value) {\n $this->$property = $value;\n }", "Protected Function Set_Property($Property, $Value = NULL)\n\t\t\t{\n\t\t\t\tIf(Property_Exists($this,$Property))\n\t\t\...
[ "0.81972396", "0.7978943", "0.79037166", "0.7865797", "0.78573924", "0.78542167", "0.78250015", "0.78159076", "0.7786632", "0.777809", "0.777809", "0.777809", "0.777809", "0.777809", "0.777809", "0.7759099", "0.7731071", "0.7725069", "0.77027863", "0.77027863", "0.76760155", ...
0.81222194
1
Creates an exception from a SoapFault object
Создает исключение из объекта SoapFault
public static function createFromSoapFault(SoapFault $soapFault) { if (isset($soapFault->detail->ExportServiceException)) { $detail = $soapFault->detail->ExportServiceException; $message = $detail->status . ': ' . $detail->description; return new EMV_Exception($message); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function createFromSoapFault(\\SoapFault $e)\n {\n $code = (int) $e->getMessage();\n\n $message = 'Request failed';\n\n if (isset(self::$messages[$code])) {\n $message = self::$messages[$code];\n $class = isset(self::$exceptions[$code]) ? self::$excepti...
[ "0.74538726", "0.6634986", "0.62990034", "0.6149092", "0.6096571", "0.60747623", "0.5956479", "0.5718817", "0.5642984", "0.55890775", "0.55468893", "0.5532329", "0.541713", "0.5392431", "0.53600144", "0.5347507", "0.5312762", "0.5281615", "0.52524054", "0.5212431", "0.5140787...
0.73048025
1
Clears the recent chat filter (for spam protection)
Очищает фильтр недавних чатов (для защиты от спама)
public function clearRecentChat() { $this->recentChat = array(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function clear(): void{\n echo \"Clearing...\\n\";\n $slack = new SlackController();\n $channels = $slack->getInactiveTextMessageChannels();\n\n foreach ($channels as $channel){\n $slack->removeMembers($channel[\"id\"]);\n }\n }", "public static function c...
[ "0.6778056", "0.6587303", "0.6482958", "0.6437759", "0.64027226", "0.6395022", "0.63865745", "0.63807243", "0.63008225", "0.62787503", "0.6230012", "0.6201561", "0.6151603", "0.6144156", "0.61218745", "0.60977787", "0.60977787", "0.60977787", "0.60977787", "0.60977787", "0.60...
0.8017825
0
Ajax function that deletes roles of a user in a particular object. Only owner of a hotel/organization can use this. Also a user may want to delete its own roles at hotels/organizations he belongs to.
Функция Ajax, которая удаляет роли пользователя в определенном объекте. Использовать ее могут только владельцы отеля/организации. Также пользователь может удалить свои собственные роли в отелях/организациях, к которым он принадлежит.
public function ajaxDeleteRolesForUser($user_id = null, $model = null, $foreign_key = null) { $this->RolesUser->deleteRolesForUserInObject($user_id, $model, $foreign_key); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function eliminarUsuarioRol(){\r\n\t\t$this->objFunSeguridad=new FuncionesSeguridad();\t\r\n\t\t$this->res=$this->objFunSeguridad->eliminarUsuarioRol($this->objParam);\r\n\t\t$this->res->imprimirRespuesta($this->res->generarJson());\r\n\r\n\t}", "public function removeRoleUser()\n {\n unset($this->admi...
[ "0.65931654", "0.6538291", "0.6494793", "0.64777493", "0.6458609", "0.63973147", "0.6355682", "0.6227402", "0.6186035", "0.6172462", "0.61573815", "0.61356795", "0.61302716", "0.60998785", "0.60159767", "0.60146046", "0.6007945", "0.6007254", "0.6003847", "0.59943813", "0.599...
0.73205024
0
Gets the width of this graph. The width is returned as 'defined' by the canvas.
Получает ширину этого графика. Ширина возвращается как 'определенная' канвасом.
function width() { return $this->_canvas->getWidth(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getWidth() {\n\t\treturn $this->originalDimensions['width'];\n\t}", "public function getWidth() {\n\t\treturn $this->originalDimensions['width'];\n\t}", "public function getWidth() : int\n {\n return $this->width;\n }", "public function getWidth() : int\n {\n return $th...
[ "0.78569764", "0.78569764", "0.7736724", "0.7736724", "0.77219224", "0.77219224", "0.77219224", "0.77219224", "0.77219224", "0.77219224", "0.77219224", "0.77219224", "0.77219224", "0.77219224", "0.77219224", "0.77219224", "0.77219224", "0.77219224", "0.77219224", "0.77130985", ...
0.83080935
0
Gets the height of this graph. The height is returned as 'defined' by the canvas.
Получает высоту этого графика. Высота возвращается как 'определенная' канвасом.
function height() { return $this->_canvas->getHeight(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getHeight() {\n\t\treturn $this->height;\n\t}", "public function getHeight() {\n\t\treturn $this->originalDimensions['height'];\n\t}", "public function getHeight() {\n\t\treturn $this->originalDimensions['height'];\n\t}", "public function getHeight()\n {\n return $this->height;\n ...
[ "0.80131054", "0.79957265", "0.79957265", "0.79899997", "0.79899997", "0.79899997", "0.79899997", "0.79899997", "0.79899997", "0.79899997", "0.79899997", "0.79899997", "0.79899997", "0.79899997", "0.79899997", "0.79899997", "0.79899997", "0.79899997", "0.7939392", "0.79324496",...
0.8363266
0
Factory method to create Image_Graph objects. Used for 'lazy including', i.e. loading only what is necessary, when it is necessary. If only one parameter is required for the constructor of the class simply pass this parameter as the $params parameter, unless the parameter is an array or a reference to a value, in that ...
Фабричный метод для создания объектов Image_Graph. Используется для 'ленивой вставки', то есть загрузки только необходимого, когда это необходимо. Если для конструктора класса требуется только один параметр, просто передайте этот параметр как $params, за исключением случая, когда параметр является массивом или ссылкой ...
function &factory($class, $params = null) { static $Image_Graph_classAliases = array( 'graph' => 'Image_Graph', 'plotarea' => 'Image_Graph_Plotarea', 'line' => 'Image_Graph_Plot_Line', 'area' => 'Image_Graph_Plot_Area', 'bar' => 'Image_G...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static public function Factory($className,$parameters=null);", "abstract public function createGraph();", "final public static function factory($params = null)\n\t{\n\t\t$instance = new static();\n\t\t\n\t\tif ($params and is_array($params))\n\t\t{\n\t\t\tforeach ($params as $key => $param)\n\t\t\t{\n\t\t\t\ti...
[ "0.6161147", "0.6131616", "0.58143365", "0.57970476", "0.5699492", "0.56039464", "0.56039464", "0.55858356", "0.55837494", "0.55835557", "0.55738026", "0.5454627", "0.5450692", "0.54383504", "0.54382384", "0.5437166", "0.54169315", "0.5410768", "0.53892905", "0.5386972", "0.5...
0.8048125
0
Preppend a load path. Directories at the beginning of the load path have precedence over subsequent directories. Theese paths are used for expand relative paths to absolute paths.
Предварительно добавить путь загрузки. Директории в начале пути загрузки имеют приоритет над последующими директориями. Эти пути используются для разрешения относительных путей в абсолютные.
public function preppendPath($path) { $this->_addPath($path, true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function preppendLoadPath($path)\n\t{\n\t\t$this->_fs->preppendPath($path);\n\t}", "public function appendLoadPath($path)\n\t{\n\t\t$this->_fs->appendPath($path);\n\t}", "protected function loadPaths()\n {\n $this->cmd = str_replace('{prefix}', $this->prefix, $this->cmd);\n $this->pidfi...
[ "0.7891637", "0.6604219", "0.64837575", "0.64534193", "0.6319582", "0.6286141", "0.60754305", "0.6030631", "0.601739", "0.58993196", "0.5857507", "0.57569623", "0.56709176", "0.55746585", "0.55181456", "0.54966193", "0.5466341", "0.5445114", "0.5375729", "0.5373398", "0.53726...
0.7166356
1
Get the number of seconds until the user is unblocked
Получить количество секунд до разблокировки пользователя
public function getSecondsUntilUnblock($username) { $seconds = $this->findBlockUntil($username) - $this->getCurrentTime() + 1; if (0 > $seconds) { return 0; } return $seconds; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTimeout()\n {\n return $this->lockout;\n }", "public function getSecondsBeforeNextAttempts();", "function waitTime() {\n $tries = $this->Session->val('tries');\n $limit = $this->Session->val('limit');\n if ( !$tries ) {\n return 0;\n }\n\n ...
[ "0.6768239", "0.6764018", "0.6681463", "0.6647231", "0.65267515", "0.6434321", "0.6379011", "0.6379011", "0.6338282", "0.632841", "0.63187504", "0.6249458", "0.62453437", "0.6235074", "0.6179945", "0.61311036", "0.6088408", "0.6077421", "0.60764205", "0.6065673", "0.6058649",...
0.7251765
0
Delete the login attempts option for $username.
Удалить опцию попыток входа для $username.
function deleteLoginAttempts($username) { $optionName = $this->getOptionName(true, $username); /* Essentially the same as delete_option() but works network wide when using WP Multisite. */ return delete_site_option($optionName); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function resetAttempts($username)\n {\n $this->dc->qb()\n ->delete($this->dc->p('user_login_attempts'))\n ->where('username = :username')\n ->setParameter(':username', $username)\n ->execute();\n }", "public function clearLoginAttempts();", "funct...
[ "0.7657679", "0.72056055", "0.6970507", "0.6619515", "0.6470273", "0.6296884", "0.62652194", "0.6234102", "0.62061465", "0.6202459", "0.61826944", "0.6167496", "0.61670846", "0.61659193", "0.6153895", "0.60583574", "0.5988527", "0.59691995", "0.5949484", "0.5872581", "0.57931...
0.86207473
0
Delete the 'block time until' value option for $username.
Удалите параметр 'время ожидания блока' для $username.
function deleteBlockUntil($username) { $optionName = $this->getOptionName(false, $username); /* Essentially the same as delete_option() but works network wide when using WP Multisite. */ return delete_site_option($optionName); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function deleteLoginAttempts($username)\n\t{\n\t\t$optionName = $this->getOptionName(true, $username);\n\n\t\t/* Essentially the same as delete_option() but works network wide when using WP Multisite. */\n\t\treturn delete_site_option($optionName);\n\t}", "public function unblockUser();", "public function pers...
[ "0.61089784", "0.594005", "0.58645636", "0.5802182", "0.5636671", "0.55362445", "0.54658085", "0.53929716", "0.53555614", "0.5343282", "0.53410745", "0.5338677", "0.53340113", "0.5309509", "0.5302525", "0.52613974", "0.52514035", "0.5228407", "0.52122", "0.5207073", "0.520045...
0.78211594
0
Encodes given Username to SHA1
Кодирует заданный Username в SHA1
function encodeUsername($username) { return sha1($username); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function non_salted_sha1($pass)\n{\n return \"{SHA}\" . base64_encode(pack(\"H*\", sha1($pass)));\n}", "function encryptar($nickname, $contrasenia){\n\t$retorno=\"\";\n $retorno=$nickname.$contrasenia;\n $retorno = sha1($retorno);\n $retorno = substr($retorno, 0, -1*strlen($retorno)+10);\n return ...
[ "0.70218885", "0.68549496", "0.6764733", "0.66179883", "0.6535621", "0.64576465", "0.6441971", "0.6413511", "0.6406497", "0.64014906", "0.64008945", "0.63291293", "0.6278495", "0.6222077", "0.6215066", "0.6211231", "0.61813825", "0.61410356", "0.6108109", "0.61018705", "0.607...
0.8386846
0
Retrieves the definition by a key.
Получает определение по ключу.
public function getDefinitionByKey(string $key): mixed;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get(string $key)\n {\n return $this->definitions[$key] ?? null;\n }", "public function getByKey($key);", "public function getDefinitionValue($key)\n\t{\n\t\t$definition = $this->getDefinition(true);\n\n\t\tif($definition != null)\n\t\t{\n\t\t\tif(array_key_exists($key, $definition)...
[ "0.73208284", "0.7012088", "0.6948819", "0.69403374", "0.6447315", "0.6447315", "0.6447315", "0.6447315", "0.6447315", "0.6447315", "0.64432526", "0.6421497", "0.64112866", "0.64112866", "0.64112866", "0.64112866", "0.64112866", "0.64112866", "0.64112866", "0.64112866", "0.64...
0.8429926
0
fonction qui calcule le volume d'un cone
функция, которая вычисляет объем конуса
function volumeCone($rayon, $hauteur){ $volume = $rayon * $rayon * 3.14 * $hauteur * (1/3); // calcul du volume return $volume;//indique la valeur a renvoyer !! }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function total_volume();", "abstract public function calculateVolume(): int;", "public function getVolume(): float;", "public function volume();", "public function get_volume(){\n return $this->get_area() *$this->height;\n }", "protected function volume(): float\n {\n return ($...
[ "0.79248637", "0.7708593", "0.7605513", "0.75714153", "0.74318486", "0.7237351", "0.72275406", "0.7187802", "0.71411043", "0.70742923", "0.70742923", "0.70093936", "0.6865191", "0.67591894", "0.67365193", "0.67126846", "0.666697", "0.65978074", "0.6588613", "0.655442", "0.651...
0.7949797
0
channel_MAC is an authentication code that proves that the peer that sent this message knows the name of the channel. Generated from protobuf field bytes channel_MAC = 1;
channel_MAC — это код подтверждения аутентификации, который доказывает, что собеседник, отправивший это сообщение, знает имя канала. Генерируется из байтового поля protobuf channel_MAC = 1;
public function getChannelMAC() { return $this->channel_MAC; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setChannelMAC($var)\n {\n GPBUtil::checkString($var, False);\n $this->channel_MAC = $var;\n\n return $this;\n }", "public function getMac()\n {\n return $this->mac;\n }", "public function getMac()\n {\n return $this->mac;\n }", "public func...
[ "0.7929313", "0.58723557", "0.58723557", "0.56279653", "0.5566493", "0.55508333", "0.5489118", "0.5415403", "0.54081297", "0.5180305", "0.5100145", "0.508042", "0.5047627", "0.49871966", "0.4984315", "0.49423075", "0.48935196", "0.48933882", "0.4862807", "0.4851916", "0.48485...
0.7954139
0
channel_MAC is an authentication code that proves that the peer that sent this message knows the name of the channel. Generated from protobuf field bytes channel_MAC = 1;
channel_MAC — это код подтверждения аутентификации, который доказывает, что собеседник, отправивший это сообщение, знает имя канала. Генерируется из байтового поля protobuf channel_MAC = 1;
public function setChannelMAC($var) { GPBUtil::checkString($var, False); $this->channel_MAC = $var; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getChannelMAC()\n {\n return $this->channel_MAC;\n }", "public function getMac()\n {\n return $this->mac;\n }", "public function getMac()\n {\n return $this->mac;\n }", "public function setMac($var)\n {\n GPBUtil::checkString($var, False);\n ...
[ "0.7953564", "0.5873044", "0.5873044", "0.5631075", "0.556731", "0.55507416", "0.54881865", "0.5415438", "0.5410627", "0.5181299", "0.51005137", "0.5082658", "0.5047162", "0.4988553", "0.49850357", "0.49444023", "0.48963198", "0.48938367", "0.48639014", "0.48527324", "0.48492...
0.7929934
1
TODO: Implement frameInitialized() method.
TODO: Реализовать метод frameInitialized().
function frameInitialized() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function frameSet() {}", "public static function frameInitialize(): void\n {\n date_default_timezone_set('Asia/Shanghai');\n }", "public static function frameInitialize(): void\n {\n date_default_timezone_set('Asia/Shanghai');\n }", "public static function frameInitialize(): ...
[ "0.6800913", "0.67737204", "0.67737204", "0.67737204", "0.6423077", "0.62093586", "0.61522067", "0.59144545", "0.5897266", "0.5888239", "0.581029", "0.581029", "0.581029", "0.581029", "0.581029", "0.581029", "0.581029", "0.581029", "0.581029", "0.581029", "0.581029", "0.581...
0.8894378
0
TODO: Implement onDispatcher() method.
TODO: Реализовать метод onDispatcher().
function onDispatcher(Request $request, Response $response, $targetControllerClass, $targetAction) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDispatcher();", "public function setDispatcher(\\Symfony\\Component\\EventDispatcher\\EventDispatcherInterface $dispatcher);", "private function dispatcher()\n {\n $route = $this->serviceLocator->get('router')->getByRequest();\n\n $controller = $this->getController($route);\...
[ "0.7902221", "0.70768285", "0.70197856", "0.6925531", "0.6881273", "0.6860391", "0.68589115", "0.68589115", "0.68568337", "0.6826626", "0.68089247", "0.67439365", "0.6738945", "0.6704009", "0.6703038", "0.6703038", "0.6703038", "0.6703038", "0.67005366", "0.67005366", "0.6700...
0.71234775
1
Get the value of holder
Получить значение holder
public function getHolder() { return $this->holder; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getHolder(){\n\t\treturn $this->holder;\n\t}", "public function getValue() {\n return isset($this->container['Value']) ? $this->container['Value'] : null;\n\t}", "function getValue()\r\n {\r\n return $this -> _value;\r\n }", "public function getValue() {}", "public funct...
[ "0.745061", "0.68811315", "0.67903423", "0.67894655", "0.67894655", "0.67894655", "0.67894655", "0.67894655", "0.67756814", "0.6761661", "0.6724703", "0.6707129", "0.66909254", "0.66368526", "0.66340524", "0.66272914", "0.662045", "0.66092646", "0.6597131", "0.65704", "0.6564...
0.74228567
1
Get the value of due_date
Получить значение due_date
public function getDueDate() { return $this->due_date; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function dueDate()\n {\n return $this->due_date;\n }", "public function getDueDate()\n {\n return $this->due_date;\n }", "public function getDueDate()\n {\n return $this->due_date;\n }", "function getDueOn() {\n return $this->getDateField1();\n }", "...
[ "0.8019067", "0.7913681", "0.7913681", "0.79082054", "0.7896338", "0.78573185", "0.7671305", "0.7624485", "0.75729775", "0.73389393", "0.72076106", "0.71235573", "0.70175797", "0.7002676", "0.69041556", "0.6835006", "0.6817132", "0.67949283", "0.676384", "0.6758317", "0.66695...
0.7953232
1
Get the value of line_1
Получить значение line_1
public function getline1() { return $this->line_1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getline2()\r\n {\r\n return $this->line_2;\r\n }", "public function get_line() {\n return $this->line;\n }", "public function getAddressLine1()\n\t{\n\t\treturn $this->address_line1;\n\t}", "public function getLine() {\n return $this->line;\n }", "public function ...
[ "0.7308623", "0.6886221", "0.6740285", "0.6722304", "0.67103195", "0.66880643", "0.66088694", "0.65923285", "0.6589029", "0.6564422", "0.6564422", "0.6564422", "0.6564422", "0.6564422", "0.6564422", "0.6564422", "0.6564422", "0.6488167", "0.6483669", "0.6457489", "0.6332308",...
0.8474215
0
Set the value of line_1
Задайте значение line_1
public function setline1($line_1) { $this->line_1 = $line_1; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setAddressLine1(?string $addressLine1): void\n {\n $this->addressLine1['value'] = $addressLine1;\n }", "public function setAddressLine1($addressLine1){\n\t\t$this->addressLine1\t=\t$addressLine1;\n\t}", "public function setLine($line)\n {\n $this->line = $line;\n }", ...
[ "0.7259683", "0.71484894", "0.7007261", "0.6717658", "0.6622404", "0.6482934", "0.64558846", "0.63682663", "0.6364684", "0.6363385", "0.632997", "0.6285218", "0.6213425", "0.62051314", "0.61877745", "0.6163608", "0.6138414", "0.608674", "0.608674", "0.6057228", "0.60341245", ...
0.7948143
0
Get the value of line_2
Получить значение line_2
public function getline2() { return $this->line_2; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getline1()\r\n {\r\n return $this->line_1;\r\n }", "public function getAddressLine2()\n\t{\n\t\treturn $this->address_line2;\n\t}", "public function getAddressLine2(): ?string\n {\n if (count($this->addressLine2) == 0) {\n return null;\n }\n retur...
[ "0.7933292", "0.6780752", "0.6707837", "0.6565875", "0.652226", "0.65188855", "0.64050287", "0.63441306", "0.6301416", "0.62776315", "0.62706375", "0.62467414", "0.6236501", "0.6236501", "0.6236501", "0.6236501", "0.6236501", "0.6236501", "0.6236501", "0.6236501", "0.6181398"...
0.8373554
0
Set the value of line_2
Задайте значение line_2
public function setline2($line_2) { $this->line_2 = $line_2; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setAddressLine2(?string $addressLine2): void\n {\n $this->addressLine2['value'] = $addressLine2;\n }", "public function setAddressLine2($addressLine2){\n\t\t$this->addressLine2\t=\t$addressLine2;\n\t}", "public function setline1($line_1)\r\n {\r\n $this->line_1 = $line_1;...
[ "0.73890173", "0.7138105", "0.6951766", "0.6628774", "0.650527", "0.64467686", "0.6385502", "0.6326051", "0.6270687", "0.6232117", "0.6156783", "0.61482954", "0.6111496", "0.6110168", "0.6035643", "0.59945416", "0.5897563", "0.5864028", "0.585669", "0.5837755", "0.5834124", ...
0.7844328
0
Show the form for creating a new Requisito.
Показать форму для создания нового Requisito.
public function create() { return view('requisitos.create'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create()\n {\n if(!Gate::allows('isAdmin')){\n abort(404,'Você não tem acesso a esta funcionalidade');\n }\n return view('frm_produto');\n }", "public function create()\n {\n return view('raridades.form');\n }", "public function create()\n {...
[ "0.7254952", "0.7200327", "0.71334827", "0.71159333", "0.71033394", "0.7094821", "0.70831114", "0.7076143", "0.7069998", "0.7030152", "0.7023695", "0.7023491", "0.70212954", "0.7020437", "0.70170057", "0.7016669", "0.701636", "0.7007855", "0.7001043", "0.698657", "0.69754064"...
0.7381663
0
Store a newly created Requisito in storage.
Храните только что созданный Requisito в хранилище.
public function store(CreateRequisitoRequest $request) { $input = $request->all(); $requisito = $this->requisitoRepository->create($input); Flash::success('Requisito saved successfully.'); return redirect(route('requisitos.index')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store(PerritoRequest $request)\n {\n\n $perrito = new Perrito;\n $perrito->create($request->all());\n }", "public function store()\n {\n $this->validate([\n 'nome' => 'required',\n ]);\n\n $contato_tipo = TipoContato::updateOrCreate(['id' => ...
[ "0.6685644", "0.6657866", "0.66171163", "0.6530599", "0.6524704", "0.6425879", "0.6424739", "0.6377403", "0.63652945", "0.63600224", "0.63516843", "0.63498944", "0.6344088", "0.634308", "0.6314785", "0.63086814", "0.62772137", "0.62743527", "0.6267042", "0.62610525", "0.62470...
0.734802
0
Get default class vars
Получить переменные класса по умолчанию
protected function getShaderClassDefaultVars() { return get_class_vars(get_class($this)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_class_vars() {\n\t\treturn get_class_vars($this->get_class_name());\n\t\t\n\t}", "function getClassVars(){\r\n\t\t\t$class_vars = get_class_vars('OORedaxo');\r\n\t\t\tforeach($class_vars as $key=>$var){\r\n\t\t\t if(substr($key,1)=='_'){\r\n\t\t\t \t$class_vars[$key] = substr($key,1);\r\n\t\t\...
[ "0.7170517", "0.6946016", "0.68396324", "0.6822035", "0.67706925", "0.67489743", "0.6719495", "0.66375864", "0.6582503", "0.6559633", "0.6523375", "0.6523053", "0.64462525", "0.63584846", "0.63568217", "0.63568217", "0.63568217", "0.63564646", "0.63273364", "0.63095444", "0.6...
0.8134991
0
Add search to a Doctrine query. $q should be a Doctrine query object. $search is the user's search text (don't preclean it for us, we've got it covered). $options may contain 'culture' YOUR QUERY MUST HAVE EXPLICIT addSelect CALLS, OTHERWISE YOU WILL NOT GET RESULTS. You don't want to hydrate all this extra stuff anywa...
Добавьте поиск в запрос Doctrine. $q должен быть объектом запроса Doctrine. $search — это текст поиска пользователя (не очищайте его для нас, мы это уже учтём). $options может содержать 'culture'. ВАШ ЗАПРОС ДОЛЖЕН СОДЕРЖАТЬ ЯВНЫЕ вызовы addSelect, ВОЗМОЖНО, ВОЗНИКНЕТ ПРОБЛЕМА С РЕЗУЛЬТАТАМИ. Вы не хотите гидратировать...
public function addSearchToQuery($q, $search, $options = array()) { $alias = $q->getRootAlias(); // Uses refclass to get to the search document $q->innerJoin($alias . '.aSearchDocuments asd'); $q->innerJoin('asd.Usages asu'); // Unicode: letters and spaces only, plus wildcard * $words = $this-...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function search(SearchOptions $options);", "public function makeSearchQuery( EarthIT_Storage_Search $search, array $options=array() );", "public function search($q, $options = array())\n\t{\n\t\t// Load Library porterstemmmer search algorithm\n\t\t$this->load->library('search/porterStemmer');\n\n\t\t// ...
[ "0.6512408", "0.64072984", "0.5928674", "0.5907444", "0.5825516", "0.5725141", "0.56710434", "0.56336975", "0.5613251", "0.5603736", "0.5579253", "0.5491134", "0.5399265", "0.53133047", "0.5255204", "0.52329946", "0.52177995", "0.52163273", "0.51442623", "0.5083838", "0.50683...
0.7705925
0
Constructor method for ArrayOfGroupedItemsType
Конструктор метод для ArrayOfGroupedItemsType
public function __construct(array $groupedItems = array()) { $this ->setGroupedItems($groupedItems); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __construct($array = array())\n {\n $this->items = $array;\n }", "public function __construct(array $itemType = array())\n {\n $this\n ->setItemType($itemType);\n }", "public function __construct(array $groupedItems, $currentPage = 1)\n {\n $this->...
[ "0.6438839", "0.6322356", "0.60599506", "0.5912714", "0.58665425", "0.5861023", "0.5817299", "0.57301676", "0.57156956", "0.57022333", "0.5659073", "0.5616207", "0.56119", "0.5575966", "0.5542998", "0.55323", "0.548748", "0.5486148", "0.54756826", "0.54733175", "0.54636824", ...
0.74908066
0
Get the number of assets version
Получить количество версий активов
public function getAssetsVersion(){ return self::ASSETS_VERSION; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function cp_susty_get_asset_version() {\n\treturn '20181112';\n}", "function versionGet()\n{\n\t$count = trim( shell_exec( 'git rev-list HEAD --count' ) );\n\n\t// And on the thirteenth day of the fourth month of the year two thousand and thirteen,\n\t// The hardware counter stood at six thousand one hundred and...
[ "0.7087174", "0.69636714", "0.6732113", "0.672034", "0.6623428", "0.6560444", "0.65572464", "0.65461224", "0.65291", "0.65108454", "0.6469767", "0.6429906", "0.6422673", "0.6404625", "0.63796306", "0.6367698", "0.63494235", "0.6343686", "0.63352954", "0.632741", "0.63227224",...
0.7659826
0
Get if LightCheckout is installed and enabled
Проверить, установлен ли и включен ли LightCheckout
public function getGomageLightCheckoutEnabled(){ return Mage::getStoreConfig('gomage_checkout/general/enabled'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isInstalled() {\n return (bool)defined('MODULE_PAYMENT_PAYPAL_ADV_STATUS');\n }", "function isInstalled() {\n return (bool)defined('MODULE_PAYMENT_WIRECARD_CC_STATUS');\n }", "function isInstalled() {\n return (bool)defined('MODULE_PAYMENT_VIVAWALLET_STATUS');\n }", "publi...
[ "0.7379332", "0.7211772", "0.7185895", "0.6946102", "0.6946102", "0.6946102", "0.6935944", "0.69075596", "0.6839649", "0.68272203", "0.6823664", "0.6821831", "0.6803075", "0.676837", "0.6738573", "0.6682082", "0.66469693", "0.66173536", "0.6594494", "0.6540581", "0.653841", ...
0.7574852
0
Get if nektria last mile shipping method is selected
Проверить, выбран ли последний милю метод доставки nektria
public function getLastMileSelected(){ $shipping_method = self::getShippingMethod(); //Switch with method type if ($shipping_method == 'nektria_recs_lastmile'){ return TRUE; }else{ return FALSE; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getShippingMethod();", "public function getShippingMethod();", "public function getShippingMethod();", "public function get_shipping_method()\n {\n }", "function selected_shipping_option()\n\t{\n\t\treturn $this->_get_shipping_option();\n\n\t}", "public function getShippingM...
[ "0.7326599", "0.7326599", "0.7326599", "0.694747", "0.6718731", "0.6669956", "0.6622325", "0.6527419", "0.6424959", "0.6399789", "0.6380326", "0.6375316", "0.63740945", "0.63738054", "0.63354576", "0.6332067", "0.63092643", "0.62380916", "0.62292266", "0.6206767", "0.61960965...
0.7858555
0
Returns the last Mile selected Price
Возвращает последнюю цену, выбранную Mile
public function getLastMileSelectedPrice(){ if ( self::getLastMileSelected() ){ $selectedPrice = Mage::helper('core')->jsonDecode(self::getLastSelection()); return Mage::helper('core')->currency( $selectedPrice['total_price'] ); }else{ return ''; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getLastPrice(){\n\t\treturn $this->lastPrice;\n\t}", "public function get_maximum_price() {\n\n\t\tif ( ! isset( $this->maximum_price ) ) {\n\t\t\t$this->maximum_price = give_get_meta( $this->ID, '_give_custom_amount_range_maximum', true, 999999.99 );\n\n\t\t\tif ( ! $this->is_custom_price_mode()...
[ "0.72962713", "0.68690944", "0.6811796", "0.6722077", "0.6660212", "0.6458978", "0.61920166", "0.6155736", "0.6150499", "0.6121016", "0.5919147", "0.591248", "0.58791494", "0.58782476", "0.58552784", "0.5825218", "0.5821811", "0.5808829", "0.5787055", "0.57797784", "0.5776973...
0.83950263
0
Get direct payment methods from magento usetting offline methods
Получить прямые методы оплаты из настроек magento, исключая офлайн методы
public function getDirectPaymentMethods(){ $methods = Mage::helper('payment')->getPaymentMethodList(TRUE, TRUE, TRUE); unset($methods['offline']); return $methods; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPaymentMethods();", "public function getPaymentMethods();", "public function getAvailablePaymentMethods () {\n #\t \treturn t3lib_div::xml2array (t3lib_div::getUrl(t3lib_extMgm::extPath ('paymentlib_ipayment').'paymentmethods.xml'));\n }", "public function getAvailablePaymentMeth...
[ "0.79380524", "0.79380524", "0.7807638", "0.76991117", "0.76251733", "0.7501499", "0.7419279", "0.70570874", "0.70570874", "0.70570874", "0.70570874", "0.6976074", "0.6969126", "0.6952408", "0.69340354", "0.69306666", "0.69303584", "0.6842864", "0.68244284", "0.6784446", "0.6...
0.83371645
0
Returns the list of offline payment methods names
Возвращает список имен методов оплаты в оффлайне
public function getOfflinePaymentMethods(){ $methods = Mage::helper('payment')->getPaymentMethodList(TRUE, TRUE, TRUE); $methods = array_keys( $methods['offline']['value'] ); return $methods; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDirectPaymentMethods(){\n\t\t$methods = Mage::helper('payment')->getPaymentMethodList(TRUE, TRUE, TRUE);\n \t\tunset($methods['offline']);\n \t\treturn $methods;\n\t}", "public function getAvailablePaymentMethods () {\n #\t \treturn t3lib_div::xml2array (t3lib_div::getUrl(...
[ "0.77610844", "0.75420266", "0.7540085", "0.745775", "0.745775", "0.7400144", "0.73286", "0.6731759", "0.6707511", "0.66277903", "0.66090035", "0.6600392", "0.6599338", "0.6587044", "0.65699553", "0.6564822", "0.6562674", "0.65252775", "0.6516253", "0.6509505", "0.6485117", ...
0.86459744
0
Get backend disabled by the admin payment methods
Платежные методы, отключенные администратором backend
public function getDisabledPaymentMethods(){ $paymentsallow = self::getConfig('paymentsallow'); //convert variable to array $paymentsallow = ($paymentsallow)?explode( ',', $paymentsallow ) : array(); //returns selected direct payment methods and all offline payment methods return array_merge( $paymentsallow,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPaymentMethod();", "public function getPaymentMethod();", "public function getPaymentMethod();", "public function getPaymentMethod();", "function edd_get_mtpayment_ops()\n{\n\tglobal $edd_options;\n\t//get 3ds opts from backend\n\tVeritrans_Config::$is3ds = $edd_options['mt_promo_3ds'] ?...
[ "0.64092743", "0.64092743", "0.64092743", "0.64092743", "0.6401646", "0.636214", "0.6357392", "0.63485616", "0.63485616", "0.62837434", "0.62446743", "0.6215961", "0.6205168", "0.6192287", "0.6186732", "0.61841", "0.61772865", "0.6160663", "0.6117061", "0.61069995", "0.609619...
0.73612344
0
Write html template with the Last Mile Selection
Напишите html-шаблон с выбором Последнего Километра
public function htmlLastMileSelection(){ $template = Mage::app()->getLayout()->createBlock('core/template') ->setTemplate('recs/totals/lastmile.phtml'); return $template->toHtml(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function htmlAdminLastMileSelection($order){\n\t\t$template = Mage::app()->getLayout()->createBlock('core/template')\n\t\t\t->setData('order', $order)\n \t->setTemplate('recs/sales/order/view/lastmile.phtml');\n return $template->toHtml();\n\t}", "private function getLastPage()\n\t{\n\t\tif...
[ "0.7057202", "0.60201615", "0.57433707", "0.55165046", "0.54295474", "0.54063106", "0.5405165", "0.5403709", "0.5345788", "0.5342127", "0.5313218", "0.52836573", "0.5281412", "0.5269514", "0.52665347", "0.52644557", "0.52455693", "0.52351534", "0.5232924", "0.52235943", "0.52...
0.8242224
0
Write html template with the Last Mile Selection
Напишите html-шаблон с выбором Последнего Километра
public function htmlAdminLastMileSelection($order){ $template = Mage::app()->getLayout()->createBlock('core/template') ->setData('order', $order) ->setTemplate('recs/sales/order/view/lastmile.phtml'); return $template->toHtml(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function htmlLastMileSelection(){\n\t\t$template = Mage::app()->getLayout()->createBlock('core/template')\n \t->setTemplate('recs/totals/lastmile.phtml');\n return $template->toHtml();\n\t}", "private function getLastPage()\n\t{\n\t\tif($this->currentPage != $this->getTotalPages())\n\t\t\tr...
[ "0.824187", "0.6016124", "0.5742102", "0.5513325", "0.542914", "0.5406722", "0.54057807", "0.5400331", "0.53458476", "0.5338813", "0.5311363", "0.52825874", "0.527697", "0.5264651", "0.5262619", "0.5260395", "0.52432334", "0.52293086", "0.522926", "0.52194566", "0.52188754", ...
0.70564574
1
Gets the currency symbol associated to a Currency Code
Получает символ валюты, связанный с кодом валюты
public function getCurrencySymbol(){ $currency_code = Mage::app()->getStore()->getBaseCurrencyCode(); return Mage::app()->getLocale()->currency( $currency_code )->getSymbol(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCurrencySymbol($code)\n {\n $currency = $this->_localeCurrency->getCurrency($code);\n return $currency->getSymbol() ? $currency->getSymbol() : $currency->getShortName();\n }", "function getCurrencySymbol() {\n\treturn Cache::rememberForever('symbol', function() {\n\t ret...
[ "0.80351865", "0.8012351", "0.7996106", "0.7943977", "0.78381664", "0.7761684", "0.7750778", "0.7732496", "0.7732496", "0.7732496", "0.7732496", "0.7727348", "0.7693522", "0.76932716", "0.7603332", "0.75400317", "0.753985", "0.75129765", "0.746362", "0.7446806", "0.7385093", ...
0.8324204
0
/ funciones para transformar temperatura de celsius a fahrenheit
/ функции для преобразования температуры сельсия в фаренгейт
function fahrenheitCelsius($temperatura){ return ($temperatura-32)*5/9; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function convertFtoC($tempValue) {\n // Fahrenheit to Celsius\n $calcTemp = ($tempValue - 32) * (5 / 9); \n return $calcTemp; \n}", "function convertTemp ($rawtemp,$useunit) {\r\n\t $dpTemp = 1;\r\n\t if(!is_numeric($rawtemp)) { return($rawtemp); } // no conversions for mi...
[ "0.697914", "0.68215775", "0.6624428", "0.6610483", "0.6560781", "0.6541088", "0.65350306", "0.6257619", "0.61620325", "0.61469847", "0.61401135", "0.610481", "0.6037851", "0.6004", "0.59874296", "0.5987306", "0.59345984", "0.58969367", "0.5828631", "0.5827862", "0.5821057", ...
0.8001208
0
////////////////////////////////////////////////////////////////////////////////////////////// Function : twe_get_zone_code Arguments : country country code string zone state/province zone_id def_state default string if zone==0 Return : state_prov_code state/province code Description : Function to retrieve the state/pr...
////////////////////////////////////////////////////////////////////////////////////////////// Функция : twe_get_zone_code Аргументы : country код страны строка zone состояние/провинция zone_id def_state строка по умолчанию если zone == 0 Возвращаемое значение : state_prov_code код состояния/провинции Описание : Функци...
function twe_get_zone_code($country, $zone, $def_state) { global $db; $state_prov_values = $db->Execute("select zone_code from " . TABLE_ZONES . " where zone_country_id = '" . $country . "' and zone_id = '" . $zone . "'"); if ($state_prov_values->RecordCount() < 1) { $state_prov_code = $def_state; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function tep_get_zone_code($country_id, $zone_id, $default_zone) {\n $zone_query = tep_db_query(\"select zone_code from \" . TABLE_ZONES . \" where zone_country_id = '\" . (int)$country_id . \"' and zone_id = '\" . (int)$zone_id . \"'\");\n if (tep_db_num_rows($zone_query)) {\n $zone = tep_db_fetch_arra...
[ "0.7654502", "0.7424421", "0.63839656", "0.6309676", "0.6291127", "0.62611824", "0.6172892", "0.60914236", "0.60889286", "0.5992337", "0.59561956", "0.59435874", "0.59254855", "0.59147567", "0.5914421", "0.58831686", "0.58718413", "0.5862948", "0.58269143", "0.58195955", "0.5...
0.83337086
0
// Return the manufacturers URL in the needed language TABLES: manufacturers_info
// Возвращать URL производителя на нужном языке ТАБЛИЦЫ: manufacturers_info
function twe_get_manufacturer_url($manufacturer_id, $language_id) { global $db; $manufacturer_query = "select manufacturers_url from " . TABLE_MANUFACTURERS_INFO . " where manufacturers_id = '" . $manufacturer_id . "' and languages_id = '" . $language_id . "'"; $manufacturer = $db->Execute($manufacturer_q...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function AdminManufacturers(){\n\t\t$categories = $this->manufacturerTable->findAll();\n\t\t\n\t\treturn [\n\t\t\t\t'template' => 'admin/manufacturers.html.php',\n\t\t\t\t'title' => 'Claires\\'s Cars - Admin Manufacturer',\n\t\t\t\t'variables' => [\n\t\t\t\t\t\t\t\t'categories' => $categories\n\t\t\t\t\t\t\...
[ "0.66267705", "0.6359472", "0.61279225", "0.5955283", "0.58499396", "0.5822027", "0.5799836", "0.5799356", "0.5652617", "0.5644559", "0.5639781", "0.5619294", "0.5554454", "0.5543141", "0.54932475", "0.54864246", "0.5422441", "0.53989166", "0.53557235", "0.5345861", "0.532385...
0.73273027
0
// Get list of address_format_id's
// Получить список идентификаторов address_format_id
function twe_get_address_formats() { global $db; $address_format_values = $db->Execute("select address_format_id from " . TABLE_ADDRESS_FORMAT . " order by address_format_id"); $address_format_array = array(); while (!$address_format_values->EOF) { $address_format_array[] = array('id' =>...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_address_formats()\n {\n }", "function &getFormatIds()\n\t{\n\t\tinclude_once 'Services/MetaData/classes/class.ilMDFormat.php';\n\n\t\treturn ilMDFormat::_getIds($this->getRBACId(),$this->getObjId());\n\t}", "protected static function libphonenumberFormats(): array\n {\n ...
[ "0.67114466", "0.6201433", "0.5951543", "0.58282137", "0.5717334", "0.5589226", "0.55653423", "0.5552003", "0.55445904", "0.55338216", "0.54289323", "0.54289323", "0.541282", "0.53780484", "0.5241833", "0.52317554", "0.5228323", "0.52274346", "0.5182968", "0.5179275", "0.5175...
0.76715416
0
// Sets the status of a banner
// Устанавливает статус баннера
function twe_set_banner_status($banners_id, $status) { global $db; if ($status == '1') { return $db->Execute("update " . TABLE_BANNERS . " set status = '1', expires_impressions = NULL, expires_date = NULL, date_status_change = NULL where banners_id = '" . $banners_id . "'"); } elseif ($status == '0') { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setInBanner(): void\n {\n $this->banner = true;\n }", "public function changeStatusActive()\n\t{\n\t\t$id = $this->input->_request('id');\n\t\t$sql = \"update banners set status=1 where id={$id}\";\n\t\t$query = $this->db->query($sql);\n\t\t$this->banner_list();\n\t}", "public func...
[ "0.7045017", "0.6861155", "0.6588873", "0.6587825", "0.64489144", "0.6445366", "0.6248308", "0.62322426", "0.6206283", "0.6187845", "0.6187845", "0.6187845", "0.6187845", "0.6187845", "0.61841047", "0.61841047", "0.6181516", "0.61483955", "0.6147337", "0.6137052", "0.6130202"...
0.75908464
0
// Sets the status of a product
// Устанавливает статус продукта
function twe_set_product_status($products_id, $status) { global $db; if ($status == '1') { return $db->Execute("update " . TABLE_PRODUCTS . " set products_status = '1', products_last_modified = now() where products_id = '" . $products_id . "'"); } elseif ($status == '0') { return $db->Execute("upd...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateproductstatusAction()\n {\n try\n {\n $em = EntityManagerSingleton::getInstance();\n\n $in_stock = $em->getReference('Library\\Model\\Product\\Status', 1);\n $out_of_stock = $em->getReference('Library\\Model\\Product\\Status', 2);\n ...
[ "0.7403991", "0.72599304", "0.72179043", "0.7180285", "0.7153858", "0.694334", "0.684648", "0.6789561", "0.6762725", "0.6757044", "0.67243844", "0.6534594", "0.6493157", "0.6485558", "0.64736533", "0.64736533", "0.647279", "0.64652354", "0.6442536", "0.6412575", "0.6412575", ...
0.74058133
0
Update the Customers GV account
Обновить учетную запись клиента GV
function twe_gv_account_update($customer_id, $gv_id) { global $db; $customer_gv_query = "select amount from " . TABLE_COUPON_GV_CUSTOMER . " where customer_id = '" . $customer_id . "'"; $customer_gv = $db->Execute($customer_gv_query); $coupon_gv_query = "select coupon_amount from " . TABLE_COUPONS ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function tep_gv_account_update($customer_id, $gv_id) {\n\t\t$Customer = Doctrine_Manager::getInstance()\n\t\t\t->getCurrentConnection()\n\t\t\t->fetchAssoc(\"select amount from \" . TABLE_COUPON_GV_CUSTOMER . \" where customer_id = '\" . $customer_id . \"'\");\n\t\t$Coupon = Doctrine_Manager::getInstance()\n\t\t\t...
[ "0.7563341", "0.70631444", "0.6922764", "0.67650896", "0.6622127", "0.64717555", "0.63193065", "0.62966424", "0.6296518", "0.62888926", "0.6258954", "0.6256669", "0.6206238", "0.61698675", "0.61570954", "0.6146159", "0.6136283", "0.6070302", "0.6054365", "0.604682", "0.601527...
0.72937846
1
Calculates and returns current GMT offset
Вычисляет и возвращает текущий смещение по Гринвичу
public static function getGmtOffset() { $gmtOffset = date('Z') / 60 / 60; $gmtOffset = round($gmtOffset); return $gmtOffset; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getGmtOffset()\n\t{\n\t\treturn $this->gmt_offset;\n\t}", "function get_gmt_offset( $timezone = false ){\n\tif( $timezone == false ){\n\t\t$timezone = date_default_timezone_get();\n\t}\n\t\n\treturn get_timezone_offset( $timezone, 'UTC' );\n\t\n}", "function getServerTimeZoneOffset()\n{\n re...
[ "0.7421059", "0.7318216", "0.73028165", "0.72977537", "0.7290846", "0.7218022", "0.7141333", "0.7141047", "0.71319675", "0.71223235", "0.70702535", "0.6898517", "0.6885096", "0.6810091", "0.67468184", "0.67399997", "0.6719957", "0.6694597", "0.6636762", "0.6636762", "0.660946...
0.7532978
0
Converts timestamp to numeric date (YYYYMMDD) E.g.: 20141214
Преобразует временной метку в числовую дату (YYYYMMDD) Например: 20141214
public static function getNumericDate($timestamp = null) { if ($timestamp === null) { $timestamp = time(); } return (int) date('Ymd', $timestamp); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function get_timestamp_as_date($timestamp)\n {\n }", "function convert_date($timestamp){\n\t$date = new DateTime($timestamp);\n\treturn $date->format('l, F j, Y'); //from php.net/manual/en/datetime.formats.date.php\n}", "function convert_date($timestamp){\n\t$date = new DateTime($timestamp);\n\...
[ "0.70837337", "0.68050003", "0.6769371", "0.6744152", "0.6561437", "0.6379349", "0.63534564", "0.6262791", "0.6259346", "0.62453324", "0.61999476", "0.6176817", "0.61067206", "0.60982704", "0.60542965", "0.6053211", "0.6019409", "0.59910846", "0.5990686", "0.5990686", "0.5977...
0.7247792
0
Converts timestamp to numeric month (YYYYMM) E.g.: 201412
Преобразует временной штамп в числовое представление месяца (YYYYMM) Например: 201412
public static function getNumericMonth($timestamp = null) { if ($timestamp === null) { $timestamp = time(); } return (int) date('Ym', $timestamp); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getMonthNumber(){\n return date(\"m\", $this->timestamp);\n }", "function num_to_month($monthNum){\n $dateObj = DateTime::createFromFormat('!m', $monthNum);\n return $dateObj->format('F'); // March\n\t}", "public function getMonth(): int\n {\n return (int) $t...
[ "0.7687935", "0.7173926", "0.68958163", "0.6829311", "0.6761846", "0.66626596", "0.66331303", "0.6628582", "0.66270995", "0.6602347", "0.6584978", "0.6548916", "0.65395176", "0.6531909", "0.6490069", "0.6469238", "0.6449113", "0.6392957", "0.63731843", "0.6372883", "0.6345222...
0.75658894
1
Checks is given timestamp is today.
Проверяет, что заданный временной штамп сегодняшний.
public static function isToday($timestamp) { return date('Y-m-d', $timestamp) == date('Y-m-d'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function is_today( $timestamp ){\n if( is_string( $timestamp ) ){\n $timestamp = strtotime( $timestamp );\n }\n \n if( date('Ymd') == date('Ymd', $timestamp ) ){\n \n return true;\n \n } else {\n \n return false;\n \n }\n \n}", "public functio...
[ "0.8258842", "0.78857374", "0.74460566", "0.74345", "0.7368617", "0.7329381", "0.71365905", "0.6735148", "0.66653115", "0.6636087", "0.6599793", "0.6566274", "0.6559666", "0.6407061", "0.63870585", "0.63792735", "0.6377691", "0.6270031", "0.62454647", "0.62390476", "0.6226006...
0.7937512
1
Checks is given timestamp is yesterday.
Проверяет, что заданный временной штамп — вчерашний.
public static function isYesterday($timestamp) { return date('Y-m-d', $timestamp) == date('Y-m-d', strtotime('yesterday')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function is_yesterday( $timestamp ){\n if( is_string( $timestamp ) ){\n $timestamp = strtotime( $timestamp );\n }\n \n if( date('Ymd', time() - DAY_IN_SECONDS ) == date('Ymd', $timestamp ) ){\n \n return true;\n \n } else {\n \n return false;\n \n ...
[ "0.86079186", "0.7753706", "0.7647147", "0.6918225", "0.6568054", "0.6383678", "0.6370715", "0.6301879", "0.6295512", "0.62625396", "0.6174584", "0.6108618", "0.5974628", "0.58610827", "0.5803791", "0.56958824", "0.5648775", "0.56288135", "0.56258863", "0.5587627", "0.5550096...
0.81926054
1
Checks is given timestamp is in this week We use ISO8601 standard, weeks starting on Monday.
Проверяет, является ли предоставленный временной меткой текущей неделе. Мы используем стандарт ISO8601, где недели начинаются в понедельник.
public static function isThisWeek($timestamp) { return date('o-\\WW', $timestamp) == date('o-\\WW'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function isWeekday($timestamp) {\r\n\treturn (date('N', $timestamp) < 6); // ISO DoW (7 = Sunday)\r\n}", "public function isCurrentWeek(): bool;", "public function isCurrentWeek(): bool {\n $today = date('Y-m-W');\n $thisDay = $this->getDateTime()->format('Y-m-W');\n return $today === $thisDay;\n }",...
[ "0.77315366", "0.7196538", "0.69856054", "0.68022597", "0.6574872", "0.65365046", "0.65349185", "0.64893246", "0.6470412", "0.630654", "0.6233066", "0.62323016", "0.6220655", "0.6200745", "0.619992", "0.6178051", "0.61303043", "0.61221504", "0.61043817", "0.6102391", "0.60977...
0.78351456
0
Checks is given timestamp is in this year
Проверяет, что заданный временной штамп находится в этом году
public static function isThisYear($timestamp) { return date('Y', $timestamp) == date('Y', time()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isCurrentYear() : bool\n {\n return date('Y', $this->getTimestamp()) == date('Y');\n }", "public function is_year()\n {\n }", "public function isCurrentYear(): bool\n {\n return ((int) date('Y')) === $this->year;\n }", "function isCurrentYear(){\r\n $start_m...
[ "0.7414373", "0.728142", "0.71384686", "0.7038375", "0.69635797", "0.6927871", "0.6891098", "0.6843501", "0.68253624", "0.67865664", "0.6722407", "0.66387075", "0.6614019", "0.66094416", "0.6608157", "0.65826434", "0.6568144", "0.65677243", "0.65568304", "0.6538904", "0.65249...
0.81247133
0
Register custom twig extensions.
Регистрация пользовательских расширений twig.
private function registerTwigExtensions() { foreach ($this->app->getSetting('twig_extensions', []) as $extension) { $this->twig->addExtension(new $extension($this)); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function onTwigExtensions()\n {\n require_once __DIR__ . '/classes/Twig/VimeoTwigExtension.php';\n $this->grav['twig']->twig->addExtension(new VimeoTwigExtension());\n }", "public function addTwigExtension()\n\t{\n\t\tCraft::import(\n\t\t\t'plugins.autolink.twigextensions.AutoLinkTwigE...
[ "0.80325556", "0.73945343", "0.7388871", "0.7372683", "0.7310733", "0.72616905", "0.7103372", "0.70679814", "0.705623", "0.7021246", "0.70096976", "0.7005594", "0.7005594", "0.6997154", "0.69748205", "0.6925349", "0.6925198", "0.6917105", "0.6900939", "0.6894906", "0.6892313"...
0.8720515
0
Save page to target file.
Сохранить страницу в целевой файл.
public function savePage($target, $html) { $fs = new Filesystem(); $fs->dumpFile($this->target . DIRECTORY_SEPARATOR . $target, $html); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function saveFile() {\n // contents to the archive\n require_once dirname( __FILE__ ) .\n '/../StaticHtmlOutput/FileWriter.php';\n\n $file_writer = new FileWriter(\n $this->url,\n $this->processed_file,\n $this->file_type,\n $this->...
[ "0.75575733", "0.7113068", "0.65576", "0.6404856", "0.6355959", "0.63335043", "0.63247246", "0.6257715", "0.6217822", "0.62050146", "0.61702365", "0.6133512", "0.61148256", "0.61071855", "0.6081375", "0.6062279", "0.60273224", "0.60147816", "0.5946501", "0.5942622", "0.594183...
0.7443731
1
Create a server config file
Создайте файл конфигурации сервера
public function createServerConfig() { // Load config $config = new Config($this->app->getEnvironment(), '.env'); // Save to protected file $config->export($this->target . DIRECTORY_SEPARATOR . '.env.php'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function createConfigFile() {\n $path = base_path('config/' . $this->getConfigFileName()) . '.php';\n\n $content = $this->files->get(__DIR__ . '/stubs/config.php.stub');\n\n $content = str_replace('{{CONFIG_NAME}}', Str::upper(Str::snake($this->getNameArg())), $content);\n\n $...
[ "0.7070579", "0.7046196", "0.68696964", "0.68282056", "0.6778356", "0.67020553", "0.66514915", "0.6538233", "0.64979213", "0.64242417", "0.63251495", "0.62821525", "0.61070395", "0.6104421", "0.60549", "0.603139", "0.5995653", "0.5957166", "0.59556663", "0.58899295", "0.58857...
0.7905469
0
Copy static files to target Ignoring JS, CSS & LESS Gulp handles that
Копирование статических файлов в целевую директорию, игнорируя JS, CSS & LESS. Gulp обрабатывает это.
public function copyStaticFiles() { $exclude = ['js', 'javascripts', 'stylesheets', 'less', 'sass']; // Include the excludes from the config $exclude = array_merge($exclude, (array) $this->app->getSetting('exclude', [])); // Create pattern $pattern = '/\\.(' . implode("|", ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function copyAssets() {\n $this->core->component('file')->copyFolder('themes/' . $this->core->setting('theme') . '/assets/', 'public/assets/');\n }", "public function copyAssets()\n {\n $this->filesystem->copyDirectory(__DIR__ . '/../../resources/css', resource_path('css/vendor/crisveg...
[ "0.6447376", "0.643046", "0.6336122", "0.6269724", "0.62032694", "0.61864007", "0.6093075", "0.5980161", "0.58188516", "0.57224125", "0.57224125", "0.56698066", "0.5630342", "0.56170595", "0.56086296", "0.5561131", "0.5533352", "0.55047035", "0.5468753", "0.54551107", "0.5435...
0.7707405
0
Sorts posts by date (descending) or by chapter (ascending). Assigns post.next and post.prev
Сортирует посты по дате (в порядке убывания) или по главе (в порядке возрастания). Присваивает post.next и post.prev
private function sortPosts() { $this->app->writeln("\n<comment>Sorting</comment>"); $cmpFn = function (Content $one, Content $other) { // Sort by chapters if ($one instanceof Doc && $other instanceof Doc) { if ($one->chapter == $other->chapter) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function sort_relationship_field_lists_chronologically( $args, $field, $post ) {\n $args['orderby'] = 'post_date';\n $args['order'] = 'DESC';\n return $args;\n}", "function blog_posts () {\n $posts = glob(dirname(__DIR__) . '/content/blog/*.php');\n \n $posts = array_map('content_data', $posts);\n ...
[ "0.6113334", "0.5655804", "0.5647764", "0.56349", "0.56266695", "0.56260973", "0.55809766", "0.5565071", "0.5560404", "0.5522739", "0.55218685", "0.5482185", "0.5475432", "0.54568696", "0.54416305", "0.54366475", "0.54311514", "0.54091936", "0.53857416", "0.5372996", "0.53655...
0.7499107
0
Is the reminder already used?
Использован ли напоминание?
private function used(string $reminder): bool { return (bool) (new Storage\ParameterizedQuery( $this->database, 'SELECT 1 FROM forgotten_passwords WHERE reminder IS NOT DISTINCT FROM ? AND used = TRUE', [$reminder] ))->field(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hasResettime(){\n return $this->_has(2);\n }", "public function hasReminderSettings()\n {\n return $this->reminder != null;\n }", "public function hasReminders()\n {\n return $this->calendar->subscription_reminders ? true : false;\n }", "public function alrea...
[ "0.6831317", "0.6760793", "0.6758784", "0.6468627", "0.6467646", "0.6437192", "0.63185227", "0.62978894", "0.62843883", "0.6280456", "0.6275172", "0.6268478", "0.6267512", "0.6262899", "0.6261068", "0.6231174", "0.6214171", "0.6186456", "0.6152443", "0.61506075", "0.6139487",...
0.70909804
0
Makes an instance from dto.
Создает экземпляр из dto.
public static function fromDTO($object);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function build(DTO $dto) : AbstractEntity\n \t{\n\t\t//Get Mapper and convert data\n\t\t$raw = $dto->getDataArray();\n\t\t$mapper = $this->factory->getMapper($raw);\n\t\t$domain_array = $mapper->return_dto_to_domain_array();\n\n\t\t//get Objectfactory and return object\n\t\t$dofact = $this->factory->getDoma...
[ "0.6704016", "0.6429224", "0.618762", "0.6059554", "0.601656", "0.5986958", "0.59778243", "0.5935755", "0.5931011", "0.5901918", "0.5820767", "0.5815427", "0.5780858", "0.57473755", "0.5721998", "0.5654987", "0.5597702", "0.55800766", "0.55776954", "0.5567688", "0.5564004", ...
0.7356645
0
This function reset's the internal cursor used for value iteration.
Эта функция сбрасывает внутренний курсор, используемый для итерации по значениям.
public function reset() { $this->cursor = 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function reset()\n\t{\n\t\t$this->cursor->reset();\n\t}", "#[ReturnTypeWillChange]\n public function rewind()\n {\n // We can recreate the cursor to allow it to be rewound\n $this->reset();\n $this->startedIterating = true;\n $this->position = 0;\n $this->ensureIte...
[ "0.82716423", "0.75430715", "0.75371313", "0.7500722", "0.7499292", "0.7489874", "0.74894917", "0.74562114", "0.74199104", "0.72388077", "0.72388077", "0.71978694", "0.7195567", "0.7172191", "0.71495956", "0.70728165", "0.70686525", "0.70178497", "0.6991563", "0.697435", "0.6...
0.84125096
0
/ Set the devices to send to
/ Установите устройства, которые будут получать сообщения
function setDevices($deviceIds){ if(is_array($deviceIds)){ $this->devices = $deviceIds; } else { $this->devices = array($deviceIds); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setDevices($devices) {\n if (empty($devices) || is_null($devices)) {\n throw new ConfigurationException('You must give an array of devices UUIDs to the pusher');\n }\n\n $this->config['devices'] = $devices;\n }", "protected function indexDevices() {\n $th...
[ "0.6574608", "0.6190899", "0.60380375", "0.6028934", "0.58079624", "0.5686887", "0.5621109", "0.5609585", "0.55918914", "0.5589358", "0.5524365", "0.5524365", "0.5524365", "0.55237544", "0.5511899", "0.54751056", "0.5462535", "0.5431664", "0.54302615", "0.53525144", "0.535146...
0.7064323
0
Extracts the content of the response with the given key
Извлекает содержимое ответа с заданным ключом
private function extract($key, $response) { $result = null; if(array_key_exists($key, $response)) { $result = $response[$key]; } return $result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFromResponse($key)\n {\n return isset($this->results[$key]) ? $this->results[$key] : '';\n }", "public function offsetGet($key)\n {\n return $this->_response[$key];\n }", "public function get($key)\n {\n return $this->getValueByKey($this->response, $key);\n }",...
[ "0.7639915", "0.6880538", "0.6873645", "0.6783441", "0.677279", "0.6748012", "0.65914786", "0.65466243", "0.6534502", "0.6470623", "0.64122015", "0.63774663", "0.6375805", "0.63732386", "0.6324626", "0.6301254", "0.62883383", "0.62158513", "0.618081", "0.6157896", "0.6138236"...
0.72863543
1
Write the request header.
Запишите заголовок запроса.
protected function writeHeader() { $this->writeByte($this->opCode); $this->writeInt($this->sessionId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function writeHeader() {\n\t\t$header = $this->util->createHeader($this->newHeader, $this->encryptionModule);\n\t\treturn parent::stream_write($header);\n\t}", "final protected function _sendHeader() {}", "public function write()\n\t{\n\t\tif ($this->type == MFCGI::BEGIN_REQUEST) {\n\t\t\t\n\t\t\t// ...
[ "0.7249485", "0.6780699", "0.66657364", "0.6588757", "0.656488", "0.6455813", "0.6394778", "0.6345911", "0.63082516", "0.62714016", "0.6242281", "0.6216791", "0.62111366", "0.6166824", "0.61602956", "0.61325747", "0.6123313", "0.61144394", "0.6088397", "0.60840446", "0.608248...
0.73476934
0
Read the response header.
Прочитайте заголовок ответа.
protected function readHeader() { $status = $this->readByte(); $sessionId = $this->readInt(); if ($status === 1) { $this->readByte(); // discard the first byte of the error $error = $this->readError(); throw $error; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function readHeader()\n {\n $this->header = $this->read( $this->size );\n return $this->header;\n }", "public function getResponseHeader()\n {\n return $this->responseHeader;\n }", "public function responseHeader() {\n\treturn $this->responseHeader;\n }", "function ...
[ "0.77833456", "0.74584883", "0.7372721", "0.7298585", "0.7278145", "0.7203295", "0.71728957", "0.7106328", "0.7073409", "0.70173526", "0.7015196", "0.6996511", "0.6963787", "0.6963787", "0.6963787", "0.6955809", "0.6950344", "0.6931854", "0.6902961", "0.6902961", "0.6902961",...
0.7470275
1
Write a byte to the socket.
Запишите байт в сокет.
protected function writeByte($value) { $this->socket->write(Binary::packByte($value)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function writeByte($byte);", "public function writeByte($byte)\n {\n return fwrite($this->handle, $byte, 1);\n }", "abstract public function writeByte($b);", "public abstract function writeByte($b);", "public function writeByte($byte)\n {\n // We do not need to check if file p...
[ "0.77187765", "0.7371716", "0.70756257", "0.70649284", "0.6966219", "0.68465996", "0.6825752", "0.6641369", "0.65662724", "0.6433947", "0.63378507", "0.6233998", "0.60810167", "0.6066164", "0.60657644", "0.60326195", "0.5947578", "0.58661366", "0.58476615", "0.5799765", "0.57...
0.75735736
1
Read a byte from the socket.
Считать байт из сокета.
protected function readByte() { return Binary::unpackByte($this->socket->read(1)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function readByte();", "public function readByte();", "public function readByte()\n {\n $this->position ++;\n return fread($this->handle, 1);\n }", "public function readByte()\n {\n return $this->bin->readByte(); // OK\n }", "public function readByte()\r\n\t{\r\n\t\t...
[ "0.761144", "0.761144", "0.7425924", "0.73819435", "0.72239715", "0.7207077", "0.71253407", "0.6866188", "0.68138593", "0.68023807", "0.6750473", "0.6560373", "0.6494016", "0.6480514", "0.6452274", "0.64229983", "0.6391831", "0.63436043", "0.62810725", "0.6258313", "0.6250334...
0.82759166
0
Write a character to the socket.
Запишите символ в сокет.
protected function writeChar($value) { $this->socket->write(Binary::packByte(ord($value))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function write($socket, $data)\n {\n }", "private function write( $str ) {\n fwrite( $this->socket, $str . \"\\n\" );\n }", "protected function _write($socket, $request)\n {\n fwrite($socket, $request);\n }", "protected function readChar()\n {\n return chr(Binary...
[ "0.6298351", "0.628672", "0.61468446", "0.61234146", "0.60380805", "0.59906316", "0.5933404", "0.59121096", "0.58549505", "0.5839703", "0.5808382", "0.57997215", "0.5739319", "0.57268614", "0.57098806", "0.56946033", "0.5677651", "0.5669437", "0.5646952", "0.56463146", "0.563...
0.75145227
0
Read a character from the socket.
Чтение символа из сокета.
protected function readChar() { return chr(Binary::unpackByte($this->socket->read(1))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function readCharacter();", "public function readChar() {\n\t\treturn $this->atEnd() ? '' : substr($this->streamData, $this->endPointer++, 1);\n\t}", "public function readChar()\n {\n return $this->char = isset($this->stream[++$this->offset]) ? $this->stream[$this->offset] : false;\n }", ...
[ "0.75079906", "0.7420183", "0.7284678", "0.72392356", "0.71374947", "0.6942214", "0.6752611", "0.6669127", "0.65879595", "0.6517181", "0.651133", "0.64875215", "0.63716924", "0.62828976", "0.62625855", "0.6259967", "0.62346673", "0.62286276", "0.6179127", "0.6152439", "0.6094...
0.8239107
0
Write a boolean to the socket.
Запишите булево значение в сокет.
protected function writeBoolean($value) { $this->socket->write(Binary::packByte((bool) $value)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function writeBoolean(){\r\n\t\tdie('Not implemented');\r\n\t}", "protected function readBoolean()\n {\n $value = $this->socket->read(1);\n return (bool) Binary::unpackByte($value);\n }", "public function writeBoolean($a = null)\n {\n throw new NotImplementedException(__METHOD__);...
[ "0.6515628", "0.62820804", "0.61840105", "0.6065007", "0.59974486", "0.5987313", "0.57596606", "0.5734712", "0.571133", "0.56681883", "0.56681883", "0.56599444", "0.5622483", "0.56150866", "0.5602005", "0.55868006", "0.5506231", "0.54796964", "0.54396373", "0.5429241", "0.539...
0.7896792
0
Read a boolean from the socket.
Считать логическое значение из сокета.
protected function readBoolean() { $value = $this->socket->read(1); return (bool) Binary::unpackByte($value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function readBoolean()\n {\n return $this->bin->readBoolean();\n }", "function socket_read(Socket $socket, int $length, int $mode = PHP_BINARY_READ): string|false {}", "protected function read()\n {\n return $this->readBoolean();\n }", "public function isRead(): bool;", "pu...
[ "0.743651", "0.70798165", "0.6875518", "0.6727303", "0.66961354", "0.65605944", "0.6173211", "0.61673766", "0.6162303", "0.6106527", "0.60468066", "0.6046437", "0.59824973", "0.59100163", "0.5896308", "0.58880025", "0.58880025", "0.58694935", "0.58644223", "0.58451736", "0.57...
0.87154233
0
Write a short to the socket.
Напишите короткое сообщение в сокет.
protected function writeShort($value) { $this->socket->write(Binary::packShort($value)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function sendShort(int $number)\n {\n if ($number > 65535 || $number < 0) {\n throw new \\InvalidArgumentException(\n 'Number '.$number.' out of valid range of short value. Valid \n range is 0 - 65535.'\n );\n }\n\n $binary = pack('...
[ "0.66546816", "0.63228154", "0.6313046", "0.6252872", "0.60167545", "0.59541875", "0.5948342", "0.59383756", "0.58557516", "0.58313215", "0.5790902", "0.5740791", "0.5668683", "0.56269157", "0.55866253", "0.55494547", "0.5544316", "0.55130965", "0.5502726", "0.54903543", "0.5...
0.7951459
0
Read a short from the socket.
Считать короткое из сокета.
protected function readShort() { return Binary::unpackShort($this->socket->read(2)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function receiveShort(): int\n {\n $binaryData = $this->receiveRaw(2);\n\n $translatedData = unpack('n', $binaryData);\n return $translatedData[1];\n }", "public function GetShort( ) : int\n\t\t{\n\t\t\tif( $this->Remaining( ) < 2 )\n\t\t\t{\n\t\t\t\tthrow new InvalidPacketExcep...
[ "0.7668519", "0.71574146", "0.7002427", "0.67322147", "0.6330443", "0.60824674", "0.6024666", "0.5974407", "0.5968955", "0.5955776", "0.5933586", "0.58791554", "0.58719987", "0.5835241", "0.5809817", "0.5767827", "0.5741699", "0.5737616", "0.56726474", "0.5626738", "0.5564198...
0.8569188
0
Write an integer to the socket.
Запишите целое число в сокет.
protected function writeInt($value) { $this->socket->write(Binary::packInt($value)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function writeInt($i)\r\n {\r\n $this->data .= pack(\"V1\", $i);\r\n }", "function socket_write(Socket $socket, string $data, ?int $length = null): int|false {}", "public function writeInt($value)\n {\n // We do not need to check if file position points to the end of \"file\".\n ...
[ "0.70908684", "0.6981528", "0.6823753", "0.6461725", "0.6431887", "0.64160323", "0.63963354", "0.63076586", "0.6271474", "0.6198911", "0.61201876", "0.6109699", "0.6078748", "0.6054211", "0.6049845", "0.60384244", "0.5888165", "0.585381", "0.58290195", "0.57939875", "0.577597...
0.8281491
0
Read an integer from the socket.
Чтение целого числа из сокета.
protected function readInt() { return Binary::unpackInt($this->socket->read(4)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function receiveOctet(): int\n {\n $binaryData = $this->receiveRaw(1);\n\n $translatedData = unpack('C', $binaryData);\n return $translatedData[1];\n }", "protected function readInteger()\n {\n if ($this->littleEndian) {\n $result = unpack('Vint', fread($thi...
[ "0.7061859", "0.7023628", "0.70133704", "0.6947106", "0.6887837", "0.67263883", "0.6713436", "0.6602487", "0.659605", "0.6549112", "0.64157605", "0.6401958", "0.63996047", "0.6376937", "0.63135624", "0.6310745", "0.62537163", "0.62133926", "0.6193919", "0.61895645", "0.618517...
0.81396043
0
Write a long to the socket.
Напишите long в сокет.
protected function writeLong($value) { $this->socket->write(Binary::packLong($value)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Public Function WriteLong( $val ) {\n fwrite( $this->fp, pack( 'Q', $val ) );\n }", "function socket_write(Socket $socket, string $data, ?int $length = null): int|false {}", "public function sendLongLong(int $number)\n {\n $binary = pack('J', $number);\n $this->sendRaw($binary);\n ...
[ "0.7365779", "0.64151734", "0.61465734", "0.61432105", "0.6025963", "0.6020054", "0.6010069", "0.5991464", "0.5961415", "0.5934853", "0.5647493", "0.5629453", "0.562012", "0.55812347", "0.55661976", "0.5521626", "0.5416794", "0.5376491", "0.5367641", "0.53562534", "0.534397",...
0.76756227
0
Read a long from the socket.
Считайте длинное из сокета.
protected function readLong() { return Binary::unpackLong($this->socket->read(8)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function receiveLong(): int\n {\n $binaryData = $this->receiveRaw(4);\n\n $translatedData = unpack('N', $binaryData);\n return $translatedData[1];\n }", "public function readLong()\n {\n return $this->bin->readLong();\n }", "public function readLong()\n {\n ...
[ "0.7906339", "0.7620175", "0.7574481", "0.72462916", "0.71545064", "0.71517235", "0.7054856", "0.653716", "0.65351796", "0.6498451", "0.64108926", "0.63036233", "0.6270744", "0.6219164", "0.6151167", "0.6084252", "0.5968116", "0.5961074", "0.59429693", "0.5936434", "0.5933938...
0.86545074
0
Read a string from the socket.
Прочитать строку из сокета.
protected function readString() { $length = $this->readInt(); if ($length === -1) { return null; } else if ($length === 0) { return ''; } else { return $this->socket->read($length); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function recvStr($read = true)\n\t{\n\t\t$str = @fgets($this->socket);\n\t\tif(!$str)\n\t\t{\n\t\t\t$this->disconnect();\n\t\t\tthrow new \\HandlerSocket\\IOException('Cannot read from socket');\n\t\t}\n\t\treturn substr($str,0,-1);\n\t}", "private function read() {\n return fgets( $this->socket...
[ "0.7619894", "0.7493284", "0.7386689", "0.71831703", "0.71561915", "0.7111963", "0.7054978", "0.70235914", "0.70149034", "0.6991926", "0.69145215", "0.6694541", "0.66854733", "0.6647172", "0.65658516", "0.6546773", "0.6469433", "0.6432371", "0.6428615", "0.6369948", "0.636403...
0.77870053
0
Get the value of taxableDeviceLine
Получить значение taxableDeviceLine
public function getTaxableDeviceLine(): TaxableDeviceLine { return $this->taxableDeviceLine; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTaxableDeviceLineAmount(): int;", "public function getTaxableDeviceLineTaxCode(): ?string;", "public function getLineValue(){\n\t\treturn (double)($this->qtty * $this->price);\n\t\t\n\t}", "public function getTax(): float;", "public function getLine(): int\n {\n return $this->g...
[ "0.79383224", "0.7319253", "0.7249787", "0.6406185", "0.6265806", "0.6224695", "0.6105332", "0.5978801", "0.59549844", "0.59400874", "0.59400874", "0.5925063", "0.59142125", "0.59091026", "0.58779436", "0.58779436", "0.58645767", "0.58645767", "0.58645767", "0.58645767", "0.5...
0.7966269
0
/ Constructor from csv line
Конструктор из строки CSV
public function __construct($row_csv) { $this->id = $row_csv[0] ; $this->first_name = $row_csv[1]; $this->last_name = $row_csv[2] ; $this->gender = $row_csv[3] ; $this->age = $row_csv[4]; $this->address = $row_csv[5] ; $this->phone_number = $row_csv[6] ; /* ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function __construct($csv_row, $xmlstr = NULL) {\n\n if(!is_null($xmlstr)) {\n\n parent::__construct($xmlstr);\n } else {\n\n parent::__construct(self::MODS_XML);\n }\n\n $this->set_record($csv_row);\n }", "function __construct( string $delimeter, string $headerRow ) {\n $columns = expl...
[ "0.7129038", "0.6851376", "0.66124547", "0.66046387", "0.65774804", "0.64734745", "0.6471622", "0.63801247", "0.6241443", "0.6223903", "0.6218243", "0.61861455", "0.6168321", "0.6128539", "0.6084115", "0.6080921", "0.6069491", "0.60656226", "0.605014", "0.6032591", "0.6004042...
0.7335785
0
Filters the content using JSMIN
Фильтрует содержимое с использованием JSMIN
public function filter($content) {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function filter($content){ }", "abstract protected function _doFilter($content);", "public static function in_content_filter()\n {\n }", "public function filter();", "public function content_filter($in_the_content) ///< The content in need of filtering.\n {\n // phpcs:enabl...
[ "0.72505826", "0.67556185", "0.6286809", "0.62706095", "0.62526083", "0.6202633", "0.6163433", "0.6093594", "0.59893024", "0.597537", "0.58577794", "0.58511597", "0.58365273", "0.5775305", "0.57694757", "0.57387966", "0.5712642", "0.5702569", "0.5690148", "0.56790304", "0.563...
0.718078
1
TRANSLATION / function getTablesList($ignore_sys_tables) This function gets all the tables from the database
Функция getTablesList($ignore_sys_tables) Получает все таблицы из базы данных
function getTablesList($ignore_sys_tables = false){ $system_tables = array('groups_users'=>'groups_users','rules'=>'rules','settings'=>'settings'); $table_schema = $this->query("SELECT TABLE_NAME AS name FROM INFORMATION_SCHEMA.TABLES AS Backend WHERE TABLE_SCHEMA<>'information_schema' AND TABLE_NAME NOT LIKE '...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function showTables($ignore_prefix=false)\n {\n \t $data = $this->query('SHOW TABLES');\n \t $tables = array();\n \t\twhile( $result = $data->fetch() )\n if($ignore_prefix || ! substr_compare($result[0],$this->prefix,0,strlen($this->prefix)))\n \t\t$tables[] = ...
[ "0.75700676", "0.7472323", "0.7464422", "0.7464063", "0.74524754", "0.7436808", "0.742689", "0.7422102", "0.74095166", "0.7407504", "0.74041337", "0.72903985", "0.7290235", "0.72724974", "0.72645813", "0.7222542", "0.72132856", "0.72129965", "0.72129804", "0.72126704", "0.720...
0.87507844
0
/ function createTranslationTable($model) This function creates a translation table for the table passed as param
/ функция createTranslationTable($model) Эта функция создает таблицу перевода для переданной в качестве параметра таблицы
function createTranslationTable($table_name){ $tableName = Inflector::singularize($table_name); $this->query("CREATE TABLE `".$tableName."_translations` ( `id` INT(10) NOT NULL AUTO_INCREMENT, `locale` VARCHAR(6) NOT NULL, `model` VARCHAR(255) NOT NULL, `foreign_key` INT(10) NOT NULL, `...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createModelTable(){\n $this->dbc->drop_table_by_name($this->model['table']);\n $this->dbc->create_table_by_model($this->model);\n }", "public function buildCreateTableSQL( $model, $if_not_exists = false );", "public function createTable($model){\n //Init the model\n $model...
[ "0.7242559", "0.65452534", "0.65381867", "0.65149075", "0.6362801", "0.6336437", "0.6304286", "0.6178784", "0.61454546", "0.6134698", "0.6134698", "0.6061999", "0.6048614", "0.6043651", "0.6012805", "0.5968847", "0.5906079", "0.5859121", "0.58053434", "0.5773639", "0.57674325...
0.76530796
0
Register the make:repository generator.
Зарегистрируйте генератор make:repository.
private function registerRepositoryGenerator() { $this->app->singleton( 'command.thirdsense.repository', function ($app) { return $app[RepositoryMakeCommand::class]; } ); $this->commands('command.thirdsense.repository'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function registerMakeRepositoryCommand()\n {\n // Make repository command.\n $this->app['command.repository.make'] = $this->app->share(\n function($app) {\n return new MakeRepositoryCommand($app['RepositoryGenerator'], $app['Composer']);\n }\n ...
[ "0.67129636", "0.65945566", "0.6473312", "0.63688344", "0.6206008", "0.6196259", "0.61828375", "0.60810745", "0.60243964", "0.60221785", "0.59946215", "0.5988854", "0.5925319", "0.5839448", "0.57920694", "0.5764248", "0.57016826", "0.56594044", "0.56340104", "0.56330496", "0....
0.82694227
0
Register the make:transformer generator.
Зарегистрируйте генератор make:transformer.
private function registerTransformerGenerator() { $this->app->singleton( 'command.thirdsense.transformer', function ($app) { return $app[TransformerMakeCommand::class]; } ); $this->commands('command.thirdsense.transformer'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function registerTransformer()\n {\n $this->app->singleton('output.transformer', function ($app) {\n return new TransformerFactory($app, $this->app->make(Fractal::class));\n });\n }", "public function registerTransformer()\n {\n $this->app->singleton(Transformer...
[ "0.69366807", "0.67495316", "0.6512565", "0.6241904", "0.6166724", "0.59154683", "0.58828175", "0.5803688", "0.5774416", "0.57526994", "0.5750764", "0.57246727", "0.57215774", "0.5654068", "0.56005615", "0.55955946", "0.55874133", "0.55758053", "0.5516125", "0.5496861", "0.54...
0.8209028
0
get the CPM rate based on a given weight (slot opportunities, video impressions, visit etc )
получить CPM-ставку на основе заданного веса (слотов, видео-импрессий, посещений и т.д.)
public function getCpmRate($weight);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getWeight();", "function getWeight();", "public function getWeight();", "public function getWeight();", "public function getWeight();", "public function getWeight();", "public function getWeight();", "private function calcWeight(){\n\t\t$this->capabilities['weight']=0;\n\t\tforeach($this->it...
[ "0.68054897", "0.68054897", "0.66291976", "0.66291976", "0.66291976", "0.66291976", "0.66291976", "0.64252865", "0.6367888", "0.6319499", "0.6319499", "0.6311364", "0.6210783", "0.61546206", "0.6113652", "0.6091359", "0.6053426", "0.6052567", "0.60433406", "0.6042105", "0.603...
0.8478493
0
Get the required redirect method (either GET or POST).
Получите необходимый метод перенаправления (GET или POST).
public function getRedirectMethod(): string { return 'GET'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getRedirectMethod() {\n return 'GET';\n }", "public function getRedirectMethod()\n {\n return 'GET';\n }", "public function getRedirectMethod()\n {\n return 'GET';\n }", "public function getRedirectMethod()\n {\n return 'GET';\n }", "public f...
[ "0.84927976", "0.8450335", "0.8450335", "0.8450335", "0.8450335", "0.8450335", "0.8193764", "0.81121767", "0.8033387", "0.78909194", "0.77658033", "0.7496929", "0.7398098", "0.73610157", "0.73467857", "0.7340262", "0.7204068", "0.7168043", "0.7168043", "0.71492773", "0.711207...
0.8590477
0
Sorts the internal list of extensions by priority.
Сортирует внутренний список расширений по приоритету.
private function getExtensions() { if (null === $this->sorted) { krsort($this->extensions); $this->sorted = !empty($this->extensions) ? call_user_func_array('array_merge', $this->extensions) : array(); } return $this->sorted; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function order_by_priority() {\n\t\t$order = array();\n\t\tforeach ( $this->controls as $key => $control_object ) {\n\t\t\t$order[ $key ] = $control_object->priority;\n\t\t}\n\t\tarray_multisort( $order, SORT_ASC, $this->controls );\n\t}", "public function getExtensions()\n {\n if (null === $th...
[ "0.6981212", "0.6939079", "0.6872336", "0.6657447", "0.663623", "0.6560952", "0.6463408", "0.6367969", "0.6239618", "0.62269473", "0.6085602", "0.60710806", "0.60700893", "0.60618895", "0.60615915", "0.6011283", "0.5975866", "0.59430426", "0.5921686", "0.58800167", "0.5863609...
0.72620374
0
Checkes if include VAT in prices is enabled, if so, apply new filters
Проверяет, включена ли налог на добавленную стоимость в цены, если да, применяет новые фильтры
function it_exchange_easy_eu_value_added_taxes_addon_include_vat_filters() { if ( !is_admin() ) { it_exchange_easy_eu_value_added_taxes_setup_session(); } $settings = it_exchange_get_option( 'addon_easy_eu_value_added_taxes', true ); if ( empty( $settings['price-hide-vat'] ) ) { add_filter( 'it_exchange_api_t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function get_filtered_price()\n {\n }", "public function addOptionFilters()\n {\n // Don't change, needs to check for false as could return prio 0 which would evaluate to false\n if (has_filter('option_' . $this->option_name, [$this, 'getOption']) === false) {\n ...
[ "0.658953", "0.6211161", "0.6113735", "0.59274846", "0.5918987", "0.5878515", "0.5840988", "0.583597", "0.5830887", "0.57488215", "0.57488215", "0.57427186", "0.57194716", "0.5677716", "0.5660922", "0.5645439", "0.55992883", "0.5590954", "0.5530527", "0.5527363", "0.5512078",...
0.7237127
0
Set VAT manager to checkout mode on the invoice page.
Установите менеджера НДС в режим оформления заказа на странице счета.
function it_exchange_easy_eu_vat_set_checkout_mode_on_invoice_page() { $product_id = it_exchange_get_the_product_id(); if ( it_exchange_get_product_type( $product_id ) !== 'invoices-product-type' ) { return; } echo '<script> var ITExchangeEasyValueAddedTaxesCheckoutPage = true;</script>'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function checkout(): void\n {\n $this->loadTemplate('Catalog/Layout/Templates/Checkout.html.twig');\n\n $this->addJS('Checkout.js');\n $this->addJS('EnhancedEcommerce.js');\n\n $this->header->setPageTitle(ucfirst(Language::lbl('Checkout')));\n\n $this->breadcrumb->addE...
[ "0.56353706", "0.5550309", "0.54990697", "0.54852116", "0.54444563", "0.54285634", "0.540707", "0.5376346", "0.5317107", "0.53072274", "0.5300959", "0.5286888", "0.5272276", "0.5207836", "0.5203443", "0.51994735", "0.5171761", "0.5170597", "0.5157373", "0.51244116", "0.510493...
0.7604964
0
Adds Easy EU Value Added Taxes Template Path to iThemes Exchange Template paths
Добавляет шаблон Easy EU Value Added Taxes в пути шаблонов iThemes Exchange
function it_exchange_easy_eu_value_added_taxes_addon_template_path( $possible_template_paths, $template_names ) { $possible_template_paths[] = dirname( __FILE__ ) . '/templates/'; return $possible_template_paths; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function add_template_path( $template_path ){\n return BLOCK_LAB_ADDON_PLUGIN_PATH;\n }", "function it_exchange_easy_eu_value_added_taxes_addon_taxes_register_templates( $template_paths, $template_names ) {\n\t// Bail if not looking for one of our templates\n\t$add_path = false;\n\t$templates = array(\...
[ "0.6398852", "0.6339138", "0.59186447", "0.57543653", "0.56959623", "0.56298125", "0.56126344", "0.56085634", "0.5590169", "0.55812776", "0.55460495", "0.55350494", "0.55259895", "0.55192155", "0.55192155", "0.55192155", "0.55192155", "0.55192155", "0.55192155", "0.55192155", ...
0.70249945
0
Backbone template for primary EU VAT Number Manager screen. Invoked by wp.template() and WordPress add_action( 'wp_footer', 'it_exchange_easy_eu_value_added_taxes_addon_vat_number_manager_backbone_template' );
Шаблон основного экрана менеджера основного номера НДС ЕС. Вызывается функцией wp.template() и WordPress add_action( 'wp_footer', 'it_exchange_easy_eu_value_added_taxes_addon_vat_number_manager_backbone_template' );
function it_exchange_easy_eu_value_added_taxes_addon_vat_number_manager_backbone_template() { $tax_session = it_exchange_get_session_data( 'addon_easy_eu_value_added_taxes' ); ?> <div id="it-exchange-easy-eu-value-added-taxes-vat-manager-wrapper" class="it-exchange-hidden"></div> <script type="text/template" id="tm...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function it_exchange_easy_eu_value_added_taxes_load_public_scripts( $current_view ) {\n\n\tif ( it_exchange_is_page( 'checkout' ) || it_exchange_is_page( 'confirmation' ) || it_exchange_in_superwidget() ) {\n\n\t\t$url_base = ITUtility::get_url_from_file( dirname( __FILE__ ) );\n\t\twp_enqueue_style( 'ite-easy-eu-...
[ "0.5636014", "0.54392844", "0.53866154", "0.5380551", "0.5358474", "0.5294001", "0.5199711", "0.51903015", "0.5149154", "0.514327", "0.5140112", "0.5118747", "0.5089731", "0.50896627", "0.5080289", "0.5080289", "0.5057779", "0.5044192", "0.50403106", "0.5033249", "0.50261056"...
0.8141462
0
Adds the cart taxes to the transaction object
Добавляет налоги на корзину в объект транзакции
function it_exchange_easy_eu_value_added_taxes_add_cart_taxes_to_txn_object() { $formatted = ( 'it_exchange_set_transaction_objet_cart_taxes_formatted' == current_filter() ); return it_exchange_easy_eu_value_added_taxes_addon_get_total_taxes_for_cart( $formatted ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function add_order_tax()\n {\n }", "public function update_taxes()\n {\n }", "public function get_cart_tax()\n {\n }", "public function create_order_tax_lines(&$order, $cart)\n {\n }", "public function calculateTaxesAndTotals(): void\n ...
[ "0.72788805", "0.6748811", "0.66093683", "0.65480095", "0.65435034", "0.6494481", "0.6481857", "0.6481184", "0.643071", "0.64155746", "0.63333994", "0.6316602", "0.6263759", "0.6244355", "0.6227343", "0.62194085", "0.617955", "0.6174392", "0.61518264", "0.6150013", "0.6137692...
0.74219805
0