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
Retourneert een array met alle ritten in voor de gebruiker met gebruikerId = $gebruikerId
Возвращает массив со всеми поездками для пользователя с идентификатором пользователя = $gebruikerId
function getAllRitten($gebruikerId) { $this->db->where('gebruikerIdVrijwilliger', $gebruikerId); $query = $this->db->get('rit'); return $query->result(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getAllByDatumWithGebruikerEnAdresWhereGebruikerEnDatumOuder($gebruikerId) {\n // geef gebruiker-object met opgegeven $id met de geplande ritten\n $nu = date('Y-m-d H:i:s');\n $this->db->order_by('vertrekTijdstip');\n $this->db->where('gebruikerIdMinderMobiele', ...
[ "0.66370565", "0.66022515", "0.63018537", "0.62152416", "0.6151891", "0.60965025", "0.6089286", "0.589712", "0.5876945", "0.58697027", "0.5837548", "0.582954", "0.58042157", "0.5798557", "0.5795764", "0.57876766", "0.57618684", "0.5747476", "0.5742875", "0.57122165", "0.57099...
0.7032954
0
Retourneert het ritrecord met ritIdHeenrit = $id
Возвращает запись маршрута с RitIdHeenrit = $id
function getByHeenRit($id) { $this->db->where('ritIdHeenrit', $id); $query = $this->db->get('rit'); $rit = $query->row(); return $rit; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function rechercherId($id)\n {\n }", "public function getUnCompteRendu($id){\n\t\t$req = \"select * from praticien P,rapport_visite R, visiteur V where R.RAP_NUM='$id' and P.PRA_NUM=R.PRA_NUM and r.vis_matricule = v.vis_matricule\";\n\t\t$rs = PdoGsb::$monPdo->query($req);\n\t\t$ligne = $rs->fetch(...
[ "0.6895093", "0.6509569", "0.6400578", "0.6275626", "0.62652576", "0.6261439", "0.6256555", "0.62225384", "0.6209758", "0.6191946", "0.6191946", "0.6191946", "0.61556596", "0.6152862", "0.6130694", "0.6109842", "0.61097544", "0.6104312", "0.60987496", "0.60921913", "0.6087088...
0.7520295
0
Return theme plugins configuration
Возврат конфигурации плагинов темы
function bimber_get_theme_plugins_config() { $theme_dir = trailingslashit( get_template_directory() ); $config = array( array( 'name' => 'WordPress Importer', 'slug' => 'wordpress-importer', 'required' => false, 'version' => '', ), array( 'name' => 'MailChimp for WordPress', // T...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getContainedPluginConfiguration();", "private function themes()\n {\n $all_plugins = json_decode(file_get_contents($this->pluginsJson))->themes;\n return $all_plugins;\n }", "function getPlugins();", "public function getPlugins() {\n if ( is_null($this->_plugins) ) ...
[ "0.71704435", "0.70302963", "0.68747675", "0.6801109", "0.6757872", "0.66214865", "0.66013813", "0.65928006", "0.6592423", "0.6583772", "0.6569586", "0.6545915", "0.65457976", "0.6529554", "0.65286434", "0.6520017", "0.65032184", "0.64953524", "0.6490531", "0.64849985", "0.64...
0.79785675
0
Helper method to return model of requested project or false if project id is missing or invalid.
Помощь метод, чтобы вернуть модель запрашиваемого проекта или false, если идентификатор проекта отсутствует или недействителен.
protected function getRequestedProject() { $id = $this->getEvent()->getRouteMatch()->getParam('project'); $p4Admin = $this->getServiceLocator()->get('p4_admin'); // attempt to retrieve the specified project // translate invalid/missing id's into a 404 try { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function getProject($id)\n {\n $projectApi = new Project($this->mainModel->getDb());\n $answer = $projectApi->get($id);\n\n if (isset($answer['error'])) {\n return false;\n } else {\n $this->project = $answer['project'];\n return true;\n ...
[ "0.6882084", "0.6690252", "0.66104275", "0.6608943", "0.6607745", "0.6571419", "0.6557458", "0.65093", "0.64032704", "0.62749475", "0.6199846", "0.6193035", "0.61827403", "0.6165755", "0.6165755", "0.61609715", "0.6155599", "0.6154056", "0.6152766", "0.61515874", "0.6135951",...
0.80008286
1
Applies a global order discount rate, for the current product (i.e detail) Calls ObjectModel::update()
Применяет глобальную ставку скидки по заказу, для текущего продукта (то есть детали). Вызывает ObjectModel::update()
public function applyGlobalDiscount($discount_rate) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function calculateDiscount() : void{\r\n $percentage = ($this->discounted_value * 100) / $this->order->getTrueTotal();\r\n $new_total = $this->order->getTrueTotal() - $this->discounted_value;\r\n\r\n $this->order_discount_value = $this->discounted_value;\r\n $this->order_disco...
[ "0.66205096", "0.63782066", "0.62608457", "0.6247467", "0.6152046", "0.60483706", "0.6009718", "0.5935301", "0.58970153", "0.58650887", "0.5856778", "0.58481663", "0.5845637", "0.57789", "0.5757204", "0.5734323", "0.5731829", "0.5723026", "0.57144916", "0.5701318", "0.5678779...
0.73999894
0
Sets the remember cookie on a response.
Устанавливает cookie "remember" в ответе.
public function remember(ResponseInterface $response, AccessToken $token) { if (! ($token instanceof RememberAccessToken)) { trigger_error('Parameter $token of type AccessToken is deprecated in beta 16, must be instance of RememberAccessToken in beta 17', E_USER_DEPRECATED); $token-...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function setCookie() {\n $response = new Response();\n $cookie = new Cookie(login_user, $this->_user, time() + 3600 * 24, '/', 'unoi.com', false, false);\n $response->headers->setCookie($cookie);\n $response->send();\n }", "protected function setRememberMe()\n {\n ...
[ "0.7340634", "0.7018385", "0.6920309", "0.6896249", "0.68249524", "0.6551554", "0.65460366", "0.6421704", "0.64086604", "0.632997", "0.63134307", "0.6309957", "0.63045454", "0.629619", "0.6291996", "0.6279641", "0.6273503", "0.6272951", "0.6272082", "0.6263274", "0.61910534",...
0.71953785
1
Generate the desired repository interface.
Создайте требуемый интерфейс репозитория.
protected function makeRepositoryInterface() { if ($this->files->exists($path = $this->getInterfacePath())) { return $this->error($this->classParts() . 'Interface already exists!'); } $this->makeDirectory($path); $this->files->put($path, $this->compileInterfaceStub()); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function getRepository();", "abstract public function getRepository();", "abstract protected function getRepository();", "public abstract function getRepository();", "protected function getRepository() {}", "protected function createRepository()\n {\n $repositoryOptions = [\n ...
[ "0.6903667", "0.6903667", "0.6869004", "0.67828953", "0.66138655", "0.658999", "0.6575007", "0.6565357", "0.6488982", "0.63568676", "0.6350663", "0.63174576", "0.614974", "0.6013378", "0.6006632", "0.59842753", "0.5977535", "0.5906042", "0.5851541", "0.5829884", "0.58255273",...
0.7097743
0
Get the path to where we should create the repository.
Получите путь, где следует создать репозиторий.
protected function getRepositoryPath() { return './app/Repositories/' . $this->className . '.php'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function getRepositoryPath()\n {\n $vendorDirectory = $this->getVendorDirectory();\n\n // @CHECKME: Couldn't this code break if a custom `vendor-dir` is used?\n $parts = explode(DIRECTORY_SEPARATOR, $vendorDirectory);\n array_pop($parts); // Remove 'vendor'\n $path = i...
[ "0.6984464", "0.69362307", "0.6673991", "0.6530278", "0.64360493", "0.63879204", "0.63877285", "0.6342921", "0.6316849", "0.626338", "0.623049", "0.62047714", "0.6184292", "0.6178374", "0.6152304", "0.6143194", "0.6133895", "0.60434467", "0.60169035", "0.5962764", "0.5957067"...
0.73534447
0
Get the path to where we should create the interface.
Получите путь, где следует создать интерфейс.
protected function getInterfacePath() { return './app/Repositories/' . $this->className . 'Interface.php'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getInterfacePath (string $file): string {\n\treturn _ROOT_PATH.'classes/interfaces/'.$file.'.php';\n}", "protected function _getPath()\n {\n if (!empty($this->_path)) {\n return $this->_path;\n }\n\n $id = $this->_config['id'];\n $dir0 = $id % 10000;\n $d...
[ "0.6625407", "0.6476941", "0.6331884", "0.63185585", "0.62933266", "0.6293271", "0.6279562", "0.6279519", "0.6246223", "0.6246223", "0.6246223", "0.6246223", "0.6246223", "0.6246223", "0.6246223", "0.6246223", "0.62335765", "0.6226768", "0.62226045", "0.62222993", "0.62222993...
0.7623572
0
Compile the repository stub.
Скомпилируйте стуб репозитория.
protected function compileRepositoryStub() { $stub = $this->files->get(__DIR__ . '/stubs/repository.stub'); $this ->replaceAppNamespace($stub) ->replaceClassName($stub) ->replaceEntityName($stub); return $stub; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function compileInterfaceStub()\n {\n $stub = $this->files->get(__DIR__ . '/stubs/repository-interface.stub');\n $this\n ->replaceAppNamespace($stub)\n ->replaceClassName($stub)\n ->replaceEntityName($stub);\n\n return $stub;\n }", "protected ...
[ "0.6496916", "0.59265435", "0.59239167", "0.5685118", "0.56538516", "0.5651959", "0.5651959", "0.5651959", "0.56041217", "0.5577557", "0.550506", "0.54653037", "0.53241444", "0.5295008", "0.528207", "0.52576166", "0.52220124", "0.52162635", "0.520693", "0.52029586", "0.517095...
0.748778
0
Tests whether we can connect to the devserver.
Проверяет, можем ли мы подключиться к devserver.
private function testDevServerConnection($port) { $connection = @fsockopen('127.0.0.1', $port, $errno, $errstr, 1); if (is_resource($connection)) { fclose($connection); return true; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function checkConnection() {\r\n\t\t$url = MoufReflectionProxy::getLocalUrlToProject().\"src/direct/test_connection.php\";\r\n\t\r\n\t\t$response = self::performRequest($url);\r\n\t\t\r\n\t\tif ($response == 'ok') {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "pri...
[ "0.6879808", "0.6848976", "0.683399", "0.6796172", "0.67642576", "0.67101634", "0.66511106", "0.65780634", "0.65168864", "0.650752", "0.6446477", "0.6401901", "0.636444", "0.63520414", "0.63461804", "0.6322379", "0.6314616", "0.62928855", "0.62762785", "0.62739444", "0.626464...
0.70026714
0
Injects a script with the basedir into the content.
Вставляет скрипт с basedir в содержимое.
private function injectScript($content) { $request = request(); $uri = $request->route()->uri(); $uri = substr($uri, 0, strpos($uri, '{')); $baseDir = rtrim(Path::getRelative($request->path(), $uri, $_SERVER['SUBDIRECTORY']), '/'); $csrf = ''; if (request()->route()->getOption('csrf')) { $token = csrf_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function register_script();", "public function scripts()\n {\n foreach ($this->controller->scripts as $value)\n echo \"\\t<script src='\" . DOMAIN . $value . \"' ></script>\\n\";\n echo \"</body>\\n</html>\";\n }", "function pushScript ($script) {\n\t\t$this->_roo...
[ "0.5714394", "0.5623811", "0.5616933", "0.56091887", "0.5595279", "0.55554664", "0.55541587", "0.5545596", "0.54760563", "0.5461117", "0.5426175", "0.54033136", "0.53812784", "0.5381271", "0.53708583", "0.5363715", "0.5309254", "0.5280575", "0.52742195", "0.5250845", "0.52301...
0.7437747
0
fix up form data if necessary
исправить данные формы при необходимости
function mungeFormData(&$formvars) { // trim off excess whitespace $formvars['Name'] = trim($formvars['Name']); $formvars['Comment'] = trim($formvars['Comment']); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function cleanseFields() {\n $this->dictionary->remove('nospam');\n $this->dictionary->remove('blank');\n $submitVar = $this->controller->getProperty('submitVar');\n if (!empty($submitVar)) {\n $this->dictionary->remove($submitVar);\n }\n }", "private funct...
[ "0.7109494", "0.7019208", "0.6941115", "0.67597055", "0.6553294", "0.6521094", "0.64184994", "0.63893676", "0.63626534", "0.63404876", "0.6317543", "0.6283575", "0.6273961", "0.6256645", "0.62479913", "0.62463254", "0.61867726", "0.6174347", "0.615875", "0.61523724", "0.61432...
0.70244116
1
Get sales datafields (a subset of contact data fields).
Получить данные о продажах (подмножество полей данных контакта).
public function getSalesDatafields() { return array_filter($this->contactDatafields, function ($array) { return isset($array['context']) && $array['context'] === 'sales'; }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getContactDataFields();", "public function getSaleData($conditions,$fields) {\t\r\n return $this->find('all', array('fields' => $fields,'conditions'=>$conditions));\r\n }", "function get_field_data_by_id($field_id, $contact)\n{\n if (isset($contact['custom_fields'])) {\n $out = ar...
[ "0.73630947", "0.63038564", "0.6140943", "0.60745394", "0.60056084", "0.59122473", "0.589951", "0.581609", "0.5784599", "0.5772066", "0.57698065", "0.5766092", "0.5766092", "0.5766092", "0.5766092", "0.5766092", "0.5766092", "0.5761752", "0.5758824", "0.57331526", "0.5717229"...
0.8546239
0
Get extra data fields.
Получите дополнительные поля данных.
public function getExtraDataFields() { return []; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getExtraFields()\n {\n return isset($this->extraFields) ? $this->extraFields : null;\n }", "function &getExtraFieldData() {\n\t\tif (!isset($this->extra_field_data)) {\n\t\t\t$this->extra_field_data = array();\n\t\t\t$res = db_query_params ('SELECT * FROM artifact_extra_field_data WH...
[ "0.82823557", "0.7883902", "0.7845351", "0.76586676", "0.757823", "0.757823", "0.7545114", "0.73929214", "0.734949", "0.7308875", "0.7180664", "0.7177283", "0.71651775", "0.7106467", "0.70743614", "0.7049969", "0.7024458", "0.70172036", "0.70172036", "0.70050985", "0.698712",...
0.80123067
1
Sets the requirement for HTTP (no HTTPS) on this Route.
Устанавливает требование к HTTP (без HTTPS) для этого маршрута.
public function requireHttp(): Route { $this->setSchemes('http'); return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function requireHttps(): Route\n {\n $this->setSchemes('https');\n\n return $this;\n }", "public function setHttp($Http)\r\n {\r\n $this->Http = $Http;\r\n }", "public function setHttp($http)\n {\n $this->http = $http;\n }", "public function testSchemeIsHt...
[ "0.6471407", "0.6236798", "0.6082176", "0.5846088", "0.5824886", "0.55918676", "0.55809987", "0.5556115", "0.5495883", "0.5436704", "0.5436704", "0.5436704", "0.5436704", "0.5436704", "0.54112303", "0.5365604", "0.5346262", "0.53370583", "0.5316627", "0.531424", "0.5312279", ...
0.7046834
0
Sets the requirement for HTTPS on this Route.
Устанавливает требование к HTTPS для этого маршрута.
public function requireHttps(): Route { $this->setSchemes('https'); return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function usesHttps()\n {\n return $this->useHttps;\n }", "public function useHttps($flag = true) {\r\n\t\t$this->useHttps = true;\r\n\t\treturn $this;\r\n\t}", "public static function checkHttps()\n\t{\n\t\tif (!ConfigCls::getNeedHttps())\n\t\t\treturn true;\n\n\t\t//Else, return true only ...
[ "0.7177525", "0.7033442", "0.6809299", "0.68027663", "0.68027663", "0.6756763", "0.6691686", "0.6660385", "0.6577301", "0.65380144", "0.65144086", "0.64811087", "0.64811087", "0.6441674", "0.64045084", "0.6399802", "0.63748175", "0.6343627", "0.62878275", "0.62667304", "0.625...
0.7596234
0
addUsuario para guardar el usuario en la sesion.
addUsuario для сохранения пользователя в сессии.
public function addUsuario($usuario){ $_SESSION["usuario"]=$usuario; $this->usuario=$usuario; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addUsuario($principal, $secundario, $nome, $sobrenome, $email, $senha, $permissao, $imgUser)\n {\n $imgUser = $this->salvaImgUser($imgUser, $email);\n // Fim do codigo\n\n $senha = password_hash($senha, PASSWORD_DEFAULT);\n\n $emailVerify = LoginHandler::emailExist($e...
[ "0.7074813", "0.6827484", "0.6823031", "0.67555857", "0.66776955", "0.6624108", "0.65504605", "0.6467025", "0.63469505", "0.63237286", "0.6288088", "0.62435675", "0.62159365", "0.620948", "0.6202654", "0.6190699", "0.6163579", "0.6163136", "0.61596304", "0.61496294", "0.61433...
0.74597806
0
Returns the DB driver name and version
Возвращает имя и версию драйвера базы данных
private static function _dbDriver(): string { $db = Craft::$app->getDb(); if ($db->getIsMysql()) { $driverName = 'MySQL'; } else { $driverName = 'PostgreSQL'; } return $driverName . ' ' . App::normalizeVersion($db->getSchema()->getServerVersion()); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDriverName()\n {\n return $this->db->get_dbfamily();\n }", "public function getDriverVersion()\n {\n return $this->driver_version;\n }", "public function getDriverName() {\n return $this->pdoObj->getAttribute( \\PDO::ATTR_DRIVER_NAME );\n }", "protected ...
[ "0.76823664", "0.7450536", "0.725666", "0.71515656", "0.7148968", "0.7127727", "0.7114071", "0.7047493", "0.7022962", "0.69650185", "0.6929797", "0.69124204", "0.6886517", "0.6876523", "0.6833931", "0.6688435", "0.6671935", "0.6662696", "0.66323006", "0.6626548", "0.65995777"...
0.83527184
0
Returns the image driver name and version
Возвращает имя и версию драйвера изображения
private static function _imageDriver(): string { $imagesService = Craft::$app->getImages(); if ($imagesService->getIsGd()) { $driverName = 'GD'; } else { $driverName = 'Imagick'; } return $driverName . ' ' . $imagesService->getVersion(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected static function getAvailableDriver()\n {\n $serverDiagnostic = new ServerDiagnostic();\n $candidates = [\n [\n \"name\" => \"gd\",\n \"type\" => \"extension\",\n ],\n [\n \"name\" => \"imagick\",\n ...
[ "0.7047886", "0.6900526", "0.68955374", "0.6739247", "0.67277503", "0.66961616", "0.6596256", "0.65909487", "0.6584592", "0.64969164", "0.6469747", "0.64300513", "0.63087946", "0.6308603", "0.6280231", "0.62652516", "0.62434", "0.6241849", "0.6221113", "0.61978424", "0.615753...
0.80527174
0
Returns the default message for this exception
Возвращает стандартное сообщение для этой ошибки
public static function getDefaultMessage(): string;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDefaultMessage()\n {\n return $this->defaultMessage;\n }", "public function getMessage()\n {\n return '';\n }", "public function message()\n {\n return 'Invalid message mark up.';\n }", "public function defaultMessage()\n {\n return \"There ...
[ "0.8187874", "0.73366344", "0.7333884", "0.72315544", "0.7190911", "0.71262634", "0.7116215", "0.7096432", "0.7084712", "0.7005293", "0.7005293", "0.7005293", "0.7005293", "0.7005293", "0.7005293", "0.69990766", "0.6984077", "0.6973256", "0.69731355", "0.6923753", "0.6891545"...
0.8193742
0
/Returning the remaining start up balance for a client till a perticular date
Возврат оставшегося остатка начального баланса клиента до определенной даты
function getClientStartUpBal($clientId) { $startUpBal = 0; $startUpBalAlloc = 0; if($clientId > 0) { //getting the startup balance for client while client added in our system $sqlGetStartUpBal = "SELECT startupBalance FROM person WHERE id='$clientId'"; $resGetStartUpBal = DB::do_query($sqlGetStar...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getClientBal($clientId, $providerId, $startDate = '', $endDate = '', $runSesId = '', $incStratup='0', $payerId='') {\n\n\t\t$clientBalInfo = array();\n\t\t$isShowNA = 1;\n\t\ttry {\n\t\t\n\t\t\tif($clientId > 0) {\n\t\t\t\t\n\t\t\t\t$fromDate = $startDate;\n\t\t\t\t$toDate = $endDate;\n\t\t\t\t\n\t\t\t\t$...
[ "0.6185725", "0.61582446", "0.6122968", "0.5926081", "0.5897295", "0.5883599", "0.58769345", "0.5875106", "0.58201116", "0.5817896", "0.5789412", "0.57514197", "0.57320887", "0.57246757", "0.5713269", "0.5617682", "0.55308634", "0.55038744", "0.5502469", "0.54934883", "0.5490...
0.744844
0
/ Returning the unallocated client payment for a specific client in a given date range if no date range given end date is a current date and start date is the default date according to our logic(getDefaultStartDate function)
Возвращение неallocated платежа клиента для конкретного клиента в заданном диапазоне дат, если диапазон дат не задан, то конечная дата — текущая дата, а начальная дата — стандартная дата в соответствии с нашей логикой (функция getDefaultStartDate)
function getClientUnAllocatePay($clientId, $startDate = '', $endDate = '', $payerId = '0') { $clientUnAllocPay = 0; if($clientId > 0) { $fromDate = $startDate; $toDate = $endDate; $sqlGetPay = "SELECT SUM(totalAmountRem) AS amtRem FROM clientpayment WHERE clientID = '$clientId' ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getClientAdj($clientId, $startDate = '', $endDate = '') {\n\t\n\t\t$clientAdj = 0;\n\t\t\n\t\tif($clientId > 0) {\n\t\t\t\n\t\t\t$fromDate = $startDate;\n\t\t\t$toDate = $endDate;\n\t\t\t\n\t\t\t$sqlGetAdj = \"SELECT SUM(amount) AS adjAmt\n\t\t\t\t\t\tFROM clientadjustment\n\t\t\t\t\t\tWHERE client_id = '...
[ "0.6074739", "0.58969605", "0.58338386", "0.570886", "0.5595405", "0.5531513", "0.5483084", "0.5465305", "0.5407477", "0.53821605", "0.5380832", "0.5369813", "0.5303247", "0.52979195", "0.5279763", "0.52792704", "0.5277143", "0.52698785", "0.5247954", "0.5237246", "0.5231648"...
0.741907
0
getDescription Return module uninstallation message
getDescription Возвращает сообщение о демонтаже модуля
function getUninstallMessage() { return lang('Module will be deactivated. (No)/(All) data will be deleted'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getUninstallMessage() {\n return lang('Module will be deactivated. Data inserted using this module will not be deleted');\n }", "function UninstallPreMessage() {\n\t\treturn $this->Lang('really_uninstall');\n\t}", "function UninstallPreMessage()\n {\n return $this->Lang('really_uninstall')...
[ "0.84049964", "0.7180951", "0.7143661", "0.7110559", "0.7046943", "0.66744494", "0.654629", "0.62587106", "0.6253436", "0.6242564", "0.6161561", "0.61471224", "0.6121639", "0.60970557", "0.60054845", "0.5977775", "0.5966751", "0.5965148", "0.5950362", "0.59383667", "0.5931365...
0.8340212
1
Move to the next row in the file
Перейти к следующей строке в файле
protected function _moveNext() { if ($nextRow = $this->_getNextRow()) { $this->_currentRow = $this->_formatRow($nextRow); } else { $this->_currentRow = array(); } if (!$this->_currentRow) { fclose($this->_handle); $this->_valid...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function moveToNextRow();", "public function next(): void\n {\n $this->values = [];\n $row = fgetcsv($this->fp, 0, $this->delimiter, $this->enclosure);\n\n if ($row) { // Is het einde (eof) nog niet bereikt?\n if ($row === array(null)) { // Empty row?\n $this->ne...
[ "0.7762486", "0.746502", "0.72060305", "0.71865386", "0.70487857", "0.70300806", "0.6871013", "0.6768138", "0.67641014", "0.67326576", "0.6723983", "0.6722316", "0.6722316", "0.6678585", "0.6660867", "0.66349834", "0.662171", "0.6619982", "0.6454831", "0.6410091", "0.6389095"...
0.8280732
0
Returns the number of rows that were skipped since the last time the function was called. Skipped count is reset to 0 after each call to getSkippedCount(). This makes it easier to aggregate the number over multiple job runs.
Возвращает количество пропущенных строк с момента последнего вызова функции. Счетчик пропущенных строк сбрасывается в 0 после каждого вызова getSkippedCount(). Это упрощает агрегацию количества пропущенных строк в течение нескольких запусков задачи.
public function getSkippedCount() { $skipped = $this->_skippedRowCount; $this->_skippedRowCount = 0; return $skipped; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSkipped(): int\n {\n return $this->skipped;\n }", "public function getSkipped(): int\n {\n return $this->skipped;\n }", "public function getNumberOfSkips()\r\n {\r\n return $this->number_of_skips;\r\n }", "public function getNumberOfSkips()\n {\n ...
[ "0.77461714", "0.77461714", "0.7511988", "0.7488802", "0.70076495", "0.6961285", "0.6919842", "0.6853091", "0.6779903", "0.66321754", "0.64713377", "0.63641965", "0.6334542", "0.62789416", "0.6240237", "0.6237384", "0.6199614", "0.60699356", "0.6058912", "0.6057507", "0.60450...
0.85684216
0
Sets whether to skip invalid rows
Устанавливает, следует ли пропускать недопустимые строки
public function skipInvalidRows($flag) { $this->_skipInvalidRows = (boolean)$flag; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setInvalid();", "public function incrementRowsSkipped(): void\n {\n $this->rowsSkipped++;\n }", "public function testGetDataTableInvalidQuery() {\r\n $records = [\r\n ['UUID' => 'uuid1tRMR1', 'bool' => false, 'int' => 10, 'string' => 'testReadMultipleRecords 1'],\...
[ "0.63697135", "0.62628", "0.60221076", "0.5854457", "0.57778436", "0.55660194", "0.5538043", "0.54678357", "0.5466176", "0.5441718", "0.54219913", "0.537941", "0.5374913", "0.53339624", "0.5278156", "0.5261444", "0.52497613", "0.5236025", "0.523025", "0.51990896", "0.51764673...
0.7802997
0
Returns the next row in the JSON file
Возвращает следующую строку в JSON-файле
protected function _getNextRow() { $currentRow = array(); $handle = $this->_getFileHandle(); while (($row = fgets($handle)) !== FALSE) { $this->_currentRowNumber++; return $row; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function next() {\n migrate_instrument_start('MigrateJSONReader::next');\n\n $this->currentElement = $this->currentId = NULL;\n\n // Open the file and position it if necessary\n if (!$this->fileHandle) {\n $this->fileHandle = fopen($this->url, 'r');\n if (!$this->fileHandle) {\n ...
[ "0.74718684", "0.7043297", "0.702209", "0.68716687", "0.66748947", "0.6635483", "0.65464205", "0.6538825", "0.6468964", "0.6459863", "0.6399895", "0.63797206", "0.63687325", "0.63625544", "0.63625544", "0.63625544", "0.6358669", "0.6358669", "0.63523865", "0.63464296", "0.633...
0.7069386
1
Returns the base URL to the gateway.
Возвращает базовый URL шлюза.
public static function getBaseGatewayUrl() { $url = Configuration::getGlobalValue(PostFinanceCheckoutBasemodule::CK_BASE_URL); if ($url) { return rtrim($url, '/'); } return 'https://app-wallee.com'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getBaseUrl() : string\n {\n return $this->base;\n }", "public function getBaseUrl()\n {\n return $this->getScheme() . $this->getBasicAuth() . $this->getHost() . \":\" . $this->getPort() . $this->getEndpoint();\n }", "public function getProxyBaseUrl()\n {\n re...
[ "0.78125393", "0.78063303", "0.77910346", "0.7770298", "0.7756329", "0.7749639", "0.7734923", "0.7730289", "0.7724469", "0.77170384", "0.77126527", "0.77086747", "0.77086747", "0.7697613", "0.7681355", "0.76726484", "0.76722634", "0.7648983", "0.76436484", "0.76436484", "0.76...
0.86089313
0
Returns the fraction digits of the given currency.
Возвращает дробные цифры заданной валюты.
public static function getCurrencyFractionDigits($currencyCode) { /* @var PostFinanceCheckoutProviderCurrency $currency_provider */ $currencyProvider = PostFinanceCheckoutProviderCurrency::instance(); $currency = $currencyProvider->find($currencyCode); if ($currency) { re...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function get_currency_fraction_digits( $currency_code ) {\n\t\treturn WC_PostFinanceCheckout_Helper::instance()->get_currency_fraction_digits( $currency_code );\n\t}", "private function getDecimalFactor(Currency $currency)\n {\n $subunitSize = $this->isoCurrencies->subunitFor($currency);\n ...
[ "0.70546865", "0.66970634", "0.6616109", "0.6341911", "0.597783", "0.593612", "0.5904722", "0.57921547", "0.5726606", "0.57215226", "0.5705257", "0.56868035", "0.55883735", "0.5527605", "0.5415788", "0.5412087", "0.53948575", "0.5316766", "0.5292235", "0.5275166", "0.5258919"...
0.7095405
0
Returns the total amount including tax of the given line items.
Возвращает общую сумму с учетом налога для указанных позиций.
public static function getTotalAmountIncludingTax(array $lineItems) { $sum = 0; foreach ($lineItems as $lineItem) { $sum += $lineItem->getAmountIncludingTax(); } return $sum; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTotalTaxAmount();", "public function getTaxTotal() {\n $total = 0;\n\n // Calculate total from items in the list\n foreach($this->Items() as $item) {\n $total += $item->getTaxTotal();\n }\n\n // Add any tax from postage\n $total += $this->Po...
[ "0.750475", "0.73711866", "0.72676843", "0.7264367", "0.70415986", "0.70236295", "0.700792", "0.6974921", "0.69731504", "0.69599974", "0.6834039", "0.6804235", "0.6793307", "0.6786204", "0.6780825", "0.6736188", "0.67250806", "0.6722792", "0.6719641", "0.6686309", "0.66849947...
0.8340673
0
Ensures uniqueness of the line items.
Обеспечивает уникальность строк элементов.
public static function ensureUniqueIds(array $lineItems) { $uniqueIds = array(); foreach ($lineItems as $lineItem) { $uniqueId = $lineItem->getUniqueId(); if (empty($uniqueId)) { $uniqueId = preg_replace("/[^a-z0-9]/", '', Tools::strtolower($lineItem->getSku()...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function checkForDuplicateUnique(){\n $_ufields_arr = explode(\",\", $this->listSettings->GetItem(\"MAIN\", \"UNIQUE_FIELDS\"));\n $check_fields = true;\n for ($i = 0; $i < sizeof($_ufields_arr); $i ++) {\n list ($_field[$i], $_value[$i]) = explode(\"=\", $_ufields_arr[$i]);\n ...
[ "0.60758406", "0.58338296", "0.5713227", "0.5564107", "0.5564107", "0.5522689", "0.5496896", "0.548084", "0.54321766", "0.53874487", "0.535245", "0.53087145", "0.52484304", "0.5240146", "0.5206341", "0.5187462", "0.5142243", "0.51250255", "0.51210046", "0.5111042", "0.5109101...
0.7170114
0
Returns the amount of the line item's reductions.
Возвращает количество скидок для позиции.
public static function getReductionAmount(array $lineItems, array $reductions) { $lineItemMap = array(); foreach ($lineItems as $lineItem) { $lineItemMap[$lineItem->getUniqueId()] = $lineItem; } $amount = 0; foreach ($reductions as $reduction) { $lineI...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTotalQty()\n {\n $qty = 0;\n foreach ($this->lineItems as $item) {\n $qty += $item->qty;\n }\n\n return $qty;\n }", "public function getAmountAttribute()\n {\n return $this->lines()->get()->reduce(function($carry, $line) {\n ret...
[ "0.68862826", "0.6518084", "0.6379273", "0.6266357", "0.62382287", "0.62178177", "0.6179445", "0.61621004", "0.6146307", "0.6140768", "0.6120444", "0.6118574", "0.6098771", "0.60921395", "0.6084218", "0.6070371", "0.60564095", "0.6033297", "0.60213417", "0.60154074", "0.60089...
0.7106966
0
Get the Module instance
Получить экземпляр модуля
public static function getModuleInstance() { return Module::getInstanceByName('postfinancecheckout'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function get_instance() {\n\n\t\t\t$module = get_called_class();\n\n\t\t\tif ( ! isset( self::$instances[ $module ] ) ) {\n\t\t\t\tself::$instances[ $module ] = new $module();\n\t\t\t}\n\n\t\t\treturn self::$instances[ $module ];\n\t\t}", "public function getModule()\n\t{\n\t\treturn $this->get('mo...
[ "0.81133544", "0.7374263", "0.7274672", "0.7237482", "0.72253644", "0.72185606", "0.71658164", "0.71658164", "0.7162345", "0.7162345", "0.71217006", "0.71172625", "0.7113797", "0.7113797", "0.7088", "0.7070349", "0.70060056", "0.70060056", "0.690664", "0.6886677", "0.6883395"...
0.7795575
1
Returns the URL to the transaction detail view in PostFinance Checkout.
Возвращает URL-адрес для просмотра деталей транзакции в PostFinance Checkout.
public static function getTransactionUrl(PostFinanceCheckoutModelTransactioninfo $info) { return self::getBaseGatewayUrl() . '/s/' . $info->getSpaceId() . '/payment/transaction/view/' . $info->getTransactionId(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_transaction_url( $order ) {\r\n \r\n $this->view_transaction_url = MDL_COINCHECK_API_BASE. '?cmd=_view-a-trans&id=%s';\r\n \r\n return parent::get_transaction_url( $order );\r\n }", "public function getCheckoutUrl()\n {\n return $this->helper('checkout/url...
[ "0.7323596", "0.68892527", "0.6855693", "0.6695057", "0.66135955", "0.65409815", "0.65202546", "0.6460198", "0.6419573", "0.6396437", "0.6352841", "0.6349341", "0.6328401", "0.6315023", "0.62494856", "0.62242836", "0.62109375", "0.6114902", "0.6103458", "0.6097773", "0.609520...
0.7119928
1
Returns the URL to the refund detail view in PostFinance Checkout.
Возвращает URL-адрес к детальному представлению возврата в PostFinance Checkout.
public static function getRefundUrl(PostFinanceCheckoutModelRefundjob $refundJob) { return self::getBaseGatewayUrl() . '/s/' . $refundJob->getSpaceId() . '/payment/refund/view/' . $refundJob->getRefundId(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function view_refund()\n\n {\n $itemData['item'] = Product::getrefundItem();\n\n $data = ['itemData' => $itemData];\n\n return view('admin.refund')->with($data);\n }", "public function getRechargeUrl()\n {\n return $this->get(self::_RECHARGE_URL);\n }", "public fu...
[ "0.6758808", "0.6312987", "0.62457216", "0.60535026", "0.6017673", "0.60042673", "0.6003827", "0.5956296", "0.5945483", "0.58808774", "0.58642256", "0.58626497", "0.5770481", "0.5719233", "0.5699205", "0.5660667", "0.5615093", "0.5587667", "0.5545493", "0.5524771", "0.5507074...
0.7165884
0
Returns the URL to the completion detail view in PostFinance Checkout.
Возвращает URL-адрес для просмотра деталей завершения в PostFinance Checkout.
public static function getCompletionUrl(PostFinanceCheckoutModelCompletionjob $completion) { return self::getBaseGatewayUrl() . '/s/' . $completion->getSpaceId() . '/payment/completion/view/' . $completion->getCompletionId(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getReturnUrl() {\n return Url::fromRoute('entity.commerce_order.edit_form', ['commerce_order' => $this->order->id()]);\n }", "public function getURL()\n {\n return $this->site->getURL() . 'unl_progress/edit/';\n\n }", "public function getCheckoutUrl()\n {\n return $th...
[ "0.64211696", "0.6261794", "0.61925775", "0.6170745", "0.6152904", "0.61524445", "0.61149454", "0.6026059", "0.6005421", "0.5947173", "0.593462", "0.5932911", "0.5932135", "0.58955806", "0.5829262", "0.5803963", "0.579336", "0.57803035", "0.5764308", "0.5760007", "0.5755791",...
0.7650836
0
Returns the URL to the void detail view in PostFinance Checkout.
Возвращает URL-адрес представления подробной информации о возврате в PostFinance Checkout.
public static function getVoidUrl(PostFinanceCheckoutModelVoidjob $void) { return self::getBaseGatewayUrl() . '/s/' . $void->getSpaceId() . '/payment/void/view/' . $void->getVoidId(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function getPaymentPageUrl();", "public function getPostUrl()\n {\n return $this->scopeConfig->getValue(\n 'payment/eurobank/post_url',\n \\Magento\\Store\\Model\\ScopeInterface::SCOPE_STORE\n );\n }", "public function getCheckoutUrl()\n {\n r...
[ "0.6189274", "0.6130922", "0.6012734", "0.5983876", "0.59617263", "0.58708996", "0.5848268", "0.5783517", "0.57715493", "0.5755201", "0.57438993", "0.57233167", "0.5720057", "0.57132626", "0.56995314", "0.5690432", "0.5671443", "0.563122", "0.5628281", "0.5618418", "0.5610052...
0.7265928
0
Returns the transaction info for the given orderId. If the order id is not associated with a PostFinance Checkout transaciton it returns null
Возвращает информацию о транзакции для заданного orderId. Если идентификатор заказа не связан с транзакцией PostFinance Checkout, возвращается null
public static function getTransactionInfoForOrder($order) { if (! $order->module == 'postfinancecheckout') { return null; } $searchId = $order->id; $mainOrder = self::getOrderMeta($order, 'postFinanceCheckoutMainOrderId'); if ($mainOrder !== null) { $...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_transaction_details( $order_id ) {\n\t\t$order = new WC_Order( $order_id );\n\t\t$request = $this->prepare_request( self::TXN_TYPE_REPORT_TXN_DETAILS, $order );\n\t\t$response = $this->submit_request( $request );\n\n\t\treturn $response;\n\t}", "protected function _get_transaction_id( $or...
[ "0.70938325", "0.6761827", "0.659704", "0.63722247", "0.63223505", "0.626975", "0.6109078", "0.6092337", "0.6004047", "0.59378433", "0.5888913", "0.585912", "0.58361655", "0.58176637", "0.57769305", "0.5671771", "0.5665433", "0.5659779", "0.56496733", "0.5634253", "0.5616684"...
0.7846453
0
Demonstrate an optional login. Remember to add "examples/optional_login_test" to the allowed_pages_for_login array in config/authentication.php. Notice that we are using verify_min_level to check if a user is already logged in.
Показать необязательный вход в систему. Не забудьте добавить "examples/optional_login_test" в массив allowed_pages_for_login в config/authentication.php. Обратите внимание, что мы используем verify_min_level для проверки, авторизован ли пользователь.
public function optional_login_test() { if( $this->verify_min_level(1) ) { $page_content = '<p>Although not required, you are logged in!</p>'; } elseif( $this->tokens->match && $this->optional_login() ) { // Let Community Auth handle the login attempt ... } else { // Notice paramet...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function loginWhenNotLoggedIn()\n {\n /* @var $helper MagentoComponents_Helper*/\n $helper = Menta_ComponentManager::get('MagentoComponents_Helper');\n // open homepage\n $this->getSession()->open($this->getConfiguration()->getValue('testing.maindomain'));\n $this->asse...
[ "0.6491781", "0.6026042", "0.59709626", "0.5966912", "0.59227395", "0.5887675", "0.58729565", "0.5865954", "0.57619065", "0.57522243", "0.57394016", "0.56969285", "0.56969285", "0.56969285", "0.5687839", "0.56640273", "0.5649894", "0.5608717", "0.5607039", "0.5604024", "0.560...
0.82115334
0
Custom URL search page Redirects to a custom URL search page
Персонализированная страница поиска по URL Перенаправляет на страницу поиска по URL с пользовательским URL
function dl_custom_search_url() { if ( is_search() && ! empty( $_GET['s'] ) ) { wp_redirect( home_url( "/search/" ) . urlencode( get_query_var( 's' ) ) ); exit(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function material_press_nice_search_redirect() {\n \tglobal $wp_rewrite;\n \tif ( ! isset( $wp_rewrite ) || ! is_object( $wp_rewrite ) || ! $wp_rewrite->using_permalinks() ) {\n \t\treturn;\n \t}\n\n \tif ( isset( $_SERVER['REQUEST_URI'] ) ) {\n \t\t$request_uri = esc_url_raw( wp_unslash( $_SERVER['REQUEST_URI'] )...
[ "0.78023285", "0.7679668", "0.76776993", "0.7641091", "0.7528591", "0.7454234", "0.7429974", "0.7067294", "0.7063761", "0.6846027", "0.6845695", "0.67413765", "0.6740215", "0.6529868", "0.65059566", "0.6503312", "0.6430324", "0.64294505", "0.6348132", "0.63353163", "0.6276923...
0.76981515
1
Get province by region Id.
Получить область по идентификатору региона.
public function getByRegion($regionId) { return $this->repository->getProvinceByRegion($regionId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show($id)\n {\n $region = $this->model->show($id);\n\n return response($region->load(['provinces']));\n }", "public function show($id)\n\t{\n\t\t//\n\t\t$province = Province::find($id);\n\t\treturn $province;\n\t}", "public function getProvince($id = NULL)\n {\n $s...
[ "0.7725263", "0.75204045", "0.70549524", "0.68785125", "0.6852365", "0.67928666", "0.67492104", "0.67265993", "0.6703975", "0.6698038", "0.66915715", "0.66812646", "0.66632116", "0.6656786", "0.66452324", "0.6638419", "0.6638419", "0.6630982", "0.66031617", "0.66009563", "0.6...
0.7537685
1
Validate an adapter by its name and check if available for usage
Проверить адаптер по его имени и убедиться, что он доступен для использования
protected function validateAdapter($name) { $this->validateAdapterName($name); $this->validateAdapterRegistered($name); $this->validateAdapterAllowed($name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hasAdapter();", "protected function _checkAdapter()\n {\n $notDefined = !is_object($this->_adapter);\n $isAdapter = $this->_adapter instanceof AdapterInterface;\n\n if ($notDefined || !$isAdapter) {\n throw new InvalidArgumentException(\n \"You ne...
[ "0.6907021", "0.65931267", "0.63644654", "0.60824513", "0.57387215", "0.5715412", "0.5715412", "0.5709304", "0.56969106", "0.5673118", "0.5671687", "0.56000155", "0.55983406", "0.54881895", "0.54277956", "0.542774", "0.5368808", "0.53528243", "0.53432506", "0.5316862", "0.531...
0.78797907
0
Gets a list of Content Entity Example revision IDs for a specific Content Entity Example.
Получает список идентификаторов ревизий примера сущности содержимого для конкретного примера сущности содержимого.
public function revisionIds(ContentEntityExampleInterface $entity);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function revisionIds(EventContentInterface $entity);", "public function revisionIds(ExoAssetInterface $entity);", "public function revisionIds(MentorInterface $entity);", "public function revisionIds(APIParamItemInterface $entity);", "public function revisionIds(SemillaInterface $entity);", "publi...
[ "0.5991585", "0.5550569", "0.55501366", "0.5497475", "0.5284753", "0.5217138", "0.5183089", "0.5147222", "0.5140979", "0.5125251", "0.50689626", "0.50689626", "0.4970834", "0.48416618", "0.4822509", "0.47809434", "0.47065514", "0.46989286", "0.46363926", "0.46238685", "0.4598...
0.7678849
0
Get product price after some filters like currency switcher
Получить цену продукта после применения некоторых фильтров, например, переключателя валют
function ppom_get_product_price( $product ) { $product_price = $product->get_price(); if( has_filter('woocs_exchange_value') ) { global $WOOCS; if($WOOCS->current_currency != $WOOCS->default_currency ) { if($WOOCS->is_multiple_allowed) { $product_price = apply_filters('woocs_raw_woocommerce_price', ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getProductPrice()\n {\n }", "function tep_get_productPrice($product_id){\n\tif ($product_id){\n\t\tglobal $languages_id,$pf;\n\t\t$product_query = tep_db_query(\"select p.products_id,p.products_price,products_discount from \" . TABLE_PRODUCTS . \" p where p.products_id=\".(int)$product_id )...
[ "0.7175486", "0.71393424", "0.69461554", "0.69461554", "0.69461554", "0.69461554", "0.6917061", "0.6902495", "0.6875387", "0.68469757", "0.68469757", "0.67516595", "0.67398083", "0.6739329", "0.6737723", "0.67224425", "0.6710828", "0.6700735", "0.6693769", "0.6666484", "0.664...
0.73074937
0
check if browser is IE
проверить, является ли браузер IE
function ppom_if_browser_is_ie() { //print_r($_SERVER['HTTP_USER_AGENT']); if(!(isset($_SERVER['HTTP_USER_AGENT']) && (strpos($_SERVER['HTTP_USER_AGENT'], 'Trident') !== false || strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== false))){ return false; }else{ return true; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function is_ie() {\n\tif (isset($_SERVER['HTTP_USER_AGENT']) &&\n\t\t\t(strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== false)) {\n\t\treturn true;\n\t} else {\n\t\treturn false;\n\t}\n}", "function detectInternetExplorer()\n {\n $agent = Request::server('HTTP_USER_AGENT');\n return preg_match('...
[ "0.8117697", "0.8103033", "0.7642736", "0.7441285", "0.73320794", "0.7305608", "0.7108908", "0.70854735", "0.69024676", "0.6809612", "0.6721157", "0.6720807", "0.66775185", "0.6520998", "0.6513414", "0.6461711", "0.6460735", "0.64465857", "0.6348477", "0.63469803", "0.6292728...
0.8141504
0
Is PPOM meta has field of specific type
Есть ли в PPOM мета поле определенного типа
function ppom_has_field_by_type( $product_id, $field_type ) { $ppom = new PPOM_Meta( $product_id ); if( ! $ppom->fields ) return ''; $fields_found = array(); foreach($ppom->fields as $field) { if( !empty($field['type']) && $field['type'] == $field_type ) { $fields_found[] = $field; } } return $fi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hasField();", "function is_field_type($name)\n {\n }", "public function meta_type();", "private function hasCustomFields()\r\n\t{\r\n\t\tforeach ($this->fields as $field)\r\n\t\t{\r\n\t\t\tif ($field instanceOf CustomField)\r\n\t\t\t{\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\tr...
[ "0.70107687", "0.6953031", "0.6878139", "0.6805692", "0.67656654", "0.67656654", "0.67656654", "0.67615604", "0.6743222", "0.67267704", "0.6716539", "0.6709022", "0.6706723", "0.67006403", "0.6662158", "0.6652466", "0.6633485", "0.6633485", "0.6624825", "0.6624825", "0.662482...
0.76765996
0
Check if field conditionally hidden
Проверить, скрыто ли поле условно
function ppom_is_field_hidden_by_condition( $field_name ) { if( !isset($_POST['ppom']['conditionally_hidden']) ) return false; $ppom_is_hidden = false; $ppom_hidden_fields = explode(",", $_POST['ppom']['conditionally_hidden']); // Remove duplicates $ppom_hidden_fields = array_unique( $ppom_hidden_fields ); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function pewc_is_field_hidden( $item, $product_id ) {\n\n\t$rules = pewc_get_field_conditional( $item, $product_id );\n\t// If it's set to show after conditions are met, it must be hidden to start with\n\tif( isset( $rules['action'] ) && $rules['action'] == 'show' ) {\n\t\treturn true;\n\t}\n\treturn false;\n}", ...
[ "0.7707687", "0.75888836", "0.75888836", "0.75888836", "0.75888836", "0.7443614", "0.7434334", "0.7434334", "0.7434334", "0.73429024", "0.71704274", "0.7166653", "0.71539164", "0.71539164", "0.71539164", "0.71539164", "0.71539164", "0.71539164", "0.71539164", "0.71539164", "0...
0.7589708
1
Get cart item max quantity for matrix
Получить максимальное количество элементов корзины для матрицы
function ppom_get_cart_item_max_quantity( $cart_item ) { $max_quantity = null; if( isset($cart_item['ppom']['ppom_pricematrix']) ) { $matrix = json_decode( stripslashes($cart_item['ppom']['ppom_pricematrix']) ); $last_range = end($matrix); $qty_ranges = explode('-', $last_range->raw); $max_quantity = $qty_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getMaximumQuantity()\n {\n return $this->maximumQuantity;\n }", "public function get_max_ticket_quantity_cart( string $product_quantity, string $cart_item_key, array $cart_item ) : string {\n\t\t$product_quantity = str_replace( 'max=\"\"', 'max=\"' . $this->get_max_ticket_quantity() ...
[ "0.75429326", "0.6947515", "0.6654821", "0.6625325", "0.6625325", "0.6559773", "0.64071244", "0.6366963", "0.6366963", "0.6366963", "0.63564664", "0.63400817", "0.6317779", "0.6311567", "0.6301001", "0.62295806", "0.62159246", "0.6188754", "0.6179192", "0.6152098", "0.6136482...
0.83067375
0
Extract relevant matrix from Matrix Range given by quantity
Извлечь соответствующую матрицу из диапазона Matrix Range, заданного количеством
function ppom_extract_matrix_by_quantity($quantities_field, $product, $quantity) { $matrix = ''; if( !isset($quantities_field['options']) ) return $matrix; $options = $quantities_field['options']; $ranges = ppom_convert_options_to_key_val($options, $quantities_field, $product); if( empty($ranges) ) return ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ppom_get_price_matrix_chunk($product, $option_prices, $ppom_item_order_qty) {\n\t\n\t$matrix_found = '';\n\t\n\t$pricematrix_field = ppom_has_field_by_type(ppom_get_product_id($product), 'pricematrix');\n\t// ppom_pa($pricematrix_field);\n\t\n\tif ( ! $pricematrix_field ) return $matrix_found;\n\t\n\tif( ...
[ "0.5598703", "0.54092705", "0.48131505", "0.4604633", "0.45702508", "0.4569853", "0.45310718", "0.44996318", "0.4463215", "0.44409567", "0.43986267", "0.4391121", "0.4365622", "0.4324546", "0.43035582", "0.42765215", "0.4258706", "0.42474166", "0.42451832", "0.42321822", "0.4...
0.70101243
0
Getting field option price
Получение цены опциона на поле
function ppom_get_field_option_price( $field_meta, $option_label ) { // var_dump($field_meta['options']); if( ! isset( $field_meta['options']) || $field_meta['type'] == 'bulkquantity' || $field_meta['type'] == 'cropper' ) return 0; $option_price = 0; foreach( $field_meta['options'] as $option ) { if( $opti...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function ajax_paypal_price() {\n\t\tglobal $wpdb;\n\n\t\tif ( isset( $_REQUEST['action'] ) && $_REQUEST['action'] == 'visual_form_builder_paypal_price' ) {\n\t\t\t$form_id = absint( $_REQUEST['form_id'] );\n\t\t\t$field_id = absint( $_REQUEST['field_id'] );\n\n\t\t\t$fields = $wpdb->get_results( $wpdb->prep...
[ "0.7433158", "0.7420129", "0.7404648", "0.7157803", "0.7133599", "0.7067082", "0.68952364", "0.6873923", "0.68619263", "0.68619263", "0.68619263", "0.68619263", "0.680141", "0.680141", "0.67997414", "0.67997414", "0.67906684", "0.67498887", "0.67470855", "0.67450684", "0.6745...
0.8165804
0
Getting field option price by ID
Получение цены поля по ID
function ppom_get_field_option_price_by_id( $option, $product, $ppom_meta_ids ) { $data_name = isset($option['data_name']) ? $option['data_name'] : ''; $option_id = isset($option['option_id']) ? $option['option_id'] : ''; // soon we will remove this product param $product_id = null; $field_meta = ppom_get_fiel...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ppom_get_field_option_price( $field_meta, $option_label ) {\n\t\n\t// var_dump($field_meta['options']);\n\tif( ! isset( $field_meta['options']) || $field_meta['type'] == 'bulkquantity' || $field_meta['type'] == 'cropper' ) return 0;\n\t\n\t$option_price = 0;\n\tforeach( $field_meta['options'] as $option )...
[ "0.7050055", "0.6772268", "0.67687124", "0.6698591", "0.6564996", "0.6515949", "0.64104104", "0.6218508", "0.6189849", "0.6189849", "0.6189849", "0.6189849", "0.6172787", "0.61553323", "0.6149897", "0.614358", "0.60969925", "0.60496336", "0.60487753", "0.6045119", "0.59670734...
0.79172456
0
Getting field option weight by ID
Получение опции поля weight по ID
function ppom_get_field_option_weight_by_id( $option, $ppom_meta_ids ) { $data_name = isset($option['data_name']) ? $option['data_name'] : ''; $option_id = isset($option['option_id']) ? $option['option_id'] : ''; // soon we will remove this product param $product_id = null; $field_meta = ppom_get_field_meta_by...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_weight() {\n\t\tif ($this->data['weight']) return $this->data['weight'];\n\t}", "public function getWeight();", "public function getWeight();", "public function getWeight();", "public function getWeight();", "public function getWeight();", "public function getWeight();", "public function...
[ "0.6191665", "0.58638585", "0.58638585", "0.58638585", "0.58638585", "0.58638585", "0.58638585", "0.58638585", "0.58079076", "0.56895196", "0.56337136", "0.56072605", "0.5544835", "0.5519514", "0.55130607", "0.5498959", "0.5483842", "0.5475379", "0.54700404", "0.5461338", "0....
0.79470885
0
check if PPOM PRO is installed
проверить, установлен ли PPOM PRO
function ppom_pro_is_installed() { $return = false; if( class_exists('PPOM_PRO') ) $return = true; return $return; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function is_pro() \n {\n if($_SESSION['_version'] == '')\n { \n $conf = new Ossim_conf();\n $version = $conf->get_conf('ossim_server_version');\n $_SESSION['_version'] = (preg_match('/pro|demo/i',$ve...
[ "0.69054514", "0.6480535", "0.6377539", "0.6371857", "0.6268326", "0.6264759", "0.62192017", "0.61864907", "0.61540776", "0.61431044", "0.6137815", "0.61196107", "0.6095046", "0.609409", "0.60756433", "0.60302", "0.6020771", "0.59893656", "0.5982791", "0.5964329", "0.59603524...
0.84885454
0
Check if PPOM API is enable
Проверить, включен ли API PPOM
function ppom_is_api_enable() { $api_enable = get_option( 'ppom_api_enable' ); $api_key = get_option( 'ppom_rest_secret_key' ); $return = false; if( $api_enable == 'yes' && $api_key != '' ) { $return = true; } return $return; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isApiEnabled()\n {\n return (Mage::getStoreConfig('smsnotifier/main_conf/active')==0) ? 0 : 1;\n\n }", "public function isApiEnabled()\n {\n return (Mage::getStoreConfig('easywebshopsms/api_connection/active')==0) ? false : true;\n }", "private function isApiAvailable(...
[ "0.75032777", "0.7477567", "0.7121077", "0.6863208", "0.6684061", "0.65131193", "0.64794034", "0.63284594", "0.63188964", "0.6296806", "0.62729245", "0.6252122", "0.62325364", "0.6227953", "0.622382", "0.6220688", "0.62200266", "0.6203007", "0.6173819", "0.6152772", "0.614650...
0.82539874
0
Check if field is visible
Проверить, видим ли поле
function ppom_is_field_visible( $field ) { if( ! ppom_pro_is_installed() ) return true; $visibility = isset($field['visibility']) ? $field['visibility'] : 'everyone'; $visibility_role = isset($field['visibility_role']) ? $field['visibility_role'] : ''; $is_visible = false; switch( $visibility ) { case '...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function is_visible() {\n\t\treturn true;\n\t}", "function is_visible()\n\t{\n\t\treturn $this->visible;\n\t}", "public function is_visible() {\n\t\treturn isset( $this->data['visible'] ) && $this->data['visible'];\n\t}", "function isVisible() {\n return ($this->entry->staff_id || $this->entry-...
[ "0.73611224", "0.7178339", "0.71038437", "0.7077458", "0.707198", "0.70577866", "0.70443815", "0.69755054", "0.69713056", "0.6948328", "0.6948328", "0.68993956", "0.68698716", "0.68657124", "0.6821235", "0.682056", "0.67540157", "0.673632", "0.6734275", "0.67182463", "0.67053...
0.72117555
1
If price set by pricematrix in cart return matrix
Если цена установлена матрицей цен в корзине, вернуть матрицу
function ppom_get_price_matrix_chunk($product, $option_prices, $ppom_item_order_qty) { $matrix_found = ''; $pricematrix_field = ppom_has_field_by_type(ppom_get_product_id($product), 'pricematrix'); // ppom_pa($pricematrix_field); if ( ! $pricematrix_field ) return $matrix_found; if( count($pricematrix_fiel...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function price(){\n\n\t\t$total = 0; //initialize to 0 lest error\n\n\t\tglobal $con;\n\n\t\t$ip=getIP();\n\n\t\t$sel_price = \"select * from cart where ip_add='$ip'\"; //get price from what is in the cart for whoevers ip address\n\n\t\t$run_price = mysqli_query($con, $sel_price);\n\n\t\twhile ($p_price = mysqli_f...
[ "0.6244465", "0.62119144", "0.6041028", "0.6001919", "0.5986318", "0.59752643", "0.59581846", "0.5901803", "0.58620507", "0.5833632", "0.5833333", "0.58277553", "0.580459", "0.57935274", "0.57906675", "0.57743746", "0.57743216", "0.57640064", "0.5748591", "0.56949514", "0.568...
0.7017899
0
Security: checking if attached fields have price
Безопасность: проверка, имеют ли прикрепленные поля цену
function ppom_is_price_attached_with_fields( $fields_posted ) { $is_price_attached = false; $option_price = 0; $ppom_id = $fields_posted['id']; foreach($fields_posted as $data_name => $value) { // soon prodcut_id will be removed $product_id = null; $field_meta = ppom_get_field_meta_by_dataname($produ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function validatePrice()\n {\n return empty($this->price)?false:true;\n }", "public function isIncludedInPrice();", "public function hasPrice(){\n return $this->_has(12);\n }", "private static function has_price_field( $form ) {\n\t\tif ( is_array( $form['fields'] ) ) {\n\t\t\tforeach ( ...
[ "0.7296728", "0.7082381", "0.699404", "0.6918568", "0.68912953", "0.68521684", "0.6814023", "0.64702785", "0.62862223", "0.62741375", "0.6272136", "0.6159761", "0.6145966", "0.61173195", "0.6019901", "0.59939706", "0.59701294", "0.5965512", "0.5958107", "0.5916066", "0.589061...
0.7332881
0
Get menu by slug.
Получить меню по слагу.
public function bySlug($menuSlug) { return Menu::with('permission')->whereSlug($menuSlug)->first(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function maiconfigurations_get_menu_by_slug( $slug ) {\n\n\tif ( $menu = get_term_by( 'slug', $slug, 'nav_menu' ) ) {\n\t\treturn $menu;\n\t}\n\n\tif ( $menu = get_term_by( 'slug', $slug . '-nav', 'nav_menu' ) ) {\n\t\treturn $menu;\n\t}\n\n\tif ( $menu = get_term_by( 'slug', $slug . '-menu', 'nav_menu' ) ) {\n\t\...
[ "0.7956025", "0.758239", "0.71422285", "0.6996526", "0.69422436", "0.673566", "0.6734712", "0.6641822", "0.66023433", "0.65403", "0.6442446", "0.64384294", "0.6375229", "0.61955446", "0.6146471", "0.6140704", "0.6121655", "0.61134535", "0.6095223", "0.6092737", "0.6092737", ...
0.7762032
1
Get parent menus without children ordered by menu_order asc
Получить родительские меню без детей, отсортированные по menu_order в порядке возрастания
public function getParents() { return Menu::where('locale', getCurrentSessionAppLocale()) ->where(function ($query){ $query->whereNull('parent_slug') ->orWhere('parent_slug', ''); }) ->orderBy('menu_order', 'asc') ->get(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getMenuParents()\n {\n return $this->db->select('*')->from('admin_menu')->where('parent',0)->get()->result_array();\n }", "public function get_no_parents ()\r\n\t{\r\n\t\t$this->db->select('id, title, menu_id');\r\n\t\t$this->db->where('parent_id', 0); \r\n\t\t$pages = parent::get()...
[ "0.73462486", "0.7139731", "0.69289136", "0.6901755", "0.67867", "0.67156965", "0.6707121", "0.6693782", "0.66641045", "0.66465855", "0.6617598", "0.6560701", "0.65111727", "0.64742655", "0.6420377", "0.6363472", "0.63541466", "0.6333202", "0.6269148", "0.6266081", "0.6253665...
0.746
0
Generating pdfs for all orders and users
Генерация pdf для всех заказов и пользователей
public function generatePDFOrders(){ $orders=UserOrder::all(); $data=['orders'=>$orders]; $pdf = PDF::loadView('pdf.document',$data); return $pdf->stream('document.pdf'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function pdf()\n {\n $data['order_users'] = DB::table('guest_details')->get();\n $data['total_amount'] = DB::table('guest_details')->sum('payment_amount');\n $pdf = PDF::loadView('admin.orders_by_promote_users.pdf', $data);\n return $pdf->download('order_list.pdf');\n }", ...
[ "0.709254", "0.69068223", "0.6793578", "0.6620876", "0.65700334", "0.6414609", "0.6327618", "0.6265488", "0.6259063", "0.6256858", "0.6218171", "0.6211044", "0.6117345", "0.6115094", "0.6108168", "0.61073345", "0.6096955", "0.6075026", "0.6072859", "0.6010974", "0.5987434", ...
0.7638488
0
En la clase VariableNumerica es redeclarada para devolver true.
В классе VariableNumerica переопределяется для возвращения true.
public function isVariableNumerica(){ return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isVariableTexto(){ return false; }", "public function isVariableCualitativa(){ return false; }", "public function hasVariableType() {\n return $this->_has(4);\n }", "public function hasVariableType() {\n return $this->_has(4);\n }", "public function isVar(){\n return ...
[ "0.6226047", "0.615995", "0.5986505", "0.5986505", "0.5959649", "0.5645643", "0.5596993", "0.55950254", "0.54454905", "0.5432761", "0.5428563", "0.541654", "0.5409633", "0.54095304", "0.5387004", "0.5365187", "0.5341328", "0.53305423", "0.5214269", "0.51675487", "0.5151387", ...
0.7994747
0
En la clase VariableTexto es redeclarada para devolver true.
В классе VariableTexto переопределяется для возвращения true.
public function isVariableTexto(){ return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isVariableCualitativa(){ return false; }", "public function isVar(){\n return $this->var;\n }", "public function isVariableNumerica(){ return false; }", "function mTRUE(){\n try {\n $_type = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$TRUE;\n $_ch...
[ "0.64194596", "0.5754381", "0.5651624", "0.56512666", "0.56263494", "0.56207", "0.55106986", "0.5461052", "0.5398493", "0.5375989", "0.53745884", "0.53372574", "0.5302292", "0.529736", "0.52887577", "0.52887577", "0.5270243", "0.52445734", "0.51807714", "0.5176812", "0.515445...
0.80805844
0
En la clase VariableCualitativa es redeclarada para devolver true.
В классе VariableCualitativa переопределяется для возвращения true.
public function isVariableCualitativa(){ return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isVariableTexto(){ return false; }", "public function isVar(){\n return $this->var;\n }", "public function isVariableNumerica(){ return false; }", "public function hasVariableType() {\n return $this->_has(4);\n }", "public function hasVariableType() {\n return $this->...
[ "0.7147108", "0.67110825", "0.6199974", "0.6180267", "0.6180267", "0.5912738", "0.5901381", "0.5828213", "0.5826845", "0.581746", "0.5779343", "0.563731", "0.56348646", "0.56118935", "0.5577616", "0.5573345", "0.55622464", "0.5530327", "0.5516965", "0.55061215", "0.5474667", ...
0.7891375
0
An object with members to configure various horizontal axis elements. To specify properties of this property, create a new hAxis() object, set the values then pass it to this function or to the constructor.
Объект с членами для настройки различных элементов горизонтальной оси. Чтобы указать свойства этого свойства, создайте новый объект hAxis(), задайте значения, а затем передайте его в эту функцию или в конструктор.
public function hAxis(HorizontalAxis $hAxis) { $this->addOption($hAxis->toArray('hAxis')); return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateJavascriptParams(array &$options) {\n\t\t\n\t\t// Titles Position\n\t\tif($this->axisTitlesPosition) {\n\t\t\t$options['axisTitlesPosition'] = $this->axisTitlesPosition;\n\t\t}\n\t\t\n\t\t// Horizontal Axis Baseline\n\t\tif($this->hAxisBaseline !== null) {\n\t\t\t$hAxis['baseline'] = $this->h...
[ "0.67988026", "0.55860025", "0.54584163", "0.5214826", "0.5046268", "0.5007254", "0.4979601", "0.4885388", "0.48471162", "0.4843735", "0.4809808", "0.48013642", "0.48002616", "0.4786577", "0.47771537", "0.47689515", "0.47265515", "0.47120112", "0.4686496", "0.4662397", "0.462...
0.7327219
0
This method will get a description for the shipping on pdfs
Этот метод получает описание доставки для pdf-файлов
public function getPdfShippingDescription(Order $order) { $description = $order->getShippingDescription(); if ($order->getShippingMethod() !== Gfs::METHOD_CODE) { return $description; } $gfsShippingData = $this->getGfsShippingData($order); if (empty($gfsShippingD...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getShippingDescription();", "public function get_pdfs() {\n\t\treturn apply_filters( 'wc_product_catalog_pdfs', $this->pdfs, $this );\n\t}", "public function getShippingDetails();", "public function getShippingInfo();", "function getDescription() {\n\t\tswitch ($this->type) {\n\t\t\tcase PA...
[ "0.70815915", "0.62952274", "0.6285794", "0.62541986", "0.6068779", "0.5902405", "0.5873919", "0.5822868", "0.5787383", "0.5757282", "0.5746223", "0.57032514", "0.56932575", "0.5671137", "0.5592489", "0.55664", "0.5519333", "0.55161095", "0.5490061", "0.54784393", "0.5472338"...
0.70847124
0
Check whether there is available supported Storage engine
Проверьте, доступен ли поддерживаемый Storage-движок
protected static function check_dependencies_storage ($storage_support) { /** * Component doesn't support (and thus use) any Storage engines, so we don't care what system have */ if (!$storage_support) { return true; } $Core = Core::instance(); $Config = Config::instance(); if (in_array($Core->st...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function is_storage_driver($driver)\n{\n if (is_array($driver)) {\n return in_array(config('filesystems.default'), $driver);\n }\n\n return config('filesystems.default') === $driver;\n}", "function getStorageEngine() {\n \treturn $this->storage_engine;\n }", "function is_upload_space_avai...
[ "0.68390554", "0.6684502", "0.6496166", "0.6267328", "0.6267328", "0.6219662", "0.61985147", "0.61971486", "0.6181", "0.616087", "0.6117043", "0.6073895", "0.6072785", "0.6026296", "0.6024339", "0.6024339", "0.6020639", "0.60188633", "0.59978634", "0.5994162", "0.595709", "...
0.705407
0
Opening for Shopify's ProductsCreate webhook
Открытие для вебхука Shopify's ProductsCreate
public function productsCreate(Request $request) { try { \Log::info('Data incoming from Shopify ProductsCreate Webhook'); //retrieving json data $content = json_decode($request->getContent(), true); app(ProductService::class)->queueProductsCreateConversionTr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function createAppWebhooks()\n {\n if ($this->shopifyUseWebhooks == 'true') {\n Log::info('ShopifyApi.createAppWebhooks: register webhooks');\n\n // create webhook for uninstalling\n $result = $this->call('POST', '/admin/webhooks.json',\n array('web...
[ "0.6411869", "0.6360106", "0.6353351", "0.63149637", "0.63084435", "0.6269012", "0.62610835", "0.6237266", "0.61834115", "0.61123335", "0.61063516", "0.6103958", "0.6092949", "0.60666865", "0.6051973", "0.603461", "0.6029515", "0.6026004", "0.602499", "0.6003323", "0.5988656"...
0.7722122
0
Decodes the ETF bytes array (a large tuple) to an object.
Декодирует массив байтов ETF (большой кортеж) в объект.
static function decodeLarge(Decoder $etf, string $data, int &$pos): BaseObject { $length = \unpack('N', $data[$pos++].$data[$pos++].$data[$pos++].$data[$pos])[1]; $tuple = array(); for(; $length > 0; $length--) { $tuple[] = $etf->parseAny($data[++$pos], $data, $pos); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static function decodeSmall(Decoder $etf, string $data, int &$pos): BaseObject {\n $length = \\ord($data[$pos]);\n \n $tuple = array();\n for(; $length > 0; $length--) {\n $pos++;\n $tuple[] = $etf->parseAny($data[$pos], $data, $pos);\n }\n \n...
[ "0.6395274", "0.62112725", "0.5846947", "0.5782601", "0.5775643", "0.5642737", "0.5642737", "0.5642737", "0.5642737", "0.5642737", "0.5609598", "0.55687517", "0.5566453", "0.5555274", "0.5521541", "0.5378768", "0.5374671", "0.5344452", "0.52841973", "0.5262716", "0.52363163",...
0.70681643
0
find all rows from database associted with given model class
найдите все строки из базы данных, связанные с заданным классом модели
public function all($model){ if(!class_exists($model)){ return new $model; } $table = $this->getTableName($model); $stmt = $this->pdo->prepare('select * from ' . $table); $stmt->execute(); return $stmt->fetchAll(\PDO::FETCH_CLASS, $model); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAll($model)\n {\n $sql = \"SELECT * FROM {$this->table}\";\n $req = Database::getBdd()->prepare($sql);\n $req->execute();\n return $req->fetchAll(PDO::FETCH_CLASS,get_class($this->model));\n }", "public function modelFetchAll(){\n\t\t\t//lay bien ket noi de th...
[ "0.7110202", "0.70281315", "0.7025125", "0.70193225", "0.7010695", "0.6993319", "0.6857536", "0.6853986", "0.6841917", "0.67934513", "0.67653817", "0.67347395", "0.6732563", "0.6720762", "0.6713448", "0.6712909", "0.67030215", "0.6639903", "0.6607262", "0.65681994", "0.656236...
0.7677564
0
find all rows from database associted with given model class by id
найдите все строки из базы данных, связанные с заданным классом модели по идентификатору
public function find($model, $id){ if(!class_exists($model)){ return new $model; } $table = $this->getTableName($model); $stmt = $this->pdo->prepare('select * from ' . $table . ' where id=?'); $stmt->execute([$id]); return $stmt->fetchAll(\PDO::FETCH_CLASS...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function findById($id)\n\t{\n\t\t$model = new self;\n\t\treturn $model->fetchRow($model->select()->where('id=?', $id));\n\t}", "public function findById($id)\n {\n return $this->model->find($id);\n //return $this->model->whereId($id)->get();\n }", "public function find($id){\n...
[ "0.7439723", "0.7430075", "0.72887707", "0.7227014", "0.71489674", "0.7062684", "0.7039826", "0.70137835", "0.70119137", "0.70022655", "0.6965033", "0.6965033", "0.6965033", "0.6965033", "0.6965033", "0.6965033", "0.6965033", "0.6965033", "0.6965033", "0.6965033", "0.6965033"...
0.74587345
0
BID /add a new bid for an item by a specific user
BID / добавить новую ставку на товар от конкретного пользователя
public function addBid($itemid, $buserid, $bidamount) { $itemid = mysql_real_escape_string( $itemid); $buserid = mysql_real_escape_string( $buserid); $biddate = date('Y-m-d'); $bidtime = time('H:i:s'); $bidamount = mysql_real_escape_string($bidamount); $sql="INSERT INTO bid...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testAddBidApi()\n {\n $this->user = factory(User::class)->create();\n $user2 = factory(User::class)->create();\n $flight = $this->addFlight($this->user);\n\n $uri = '/api/user/bids';\n $data = ['flight_id' => $flight->id];\n\n $body = $this->put($uri, $d...
[ "0.6823075", "0.67634946", "0.6679334", "0.66029906", "0.63387895", "0.63337296", "0.6311391", "0.6289009", "0.62849826", "0.6234969", "0.6224868", "0.6202702", "0.6188577", "0.6183651", "0.61680514", "0.613493", "0.61273754", "0.6125426", "0.60928774", "0.6068024", "0.605111...
0.7319223
0
/FIND THE MAXIMUM BID FROM ALL bid history for a particular item
Найдите максимальную ставку из всех историй ставок на конкретный товар
public function getmaxbid ($itemid){ //returns the max bid for an itel $itemid = mysql_real_escape_string( $itemid); $sql = "SELECT MAX(bidAmount) FROM bid WHERE itemid= '$itemid'"; $bidarray = mysql_fetch_array(mysql_query($sql)); $bid = $bidarray[0];...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getIdMax() {\n $sql = \"select ItemID from Mst_ItemList\";\n $query = $this->db->query($sql);\n $jml = $query->num_rows();\n if ($jml == 0) {\n $ItemID = \"001\";\n return $ItemID;\n } else {\n $sql = \"select max(ItemID) as ItemID...
[ "0.66153866", "0.64492005", "0.6321777", "0.6144939", "0.60688573", "0.6068402", "0.6063239", "0.6014831", "0.5998061", "0.5995669", "0.59757495", "0.59511584", "0.59371305", "0.58879596", "0.5880034", "0.584081", "0.5802528", "0.5795414", "0.57822484", "0.56913036", "0.56890...
0.7575839
0
/remove house with a particual item id
Удалить дом с помощью конкретного идентификатора предмета
public function rmhouse($itemid){ $api = new Api(); $api->rmitem($itemid); $itemid = mysql_real_escape_string( $itemid); $sql = "delete FROM house where itemid='$itemid'"; mysql_query($sql); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function removeItem($id){\n $this->totalQty -= $this->items[$id]['qty'];\n $this->totalPrice -= $this->items[$id]['price'];\n unset($this->items[$id]);\n }", "public function remove($item);", "function DeleteSHItem($id)\n{\n\tglobal $db;\n\t$sh_table = DB_PREFIX . 'pico_site_he...
[ "0.661204", "0.651905", "0.64688337", "0.643625", "0.63931245", "0.63831264", "0.6382464", "0.63712573", "0.6364224", "0.6272251", "0.6182763", "0.61547744", "0.61497456", "0.61373633", "0.6129773", "0.61192006", "0.6110689", "0.6109178", "0.60906", "0.60832936", "0.60635877"...
0.797697
0
/ Get all house with specific item id
/ Получить все дома с конкретным идентификатором предмета
public function viewhouse($itemid){ $itemid = mysql_real_escape_string( $itemid); $sql2 = "SELECT * from house WHERE itemid = '$itemid'"; $housearray = mysql_fetch_array(mysql_query($sql2)); $house = $housearray[0]; return $house; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_item_by_id($id) {\n\tglobal $wpdb;\n\tglobal $webgrain2;\n\t$sql = \"SELECT * FROM \" . $webgrain2->second_menu_table . \" WHERE id = $id\";\n\t$result = $wpdb->get_results($wpdb->prepare($sql, 0));\n\tif(!empty($result)) { foreach($result as $r) { return $r; } }\n}", "public function getHouseListAt...
[ "0.62867564", "0.62841487", "0.62188727", "0.617941", "0.61291367", "0.6116844", "0.60571027", "0.6052588", "0.60323054", "0.59531176", "0.5910118", "0.58998185", "0.58909637", "0.58906114", "0.58549917", "0.58087736", "0.57904506", "0.57675475", "0.5760003", "0.57452047", "0...
0.7190658
0
Test view entity clone.
Тестовое представление сущности клонирования.
public function testViewEntityClone() { $edit = [ 'id' => 'test_view_cloned', 'label' => 'Test view cloned', ]; $this->drupalPostForm('entity_clone/view/who_s_new', $edit, t('Clone')); $views = \Drupal::entityTypeManager() ->getStorage('view') ->loadByProperties([ 'id' =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testCloneTDBMObject()\n {\n $object = $this->tdbmService->getNewObject('departements');\n $object->id_region = 22;\n $object->numero = '100';\n $object->nom = 'test';\n $object->nom_web = 'test';\n // Save the object\n $object->save();\n\n ...
[ "0.69796026", "0.6586794", "0.6434951", "0.6284804", "0.6231322", "0.6231322", "0.6231322", "0.6231322", "0.6231322", "0.6231322", "0.6231322", "0.6231322", "0.6231322", "0.6231322", "0.6231322", "0.62255716", "0.62255716", "0.62255716", "0.62255716", "0.6212186", "0.62117714...
0.8761566
0
Get fake instance of CustomerKey
Получить фейковый экземпляр CustomerKey
public function fakeCustomerKey($customerKeyFields = []) { return new CustomerKey($this->fakeCustomerKeyData($customerKeyFields)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function makeCustomerKey($customerKeyFields = [])\n {\n /** @var CustomerKeyRepository $customerKeyRepo */\n $customerKeyRepo = App::make(CustomerKeyRepository::class);\n $theme = $this->fakeCustomerKeyData($customerKeyFields);\n return $customerKeyRepo->create($theme);\n }...
[ "0.62511957", "0.6206668", "0.6199511", "0.6150803", "0.6093767", "0.6093767", "0.6093767", "0.60555726", "0.6053619", "0.59828645", "0.5933406", "0.58896226", "0.5838514", "0.58058745", "0.57485574", "0.5732951", "0.57168174", "0.57010937", "0.5666175", "0.5666175", "0.56661...
0.76041317
0
Loads Google Map API
Загружает Google Map API
function ale_map_load_scripts() { wp_register_script( 'google-maps-api', 'http://maps.google.com/maps/api/js?sensor=false' ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function et_extra_enqueue_google_maps_api() {\n\n\t$google_api_option = get_option( 'et_google_api_settings' );\n\n\t// If for some reason the setting doesn't exist, then we probably shouldn't load the API\n\tif ( ! isset( $google_api_option['enqueue_google_maps_script'] ) ) {\n\t\treturn false;\n\t}\n\n\t// If th...
[ "0.70612305", "0.70271856", "0.6998376", "0.6912078", "0.67158896", "0.6521245", "0.65111804", "0.6457027", "0.6455555", "0.6386621", "0.637926", "0.6290871", "0.6161926", "0.613236", "0.6128419", "0.59714395", "0.5960694", "0.5953908", "0.5881248", "0.58590627", "0.58145326"...
0.70660686
0
TODO: Implement setWalkModel() method.
TODO: Реализовать метод setWalkModel().
public function setWalkModel() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setModel(&$m) {\n\t\t$this->_model =& $m;\n\t}", "function setModel(&$m) {\n\t\t$this->_model =& $m;\n\t}", "function setModel(&$m) {\n\t\t$this->_model =& $m;\n\t}", "public static function preModel(){\n\t\t\n\t}", "public function __construct(Visit $model)\n\t{\n\t\t$this->model = $model;\n\t}",...
[ "0.5429168", "0.5429168", "0.5429168", "0.54023165", "0.5257354", "0.52340764", "0.5209344", "0.5197934", "0.518204", "0.516158", "0.5109569", "0.51077795", "0.5062973", "0.5029167", "0.50169235", "0.49938047", "0.49760336", "0.49649176", "0.49567896", "0.49439067", "0.494390...
0.8960129
0
TODO: Implement setSiteUrl() method.
TODO: Реализовать метод setSiteUrl().
public function setSiteUrl() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function siteUrl() {}", "function site($url) {\n\t\t$this->url = $url;\n\t}", "public function getSiteURL()\r\n {\r\n return $this->siteURL;\r\n }", "public function getSite();", "public function getUrl() {\n\t\treturn $this->siteURL;\n\t}", "public function setSiteURL($siteURL)\r\n ...
[ "0.7872323", "0.734641", "0.71792513", "0.71238", "0.71180004", "0.69351494", "0.6818418", "0.6717588", "0.6679266", "0.664581", "0.65983564", "0.6567585", "0.6555756", "0.65196043", "0.6509995", "0.6502158", "0.64982486", "0.649403", "0.64770174", "0.6453908", "0.64534837", ...
0.8813554
0
Creates a table type object with passed data
Создает объект типа таблицы с переданными данными
public static function create($data) { $name = $data['name']; $language = $data['language']; $columnOption = $data['columnOption']; $specificColumns = $data['specificColumns']; return new TableType(self::generateId($name), $name, $language, $columnOption, $specificColumns); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract function createTestTable();", "function mscaffolding_create_table($name, $data)\n\t{\n\t\t$query_string = \"CREATE TABLE `\" . lconf_get(\"db_name\") . \"`.`\" . $name . \"` (`id` INT NOT NULL AUTO_INCREMENT,\";\n\n\t\tfor ($i = 0; $i < count($data) / 2; $i++)\n\t\t{\n\t\t\t$query_string .= \"...
[ "0.68280834", "0.664906", "0.6590249", "0.652532", "0.62810993", "0.6246316", "0.6195164", "0.61813045", "0.6162648", "0.61307395", "0.6108781", "0.60786545", "0.60666347", "0.60467005", "0.6043647", "0.60329276", "0.6025225", "0.6016322", "0.60160416", "0.601286", "0.6011447...
0.8152061
0
Gets the TableType with passed id
Получает TableType с переданным id
public static function get($id) { $savedTableTypes = ipGetOption(self::OPTION); if (!isset($savedTableTypes[$id])) { return null; } $tableTypeAsArray = $savedTableTypes[$id]; $id = $tableTypeAsArray['id']; $name = $tableTypeAsArray['name']; $lan...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function getType($id) {\n \n $this->loadTypes();\n \n foreach ($this->types as $type) {\n \n if ($type->getId() === $id) return $type;\n }\n \n return NULL;\n }", "protected function get_type_from_id($id)\n\t{\n\t\treturn $this->ty...
[ "0.75106096", "0.7327219", "0.72103107", "0.6890211", "0.68465996", "0.6846289", "0.6547877", "0.648456", "0.6480464", "0.6437138", "0.6399817", "0.63463837", "0.6336722", "0.62903553", "0.6282421", "0.6262594", "0.62446076", "0.620985", "0.6200039", "0.61796373", "0.6065611"...
0.7720888
0
Gets all TableType as array
Получает все TableType в виде массива
public static function getAllAsArray() { $savedTableTypes = ipGetOption(self::OPTION); $array = array(); foreach ($savedTableTypes as $savedTableType) { array_push($array, $savedTableType); } return $array; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFieldtypesFromTable()\n {\n $used_fieldtypes = ee()->db->select('name')->order_by('name')->get('fieldtypes');\n\n return array_column($used_fieldtypes->result_array(), 'name');\n }", "public static function getAllFieldsWithTypes(): array\n {\n $className = get_cal...
[ "0.77058834", "0.7433899", "0.7147784", "0.7145039", "0.7145039", "0.7125032", "0.7109778", "0.7087858", "0.70765835", "0.7067415", "0.7053062", "0.6954229", "0.6949877", "0.69330084", "0.6826442", "0.6773978", "0.67699516", "0.67699516", "0.67220426", "0.6717577", "0.6709629...
0.8235226
0
Gets the column option
Получает опцию столбца
public function getColumnOption() { return $this->_columnOption; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function columnOptions() {\n\t\treturn $this->columnNames;\n\t}", "public function getColumn() { return $this->column; }", "public function getCol()\n {\n return $this->col;\n }", "public function getColumn(): string\n {\n return $this->_column;\n }", "public fu...
[ "0.7636754", "0.739783", "0.72817713", "0.7269705", "0.72654325", "0.72456485", "0.7244181", "0.7244181", "0.7160969", "0.7021225", "0.69906497", "0.6934737", "0.68375427", "0.6815397", "0.679447", "0.67125654", "0.6687637", "0.66455877", "0.6604395", "0.6595849", "0.6549956"...
0.8929812
0
Resolves a new service for the given model.
Решает новый сервис для заданной модели.
public function resolveService($model) { return parent::resolveService($model); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract function resolveService();", "public function resolve()\n {\n if (!isset($this->model)) {\n throw new Exception('Unable to resolve service - model or model classname is not set.');\n }\n\n // If the model property is a string classname of a model, or if the r...
[ "0.69039714", "0.68657833", "0.6033256", "0.57936436", "0.5316076", "0.52972704", "0.5268993", "0.52398044", "0.5160056", "0.5088969", "0.5053547", "0.502932", "0.5019786", "0.49518603", "0.4941856", "0.49017918", "0.48994035", "0.48932478", "0.48880196", "0.4866832", "0.4856...
0.82937795
0
Test inactive status when there is single admin present.
Тестирование неактивного статуса при наличии одного администратора.
public function testAdminInactiveStatusWithSingleAdmin(FunctionalTester $I): void { /** * Logged in user. */ $admin = $I->loginAsAdmin(); /** * Change the status. */ $this->proceedToChangeStatus($I, $admin); /** * Current route s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testAdminInactiveStatusWhenMoreAdminsPresent(FunctionalTester $I): void\n {\n /**\n * Logged in user.\n */\n $I->loginAsAdmin();\n\n /**\n * Created one more admin so that status get changed.\n */\n $anotherAdmin = $I->have(Admin::class...
[ "0.754551", "0.7070818", "0.7006946", "0.6915998", "0.68572605", "0.678983", "0.67580277", "0.67565525", "0.67352396", "0.67244214", "0.67062205", "0.66878736", "0.6681118", "0.6670979", "0.6659999", "0.6659225", "0.66304135", "0.6613148", "0.661258", "0.6601176", "0.65946716...
0.7658518
0
Test inactive status when there are more admins present.
Тест неактивного статуса при наличии большего количества администраторов.
public function testAdminInactiveStatusWhenMoreAdminsPresent(FunctionalTester $I): void { /** * Logged in user. */ $I->loginAsAdmin(); /** * Created one more admin so that status get changed. */ $anotherAdmin = $I->have(Admin::class); /**...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testAdminInactiveStatusWithSingleAdmin(FunctionalTester $I): void\n {\n /**\n * Logged in user.\n */\n $admin = $I->loginAsAdmin();\n\n /**\n * Change the status.\n */\n $this->proceedToChangeStatus($I, $admin);\n\n /**\n ...
[ "0.6863647", "0.6637122", "0.6610062", "0.6542218", "0.6445347", "0.6371347", "0.63659835", "0.6355638", "0.6333277", "0.6319981", "0.63102615", "0.6303824", "0.627453", "0.62432444", "0.6238742", "0.62255114", "0.6207895", "0.6204221", "0.61829317", "0.6180497", "0.6173775",...
0.78938884
0
Provides connection for given stop.
Предоставляет соединение для заданной остановки.
public function getConnection($stopNumber);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract function getConnect();", "public function getStop($stopId);", "public function getConnection()\n {\n return $this->mc[self::LOCAL_MC];\n }", "public function get(): ConnectionInterface;", "public function get_connection()\n {\n }", "public function getConnection()\n\t{\n\t\tre...
[ "0.56271595", "0.5542259", "0.54873854", "0.54693866", "0.5420136", "0.5408355", "0.53212416", "0.5320704", "0.528877", "0.52782404", "0.52733475", "0.52728486", "0.52728486", "0.526507", "0.5254804", "0.5236893", "0.5229276", "0.5219481", "0.5206562", "0.52046275", "0.517419...
0.77532566
0
Get the sort key name
Получить имя ключа сортировки
public function getSortKeyName() { return $this->sortKey; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSortKey() {\n // results.\n if ($this->unique) {\n $prefix = 'A';\n } else {\n $prefix = 'B';\n }\n\n return $prefix.phutil_utf8_strtolower($this->getName());\n }", "public function getSortKey() {\n return $this->allBar->getSortKey();\n }", "function getSortKey(...
[ "0.8206142", "0.7483277", "0.7368126", "0.72747546", "0.7271819", "0.721986", "0.71841544", "0.7146666", "0.7088825", "0.7088825", "0.7062073", "0.7022944", "0.7022944", "0.7022944", "0.68585044", "0.6834921", "0.6817985", "0.6735678", "0.66915584", "0.6690749", "0.6676458", ...
0.86797994
0
Get a new query builder that doesn't have any global scopes.
Получите новый построитель запросов, который не имеет никаких глобальных ограничений.
public function newQueryWithoutScopes(): Builder { return $this->newModelQuery(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function newQueryWithoutScopes()\n {\n $builder = $this->newBuilder();\n\n // Once we have the query builders, we will set the model instances so the\n // builder can easily access any information it may need from the model\n // while it is constructing and executing various q...
[ "0.8795217", "0.8543926", "0.8006339", "0.79096043", "0.78016144", "0.76515245", "0.7631066", "0.7624457", "0.75837654", "0.75286955", "0.74769896", "0.74064153", "0.7380305", "0.73491096", "0.73157424", "0.7299957", "0.71916723", "0.71906954", "0.7180035", "0.7142572", "0.71...
0.856582
1
calculate the maximum route value
вычислить максимальное значение маршрута
function maxRouteVal($tri_graph) { $maxVal = 0; for($i = 0; $i < count($tri_graph);++$i) { $row = $tri_graph[$i]; for($j = 0; $j < count($row);++$j) { $currVal = $row[$j]->sendValue(); if($currVal > $maxVal) $maxVal = $currVal; } } return $maxVal; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getRouteDistanceLimit()\n {\n return $this->route_distance_limit;\n }", "public function getMax();", "protected function get_cost_route($route){\r\n $valor = 0;\r\n foreach ($route as $index => $city){\r\n if($index > 0){\r\n $valor += $thi...
[ "0.6294595", "0.6195342", "0.6154812", "0.6141669", "0.6039736", "0.5939455", "0.59179676", "0.5909401", "0.58686435", "0.58636826", "0.5849472", "0.581767", "0.5789073", "0.57845426", "0.5776645", "0.5776645", "0.57746357", "0.5770049", "0.57431316", "0.57408214", "0.5737634...
0.8221202
0
Get type of this box.
Получить тип этого ящика.
public function getType(): string { return self::$BOX_TYPE; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getBoxType()\n {\n return $this->get(self::_BOX_TYPE);\n }", "public function getType()\n {\n return $this->get(self::_TYPE);\n }", "public function getType()\n {\n return $this->get(self::_TYPE);\n }", "public function getType()\n {\n return $...
[ "0.858142", "0.78447074", "0.78447074", "0.78447074", "0.7844628", "0.78438526", "0.78438526", "0.78438526", "0.78438526", "0.78438526", "0.78438526", "0.78438526", "0.78438526", "0.78438526", "0.78438526", "0.7842846", "0.78116", "0.78116", "0.78100586", "0.77960575", "0.779...
0.8421781
1
Get default input ports for this box.
Получить входные порты по умолчанию для этого ящика.
public function getDefaultInputPorts(): array { self::init(); return self::$defaultInputPorts; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDefaultOutputPorts(): array\n {\n self::init();\n return self::$defaultOutputPorts;\n }", "public function getDefaultOutputPorts(): array\n {\n self::init();\n return self::$defaultOutputPorts;\n }", "protected function getDefaultPort()\n {\n ...
[ "0.75924945", "0.75924945", "0.6323287", "0.613309", "0.6043221", "0.60232925", "0.59844565", "0.59638757", "0.59638757", "0.59638757", "0.59638757", "0.5823332", "0.57766944", "0.5741398", "0.5734366", "0.5715268", "0.57088673", "0.56749153", "0.56464875", "0.5589411", "0.55...
0.84118474
1
Get default output ports for this box.
Получить выходные порты по умолчанию для этого блока.
public function getDefaultOutputPorts(): array { self::init(); return self::$defaultOutputPorts; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDefaultInputPorts(): array\n {\n self::init();\n return self::$defaultInputPorts;\n }", "public function getDefaultInputPorts(): array\n {\n self::init();\n return self::$defaultInputPorts;\n }", "public function getPorts()\n {\n return $this...
[ "0.7342243", "0.7342243", "0.6346949", "0.6149809", "0.6126292", "0.6120841", "0.59917814", "0.59917814", "0.59917814", "0.59917814", "0.597571", "0.58993393", "0.58749497", "0.5769901", "0.5693711", "0.56882685", "0.56848174", "0.5658556", "0.55399734", "0.5521865", "0.54919...
0.8415616
1
Get default name of this box.
Получить default имя этого ящика.
public function getDefaultName(): string { return self::$DEFAULT_NAME; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected static function default_name(): mixed\n\t{\n\t\treturn self::$query->default_name;\n\t}", "function get_name()\n {\n return $this->get_default_property(self :: PROPERTY_NAME);\n }", "function get_name()\r\n {\r\n return $this->get_default_property(self :: PROPERTY_NAME);\r\n ...
[ "0.74601734", "0.73229134", "0.73194414", "0.6981649", "0.6981649", "0.6938036", "0.6904179", "0.68459344", "0.6804738", "0.67755085", "0.6744741", "0.67001015", "0.66119903", "0.66018057", "0.6597491", "0.6543227", "0.6543227", "0.6543227", "0.6543227", "0.6491213", "0.64678...
0.7830887
1
Get a predefined guest group.
Получить предопределённую группу гостей.
public static function GetGuestGroup() { static $guest; if(!is_object($guest)) { $guest = new Data\Group('guest', 'Guest'); } return $guest; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getGroup()\n {\n return Factory::create('group', $this->_gid);\n }", "public function getGroup() {\n\t\t$ids = $this->getGroupIds();\n\t\treturn MessageGroups::getGroup( $ids[0] );\n\t}", "function get_group($id)\n\t{\n\t\treturn get_instance()->kbcore->groups->get($id);\n\t}", "public ...
[ "0.70966005", "0.666593", "0.6553434", "0.65308386", "0.6497446", "0.64883864", "0.6440266", "0.6429305", "0.6429305", "0.6429305", "0.64065075", "0.6403769", "0.640137", "0.6401266", "0.63684434", "0.63438445", "0.6324317", "0.6297461", "0.6297461", "0.6297461", "0.6297461",...
0.83609116
0
Generates the data path for a group.
Генерирует путь данных для группы.
public static function GetPath($group_name) { return System::GetDataPath() . "groups/$group_name/data.php"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function generateDataYmlDirectoryPath()\n {\n return self::DATA_CSV_PATH.$this->generateDataSubDirectoryPath();\n }", "function getFilename($id, $group)\n {\n if (isset($this->group_dirs[$group])) {\n return $this->group_dirs[$group] . $this->filename_prefix . $id;\n ...
[ "0.59197545", "0.58216393", "0.56528157", "0.5645853", "0.5568215", "0.5568215", "0.5552869", "0.5460039", "0.5458223", "0.54526633", "0.5379507", "0.5336447", "0.532782", "0.52699256", "0.524609", "0.5236351", "0.5217765", "0.5197283", "0.51830626", "0.51766974", "0.5175482"...
0.7580235
0
retrieves a listing of the given directory or the current working directory if no path has been specified. Returns a string which contains all the directory entries separated by new lines.
возвращает список заданной директории или текущей рабочей директории, если путь не был указан. Возвращает строку, содержащую все записи директории, разделенные новыми строками.
function dir_list($path="") { $s=""; if($this->pasv()) { if($path == '') { $this->sock_write("LIST"); } else { $this->sock_write("LIST $path"); } if($this->is_ok()) { while(true) { $line = fgets($this->data_sock); $s .= $line; if($line =='') break; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static function getDirectoryListing();", "public function listContents($directory = '', $recursive = false)\n {\n }", "public function listContents($directory = '', $recursive = false)\n {\n }", "function sd_sc_list_dir($atts) {\n\tglobal $sd_error_msg;\n\n\t$dir = sd_sc_get_path($atts);\n\tif (!...
[ "0.70939374", "0.6625818", "0.6625818", "0.661495", "0.6597163", "0.647934", "0.6323997", "0.62749016", "0.6273386", "0.62252563", "0.6185035", "0.6111865", "0.6080845", "0.6048426", "0.6034044", "0.60182846", "0.6006565", "0.6001035", "0.599847", "0.5995349", "0.59745", "0...
0.7345161
0
stores the file given in $localpath on the remote server as $remotePath
сохраняет файл, указанный в $localpath, на удалённом сервере как $remotePath
function stor($localPath,$remotePath) { log("<h3>uploading $localPath</h3>"); if($this->pasv()) { $this->sock_write("STOR $remotePath"); if($this->is_ok()) { $fp = fopen($localPath,"rb"); if($fp) { while(!feof($fp)) { $s = fread($fp,4096); fwrite($...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function put($localFile, $remoteFile, $url);", "function put($remotefile, $localfile, $mode = 1)\r\n {\r\n if ($this->_use_mod_ftp) {\r\n \t\tftp_put($this->_socket, $remotefile, $localfile, $mode);\r\n \t} else {\r\n \tif ($mode) {\r\n \t\t$type = \"I\";\r\n \t} else ...
[ "0.7364441", "0.7144072", "0.706321", "0.7050303", "0.6897472", "0.6828912", "0.6653249", "0.66260946", "0.65327495", "0.65132487", "0.64762366", "0.6444841", "0.6439745", "0.6352071", "0.629292", "0.62740403", "0.62718016", "0.6235605", "0.6214453", "0.6171865", "0.6112418",...
0.7789523
0
Truncates the string entered by the count entered. Returns &hellip ( ellipsis ) at the end of the string if count is exceeded.
Обрезает введённую строку по указанному количеству символов. Возвращает &hellip (точка с запятой) в конце строки, если количество символов превышено.
function trim_string_by( $count, $string ) { return ( absint( $count ) <= str_word_count( $string ) ) ? wp_trim_words( $string, absint( $count ), '&hellip;' ) : $string; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function truncate($text)\n{\n $max_char=500;\n // Text length is over the limit\n if (strlen($text)>$max_char){\n // Define maximum char number\n $text = substr($text, 0, $max_char);\n // Get position of the last space\n $position_space = strrpos($text, \" \");\n $text =...
[ "0.70066357", "0.6977688", "0.6945699", "0.6912", "0.68919134", "0.6884434", "0.6872693", "0.68547964", "0.6824126", "0.67859066", "0.67849714", "0.67799217", "0.6736354", "0.6718578", "0.67020756", "0.6659803", "0.6644922", "0.66441554", "0.66397905", "0.6637387", "0.6631055...
0.7121019
0