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
Install quote custom data
Установить данные кастомной котировки
public function installQuoteData() { $quoteInstaller = $this->quoteSetupFactory->create( [ 'resourceName' => 'quote_setup', 'setup' => $this->setup ] ); $quoteInstaller ->addAttribute( 'quote', ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function fastQuote_install() {\n require_once('fastQuote.settings.php');\n fastQuoteInstaller::install();\n\n rebuild_settings();\n}", "function install($data = '')\n {\n parent::install();\n }", "function install($data = '')\n {\n parent::install();\n }", "function install...
[ "0.69736654", "0.6714206", "0.6714206", "0.66782314", "0.66782314", "0.6571282", "0.6571282", "0.6571282", "0.6571282", "0.6571282", "0.65510887", "0.6327981", "0.6169283", "0.61365294", "0.6135494", "0.61118186", "0.6104212", "0.59939843", "0.5989338", "0.5975755", "0.593293...
0.84290344
0
Install sales custom data
Установить данные о продажах пользовательских данных
public function installSalesData() { $salesInstaller = $this->salesSetupFactory->create( [ 'resourceName' => 'sales_setup', 'setup' => $this->setup ] ); $salesInstaller ->addAttribute( 'order', ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function install($data='') {\r\n parent::install();\r\n }", "function install($data='') {\r\n parent::install();\r\n }", "function install($data = '')\n {\n parent::install();\n }", "function install($data = '')\n {\n parent::install();\n }", "function install($data='') {\n par...
[ "0.728193", "0.728193", "0.7153113", "0.7153113", "0.7073944", "0.7017336", "0.7017336", "0.7017336", "0.7017336", "0.7017336", "0.6849865", "0.6809988", "0.67987514", "0.67848814", "0.6744894", "0.6724681", "0.66995364", "0.66390264", "0.66146016", "0.65689033", "0.65605325"...
0.8170202
0
Get the description for an enum value.
Получить описание значения перечисления.
public static function getDescription($value): string { return static::getLocalizedDescription($value) ?? static::getKey($value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getStatusDescription($value)\n {\n $status = $this->getEveryStatus();\n\n if (isset($status[$value])) {\n return $status[$value];\n }\n\n return $status['D'];\n }", "public static function getDescription($value): string\n {\n switch ($value) ...
[ "0.729808", "0.6696256", "0.6622626", "0.66111773", "0.6537815", "0.6507612", "0.6460673", "0.643342", "0.63763815", "0.636937", "0.6343878", "0.62796587", "0.6253956", "0.6248732", "0.6213775", "0.61919093", "0.6179035", "0.6177627", "0.6158251", "0.6118068", "0.6096676", ...
0.70144653
1
Tests Transform_Unserialize_Serial>process() with a chain
Тестирование Transform_Unserialize_Serial>process() с цепочкой
public function testProcess_Chain() { $mock = $this->getMock('Q\Transform', array('process')); $mock->expects($this->once())->method('process')->with($this->equalTo('test'))->will($this->returnValue('a:2:{s:1:"a";a:1:{s:1:"c";s:3:"abc";}s:1:"d";s:1:"e";}')); $transform = new Transform_Unser...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testGetReverse_Chain() \n {\n $mock = $this->getMock('Q\\Transform', array('getReverse', 'process'));\n $mock->expects($this->once())->method('getReverse')->with($this->isInstanceOf('Q\\Transform_Serialize_Serial'))->will($this->returnValue('reverse of mock transformer'));\n ...
[ "0.6494883", "0.6243429", "0.5968294", "0.5685148", "0.55904967", "0.543727", "0.5375368", "0.5365713", "0.52476954", "0.5242949", "0.51979697", "0.5149354", "0.5097645", "0.5097645", "0.5096598", "0.50465333", "0.5031752", "0.49766967", "0.49701434", "0.4945104", "0.49326783...
0.820725
0
Tests Transform_Unserialize_Serial>getReverse() with a chain
Тестирование Transform_Unserialize_Serial>getReverse() с цепочкой
public function testGetReverse_Chain() { $mock = $this->getMock('Q\Transform', array('getReverse', 'process')); $mock->expects($this->once())->method('getReverse')->with($this->isInstanceOf('Q\Transform_Serialize_Serial'))->will($this->returnValue('reverse of mock transformer')); $...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testGetReverse_ChainDouble() \n {\n $mock = $this->getMock('Q\\Transform', array('getReverse', 'process'));\n $mock->expects($this->once())->method('getReverse')->with($this->isInstanceOf('Q\\Transform_Serialize_Serial'))->will($this->returnValue('reverse of mock transformer'));\n ...
[ "0.75660837", "0.66889006", "0.6677965", "0.6240784", "0.61688167", "0.61540484", "0.61508316", "0.61504894", "0.6074951", "0.59442", "0.59442", "0.59442", "0.59442", "0.591658", "0.59154224", "0.5853217", "0.58103627", "0.5676281", "0.5646193", "0.5595553", "0.5431423", "0...
0.7750612
0
Tests Transform_Unserialize_Serial>getReverse() with a chain
Тестирование Transform_Unserialize_Serial>getReverse() с цепочкой
public function testGetReverse_ChainDouble() { $mock = $this->getMock('Q\Transform', array('getReverse', 'process')); $mock->expects($this->once())->method('getReverse')->with($this->isInstanceOf('Q\Transform_Serialize_Serial'))->will($this->returnValue('reverse of mock transformer')); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testGetReverse_Chain() \n {\n $mock = $this->getMock('Q\\Transform', array('getReverse', 'process'));\n $mock->expects($this->once())->method('getReverse')->with($this->isInstanceOf('Q\\Transform_Serialize_Serial'))->will($this->returnValue('reverse of mock transformer'));\n ...
[ "0.77503055", "0.66885215", "0.6677177", "0.6240599", "0.6170473", "0.61553895", "0.61520016", "0.61476904", "0.607417", "0.5945706", "0.5945706", "0.5945706", "0.5945706", "0.59170383", "0.591687", "0.5853025", "0.5810367", "0.56759506", "0.56476384", "0.55959487", "0.543253...
0.75659686
1
/ Function: get factor from database Parameter: Atom1, Atom2, bond order, primary/secondary table Return: Factor
Функция: получение фактора из базы данных Параметр: Atom1, Atom2, порядок связи, основная/второстепенная таблица Возвращаемое значение: Фактор
function get_factor($Atom1, $Atom2, $BondOrder, $tb_name) { global $conn; global $PRIMARY_TB; // Check if all the parameters are valid if (!$Atom1) { die("Atom 1 is not specified."); } elseif (!$Atom2) { die("Atom 2 is not specified."); } elseif (!$BondOrder) { die("Bond order is not specified."); } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function process_factor_query($is_aromatic_ring) {\n\t\n\tglobal $PRIMARY_TB, $SECONDARY_TB, $l_0;\n\t\n\t$bonds = json_decode($_GET['json_query'], true);\n\t$sum = 0;\n\tforeach ($bonds as $bond) {\n\t\t// $bond has keys: Atom1, Atom2, BondOrder, Proximity\n\t\tif ($bond[\"Proximity\"] == 1) {\n\t\t\t$f = get_fac...
[ "0.58923936", "0.5406703", "0.52434677", "0.48543575", "0.4839819", "0.469212", "0.467898", "0.4612812", "0.45833796", "0.4533701", "0.4524233", "0.45230362", "0.4512122", "0.45047995", "0.44994777", "0.44635758", "0.4456885", "0.43951088", "0.43903002", "0.43697584", "0.4350...
0.80697685
0
/ For all of the associative arrays passed through $_GET if (Proximity == 1) get_factor($Atom1, $Atom2, $BondOrder, $primary_tb); get_factor($Atom1, $Atom2, $BondOrder, $secondary_tb); primary secondary is the number. else get_factor($Atom1, $Atom2, $BondOrder, $secondary_tb); Add everything together, and that is the a...
Для всех ассоциативных массивов, переданных через $_GET, если (Proximity == 1) вызвать get_factor($Atom1, $Atom2, $BondOrder, $primary_tb); get_factor($Atom1, $Atom2, $BondOrder, $secondary_tb); primary secondary — это число. иначе вызвать get_factor($Atom1, $Atom2, $BondOrder, $secondary_tb); Сложить всё вместе, и это...
function process_factor_query($is_aromatic_ring) { global $PRIMARY_TB, $SECONDARY_TB, $l_0; $bonds = json_decode($_GET['json_query'], true); $sum = 0; foreach ($bonds as $bond) { // $bond has keys: Atom1, Atom2, BondOrder, Proximity if ($bond["Proximity"] == 1) { $f = get_factor($bond["Atom1"], $bond["At...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_factor($Atom1, $Atom2, $BondOrder, $tb_name) {\n\t\n\tglobal $conn;\n\tglobal $PRIMARY_TB;\n\t\n\t// Check if all the parameters are valid\n\tif (!$Atom1) {\n\t\tdie(\"Atom 1 is not specified.\");\n\t} elseif (!$Atom2) {\n\t\tdie(\"Atom 2 is not specified.\");\n\t} elseif (!$BondOrder) {\n\t\tdie(\"Bo...
[ "0.61645085", "0.51042414", "0.51036465", "0.50581944", "0.49472237", "0.4887124", "0.48491582", "0.4835526", "0.48137143", "0.48050368", "0.47986183", "0.4618553", "0.46162587", "0.45589066", "0.45555937", "0.45544058", "0.4539949", "0.4525036", "0.4499143", "0.44935155", "0...
0.71615887
0
Parse the given SimpleXmlElement to a Store entity.
Парсить заданный SimpleXmlElement в сущность Store.
public function parse(SimpleXMLElement $payload) { $store = (new Entities\Store()) ->setIdentifiers(new Collection([ 'ap21_id' => (integer) $payload->StoreId, 'ap21_code' => (string) $payload->Code, 'store_number' => (integer) $payload->StoreNo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setStoreId($store);", "public function parseEntity(XTemplate $xtpl, $oProduct) {\n\n }", "public function parse($model)\n\t{\n\t\t$parser = Mage::getModel($this->getParserModel(), $model);\n\t\tif ($this->getStoreId()) {\n\t\t\t$parser->setMageStoreId($this->getStoreId());\n\t\t}\n\t\t$parse...
[ "0.46587682", "0.46546042", "0.46254456", "0.46002588", "0.45970342", "0.4570146", "0.4570146", "0.45219913", "0.45195553", "0.4502184", "0.44990957", "0.44990957", "0.4487101", "0.44703007", "0.4409867", "0.43909898", "0.4382788", "0.43656608", "0.43631285", "0.43587038", "0...
0.72746474
0
Returns the wordpress database.
Возвращает базу данных WordPress.
public function getWordpressDatabase(): wpdb { return $this->wpDatabase; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getWPDB()\n\t{\n\t\tglobal $wpdb;\n\t\treturn $wpdb;\n\t}", "function getDatabase();", "private function getStagingDb()\n {\n return new \\wpdb($this->clone->databaseUser, $this->clone->databasePassword, $this->clone->databaseDatabase, $this->clone->databaseServer);\n }", "pub...
[ "0.7859304", "0.70852995", "0.7077932", "0.6968717", "0.6891741", "0.68723726", "0.68605936", "0.68446153", "0.68446153", "0.68446153", "0.68446153", "0.68446153", "0.68446153", "0.68446153", "0.68446153", "0.68001145", "0.67180413", "0.6708635", "0.6708635", "0.6686446", "0....
0.8324789
0
Returns the user group table name.
Возвращает имя таблицы пользовательской группы.
public function getUserGroupTable(): string { return $this->wpDatabase->prefix . self::USER_GROUP_TABLE_NAME; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getUsergroupsTable() : string\n\t{\n\t\treturn static::$usergroups_table;\n\t}", "protected function getRuleGroupTableName()\n {\n return $this->getGatewayCollection()\n ->getGateway('pt_rule_group')\n ->getMetaData()\n ...
[ "0.8697231", "0.7652109", "0.76379627", "0.752937", "0.74989116", "0.73160106", "0.7293503", "0.7084742", "0.70235115", "0.6982417", "0.6980866", "0.691531", "0.66813916", "0.66658306", "0.66650236", "0.6625764", "0.6617906", "0.6614103", "0.6558976", "0.65094286", "0.6504236...
0.8728481
0
Returns the current blog id.
Возвращает текущий идентификатор блога.
public function getCurrentBlogId() { return $this->wpDatabase->blogid; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_current_blog_id()\n {\n }", "function config_get_curr_blog_id () {\n\n\t\t global $current_blog;\n\n\t\t if ( isset( $current_blog ) ) {\n\n\t\t\t return $current_blog->blog_id;\n\t\t }\n\t\t else {\n\n\t\t\t return 1;\n\t\t }\n\t}", "public static function getSiteId()\n {\n return...
[ "0.8948581", "0.8301314", "0.8203324", "0.79924566", "0.7289102", "0.7280569", "0.7257452", "0.7106511", "0.7058306", "0.6932647", "0.68679166", "0.6647498", "0.66309077", "0.6602271", "0.659435", "0.6576548", "0.65586424", "0.6540486", "0.6509589", "0.64931023", "0.64872694"...
0.9044852
0
Returns the blogs table name.
Возвращает имя таблицы blogs.
public function getBlogsTable(): string { return $this->wpDatabase->blogs; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function table_name(): string {\n\t\tglobal $wpdb;\n\t\treturn $wpdb->prefix . 'sb_' . static::TABLE;\n\t}", "function get_table_name()\n {\n global $table_prefix;\n return $table_prefix . 'posts';\n }", "function get_table_name() {\n\n\t\tglobal $wpdb;\n\n\t\treturn $wpdb->pr...
[ "0.77284396", "0.75868684", "0.7393831", "0.73450106", "0.732149", "0.73079574", "0.73074603", "0.72429895", "0.7208636", "0.7201507", "0.72009945", "0.71834207", "0.71639514", "0.7162835", "0.71408516", "0.7114206", "0.71066123", "0.70922893", "0.70774376", "0.7065394", "0.7...
0.8447861
0
Returns the posts table name.
Возвращает имя таблицы posts.
public function getPostsTable(): string { return $this->wpDatabase->posts; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_table_name()\n {\n global $table_prefix;\n return $table_prefix . 'posts';\n }", "function get_table_name() {\n\n\t\tglobal $wpdb;\n\n\t\treturn $wpdb->prefix . $this->table_name;\n\t}", "function get_table_name () {\r\n\t\treturn $this->wpdb->prefix . $this->_table_name;\r\n\t...
[ "0.8391971", "0.76689917", "0.75244534", "0.7472105", "0.73997366", "0.73837143", "0.73707664", "0.736646", "0.7357786", "0.73309463", "0.72773397", "0.7262333", "0.7258643", "0.7247659", "0.72397393", "0.72073734", "0.7192338", "0.71497434", "0.71406394", "0.7041003", "0.701...
0.8467165
0
Returns the term_relationships table name.
Возвращает имя таблицы term_relationships.
public function getTermRelationshipsTable(): string { return $this->wpDatabase->term_relationships; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTermTaxonomyTable(): string\n {\n return $this->wpDatabase->term_taxonomy;\n }", "public function getRelatedTableName()\n\t{\n\t\tif ($this->related) {\n\t\t\tif (\\App\\Config::performance('SEARCH_REFERENCE_BY_AJAX')) {\n\t\t\t\treturn [$this->fieldModel->getTableName() . $this->...
[ "0.77853", "0.70976126", "0.7044314", "0.69772583", "0.6680528", "0.6655438", "0.6631901", "0.6583348", "0.6569672", "0.6517246", "0.6428351", "0.6422322", "0.6401839", "0.6369125", "0.6318498", "0.6302701", "0.63002574", "0.6297165", "0.62906045", "0.6226295", "0.62039226", ...
0.8608707
0
Returns the term_taxonomy table name.
Возвращает имя таблицы term_taxonomy.
public function getTermTaxonomyTable(): string { return $this->wpDatabase->term_taxonomy; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTermRelationshipsTable(): string\n {\n return $this->wpDatabase->term_relationships;\n }", "function get_table_name() {\n\n\t\tglobal $wpdb;\n\n\t\treturn $wpdb->prefix . $this->table_name;\n\t}", "function get_table_name () {\r\n\t\treturn $this->wpdb->prefix . $this->_table_na...
[ "0.7485152", "0.73360676", "0.72402406", "0.7171547", "0.70886636", "0.70872533", "0.70712566", "0.7019449", "0.69105506", "0.69039214", "0.68900436", "0.6882208", "0.6785168", "0.67687535", "0.6744322", "0.671576", "0.6705866", "0.66886663", "0.6676103", "0.66744536", "0.665...
0.8746074
0
Returns the capabilities table name.
Возвращает имя таблицы сCapabilities.
public function getCapabilitiesTable(): string { return $this->wpDatabase->prefix . 'capabilities'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function table () : string {\n return $this->guessName();\n }", "public function get_table_name(){\n return $this->table_name();\n }", "public function table_name ()\n {\n return $this->app->table_names->entries;\n }", "public static function get_table_name()\n {\n ...
[ "0.6169111", "0.6114315", "0.60538644", "0.60117435", "0.60007954", "0.5954046", "0.59467447", "0.588956", "0.5870642", "0.58676094", "0.58490413", "0.58490413", "0.5840889", "0.58398116", "0.5820934", "0.5809534", "0.5802723", "0.57901794", "0.57836616", "0.5760849", "0.5745...
0.8647794
0
Registers student in database and returns it's cookie in &$cookie variable.
Зарегистрировать студента в базе данных и вернуть его cookie в переменную &$cookie.
public function register_student(Student $student): string { $cookie = SecurityUtil::generate_token(); $stmt = $this->db->prepare('INSERT INTO students(forename, surname, email, group_id, exam_results, birth_year, is_foreign, gender, cookie) VALUES (?,?,?,?,?,?,?,?,?)'); $stmt->execute(array(st...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_student_with_cookie(string $cookie) {\n $query = $this->db->prepare('SELECT * FROM students WHERE cookie=?');\n $query->execute(array($cookie));\n if (($row = $query->fetch(\\PDO::FETCH_NUM))) {\n $query->closeCursor();\n return StudentsTableGateway::c...
[ "0.6709638", "0.6058455", "0.57694584", "0.5768314", "0.56677556", "0.5641499", "0.56099653", "0.5607244", "0.5606758", "0.55897784", "0.55764514", "0.55637705", "0.5539231", "0.552666", "0.5525856", "0.54604083", "0.54546404", "0.5445741", "0.54391295", "0.5424575", "0.53910...
0.73264164
0
Updates student with cookie $cookie with data from $student.
Обновляет студента с куки $cookie данными из $student.
public function update_student(string $cookie, Student $student) { $stmt = $this->db->prepare('UPDATE students SET forename=?, surname=?, email=?, group_id=?, exam_results=?, birth_year=?, is_foreign=?, gender=? WHERE cookie=?'); $stmt->execute(array(strval($student->forename), ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function update(Request $request, Student $student)\n {\n $student->frist_name=$request->frist_name;\n $student->last_name=$request->last_name;\n $student->date=$request->date;\n $student->mobile=$request->mobile;\n $student->status=$request->status;\n $student...
[ "0.5966551", "0.57385606", "0.570764", "0.5673814", "0.5631362", "0.55689603", "0.555878", "0.55534416", "0.55418015", "0.55287653", "0.5524608", "0.55244565", "0.5510976", "0.55019224", "0.5476816", "0.5471941", "0.5435862", "0.54301465", "0.54301465", "0.54301465", "0.54301...
0.76887363
0
Returns true if student with such email is registered.
Возвращает true, если студент с таким email зарегистрирован.
public function is_student_with_email_registered(string $email): bool { $query = $this->db->prepare("SELECT COUNT(email) FROM students WHERE email=? LIMIT 1"); $query->execute(array($email)); $result = $query->fetch(\PDO::FETCH_NUM); $is_registered = intval($result[0]) != 0; $que...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function _emailIsRegistered($email_address) {\r\n\t\t$model = Mage::getModel('customer/customer');\r\n $model->setWebsiteId(Mage::app()->getStore()->getWebsiteId())->loadByEmail($email_address);\r\n\t\tif ($model->getId()) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn false;\r\n\t\t}\r\...
[ "0.76334846", "0.7613865", "0.75923437", "0.7552959", "0.7488753", "0.737985", "0.73501045", "0.7347746", "0.7314342", "0.72081333", "0.72076625", "0.72055066", "0.7196411", "0.7185854", "0.7172241", "0.7167042", "0.71586055", "0.7145895", "0.71443695", "0.7119543", "0.711170...
0.8252167
0
Returns student that has specified cookie associated with it or null if student with such cookie does not exist.
Возвращает студента, связанного с указанным cookie, или null, если студент с таким cookie не существует.
public function get_student_with_cookie(string $cookie) { $query = $this->db->prepare('SELECT * FROM students WHERE cookie=?'); $query->execute(array($cookie)); if (($row = $query->fetch(\PDO::FETCH_NUM))) { $query->closeCursor(); return StudentsTableGateway::create_stude...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get($cookieName);", "public function getStudentById($id) {\n return CaStudent::find($id);\n }", "protected function getCookie($cookieName): ?\\Symfony\\Component\\HttpFoundation\\Cookie\n {\n foreach ($this->response->headers->getCookies() as $cookie) {\n if ($coo...
[ "0.547046", "0.5353633", "0.5267596", "0.5195249", "0.5139253", "0.51037514", "0.5069651", "0.5068924", "0.50631714", "0.50557184", "0.50419325", "0.5025451", "0.5008431", "0.500584", "0.5004192", "0.5001277", "0.4968902", "0.4951131", "0.49074987", "0.49074197", "0.49029255"...
0.832616
0
Searches all students by keyword, ordered by field and has page and limit. Optional $total_students_count reference can be set to rethieve number of found students.
Ищет всех студентов по ключевому слову, отсортированных по полю, и имеет страницу и ограничение. Опционально может быть задано ссылка $total_students_count для получения количества найденных студентов.
public function find_students( string $keyword, string $order_by = 'forename', $order_dir = self::ORDER_ASC, $page = 0, $limit = 50, &$total_students_count = null ) { $order_by = htmlentities($order_by); $order_dir = $order_dir == self::ORDER_ASC ? 'AS...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function searchStudent($search_text)\n {\n $studentModel = new StudentModel();\n return $studentModel->searchStudent($search_text);\n }", "public function getStudents(SearchData $data)\n\t{\n\t\t$text = $data->getSearchText(); $field = $data->getSearchField();\n\t\t$sortBy = $dat...
[ "0.6035083", "0.58750355", "0.57831717", "0.5546936", "0.5355939", "0.53487027", "0.5302857", "0.5272335", "0.5251378", "0.5246081", "0.5229187", "0.52196443", "0.5211386", "0.51994693", "0.51252383", "0.51155794", "0.5108214", "0.50786155", "0.505331", "0.50347716", "0.49977...
0.7679351
0
Get the list of players hidden from the given application. This method is only available to user accounts for your developer console. (applications.listHidden)
Получите список игроков, скрытых от указанного приложения. Этот метод доступен только для учетных записей пользователей в вашем консоли разработчика. (applications.listHidden)
public function listHidden($applicationId, $optParams = array()) { $params = array('applicationId' => $applicationId); $params = array_merge($params, $optParams); return $this->call('listHidden', array($params), 'Google\Service\GamesManagement\HiddenPlayerList'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static function listHiddenExhibit(){\n\t\t$res = requete_sql(\"SELECT id FROM exhibit WHERE visible = FALSE ORDER BY creation_date ASC\");\n\t\t$res = $res->fetchAll(PDO::FETCH_ASSOC);\n\t\t$list = array();\n\t\tforeach ($res as $exhibit) {\n\t\t\t$exhibit = new Exhibit($exhibit['id']);\n\t\t\tarray_push($list, $e...
[ "0.6301318", "0.622639", "0.5670769", "0.5609927", "0.53892356", "0.5331992", "0.5331992", "0.5303199", "0.5295577", "0.5260307", "0.52600515", "0.5214672", "0.5212481", "0.52022666", "0.51759416", "0.51689917", "0.5164226", "0.5107169", "0.5101624", "0.5082389", "0.5082389",...
0.85996217
0
Get the value of lname
Получить значение lname
public function getLname() { return $this->lname; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_lName() {\n return $this->lName;\n }", "function getLname() {\n return $this->lname;\n }", "public function getUser_lname()\n {\n return $this->user_lname;\n }", "function getRHUL_LastName() {\n return getRHUL_LDAP_FieldValue(\"last_name\");\n}", "public...
[ "0.7913818", "0.7850836", "0.7211258", "0.6657328", "0.65321", "0.65043265", "0.6403536", "0.6360928", "0.6269534", "0.6268541", "0.62588906", "0.62476116", "0.6121237", "0.6091806", "0.6089751", "0.60895306", "0.60679746", "0.60576785", "0.60477626", "0.6040168", "0.6040168"...
0.80444074
0
Get the value of doi
Получить значение doi
public function getDoi() { return $this->doi; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function _getBookDOI()\n {\n return $this->mBook['doi'];\n }", "public function getDod();", "public function getDateI(){\n return $this->dateI;\n }", "public function getD() {}", "public function getDni() {\r\n return $this->dni;\r\n }", "public functi...
[ "0.67642194", "0.66320604", "0.6440463", "0.6343033", "0.63270223", "0.6298013", "0.6297631", "0.62934816", "0.62696093", "0.6246562", "0.62402904", "0.62035906", "0.6183823", "0.61810625", "0.617435", "0.60745245", "0.60634387", "0.604051", "0.6009992", "0.599249", "0.595574...
0.7826824
0
Get the value of facility
Получить значение объекта facility
public function getFacility() { return $this->facility; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFacility();", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}", ...
[ "0.7492259", "0.630601", "0.630601", "0.630601", "0.630601", "0.630601", "0.630601", "0.630601", "0.630601", "0.630601", "0.630601", "0.630601", "0.630601", "0.630601", "0.630601", "0.6304625", "0.6304625", "0.6304625", "0.6304625", "0.6304625", "0.62992364", "0.62992364", ...
0.77125245
1
Get the value of mname
Получить значение mname
public function getMname() { return $this->mname; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function get_name()\n\t{\n\t\treturn $this->m_name;\n\t}", "private function get_name()\n\t{\n\t\treturn $this->m_name;\n\t}", "public function getName(){\n return $this->m_name;\n }", "public function getname(){\n \t//return $this->msg;\n \treturn $this->phone;\n }", ...
[ "0.7597905", "0.7597905", "0.72722447", "0.71127045", "0.6980993", "0.6882744", "0.6882744", "0.6879845", "0.6814856", "0.67908955", "0.6788789", "0.67657447", "0.67657447", "0.67657447", "0.6754371", "0.674864", "0.67078817", "0.6699472", "0.66981417", "0.66917473", "0.66784...
0.79557544
0
Get the value of registration_no
Получить значение registration_no
public function getRegistration_no() { return $this->registration_no; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getRegistrationNo() :string\n {\n return $this->registrationNo;\n }", "public function getRegistrationNumber() {\n\t\treturn self::$_registrationNumber;\n\t}", "function getRegistrationID()\n { \n return $this->getValueByFieldName('registration_id');\n }", "public ...
[ "0.8395688", "0.784082", "0.7824128", "0.7662472", "0.7537308", "0.65893686", "0.6525186", "0.6495188", "0.63346237", "0.63072807", "0.6274422", "0.62463826", "0.6242624", "0.6202847", "0.62003464", "0.61889696", "0.61779964", "0.60931057", "0.6083957", "0.6040344", "0.602573...
0.87550956
0
Return the network that the address sits in
Верните сеть, в которой находится адрес
function network(){ return (long2ip((ip2long($this->address)) & (ip2long($this->netmask())))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getNetwork() {\n return $this->getValue('network');\n }", "public function getNetwork()\n {\n return $this->network;\n }", "public function getNetwork()\n {\n return $this->network;\n }", "public function getNetworkAddress()\n {\n return $this->_n...
[ "0.7977561", "0.7733832", "0.7733832", "0.765445", "0.7567131", "0.74935967", "0.717745", "0.717745", "0.6902588", "0.6861764", "0.68512464", "0.6730181", "0.6660419", "0.66421014", "0.659016", "0.6568117", "0.6542858", "0.653752", "0.65373695", "0.6483959", "0.64754814", "...
0.8100448
0
Return the broadcast that the address sits in
Верните широковещательную рассылку, в которой находится адрес
function broadcast(){ return (long2ip(ip2long($this->network()) | (~(ip2long($this->netmask()))))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getBroadcast()\n {\n return new Address(self::LONG_BROADCAST);\n }", "public function getBroadcastAddress()\n\t{\n\t\treturn $this->last_ip;\n\t}", "public function getBroadcast( $full = false )\n\t{\n\t\tif( !$this->valid ) { return null; }\n\t\tif( !$full ) \n\t\t{\n\t\t\t...
[ "0.8530555", "0.7783517", "0.73421144", "0.6952528", "0.6876339", "0.67278516", "0.6628287", "0.63725954", "0.6313243", "0.631144", "0.6306961", "0.6157539", "0.61327916", "0.6109643", "0.61061317", "0.6049008", "0.60018235", "0.60018235", "0.5975159", "0.5895933", "0.5850361...
0.806475
1
Return the inverse mask of the netmask
Верните обратную маску подсети
function inverse(){ return (long2ip(~(ip2long("255.255.255.255") << (32-$this->netbits)))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getNetworkMask()\n {\n return $this->_networkMask;\n }", "public static function getInverse()\n {\n return static::$inverse;\n }", "public function invert();", "public function getMask()\n {\n return $this->mask;\n }", "public function getMask()\n {...
[ "0.6481294", "0.6447863", "0.63235265", "0.6158406", "0.6158406", "0.6158406", "0.609541", "0.5848408", "0.57776564", "0.5749856", "0.5649876", "0.56173724", "0.55995834", "0.5596441", "0.55600125", "0.5549641", "0.5507285", "0.5492938", "0.54663867", "0.5409502", "0.53976536...
0.79440266
0
/ ocPortal Copyright (c) ocProducts, 20042012 See text/EN/licence.txt for full licencing information. NOTE TO PROGRAMMERS: Do not edit this file. If you need to make changes, save your changed file to the appropriate _custom folder If you ignore this advice, then your website upgrades (e.g. for bug fixes) will likely k...
/ ocPortal Авторские права (c) ocProducts, 20042012 См. text/EN/licence.txt для полной информации о лицензировании. ПРИМЕЧАНИЕ ДЛЯ ПРОГРАММИСТОВ: Не редактируйте этот файл. Если вам нужно внести изменения, сохраните измененный файл в соответствующую папку _custom Если вы проигнорируете это предупреждение, то ваши обнов...
function fake_levenshtein($a,$b) { // Some stripping, for performance, and because white space doesn't matter so much in HTML anyway $a=preg_replace('#\s#','',$a); $b=preg_replace('#\s#','',$b); $a_len=strlen($a); $b_len=strlen($b); if (($a_len<255) && ($b_len<255)) { return levenshtein($a,$b); } $percent=0...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function levenshtein(\n string $str1,\n string $str2,\n int $insertionCost = 1,\n int $replacementCost = 1,\n int $deletionCost = 1\n ): int {\n $result = ASCII::to_ascii_remap($str1, $str2);\n\n return \\levenshtein($result[0], $result[1], $inserti...
[ "0.6785128", "0.6781519", "0.65867275", "0.65479004", "0.62977195", "0.6205906", "0.61821884", "0.6146887", "0.6087803", "0.599907", "0.59939563", "0.59591377", "0.5924997", "0.5919254", "0.5912637", "0.5811615", "0.58082855", "0.576025", "0.5753487", "0.57044023", "0.5699912...
0.7875869
0
Check if the token for the given platform should be updated.
Проверьте, нужно ли обновить токен для заданной платформы.
public function tokenShouldBeUpdated($platform) { $column = "{$platform}_token_expires_at"; if (is_null($this->{$column})) return false; return abs($this->{$column}->diffInDays(Carbon::now())) < 5; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function _checkToken(KCommandContext $context)\n {\n //Check the token\n if($context->caller->isDispatched())\n { \n $method = KRequest::method();\n \n //Only check the token for PUT, DELETE and POST requests (AND if the view is not 'ipn')\n ...
[ "0.6649083", "0.6447405", "0.64136004", "0.6374985", "0.6330699", "0.6250541", "0.6232401", "0.62169236", "0.60993737", "0.60864365", "0.60815614", "0.6073139", "0.60583574", "0.60432965", "0.6028193", "0.6021344", "0.6001476", "0.59973156", "0.5965654", "0.59267867", "0.5912...
0.777244
0
Update the token for the given platform.
Обновите токен для заданной платформы.
public function updateToken($platform, $token, $expiresAt) { $this->update([ "{$platform}_token" => $token, "{$platform}_token_expires_at" => $expiresAt, ]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function update(Token $token): void;", "private function token_update(string $token)\n {\n $this->token_created = time();\n $this->token_expires = $this->token_created + 86399;\n $this->token = $token;\n $this->headers['Authorization'] = \" Bearer {$token}\";\n\n if (...
[ "0.695692", "0.6497835", "0.6494313", "0.6305641", "0.59625626", "0.58398116", "0.5798282", "0.577874", "0.5765891", "0.5718073", "0.55874026", "0.554934", "0.5528818", "0.55178976", "0.5502151", "0.5467011", "0.5462225", "0.5452806", "0.5438698", "0.5436424", "0.5375439", ...
0.75539255
0
Returns the content type based on the format. The format must exists on the map.
Возвращает тип содержимого на основе формата. Формат должен существовать в карте.
public function getContentTypeByFormat(string $format): string;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getContentType(string $format = Header::FORMAT_RAW)\n {\n $value = $this->header_fields['Content-Type'] ?? null;\n if ($format === Header::FORMAT_RAW || empty($value))\n return $value;\n\n $type = $value['type'];\n $keywords = $value['parameters'];\n\n ...
[ "0.7052816", "0.6576673", "0.65522236", "0.6496637", "0.6467648", "0.64384794", "0.6351507", "0.62789536", "0.62630117", "0.62327254", "0.62106085", "0.61709976", "0.61629397", "0.61046547", "0.6102573", "0.60904175", "0.60904175", "0.60904175", "0.60904175", "0.60904175", "0...
0.8024541
0
Get state property name in database
Получить имя свойства состояния в базе данных
public function getStatePropertyName();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getStatePropertyName()\n {\n // TODO: Implement getStatePropertyName() method.\n }", "function getName() \n {\n return $this->getValueByFieldName( 'statevar_name' );\n }", "public function getStateName() {\n return $this->getValueOrDefault('StateName');\n }", ...
[ "0.74585956", "0.7376751", "0.73566014", "0.70646137", "0.7060109", "0.70086235", "0.69524527", "0.68009424", "0.6537173", "0.64801645", "0.635834", "0.6296718", "0.62672263", "0.62672263", "0.624579", "0.6240301", "0.62165886", "0.61909497", "0.618941", "0.6187186", "0.61827...
0.8029509
0
Method to set the value of field nome_original
Метод установки значения поля nome_original
public function setNomeOriginal($nome_original) { $this->nome_original = $nome_original; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getNomeOriginal()\n {\n return $this->nome_original;\n }", "public function setNome($valor){\n\t\t\t$this->nome = $valor;\n\t\t}", "public function setOriginal($original) {\n $this->original = $original;\n }", "public function setNome(string $nome)\n {\n $this->nome = ...
[ "0.70677775", "0.682121", "0.6700084", "0.66432124", "0.6596507", "0.6540798", "0.64683306", "0.64674664", "0.6414192", "0.6398249", "0.63628215", "0.6355459", "0.6327835", "0.62343425", "0.62245715", "0.6217916", "0.62158847", "0.6193311", "0.61726695", "0.61005515", "0.6063...
0.7242172
0
Returns the value of field cd_upload
Возвращает значение поля cd_upload
public function getCdUpload() { return $this->cd_upload; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getUploadField()\n {\n return $this->component->getUploadField($this->gridField);\n }", "public function getUploadField()\n {\n return $this->component->getUploadField($this->gridField);\n }", "public function getUpload()\n {\n return $this->upload;\n }", ...
[ "0.68408227", "0.68408227", "0.66643214", "0.66268486", "0.6564458", "0.6535333", "0.6522831", "0.63106287", "0.6280272", "0.6131156", "0.60866815", "0.60702777", "0.6067642", "0.60273373", "0.5986972", "0.5936652", "0.5916832", "0.5899086", "0.58965564", "0.5895438", "0.5858...
0.8222352
0
Returns the value of field nome_original
Возвращает значение поля nome_original
public function getNomeOriginal() { return $this->nome_original; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getOriginalName();", "public function getOriginalName(): string\n {\n\t\treturn $this->originalName;\n\t}", "public function getOriginalName(): string\n {\n return $this->originalName;\n }", "public function getOrigName()\n\t{\n\t\treturn $this->orig_name;\n\t}", "public fun...
[ "0.73793334", "0.7119979", "0.7117137", "0.6848476", "0.6753146", "0.6499393", "0.6499393", "0.6499393", "0.6494902", "0.64807713", "0.64557254", "0.6444984", "0.64137906", "0.6411266", "0.6394351", "0.6394351", "0.63934386", "0.6386252", "0.6360294", "0.63450533", "0.6331429...
0.8355088
0
Returns the value of field nome_servidor
Возвращает значение поля nome_servidor
public function getNomeServidor() { return $this->nome_servidor; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCodServico()\n {\n return $this->cod_servico;\n }", "public function getNomeCliente(){/*Retorna o nome_cliente*/\n\t\t\treturn $this-> nome_cliente;\n\t\t}", "public function getNomeCliente()\n {\n return $this->nomeCliente;\n }", "public function ...
[ "0.69079536", "0.6736135", "0.64302427", "0.6347406", "0.6347406", "0.6347406", "0.6346834", "0.63139397", "0.630358", "0.6301365", "0.62405103", "0.62099123", "0.62091714", "0.62060136", "0.61876327", "0.61823", "0.6175906", "0.6166591", "0.61536473", "0.6127688", "0.6127506...
0.7344503
0
Returns the value of field criacao
Возвращает значение поля criacao
public function getCriacao() { return $this->criacao; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCriado()\n {\n return $this->criado;\n }", "public function getCriado()\n {\n return $this->criado;\n }", "public function getDataCriacao()\n {\n return $this->data_criacao;\n }", "public function getCriadoEm()\n {\n return $this->criadoEm;\...
[ "0.71624106", "0.71624106", "0.71553564", "0.67221636", "0.6653139", "0.66279083", "0.65327036", "0.63310283", "0.62943107", "0.62517685", "0.62043154", "0.61702466", "0.6147272", "0.6122027", "0.61099327", "0.6057166", "0.6003059", "0.5984513", "0.5976216", "0.5925433", "0.5...
0.7461751
0
get all leave type
получить все типы отпусков
public function get_all_leave_type(){ $this->db->select('*'); $this->db->from('leave_type'); $query=$this->db->get(); return $query->result(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getLeaveTypes()\n {\n $leaveTypes = [];\n $leaves = DB::table('dbo.LEAVE_TYPE')->lists('leave_type');\n $userGender = Employee::find(Auth::user()->Emp_id)->Emp_Gender;\n \n foreach ($leaves as $leaveType )\n {\n array_push($leaveType...
[ "0.75516534", "0.71069634", "0.66632444", "0.6558683", "0.62703604", "0.6269362", "0.6228708", "0.61700433", "0.5946417", "0.590239", "0.58780676", "0.57982624", "0.5764007", "0.57404125", "0.570456", "0.566397", "0.5626214", "0.55968493", "0.556556", "0.55309695", "0.5529872...
0.801312
0
get leave type by leave type id
получить тип отпуска по идентификатору типа отпуска
public function get_leave_type_by_id($id){ $this->db->where('leave_type_id',$id); $query = $this->db->get('leave_type'); return $query->row(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function leaveType()\n {\n return $this->belongsTo(LeaveType::class, 'leave_type_id');\n }", "public function get_leave_type(){\n \t$this->db->select('*');\n \t$this->db->from('leave_type');\n \t$query=$this->db->get();\n \t$data=$query->result();\n $list = array('' => 'Sel...
[ "0.6812724", "0.62546927", "0.6137966", "0.6058944", "0.60555565", "0.60231405", "0.5924666", "0.5854124", "0.58376056", "0.5781426", "0.57241917", "0.56991005", "0.5622433", "0.55524373", "0.5545866", "0.5536764", "0.55139154", "0.549001", "0.54735565", "0.54720604", "0.5447...
0.8029744
0
delete leave type by id
удалить тип оставки по идентификатору
public function delete_leave_type($id = null) { $this->db->where('leave_type_id',$id) ->delete('leave_type'); if ($this->db->affected_rows()) { return true; } else { return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function delete_type($id)\n\t\t{\n\t\t\n\t\t$this->db->where('revenue_id',$id);\n\t\t\n\t\t$this->db->delete($this->table_name);\n\t\t\n\t\t}", "public function deleteByIdType($id, $type);", "public function delete($id) {\n // Delete the type\n $this->getDb()->delete('eventtype', array('num_E...
[ "0.74041224", "0.72852546", "0.72507405", "0.70398813", "0.6975743", "0.66140383", "0.65837365", "0.6570395", "0.6519953", "0.64907527", "0.6439085", "0.64206415", "0.64180046", "0.63894266", "0.6370687", "0.6369166", "0.629657", "0.6261063", "0.6260483", "0.62580913", "0.625...
0.7647829
0
getPalette method returns a value between 15 depending on which paletter the user wants to plot the chart with. Here, we just read from Session variable and show it In your application, you could read this configuration from your User Configuration Manager, database, or global application settings
Метод getPalette возвращает значение от 15 в зависимости от того, какой палитры пользователь хочет использовать для построения графика. Здесь мы просто считываем значение из переменной Session и отображаем его. В вашем приложении вы можете считать эту конфигурацию из вашего менеджера пользовательских настроек, базы дан...
function getPalette() { //Return return (((!isset($_SESSION['palette'])) || ($_SESSION['palette']=="")) ? "2" : $_SESSION['palette']); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getColorPalette() {\n\t\treturn 'XLSConfig::$systemPalette';\n\t}", "public function tcb_get_palettes_from_config() {\n\t\treturn ! empty( $this->skin_palettes_config['palette'] ) ? $this->skin_palettes_config['palette'] : [];\n\t}", "public function getPaletteColours() {\n\t\treturn array(\n\t...
[ "0.6487676", "0.5982131", "0.5815626", "0.5804494", "0.5717699", "0.5594531", "0.54597574", "0.53283125", "0.5303035", "0.5261232", "0.5253047", "0.5227681", "0.5208537", "0.5196157", "0.51812506", "0.5174102", "0.5156563", "0.51425695", "0.50963384", "0.5065445", "0.506498",...
0.7155442
0
getCaptionFontColor function returns a color code for caption. Basic idea to use this is to demonstrate how to centralize your cosmetic attributes for the chart
Функция getCaptionFontColor возвращает код цвета для заголовка. Основная идея использования этой функции — продемонстрировать, как централизовать ваши косметические атрибуты для графика
function getCaptionFontColor() { //Return a hex color code without # //FFC30C - Yellow Color return "666666"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function pl_text_color(){\n\t\t\n\t$color = ( pl_check_color_hash( ploption( 'text_primary' ) ) ) ? pl_hash_strip( ploption( 'text_primary' ) ) : '000000';\n\n\treturn $color;\n}", "public function getTextColor() {}", "public function getTextColor() {}", "public function getFontColor()\n {\n if (ar...
[ "0.6232591", "0.5990622", "0.59901017", "0.59293044", "0.5877246", "0.58543503", "0.5795254", "0.57243913", "0.5675407", "0.56454533", "0.56267", "0.5616569", "0.55259067", "0.5494671", "0.54927963", "0.54718196", "0.54341197", "0.5401345", "0.5379341", "0.5346611", "0.532326...
0.8533714
0
MonthName function converts a numeric integer into a month name Param: $intMonth a numver between 112, otherwise defaults to 1 Param: $flag if true, short name; if true, long name;
Функция MonthName преобразует числовое целое число в название месяца Param: $intMonth число от 1 до 12, иначе по умолчанию 1 Param: $flag если true, короткое имя; если true, длинное имя;
function MonthName($intMonth,$flag) { $arShortMonth = array (1=>"Jan", 2=>"Feb", 3=>"Mar", 4=>"Apr", 5=>"May", 6=>"Jun", 7=>"Jul", 8=>"Aug", 9=>"Sep", 10=>"Oct", 11=>"Nov", 12=>"Dec"); $arLongMonth = array (1=>"January", 2=>"February", 3=>"March", 4=>"April", 5=>"May", 6=>"June", 7=>"July", 8=>"August", 9=>"S...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getMonthName($var=false){\n\tif (!$var) $var=@$this->actmonth;\n\tif ($this->monthNames) return $this->monthNames[$var-1];\n\tswitch($var){\n\t\tcase 1: return $this->jan;\n\t\tcase 2: return $this->feb;\n\t\tcase 3: return $this->mar;\n\t\tcase 4: return $this->apr;\n\t\tcase 5: return $this->may;\n\t\tc...
[ "0.75161004", "0.74652904", "0.7144807", "0.7098847", "0.7093419", "0.7051912", "0.7020693", "0.6910796", "0.68853194", "0.68797356", "0.6863898", "0.6691211", "0.6668919", "0.6650689", "0.66392004", "0.6626972", "0.65991753", "0.65896904", "0.65835977", "0.65091485", "0.6477...
0.80633587
0
public function listapac($estado = '', $organigrama_id = '',$fecha_ini='',$fecha_fin='')
public function listapac($estado = '', $organigrama_id = '',$fecha_ini='',$fecha_fin='')
public function listapac($estado = '', $where = '') { //$where = ''; if ($estado == 1) { $where .= " and estado is NULL "; } $sql = "select * from f_listado_pacs() where baja_logica=1 " . $where . " order by fecha_ini asc"; $this->_db = new Cargos(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function citas_aplicarFiltrosCitas($fechaInicial, $fechaFinal, $usuarios, $tipoCita, $idPropietario, $paciente){\n \t\n\t\t\t$resultado = array();\n\t\t\t//$adicionQuery = \"WHERE 1 \";\n\t\t\t\n\t\t\tif(sizeof($usuarios) > 0){\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tif(sizeof($usuarios) > 1){\n\t\t\t\t\t$andOr...
[ "0.6901112", "0.67792714", "0.6762469", "0.66537935", "0.66196746", "0.6592385", "0.65196514", "0.64192045", "0.63940555", "0.63709646", "0.6342002", "0.6335485", "0.63296986", "0.63169634", "0.628279", "0.6238928", "0.6208654", "0.62078506", "0.6202557", "0.62000996", "0.619...
0.73345286
0
/ Get Filtros Organigrama
/ Получить фильтры организационной схемы
public function getFiltroOrganigrama() { $resultado = array(); $sql = " SELECT STRING_AGG(v.unidad_administrativa,',') AS o_resultado FROM ( SELECT CAST(o.unidad_administrativa AS CHARACTER VARYING) FROM cargos c INNER JOIN organigramas o ON c.organigrama_id = o.id WHERE c.baja_logica = 1 GRO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getOrganismsList();", "function cc_get_agency($rif){\n\t\n\t$rif = (string) trim($rif);\n\t$id = (int) substr($rif, 0, 2);\n\t\n\t// MAP\n\t$agenzie_agenti_user = array();\n\t$agenzie_agenti_user[1] = array( \"fave_property_agency\" => 2788, \"fave_agents\" => 72 , \"post_author\" => 3 );\n\t$agenzie_a...
[ "0.6026584", "0.5952716", "0.59357095", "0.59337276", "0.5872608", "0.58144784", "0.57564837", "0.573382", "0.5731017", "0.57223165", "0.5711162", "0.56917065", "0.56406826", "0.5638387", "0.5636814", "0.5597572", "0.55887747", "0.55887544", "0.5586273", "0.55570966", "0.5541...
0.7230269
0
Return a new Printable with the given string limit.
Верните новый Printable с заданным ограничением по строке.
public function withStringLimit(int $strlim): Printable { return new Printable($this->value, $this->callable, $strlim, $this->arrlim); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function str_limit($string, $limit = 100, $end = '...')\n {\n return str::limit($string, $limit, $end);\n }", "abstract public function _limit($str, $limit, $offset = false);", "static function limit(string $s, int $limit = 100, string $end = '...'): string {\n if (mb_strlen($s) <= $limit) ...
[ "0.5799131", "0.579068", "0.5733761", "0.5699269", "0.5647924", "0.55872667", "0.5587126", "0.5572459", "0.5565704", "0.55547523", "0.55515724", "0.5452892", "0.5441698", "0.5441663", "0.54207546", "0.5406397", "0.5391213", "0.53860396", "0.53741574", "0.5363558", "0.5341977"...
0.7650457
0
Return a new Printable with the given array limit.
Вернуть новый Printable с заданным массивом ограничений.
public function withArrayLimit(int $arrlim): Printable { return new Printable($this->value, $this->callable, $this->strlim, $arrlim); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function limit($limit)\n {\n return self::from(Iterables::limit($this, $limit));\n }", "public static function limit($limit);", "public function withStringLimit(int $strlim): Printable\n {\n return new Printable($this->value, $this->callable, $strlim, $this->arrlim);\n }", "p...
[ "0.55312455", "0.52996206", "0.5266579", "0.5221374", "0.5221374", "0.517468", "0.5163341", "0.51078963", "0.50517434", "0.50471324", "0.50427085", "0.502774", "0.5012319", "0.50084686", "0.49883428", "0.49859542", "0.49719012", "0.4968724", "0.49675462", "0.4964598", "0.4963...
0.77780515
0
Return a quoted string.
Верните откликнутую строку.
private function quoted(string $value): string { return sprintf('\'%s\'', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function intoQuote($string){ return \"'\".$string.\"'\"; }", "public function quote($string)\n {\n return $string;\n }", "function Quote( $text ) {\n\t\treturn '\\'' . getEscaped( $text ) . '\\'';\n\t}", "protected function quote(?string $value): string {\n\n\t\t\t$quote = $this->q...
[ "0.76372737", "0.7116245", "0.68340015", "0.6698825", "0.66868883", "0.6665269", "0.6660876", "0.66060334", "0.6601523", "0.65798753", "0.6541228", "0.6525636", "0.6521907", "0.6472696", "0.645455", "0.6454229", "0.6442873", "0.64425737", "0.64340484", "0.6418185", "0.6410671...
0.7508239
1
Some custom styles for slides in Revolution Slider admin
Некоторые пользовательские стили для слайдов в админ-панели Revolution Slider
function aitRevSliderAdminStyles(){ wp_enqueue_style('ait-revolution-slider-admin-css', THEME_URL . '/design/admin-plugins/revslider.css'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function sb_slideshow_edit_admin_style() {\n\tif (!sb_verify_post_type('slideshow')) return; // verify post type\n?>\n\t<style type=\"text/css\">\n\t\tth.column-id { width:50px; }\n\t\tth.column-shortcode { width:180px; }\n\t\tinput.urlfield { width:155px; }\n\t</style>\n<?php\n}", "function create_slider() {\n ...
[ "0.7163396", "0.6579227", "0.6411208", "0.6399297", "0.6370105", "0.63146704", "0.6293575", "0.6271795", "0.6225943", "0.62078696", "0.62013036", "0.61960953", "0.6153122", "0.61516774", "0.614801", "0.6116234", "0.6109848", "0.607009", "0.6043716", "0.6013781", "0.6012693", ...
0.7036279
1
Sort date from eventList
Сортировка даты из eventList
private function sortEventList($eventList){ $anz = count($eventList); $temp=""; for ($a = 0; $a < $anz; $a++) { for ($b = 0; $b < $anz -2; $b++) { if ($eventList[$b +1]->start_date < $eventList[$b]->start_date) { $temp = $eventList[$b]; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_sort_event_list()\n\t{\n\t$temp = $this->get_event_list();\n\tif (!empty($temp))\n\t{\n\t\tusort($temp, [&$this, \"ical_dtstart_compare\"]);\n\t\treturn $temp;\n\t}\n\telse\n\t{\n\t\treturn false;\n\t}\n\t}", "public function sort_projects_by_date ()\n {\n\n }", "public function getSo...
[ "0.74938416", "0.65839666", "0.6485", "0.6463082", "0.63868636", "0.6334563", "0.6244892", "0.6176524", "0.6129585", "0.60245866", "0.60062766", "0.6005522", "0.5977371", "0.5972849", "0.5971844", "0.59616023", "0.5933118", "0.59314245", "0.59272987", "0.5795483", "0.5784241"...
0.81565565
0
For methods that require Auth Adding Middle Layer to authenticate every request Checking if the request has valid api key as part of the parameters
Для методов, требующих авторизацию Добавление среднего слоя для проверки каждой заявки Проверка того, имеет ли запрос действительный API-ключ в качестве параметра
function authenticate(\Slim\Route $route) { // Getting request headers //$headers = apache_request_headers(); $response = array(); $app = \Slim\Slim::getInstance(); $apiKey = $app->request->params('apikey'); // Verifying Authorization Header if (isset($apiKey)) { $db = new DbHandler...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function authenticate(\\Slim\\Route $route) {\r\n // getting request header\r\n $headers = apache_request_headers();\r\n $response = array();\r\n $app = \\Slim\\Slim::getInstance();\r\n // verifying authorization header\r\n \r\n if (isset($headers['Authorization'])) {\r\n // $db = new DbHandler();\r\n /...
[ "0.7394396", "0.7387564", "0.7354594", "0.73307085", "0.732884", "0.732884", "0.732862", "0.72336626", "0.7229021", "0.71814793", "0.70410246", "0.6886968", "0.6789589", "0.6789589", "0.66653436", "0.65309656", "0.6482107", "0.64532775", "0.6401184", "0.63812876", "0.6373667"...
0.7400555
0
Find a region by ID.
Найдите регион по ID.
public static function find($id) { $regionDb = Yadda_Db_Table::getInstance('region'); $select = $regionDb ->select() ->from('region') ->where('status = ?', 'active') ->where('id = ?', $id); $region = $regionDb->fetchRow($select); if ($region === null) { throw new Yadda_Model_Exception('There is n...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function find($id) {\n\t\treturn Doctrine::getTable ( 'Regions' )->findOneBy ( 'region_id', $id );\n\t}", "public function getRegionById($id)\n\t{\n\t\tif($id === null)\n\t\t\treturn null;\n\t\t$this->ensureRegionsLoaded(array($id));\n\t\tif(!isset($this->_regions[$id]))\n\t\t\treturn null;\n\t\tre...
[ "0.8358393", "0.66860247", "0.66278726", "0.64072245", "0.6303355", "0.62986165", "0.6257389", "0.62041575", "0.61952657", "0.6162741", "0.6153608", "0.61195225", "0.6116599", "0.6092943", "0.6081218", "0.6079749", "0.6052687", "0.60417145", "0.60000944", "0.60000944", "0.600...
0.7944306
1
Return a list of files with eod data.
Верните список файлов с данными за конец дня.
private function _get_option_eod_summary_files() { $files = []; if(is_dir('/Users/spicer/Dropbox/Apps/Stockpeer')) { $base = '/Users/spicer/Dropbox/Apps/Stockpeer/'; } else { $base = '/tmp/market_data/'; $this->_get_data_from_dropbox(); } foreach($this->eod_opti...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDatafiles()\n {\n return $this->game->getDatafiles();\n }", "public function getFiles();", "public function getFiles();", "public function getFiles();", "public function getFiles ();", "public static function getFiles()\n\t{\n\t\t$result = Array();\n\t\t$files = sfCore::$d...
[ "0.6756202", "0.6754651", "0.6754651", "0.6754651", "0.6681217", "0.6674859", "0.665485", "0.6650601", "0.66485107", "0.6637627", "0.6613034", "0.65925366", "0.65880877", "0.65870667", "0.6546304", "0.65412086", "0.6536871", "0.6536775", "0.6522086", "0.6520818", "0.6515558",...
0.73023045
0
Get the facade class.
Получить фасадный класс.
protected static function getFacadeClass(): string { return Facade::class; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getFacadeClass()\n {\n return TravelPerk::class;\n }", "protected function getFacadeClass()\n {\n return PusherBeams::class;\n }", "public function retornaFacade ()\n {\n try {\n // Retorna o nome da classe facade\n return $this->_cla...
[ "0.76561874", "0.76208615", "0.7610145", "0.74600923", "0.72164166", "0.7214597", "0.71838", "0.70774853", "0.7060769", "0.7029519", "0.7000669", "0.6887118", "0.68383116", "0.6817372", "0.6817372", "0.67685515", "0.6760814", "0.6748346", "0.6720909", "0.66768444", "0.6657625...
0.8359229
0
use kill command to stop process it is unsafe and particularly dangerous for running gearman worker
использовать команду kill для остановки процесса небезопасно и особенно опасно для запущенного worker gearman
public function gearmanWorkerStop() { for($i = 0; $i < $this->_gearmanForkCount; $i++){ $this->sub_process_keys[] = $i+1; } foreach ($this->sub_process_keys as $_sub_key) { $shell_cmd = "ps aux | grep ".$this->_workerFileName. " |"; $shell_cmd .= "grep -v...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function kill();", "private function serveStop()\n {\n foreach ($this->pid as $pid) {\n $command = \"kill -9 {$pid} > /dev/null 2> /dev/null &\";\n @exec($command, $output);\n }\n }", "public function kill(): void;", "function kill_Process()\n {\n ...
[ "0.780975", "0.7335286", "0.72063285", "0.7094114", "0.7086525", "0.70338255", "0.6961979", "0.6866553", "0.6847355", "0.67614466", "0.66687155", "0.6592907", "0.6512263", "0.6483066", "0.6429606", "0.6396682", "0.63490456", "0.6286256", "0.62840074", "0.6283107", "0.6277343"...
0.7410336
1
fonction getIdTitulaire(num_complet_cpte) returns id_titulaire,id_cpte,num_complete_cpte t361
fonction getIdTitulaire(num_complet_cpte) возвращает id_titulaire,id_cpte,num_complete_cpte t361
function getIdtitulaire($num_complete_cpte) { global $dbHandler,$global_id_agence; $db = $dbHandler->openConnection(); $sql = " SELECT id_cpte,id_titulaire,num_complet_cpte from ad_cpt where num_complet_cpte = '$num_complete_cpte' ; "; $result = $db->query($sql); if (DB::isError($result)) { $dbHandler->closeCon...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function cargaIdUbicacion() {\n $dao = new PGDAO();\n $strSql = $this->COLECCIONMAPEOUBICA . $this->propiedad->getId_ubica();\n $arrayDatos = $this->leeDBArray($dao->execSql($strSql));\n $id = $arrayDatos[0]['zpubica'];\n return $id;\n }", "public static function C...
[ "0.63185626", "0.6189492", "0.6114586", "0.6114586", "0.61027193", "0.60682213", "0.6022981", "0.601698", "0.6016647", "0.6016647", "0.5983273", "0.5980345", "0.59797245", "0.59534144", "0.59474593", "0.59263945", "0.59200686", "0.5853078", "0.5848615", "0.5802443", "0.578616...
0.7821603
0
/ Cette PS bloque le compte $id_cpte
Этот PS блокирует счет $id_cpte
function blocageCompteInconditionnel ($id_cpte) { global $dbHandler,$global_id_agence; $db = $dbHandler->openConnection(); $sql = "SELECT etat_cpte FROM ad_cpt WHERE id_ag = $global_id_agence AND id_cpte = $id_cpte;"; $result=$db->query($sql); if (DB::isError($result)){ $dbHandler->closeConnection(false); s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getBlockForEdit($id)\n {\t\n \t$DB\t\t\t= Zend_Registry::get('front_db');\n\t\t$this->view->assign('form_action', '/skiner/block/edit/id/'.$id);\n\t\t//$sql\t= \"select * from `wbs_skin_block` where \".Application_Model_Pubcon::get(1000). \" and `id`='\".$id.\"'\";\n\t\t$sql\t= \"SELECT * FRO...
[ "0.6159074", "0.5798624", "0.57816863", "0.5773856", "0.5746534", "0.5709933", "0.5669744", "0.5667635", "0.56286716", "0.5545264", "0.55301195", "0.5518028", "0.5515942", "0.5489696", "0.5471519", "0.54623055", "0.545624", "0.54374224", "0.54228544", "0.5398787", "0.53611594...
0.72676164
0
Fonction pour verifier si un montant est des decimaux ex. 100.15 ... PARAM : mnt RETURN : BOOLEAN $hasDecimal
Функция для проверки, является ли сумма десятичной, например, 100.15 ... ПАРАМЕТР: mnt ВОЗВРАЩАЕТ: ЛОГИЧЕСКОЕ $hasDecimal
function hasDecimalMontant($mnt) { $hasDecimal = false; $mntIAP_Arrondie = ROUND($mnt); $diff = abs($mnt - $mntIAP_Arrondie); if ($diff > 0){ $hasDecimal = true; } return $hasDecimal; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function is_decimal( $val )\n {\n return is_numeric( $val ) && floor( $val ) != $val;\n }", "public static function _decimal($value, $field, $min_decimal = 1, $max_decimal=null) {\n\t\t$regex = '/^-?[0-9]+\\.[0-9]{' . $min_decimal . ',' . $max_decimal . '}$/';\n\t\treturn (bool)preg_match($regex, $v...
[ "0.72571033", "0.66567105", "0.66440564", "0.65958655", "0.65188366", "0.64843667", "0.6460818", "0.6015678", "0.6007987", "0.59609187", "0.59336364", "0.586818", "0.5811101", "0.58083457", "0.57474077", "0.5738632", "0.56050223", "0.56050223", "0.5595157", "0.5590398", "0.55...
0.83072335
0
passing negative even number
передача отрицательного чётного числа
public function testIsEvenPassNegativeEVEN() { $this->assertTrue(isEven(-4)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testIsEvenPassNegativeODD()\n {\n \t$this->assertFalse(isEven(-5));\n }", "public function clipEvenOdd() {}", "function isEven($num){\r\n\treturn (is_numeric($num)&(!($num&1)));\r\n}", "function check_even($n)\n{\n\tif ($n % 2 == 0) {\n\t\techo \"{$n} la so so chan\";\n\t}\n}", "pu...
[ "0.75627023", "0.67464066", "0.65400076", "0.6495227", "0.64641285", "0.6453166", "0.6413785", "0.6397312", "0.63316053", "0.6183513", "0.6163191", "0.6133107", "0.612251", "0.6113515", "0.6083003", "0.5966133", "0.5951523", "0.5935128", "0.5880874", "0.5804344", "0.5792571",...
0.75731874
0
passing negative odd number
передача отрицательного нечетного числа
public function testIsEvenPassNegativeODD() { $this->assertFalse(isEven(-5)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testIsEvenPassNegativeEVEN()\n {\n \t$this->assertTrue(isEven(-4));\n }", "public function clipEvenOdd() {}", "function is_odd (int $value) : bool\n{\n return $value % 2 !== 0;\n}", "function odd_even($n) {\n $odd_even = fmod($n, 2);\n if($odd_even ==...
[ "0.7302539", "0.72618663", "0.68092835", "0.6776312", "0.6746858", "0.6690784", "0.6590767", "0.65474516", "0.654103", "0.6454552", "0.6357149", "0.6341215", "0.62869585", "0.6266048", "0.6253534", "0.6225314", "0.6204725", "0.6190281", "0.6145267", "0.61184764", "0.611672", ...
0.7691487
0
passing zero, assuming that 0 is even number
передача нуля, предполагая, что 0 — чётное число
public function testIsEvenPassZERO() { $this->assertTrue(isEven(0)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static function makeOddEven() {\n\n\t\tif (JudgeView::$even > 0)\n\t\t{\n\t\t\tJudgeView::$even = 0;\n\t\t\treturn 0;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tJudgeView::$even = 1;\n\t\t\treturn 1;\n\t\t}\n\n\t}", "function isEven($num){\r\n\treturn (is_numeric($num)&(!($num&1)));\r\n}", "public function testIsE...
[ "0.682325", "0.6682445", "0.6615996", "0.66006154", "0.659337", "0.6520555", "0.65199983", "0.64399946", "0.64177495", "0.63619536", "0.6321866", "0.6252898", "0.6220042", "0.61459035", "0.6125508", "0.61061996", "0.6103357", "0.59718966", "0.5924956", "0.5893173", "0.5875451...
0.75614387
0
end of testAutoSubmit() FUNCTION: CREATE FROM ARRAY / This function creates a set of radio buttons from a hash array. This can be used to generate quick radio buttons, but there are some specialty sets below that are commonly used using those specialty sets should be even faster for common tasks. Autosubmit doesn't wor...
конец функции testAutoSubmit() : СОЗДАНИЕ ИЗ МАССИВА / Эта функция создает набор радио кнопок из хеш-массива. Это можно использовать для быстрого создания радио кнопок, но ниже приведены некоторые специализированные наборы, которые часто используются. Использование этих специализированных наборов даже быстрее для распр...
public static function createFromArray() { $args = func_get_args(); switch (count($args)) { case 2: $buttonset = $args[0]; $array = $args[1]; $auto = 0; // don't auto-submit break; case 3: $buttonset = $args[0]; $array = $args[1]; $atuo = DropDownList::testAutoSubmi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function createRadios($hiddenName, $outerIndex)\n{\n\t// Loop through and generate all radio buttons, giving unique names \n\tfor($i = 1; $i <= 4; $i++)\n\t{\n\t\t$id = \"radio\" . $outerIndex . $i;\n\t\t$name = \"radio\" . $outerIndex;\n\t\t\n\t\tif(isset($_REQUEST[$name]))\n\t\t\t$currentSelected = $_REQUEST[$na...
[ "0.5851053", "0.55911535", "0.5372921", "0.5343518", "0.5342001", "0.53135383", "0.5303237", "0.5252377", "0.5118637", "0.5106243", "0.5092101", "0.5055059", "0.5021198", "0.5008819", "0.49969587", "0.49287325", "0.49158427", "0.4912691", "0.4900946", "0.48587927", "0.4856847...
0.73485553
0
/\ Remove jQuery // jQuery UI \
// Удалить jQuery // jQuery UI \
function remove__jquery(&$scripts) { if ( !is_admin() ) { $scripts->remove( 'jquery' ); $scripts->remove( 'jquery-ui-core' ); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function faster_jquery_remove() {\n\n\twp_deregister_script( 'jquery' );\n\n}", "function remove_jquery_wordpress( $scripts ) {\n if ( !is_admin() ) {\n $script = $scripts->registered['jquery'];\n \n if ( $script->deps ) { \n $script->deps = array_diff( $scri...
[ "0.7260323", "0.6732453", "0.6726179", "0.64241177", "0.6321641", "0.6062501", "0.6060515", "0.60391295", "0.60380536", "0.59975517", "0.59745836", "0.59575576", "0.5925367", "0.59131294", "0.5815577", "0.57426333", "0.5717533", "0.57099456", "0.57041276", "0.56919074", "0.56...
0.7426778
0
Get all unseen discussions. Use in notification.
Получить все не просмотренные обсуждения. Используйте для уведомлений.
public function get_unseen() { $this->authenticate(); $result = $this->discussion->get_unseen_discussions(); if (!is_null($result)) { exit(json_encode([ 'flg' => TRUE, 'msg' => $result ])); } else { exit(json_encode([ ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getUnreadMessages(): Collection;", "public static function getLastDiscussions(){\n $sql = \"select * from discussions ORDER BY `id` DESC LIMIT 5\";\n return App::$db->query($sql);\n }", "public function get_list_unread(){\n\n\t\tuser_login_required();\n\n\t\t//Get the list of u...
[ "0.65681255", "0.6378681", "0.63406754", "0.6325844", "0.62785566", "0.6249371", "0.6220479", "0.61696243", "0.610331", "0.60896033", "0.60003984", "0.5989895", "0.5964396", "0.59434146", "0.59220237", "0.5888419", "0.58776474", "0.58678305", "0.5790014", "0.5775237", "0.5765...
0.8289016
0
Test when name is not set
Тест при отсутствии имени
public function testNoName() { $this->expectException('HttpSourceConfigException'); $this->Field->name(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function assertValidName() : void\n {\n InvalidDescriptorArgumentException::assertIsNotEmpty(\n $this->name,\n '#[Route.name] must contain a non-empty string.'\n );\n }", "function valid_name($name) {\r\n\tif (empty($name)) \r\n\t\treturn false;\r\n\telse\r\n\t\t...
[ "0.7126883", "0.7051787", "0.70507437", "0.70507437", "0.7032379", "0.7005613", "0.7003814", "0.69903255", "0.6954094", "0.6922928", "0.682972", "0.6669657", "0.6656195", "0.6620851", "0.6606527", "0.65667284", "0.65667284", "0.6566536", "0.6566536", "0.6566536", "0.6565861",...
0.71519655
0
Print the remainder of the head contents, after the title is removed.
Выведите остаток содержимого заголовка, после удаления заголовка.
function head() { print($this->_head); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function printHead()\n\t{\n\t\t$out = '<?xml version=\"1.0\" encoding=\"utf-8\"?>' . \"\\n\";\n\t\t$out .= $this->head . PHP_EOL;;\t\t\t\n\t\techo $out;\n\t}", "public function show_head() {\n \n $output = '<head>';\n \n if( empty( $this->title ) ) {\n $this->title = \"No Ti...
[ "0.702319", "0.69506586", "0.66625535", "0.64830303", "0.6461335", "0.6445953", "0.64183426", "0.63166505", "0.6307648", "0.63072115", "0.6306825", "0.63003266", "0.6283586", "0.6280708", "0.62274814", "0.62072176", "0.61740875", "0.6163192", "0.6140546", "0.6122661", "0.6117...
0.7106884
0
Print the page body.
Выведите тело страницы.
function body() { print($this->_body); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function printPage()\n {\n $this->printDoctype();\n $this->printOpenHtml();\n $this->printHead(' ');\n $this->printBody(' ');\n $this->printCloseHtml();\n }", "public function printContent() {\r\n $this->content .= $this->doc->endPage();\r\n ech...
[ "0.8182446", "0.7376723", "0.7212335", "0.7184767", "0.71688557", "0.71688557", "0.71688557", "0.71419954", "0.71362054", "0.7063102", "0.6974742", "0.6866685", "0.6770787", "0.66232985", "0.66109693", "0.6604975", "0.6604975", "0.6604975", "0.6604975", "0.6604975", "0.660465...
0.7450329
1
Updates recipe specified by rid in parameters Performs 1 update for 'recipe' table, and 1 for each 'ingredients' and 1 for each 'directions'
Обновляет рецепт, указанный идентификатором rid в параметрах. Выполняет 1 обновление для таблицы 'recipe', 1 для каждой таблицы 'ingredients' и 1 для каждой таблицы 'directions'
public function updateRecipe($data) { // Prepare sql query for new recipe entry $this->db->query('UPDATE recipes SET title=:title, description=:description, prepTime=:prepTime, servingSize=:servingSize, link=:link WHERE rid=:rid;'); // Bind values for prepared statement $this->db->bind('...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function update() {\n\t\tglobal $DB_LINK, $db_table_recipes, $LangUI;\n\t\t$sql = \"\n\t\t\tUPDATE $db_table_recipes\n\t\t\tSET recipe_name='\".$DB_LINK->addq($this->name, get_magic_quotes_gpc()).\"',\n\t\t\t\trecipe_ethnic='\".$DB_LINK->addq($this->ethnic, get_magic_quotes_gpc()).\"',\n\t\t\t\trecipe_base=\".$DB_...
[ "0.69037193", "0.67274123", "0.6386638", "0.61902964", "0.6058181", "0.57459766", "0.57151175", "0.56524765", "0.5652353", "0.5621309", "0.5475809", "0.54728484", "0.5432611", "0.54289174", "0.54289174", "0.5392331", "0.53768164", "0.5358123", "0.5350924", "0.5293205", "0.527...
0.73330796
0
HELPER FUNCTION Convert ingredients array to sql value template. Each element follows format: '(rid, x, :valuex)' where x increments from 1 to number of ingredients To use in sql query: implode(", ", convertIngredientsFormat($rid, $data['ingredients']))
ПОМОЩЬФУНКЦИЯ Преобразование массива ингредиентов в шаблон значения SQL. Каждый элемент следует формату: '(rid, x, :valuex)', где x увеличивается от 1 до количества ингредиентов. Для использования в SQL-запросе: implode(", ", convertIngredientsFormat($rid, $data['ingredients']))
private function convertIngredientsFormat($rid, $ingredients) { $result = []; for($i = 1; $i < count($ingredients) + 1; $i++) { $result[$i - 1] = '(' . $rid . ', ' . $i . ', :value' . $i . ')'; } return $result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function prepareValuesRow(): string\n {\n $values = [];\n foreach ($this->storage as $key => $value) {\n $values[] = \"('{$key}', '{$value}')\";\n }\n\n return implode(', ', $values);\n }", "function convert_array($in_array, $start_pos)\n{\n\t$string1 = \"\";\...
[ "0.61420566", "0.557417", "0.5513314", "0.5507276", "0.55015767", "0.54453224", "0.5405676", "0.53422636", "0.5321844", "0.5292877", "0.52655715", "0.5256081", "0.5246699", "0.5239184", "0.52147526", "0.5180942", "0.515816", "0.5110368", "0.51079303", "0.50987566", "0.5090281...
0.7288106
0
Returns average of all comment ratings associated to rid
Возвращает среднее значение всех оценок комментариев, связанных с rid
public function getAverageRating($rid){ $comments = $this->getAllComments($rid); $sum = 0; if(sizeof($comments)!=0){ foreach($comments as $comment){ $sum += $comment->rating; } return $sum/sizeof($comments); } else { return ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAvgRating()\n {\n $sum =0;\n foreach($this->comments as $comment)\n {\n $sum = $sum + $comment->getRating() ;\n }\n\n if(count($this->comments)) return $sum/count($this->comments);\n\n return 0 ;\n }", "public function averageRating()\...
[ "0.7815952", "0.7160213", "0.69731236", "0.69356567", "0.66185904", "0.6595174", "0.64630806", "0.6456797", "0.64519626", "0.64074165", "0.6389168", "0.63694394", "0.6358621", "0.63110065", "0.62753147", "0.6258707", "0.61612374", "0.6128268", "0.6099714", "0.6086556", "0.602...
0.84239227
0
add address template to shipping step
Добавить шаблон адреса в шаг оформления доставки
public function appendAddressDataToShippingStep($observer) { if( false === Mage::getModel('postident/config')->isEnabled() || false === Mage::getModel('postident/config')->getAddressDataUsage()) { return; } if ($observer->getBlock() instanceof Mage_Checkout_B...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function default_template_shipping ()\r\n{\r\n$template = '\r\n{shipping_content alias=$shipping_alias}\r\n';\r\nreturn $template;\r\n}", "public function appendAddressDataToBillingStep($observer)\n {\n if( false === Mage::getModel('postident/config')->isEnabled()\n || false === Mage::getMod...
[ "0.6982514", "0.65228075", "0.6460018", "0.6321133", "0.63001853", "0.62993824", "0.6196611", "0.6036511", "0.60358757", "0.60184723", "0.59829247", "0.5980058", "0.5934677", "0.58779925", "0.58539397", "0.5826276", "0.5822766", "0.58132094", "0.57802045", "0.5775925", "0.575...
0.7136997
0
Get Postident Config Model
Получить модель конфигурации Postident
public function getConfig() { return Mage::getModel("postident/config"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function model()\n {\n return Config::class;\n }", "public function _getConfigModel()\n {\n return Mage::getModel(self::CONFIG);\n }", "private function getConfigModel()\n {\n return Mage::getSingleton('wallee_payment/system_config');\n }", "protected function ge...
[ "0.7315183", "0.719311", "0.7160724", "0.6961395", "0.68676054", "0.66918975", "0.653293", "0.6473519", "0.64597386", "0.64424676", "0.6372694", "0.63283515", "0.63244635", "0.63166165", "0.6305188", "0.6295142", "0.6263295", "0.62404084", "0.6227747", "0.62243545", "0.622355...
0.80496407
0
Gets the new flash keys array
Получает новый массив ключей flash
protected function getNewFlashKeys(): array { return $this->get(self::NEW_FLASH_KEYS_KEY, []); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getStaleFlashKeys(): array\n {\n return $this->get(self::STALE_FLASH_KEYS_KEY, []);\n }", "protected function getPreloadKeys() {\n\t\t$keys = array(\n\t\t\t'echo-notification-timestamp',\n\t\t\t'echo-notification-timestamp-' . EchoAttributeManager::MESSAGE,\n\t\t\t'echo-notificati...
[ "0.7978015", "0.7138449", "0.67302215", "0.6721577", "0.6705986", "0.66578674", "0.66106", "0.6608496", "0.6587365", "0.6587365", "0.6587365", "0.65845835", "0.65845835", "0.65813076", "0.65813076", "0.65813076", "0.65813076", "0.65813076", "0.65813076", "0.65393656", "0.6509...
0.8839694
0
Gets the stale flash keys array
Получает массив устаревших ключей флеш-памяти
protected function getStaleFlashKeys(): array { return $this->get(self::STALE_FLASH_KEYS_KEY, []); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getNewFlashKeys(): array\n {\n return $this->get(self::NEW_FLASH_KEYS_KEY, []);\n }", "protected function getPreloadKeys() {\n\t\t$keys = array(\n\t\t\t'echo-notification-timestamp',\n\t\t\t'echo-notification-timestamp-' . EchoAttributeManager::MESSAGE,\n\t\t\t'echo-notification-t...
[ "0.84772134", "0.71192783", "0.67744887", "0.6449073", "0.6274906", "0.6257662", "0.62471503", "0.6222829", "0.6222128", "0.6212292", "0.62106645", "0.6185599", "0.6184555", "0.61776835", "0.6164328", "0.61579704", "0.6149772", "0.6080845", "0.6075199", "0.606832", "0.606832"...
0.91230685
0
Count all public calendars of other users.
Посчитать все публичные календари других пользователей.
public function countPublicCalendars(UserInterface $user) { $qb = $this->repository->createQueryBuilder('c'); $qb->select('COUNT(c.id)'); $qb->where('c.visible = :visible'); $qb->andwhere('c.createdBy != :user'); $qb->setParameter('visible', true); $qb->setPara...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function count_user_events($user_id = NULL) {\r\n global $uid;\r\n if (is_null($user_id)) {\r\n $user_id = $uid;\r\n }\r\n return Database::get()->querySingle(\"SELECT COUNT(*) AS count FROM personal_calendar WHERE user_id = ?d\", $user_id)->count;\r\n }", ...
[ "0.6198609", "0.6029905", "0.5829278", "0.57265466", "0.5712421", "0.564941", "0.5628115", "0.5564134", "0.5560409", "0.5533492", "0.55293584", "0.55071753", "0.5494965", "0.5344268", "0.534248", "0.534248", "0.534248", "0.53321004", "0.53293794", "0.5319155", "0.53061175", ...
0.70849925
0
Find all calendars by given user.
Найдите все календари по заданному пользователю.
public function findCalendarsByUser(UserInterface $user) { $qb = $this->repository->createQueryBuilder('c'); $qb->where('c.createdBy = :user'); $qb->setParameter('user', $user); return $qb->getQuery()->execute(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCalendars(User $user = null);", "public function getUserCalendar(User $user): array\n {\n $calendarsURL = $user->getCalendars();\n\n $calendars = [];\n foreach ($calendarsURL as $calendar) {\n array_push($calendars, $this->fetchEvents($calendar->getURL()));\n...
[ "0.8625929", "0.739091", "0.65626097", "0.6485882", "0.6477315", "0.6391695", "0.59377193", "0.5838466", "0.5786328", "0.5778732", "0.57739645", "0.5744249", "0.57347906", "0.572469", "0.5718613", "0.56601167", "0.55454266", "0.55454266", "0.54526913", "0.5445954", "0.5418455...
0.8041804
1
Find all public calendars by given term (name, description or creator of the calendar) of other users.
Найдите все публичные календари по заданному термину (имя, описание или создатель календаря) других пользователей.
public function findPublicCalendarsByTerm($term, UserInterface $user) { $qb = $this->repository->createQueryBuilder('c'); $qb->select('c.id, c.name, u.username'); $qb->join('c.createdBy', 'u'); $qb->where('c.name LIKE :term'); $qb->orWhere('c.description LIKE :term'); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCalendars(User $user = null);", "function get_calendars() {\n\n\t\t// Get the attached calendars\n\t\t$calendars = wp_get_post_terms( $this->post_id , 'calendar' );\n\t\t$this->calendars = $calendars;\n\t\t\n\t\t// Loop through calendars, checking permissions\n\t\tforeach ( $calendars as $cale...
[ "0.5598045", "0.5595388", "0.5437381", "0.5436465", "0.5308328", "0.52769184", "0.521769", "0.51238567", "0.4972738", "0.49298882", "0.49289572", "0.49045506", "0.48545828", "0.4790912", "0.4786395", "0.4769992", "0.47561833", "0.47351235", "0.46823883", "0.46598724", "0.4657...
0.74065596
0
Parses a dscan to an array
Парсит dscan в массив
function parseDscan($dscan) { $objects = array(); //Split into rows $rows = explode("\n", $dscan); //Iterate through our rows foreach($rows as $row) { //Check if it matches a dscan row format if(preg_match("/^([^\t]+)\t([^\t]+)\t([^\t]+)\t(([0-9,.]+) (km|m|AU)|-)/", $row, $matches) == 1) { $ob['type'] =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function data2Array($data);", "public function getDataprotArray() {\n\t\t$arr = array();\n\t\t$ds = $this->getDataprotXML();\n\t\tif (strlen($ds) > 1) {\n\t\t\t$arr = GeneralUtility::xml2array($ds);\n\t\t}\n\n\t\treturn $arr;\n\t}", "function ussd_string_to_array($ussd_string){\n return expl...
[ "0.5584773", "0.54677004", "0.5435761", "0.5323445", "0.5300616", "0.5297419", "0.5217488", "0.52032334", "0.5166246", "0.5157352", "0.5154616", "0.51353115", "0.5130848", "0.51080436", "0.50948715", "0.50821775", "0.50821775", "0.5065223", "0.505185", "0.502081", "0.502081",...
0.7394252
0
This function redirect the user to the page indicated by the variable file.
Эта функция перенаправляет пользователя на страницу, указанную переменной file.
static function redirect($file) { header("location: $file"); exit(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Redirect($file)\n{\n\techo '<script>';\n\techo 'location.href=\"'.$file.'\"';\n\techo '</script>';\n\texit();\n}", "function redirect($file) {\n $host = $_SERVER['HTTP_HOST'];\n $path = rtrim(dirname($_SERVER[\"PHP_SELF\"]), \"/\\\\\");\n header(\"Location: http://$host$path/$fil...
[ "0.69143265", "0.6794202", "0.6668645", "0.6615202", "0.6575547", "0.6524543", "0.64391494", "0.634676", "0.62784934", "0.62628347", "0.6244644", "0.6232029", "0.62046224", "0.617032", "0.6133014", "0.61052847", "0.610047", "0.6097736", "0.6088323", "0.6081365", "0.60718685",...
0.7128829
0
Returns the string with the given prefix removed, or the string itself if it doesn't start with the prefix.
Возвращает строку с удаленным указанным префиксом, или саму строку, если она не начинается с этого префикса.
function strip_prefix(string $string, string $prefix): string { if ('' === $prefix || !starts_with($string, $prefix)) { return $string; } /** @psalm-suppress MissingThrowsDocblock - $offset is within-bounds. */ return slice($string, length($prefix)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function strip_prefix(string $string, string $prefix, Encoding $encoding = Encoding::UTF_8): string\n{\n if ($prefix === $string) {\n return '';\n }\n\n if ('' === $prefix || '' === $string || !starts_with($string, $prefix, $encoding)) {\n return $string;\n }\n\n return slice($string, ...
[ "0.8110948", "0.8102732", "0.80515015", "0.796179", "0.7772836", "0.7643129", "0.70024735", "0.6863972", "0.6680536", "0.6601046", "0.65736556", "0.6561675", "0.65184146", "0.6487255", "0.6484459", "0.64826554", "0.6442965", "0.6424962", "0.63787746", "0.6302032", "0.6215819"...
0.81293166
0
Get only master result.
Получить только результат мастера.
public function getMasterResult() { $results = $this->getResults(); return isset($results['original']) ? $results['original'] : false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function toggle_master_view_query_result(): Array {\n $model = $this->current_model;\n\n $master_view = $this->master_view_query_result();\n \n // Get result from grants model if feature model list returns empty\n \n if(method_exists($this->CI->$model,'master_view') &&\n ...
[ "0.65682006", "0.6396339", "0.63761115", "0.6277591", "0.62601995", "0.6230873", "0.6190991", "0.61805916", "0.6174329", "0.6169014", "0.61662894", "0.6044402", "0.59527785", "0.58789414", "0.58752835", "0.5868419", "0.58595896", "0.5850338", "0.580162", "0.5797276", "0.57953...
0.7969295
0
Find out if this element is placed in an inline context.
Узнайте, находится ли этот элемент в контексте inline.
public function isInline() { if ($ancestor = $this->getControlBlockContainer()) { return $ancestor->isInline(); } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function is_inline()\r\n\t{\r\n\t\treturn $this->is_inline;\r\n\t}", "function vcex_vc_is_inline() {\n\tif ( function_exists( 'vc_is_inline' ) ) {\n\t\treturn vc_is_inline();\n\t}\n\treturn false;\n}", "public function hasInlineVector()\n {\n return ($this->hasLinkImage() && $this->LinkImage()...
[ "0.7384146", "0.70733654", "0.6968481", "0.6914325", "0.6851162", "0.67480165", "0.6497554", "0.63016534", "0.6232524", "0.57936937", "0.57405216", "0.5622722", "0.55322516", "0.5500013", "0.54707915", "0.5444395", "0.54324687", "0.5407346", "0.53898376", "0.5381279", "0.5376...
0.745781
0
Sets the Tidy options based on the configuration of Options.
Устанавливает параметры Tidy в зависимости от настроек Options.
function __setTidyConfig() { if($this->_options["IsWord"]){ $this->_tidy_config['word-2000'] = true; $this->_tidy_config['drop-proprietary-attributes'] = true; } else { $this->_tidy_config['word-2000'] = false; } if($this->_options...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setOptions($options = array()) \n { \n $default = array( \n \"RemoveStyles\" => true, \n \"IsWord\" => true, \n \"UseTidy\" => true, \n \"TidyBefore\" => false, \n \"CleaningMethod\" => array( \n \"tags\" => \"whitelist\", \n ...
[ "0.7753073", "0.65544134", "0.64637095", "0.62480843", "0.6239767", "0.6185608", "0.61761826", "0.604455", "0.6002066", "0.59947944", "0.59359074", "0.5933925", "0.59324235", "0.5923187", "0.59125334", "0.5909761", "0.59046334", "0.58950865", "0.58893365", "0.58893365", "0.58...
0.75497925
1
Uses the Tidy Configuration to run Tidy's cleanRepair method, if available.
Использует конфигурацию Tidy для запуска метода cleanRepair Tidy, если он доступен.
function tidyClean() { if(!class_exists('tidy')){ if(function_exists('tidy_parse_string')){ tidy_set_encoding("{$this->_options["Encoding"]}"); foreach($this->_tidy_config as $k => $v) { tidy_setopt($k, $v); } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function cleanRepair() {}", "function tidy_clean_repair(tidy $object) {}", "function __setTidyConfig() \n { \n if($this->_options[\"IsWord\"]){ \n $this->_tidy_config['word-2000'] = true; \n $this->_tidy_config['drop-proprietary-attributes'] = true; \n } \n ...
[ "0.69163716", "0.6459631", "0.5992639", "0.5587093", "0.5527182", "0.5481099", "0.54701006", "0.54606694", "0.54170126", "0.5328901", "0.51956946", "0.51528555", "0.50111246", "0.50066435", "0.48950356", "0.48489368", "0.48452532", "0.48368126", "0.48112518", "0.47943094", "0...
0.7230275
0
Cleans the provided html snippet based on the configuation options
Очищает предоставленный html-фрагмент в соответствии с настройками конфигурации
function cleanup($html, $options = null) { if(isset($options) && is_array($options)){ $this->setOptions($options); } $this->_html = "{$html}"; if($this->_options['UseTidy'] && $this->_options['TidyBefore']){ $this->tidyClean(); } // ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract function cleanHTML($content);", "protected function parseHtml() {\r\n\t\tif (is_array($this->cfg->html))\r\n\t\t\t$this->cfg->html = utils::render($this->cfg->html);\r\n\t}", "function tidyClean() \n { \n if(!class_exists('tidy')){ \n if(function_exists('tidy_parse_string')...
[ "0.65628284", "0.63438624", "0.61977494", "0.61653143", "0.6090394", "0.6088692", "0.6066914", "0.6052629", "0.6049276", "0.6041285", "0.6014014", "0.6011197", "0.59926075", "0.59078074", "0.5880054", "0.58725715", "0.58725107", "0.5853894", "0.5809442", "0.57934916", "0.5785...
0.7351366
0
Deletes an array events by their identifiers (the "event_id" field on the event).
Удаляет массив событий по их идентификаторам (поле "event_id" события).
public function deleteEvents(array $eventIds, array $context = []): void;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function delete(array $ids);", "function deleteItems($itemids) {\r\n $event = new mosEventCal_Event();\r\n\tforeach($itemids AS $itemid) {\r\n\t $event->delete($itemid);\t\r\n\t}\r\n}", "public function delete(array $ids)\n {\n\n }", "public function delete($ids){\n \n $filter = ...
[ "0.7017683", "0.69400126", "0.677669", "0.6579054", "0.6548128", "0.65366983", "0.64679104", "0.6464421", "0.64289457", "0.63672334", "0.6338343", "0.62950206", "0.61640596", "0.61266243", "0.60348094", "0.602979", "0.6000051", "0.59990793", "0.59835464", "0.5943345", "0.5921...
0.705966
0
Returns Customer_Company objects of all employees of this company
Возвращает объекты Customer_Company всех сотрудников этой компании
public function getEmployees() { if ( is_null($this->_employees) ){ $customers = $this->getTable()->getEmployees(); $objects = new splObjectStorage(); foreach ($customers AS $customer) { try { $ccust = new Yourdelivery_Model_Customer_Compa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCompanyEmployees();", "public static function getEnterpriseCompanies(){\n $result = db::get(\"SELECT uid_empresa FROM \". TABLE_EMPRESA .\" WHERE is_enterprise = 1 ORDER BY nombre\", \"*\", 0, \"empresa\");\n return new ArrayObjectList($result);\n }", "public static function...
[ "0.80659366", "0.7450481", "0.72915214", "0.69716215", "0.69016933", "0.6851105", "0.6811749", "0.6801597", "0.67012745", "0.6626089", "0.6619283", "0.65692306", "0.6564905", "0.65477973", "0.6546318", "0.6536029", "0.65336025", "0.6453452", "0.6442147", "0.64110345", "0.6387...
0.85140556
0
Returns count of employees
Возвращает количество сотрудников
public function getEmployeesCount() { return $this->getTable()->getEmployeesCount(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function countEmployee(){\n\t\t\t\t\t return count($this->listeEmployee());\n\t\t\t\t\t }", "public function getAllDataEmployees(){\n\t\t\t$this->db->select('*')->from('tbl_employees');\n\t\t\treturn $this->db->count_all_results();\n\t\t}", "function get_all_empresas_count()...
[ "0.83989877", "0.7367075", "0.72336376", "0.72261834", "0.7167031", "0.7027701", "0.699077", "0.69037336", "0.6776866", "0.6690841", "0.6654862", "0.6573313", "0.6515685", "0.64769894", "0.642788", "0.63113743", "0.62977064", "0.62742156", "0.6230173", "0.621434", "0.6199207"...
0.8466051
0
Returns the billing contact object if this company
Возвращает объект биллингового контакта, если это компания
public function getBillingContact() { try { return new Yourdelivery_Model_Contact($this->getBillingContactId()); } catch (Yourdelivery_Exception_Database_Inconsistency $e) { return null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getContact() {\n try {\n return new Yourdelivery_Model_Contact($this->getContactId());\n } catch (Yourdelivery_Exception_Database_Inconsistency $e) {\n return null;\n }\n }", "public function getContact()\n {\n return isset($this->contact) ?...
[ "0.6930654", "0.6894252", "0.6823665", "0.6823665", "0.6823665", "0.68114996", "0.6693355", "0.66731006", "0.6621222", "0.6621222", "0.6559425", "0.6542592", "0.64734906", "0.64569074", "0.64569074", "0.6341582", "0.632374", "0.63229895", "0.62913233", "0.6269803", "0.6246155...
0.8246131
0
returns all budget objects of this company
возвращает все объекты бюджета этой компании
public function getBudgets() { $table = new Yourdelivery_Model_DbTable_Company_Budgets(); $all = $table->fetchAll('companyId = ' . $this->getId()); $obj = new splObjectStorage(); foreach ($all AS $budget) { try { $budget = new Yourdelivery_Model_Budget($budget...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function findAll() {\n $sql = \"SELECT * FROM budget\";\n $result = $this->db->fetchAll($sql);\n\n // Convert query result to an array of domain objects\n $budget = array();\n foreach ($result as $row) {\n $budgetID = $row['id'];\n $budget[$budgetID] ...
[ "0.80036753", "0.69953966", "0.68506557", "0.67112535", "0.65952253", "0.64342594", "0.6264919", "0.6158434", "0.60893327", "0.60579413", "0.60140085", "0.59997874", "0.59993225", "0.5892793", "0.58861786", "0.58673936", "0.58306706", "0.5820295", "0.5809164", "0.58073443", "...
0.83090556
0
return all admins of this company
вернуть всех администраторов этой компании
public function getAdmins() { $a = new SplObjectStorage(); $admins = $this->getTable()->getAdmins(); foreach ($admins as $admin) { try { $customer = new Yourdelivery_Model_Customer_Company($admin['id'], $this->getId()); $a->attach($customer); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function get_admins();", "public static function admins()\n {\n return User::all()->where('idpapel', 1)->where('stusuario', 'ati')->toArray();\n }", "public function getAdmins()\n {\n $query = $this->newQuery();\n $query->where('admin', true);\n\n return $this...
[ "0.77995116", "0.771568", "0.76979196", "0.76258594", "0.7536488", "0.74002284", "0.7244273", "0.72357184", "0.7123914", "0.70668447", "0.70222193", "0.70147294", "0.7008521", "0.6975748", "0.69615585", "0.69482386", "0.69318366", "0.69177365", "0.6878754", "0.68160784", "0.6...
0.7827995
0
returns all addresses of this company as RowSet
возвращает все адреса этой компании в виде RowSet
public function getAddresses() { $table = new Yourdelivery_Model_DbTable_Locations(); return $table->fetchAll('companyId = ' . $this->getId()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function findAll()\n {\n return $this->em->getRepository(Address::class)->findAll();\n }", "public function getCompanyAddresses(Company $company)\n {\n $builder = $company->addresses()->getQuery();\n\n $resource = $this->datatable->setQueryBuilder($builder);\n\n return...
[ "0.6976132", "0.69164824", "0.6807836", "0.67456234", "0.67456234", "0.67003393", "0.6654495", "0.6609099", "0.65740657", "0.6525917", "0.65118945", "0.65118945", "0.65118945", "0.64756763", "0.64585054", "0.6455332", "0.639679", "0.6394862", "0.63578767", "0.6319674", "0.628...
0.7773257
0
get locations associated to this company
получить расположения, связанные с этой компанией
public function getLocations(){ $table = new Yourdelivery_Model_DbTable_Locations(); $locationRows = $table->fetchAll(sprintf('companyId = %d AND deleted = 0' , $this->getId())); $locations = new SplObjectStorage(); foreach($locationRows as $locationRow){ try{ ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAddresses() {\n $table = new Yourdelivery_Model_DbTable_Locations();\n return $table->fetchAll('companyId = ' . $this->getId());\n }", "function erp_company_get_locations() {\n global $wpdb;\n\n $cache_key = 'erp_company-location';\n $locations = wp_cache_get( $cache_...
[ "0.73204905", "0.7269763", "0.715325", "0.7091369", "0.69753784", "0.68884516", "0.6781724", "0.6735656", "0.6646941", "0.6572236", "0.64921284", "0.64795774", "0.6343667", "0.63180554", "0.6298667", "0.6285085", "0.6283854", "0.62782335", "0.62691855", "0.62336695", "0.62287...
0.7332577
0
gets all Billings of the Company filtered by $filter
получает все Billings компании, отфильтрованные по $filter
public function getBillings($filter = null) { $billingTable = new Yourdelivery_Model_DbTable_Billing(); $all = $billingTable->fetchAll('mode="company" AND refId="' . $this->getId() . '"'); $storage = new splObjectStorage(); foreach ($all AS $bill) { try { $bil...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function companyBillings($request)\n {\n if (Auth::user()->type != 'company') {\n throw new \\Exception('Unauthorized viewing of billing accounts.');\n }\n\n $data = [\n 'company_id' => Auth::user()->company->id,\n ]; \n\n $with = ['billable...
[ "0.71305776", "0.65136105", "0.61629456", "0.61071646", "0.6101719", "0.5972914", "0.5969841", "0.5923577", "0.58913356", "0.5872776", "0.58487344", "0.58283657", "0.57602173", "0.57503307", "0.55982226", "0.55793315", "0.5564691", "0.5559925", "0.5559049", "0.55503607", "0.5...
0.7499952
0
get all costcenters assigned to company
получить все costcenters, назначенные компании
public function getCostcenters() { return $this->getDepartments(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function allCompanies()\n {\n\n $companies = $this->core_companies;\n\n $items = [];\n foreach ($companies as $company) {\n\n $companyItem = new CompanyCardItem();\n $companyItem->id = $company->id;\n $companyItem->name = $company->name;\n ...
[ "0.6078663", "0.60649323", "0.6006163", "0.5973317", "0.597003", "0.5969973", "0.57983834", "0.5781345", "0.57776815", "0.57615197", "0.5721366", "0.56990105", "0.5654105", "0.56503934", "0.56401664", "0.5624275", "0.55778736", "0.55733246", "0.5542282", "0.5516759", "0.55011...
0.73927546
0
check wether this company has a department or not
проверить, есть ли в этой компании отдел или нет
public function hasDepartments() { $deps = $this->getDepartments(); if ($deps->count() > 0) { return true; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hasDepartment() {\n return $this->_has(2);\n }", "public static function isDepartment( $did ) {\n\t\t$db = JFactory::getDbo();\n\t\t$query = \"SELECT COUNT(*) FROM `#__obhelpdesk3_departments` WHERE id=\" . $did . \" AND published = 1\";\n\t\t$db->setQuery( $query );\n\t\tif ( $db->loa...
[ "0.8229404", "0.71779704", "0.7162054", "0.68531704", "0.6614436", "0.6569807", "0.6490656", "0.622401", "0.619329", "0.61737955", "0.6143337", "0.61390656", "0.6112664", "0.6096192", "0.60876095", "0.6084", "0.60730517", "0.6058022", "0.5984729", "0.5965847", "0.59422064", ...
0.74014276
1