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
Custom profile fields This function show a list of current member fields and the form that allows you to create a new field.
Пользовательские поля профиля. Эта функция отображает список текущих полей члена и форму, позволяющую создать новое поле.
function custom_profile_fields($group_id = '') { if ( ! Session::access('can_admin_members')) { return Cp::unauthorizedAccess(); } // Fetch language file // There are some lines in the publish administration language file // that we need. Cp::$ti...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function create_extra_profile_fields() {\n\n\t\t$fields = array(\n\t\t\tarray(\n\t\t\t\t'label' => _x( 'About you', 'User Profile', 'h3-mgmt' ),\n\t\t\t\t'type' => 'section'\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'label' => _x( 'City', 'User Profile', 'h3-mgmt' ),\n\t\t\t\t'id' => 'city',\n\t\t\t\t'type' => 'text'\n\t\t...
[ "0.7923675", "0.74183565", "0.73269475", "0.72999305", "0.70895445", "0.70895445", "0.70895445", "0.70895445", "0.70895445", "0.69360065", "0.6919641", "0.6851545", "0.6848342", "0.6815657", "0.6797187", "0.67676044", "0.672944", "0.6658269", "0.6657461", "0.66228104", "0.660...
0.7524985
1
Delete field confirm Warning message if you try to delete a custom profile field
Предупреждение о подтверждении удаления поля, если вы попытаетесь удалить пользовательское поле профиля
function delete_profile_field_conf() { if ( ! Session::access('can_admin_members')) { return Cp::unauthorizedAccess(); } if ( ! $m_field_id = Request::input('m_field_id')) { return false; } $query = DB::table('member_fields') ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function delete_profile_field()\n {\n if ( ! Session::access('can_admin_members'))\n {\n return Cp::unauthorizedAccess();\n }\n\n if ( ! $m_field_id = Request::input('m_field_id'))\n {\n return false;\n }\n\n $query = DB::table('member_field...
[ "0.75072765", "0.66129005", "0.6551058", "0.6292184", "0.615976", "0.6156593", "0.614716", "0.61194474", "0.6063685", "0.6059058", "0.6037804", "0.60231054", "0.6004951", "0.59831226", "0.59433424", "0.5929769", "0.5928614", "0.59032613", "0.58999074", "0.58913755", "0.588567...
0.73306984
1
Delete member profile field
Удалить поле профиля члена
function delete_profile_field() { if ( ! Session::access('can_admin_members')) { return Cp::unauthorizedAccess(); } if ( ! $m_field_id = Request::input('m_field_id')) { return false; } $query = DB::table('member_fields') -...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function removeProfile();", "public static function delete($profile_id) {\n $db = Db::instance(); // create db connection\n $q = sprintf(\"DELETE FROM members WHERE `profile_id` = %d;\",\n $profile_id\n );\n $result = $db->query($q); // execute query\n }", "public...
[ "0.7492995", "0.7444609", "0.74356025", "0.71495533", "0.69265354", "0.68938595", "0.67995715", "0.67995715", "0.67995715", "0.67995715", "0.67995715", "0.67995715", "0.67995715", "0.67995715", "0.67995715", "0.67995715", "0.6763064", "0.6762103", "0.6747529", "0.66981786", "...
0.81427956
0
Update field order This function receives the field order submission
Обновление порядка полей. Эта функция получает подачу порядка полей
function update_field_order() { if ( ! Session::access('can_admin_members')) { return Cp::unauthorizedAccess(); } foreach ($_POST as $key => $val) { DB::table('member_fields') ->where('m_field_name' , $key) ->update(['m...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testUpdateOrder()\n {\n }", "public function testUpdateOrderCustomFields()\n {\n }", "public function entry_order_update()\n {\n $ids = explode(',', $this->input->post('order'));\n\n // Set the count by the offset for\n // paginated lists\n $order_coun...
[ "0.7791764", "0.7332954", "0.71857893", "0.7115085", "0.7104576", "0.70576346", "0.6822793", "0.6772478", "0.67585963", "0.67418724", "0.6734785", "0.66832346", "0.66832346", "0.6682066", "0.66713524", "0.6661943", "0.6653669", "0.66465515", "0.6598984", "0.65571", "0.6545364...
0.7586282
1
Clear out caches related to Member Groups
Очистите кэши, связанные с членскими группами
private function clearMemberGroupCache($group_id = null) { $tags = (is_null($group_id)) ? ['member_groups'] : 'member_group'.$group_id; if (Cache::getStore() instanceof TaggableStore) { return Cache::tags($tags)->flush(); } if (!is_null($group_id)) { // Ses...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function flushCache()\n {\n Cache::forget('able_roles_for_group_' . $this->getKey());\n }", "function rebuild_group_cache()\n\t{\n\t\t$this->ipsclass->cache['group_cache'] = array();\n\n\t\t$this->ipsclass->DB->simple_construct( array( 'select' => \"*\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t 'from' ...
[ "0.7548", "0.73052794", "0.6778731", "0.67263854", "0.6629891", "0.66051793", "0.65890104", "0.65223825", "0.649551", "0.648658", "0.6449112", "0.64266455", "0.640369", "0.6402955", "0.6363249", "0.6363249", "0.6361029", "0.6324712", "0.631893", "0.6316869", "0.6305219", "0...
0.7334524
1
Find all the games available.
Найдите все доступные игры.
public function findAllGames() { return $this->entityManager->getRepository('Model\Entity\Game')->findAll(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function listAvailableGames() {\n\t$sql = \"select id, name, admin_id from games where has_started = 0\";\n\n\treturn parcoursRs(SQLSelect($sql));\n}", "function getAllGames() {\n $conn = dbcon();\n\n $query = $conn->prepare(\"SELECT * FROM games\");\n $query->execute();\n\n return $q...
[ "0.7453028", "0.7273364", "0.71258825", "0.70586735", "0.7057879", "0.693597", "0.68724483", "0.67355734", "0.6691962", "0.6658456", "0.6597075", "0.6596062", "0.65785986", "0.65634954", "0.64851665", "0.6355377", "0.6260782", "0.62076586", "0.61261606", "0.6011534", "0.59986...
0.772161
0
Find a game based on given id.
Найдите игру по заданному идентификатору.
public function findOneGameById($id) { return $this->entityManager->getRepository('Model\Entity\Game')->find($id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function findGame($id) {\n $game = null;\n foreach($this->getGames() as $currentGame) {\n if($currentGame->getAppId() == $id ||\n $currentGame->getShortName() == $id ||\n $currentGame->getName() == $id) {\n $game = $currentGame;\n ...
[ "0.8460251", "0.8050722", "0.75375545", "0.74088854", "0.7382113", "0.71895695", "0.71549255", "0.70140666", "0.69214326", "0.6917526", "0.68799925", "0.67931086", "0.6785107", "0.6730237", "0.6706342", "0.6604816", "0.65910256", "0.65773827", "0.6572179", "0.6570424", "0.653...
0.8188166
1
returns all cars in specific park by it's ID
возвращает все автомобили в определенном парке по его ID
public function getAllCarsbyParkID($park_id) { $stms = $this->conn->prepare("SELECT * FROM `cars` where `park_in` = ?"); $stms->bind_param('i', $park_id); if ($stms->execute()) { $result = $stms->get_result(); while ($data = $result->fetch_assoc()) { $cars_in_park[] = $data; } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function GetInfosFromParking($idPark){\n return Calendrier::with('calendrierJour')\n ->with('parking')\n ->where('calendrier.parking_id','=',$idPark)\n ->get()\n ;\n }", "public function getCarById($id) {\n return $this->database->fetchCa...
[ "0.6695436", "0.6674677", "0.64005756", "0.6266626", "0.61817205", "0.6104549", "0.60499394", "0.60149455", "0.5949949", "0.5894745", "0.584183", "0.58083403", "0.578465", "0.57058144", "0.56595063", "0.5656495", "0.5646301", "0.55768955", "0.55447733", "0.55284995", "0.55211...
0.7737173
0
Returns the compile directory used by WTemplate.
Возвращает каталог компиляции, используемый WTemplate.
public function getCompileDir() { return $this->compileDir; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTemplateDevelopmentDirectory()\n\t{\n\t\t$path = parent::getTemplateDevelopmentDirectory();\n\t\tif ($path && ($devel = XenForo_Application::get('cmfDevelopment')) && $devel['fileOutput'])\n\t\t{\n\t\t\t$path = preg_replace('#/file_output/templates$#', '/' . $devel['fileOutput'] . '/templates', ...
[ "0.7756926", "0.7734626", "0.75994897", "0.7504263", "0.7363054", "0.73456526", "0.73306984", "0.7300811", "0.72757846", "0.72509754", "0.7225707", "0.71716785", "0.71600115", "0.7154155", "0.7137957", "0.70887816", "0.707233", "0.70524144", "0.70260215", "0.6992742", "0.6946...
0.78232336
0
Get the sales of the seller
Получить продажи продавца
public function sellerSales() { return $this->hasMany('App\Domains\Sale\Sale'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSalePrices()\n {\n return $this->postRequest('GetSalePrices');\n }", "public function sales()\n {\n $orders = Order::seller(auth()->id())->paginate(20);\n $transactioncount = Order::transactioncount(auth()->id());\n\n return view('frontend.order.sales', com...
[ "0.6834329", "0.6740246", "0.67178535", "0.6708721", "0.6634008", "0.6632706", "0.66236013", "0.65993243", "0.65875584", "0.6538788", "0.6500296", "0.6500296", "0.64968807", "0.64893365", "0.64778495", "0.64707565", "0.6441471", "0.6430323", "0.637022", "0.6369649", "0.636947...
0.70843035
0
accessor method for blog id
метод доступа для идентификатора блога
public function getblogId(): Uuid { return ($this->blogId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_current_blog_id()\n {\n }", "public function getCurrentBlogId()\n {\n return $this->wpDatabase->blogid;\n }", "public function column_id($blog)\n {\n }", "function get_id_from_blogname($slug)\n {\n }", "public function id() { return $this->post->ID; }", ...
[ "0.7396402", "0.73099756", "0.7179314", "0.70428634", "0.701483", "0.6960083", "0.6856831", "0.6797895", "0.6742538", "0.67359555", "0.67185205", "0.67112064", "0.67112064", "0.6674694", "0.66616535", "0.66505075", "0.66373545", "0.66347927", "0.6607137", "0.65937537", "0.658...
0.7503427
0
accessor method for blog content
метод доступа к содержимому блога
public function getblogContent(): string { return ($this->blogContent); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getBlogContent()\r\n\t\t{\r\n\t\t\treturn $this->_blog_content;\r\n\t\t}", "public function content() { return $this->post->post_content; }", "public function getBlog() {}", "public function getPostContent();", "function get_content() {\r\n\t\treturn $this->content;\r\n\t}", "public funct...
[ "0.78565705", "0.7389408", "0.73880935", "0.73278165", "0.7293178", "0.71546394", "0.71546394", "0.7084372", "0.70639044", "0.7059446", "0.7059446", "0.7059446", "0.7059446", "0.7059446", "0.7059446", "0.7059446", "0.7059446", "0.7059446", "0.7059446", "0.7059446", "0.7059446...
0.75781965
1
Pluck an array of item values.
Извлеките массив значений элементов.
public function pluck($key) { return array_map(function($value) use ($key) { return $this->_uses($key) ? $this->_get($value, $key) : $value[$key]; }, $this->items); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function pluck( $array, $value, $key = null )\n {\n $results = [];\n\n list( $value, $key ) = static::explodePluckParameters( $value, $key );\n\n foreach ( $array as $item ) {\n $itemValue = data_get( $item, $value );\n\n // If the key is \"null\", we wil...
[ "0.6939254", "0.69253737", "0.6883152", "0.6870731", "0.6771398", "0.67677015", "0.6682024", "0.6640838", "0.655424", "0.6541784", "0.6471693", "0.64610755", "0.6440129", "0.64268005", "0.6333132", "0.6320376", "0.62809914", "0.6240889", "0.62224877", "0.6174675", "0.6151298"...
0.7558815
0
Serialize the items in the store.
Сериализуйте элементы в магазине.
public function serialize() { return serialize($this->items); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function saveItems()\n {\n $this->storage->save($this->items);\n }", "public function jsonSerialize() {\n\t\treturn $this->store;\n\t}", "abstract protected function saveItems();", "public function jsonSerialize()\n {\n return $this->items;\n }", "public function jsonSeria...
[ "0.66983736", "0.6472572", "0.64630777", "0.64347255", "0.64347255", "0.64337665", "0.64291084", "0.6422619", "0.6324527", "0.62942827", "0.62525773", "0.62359565", "0.6173872", "0.6142135", "0.61413753", "0.6123096", "0.6102791", "0.6102791", "0.6102243", "0.6102243", "0.610...
0.7773417
0
This method takes an edition string (aka german month name) and returns the appropriate numeric month
Этот метод принимает строку с названием месяца на немецком языке (также известное как немецкое название месяца) и возвращает соответствующий числовой месяц
public function editionToMonth(string $edition) { $months = [ 'januar' => '1', 'februar' => '2', 'märz' => '3', 'april' => '4', 'mai' => '5', 'juni' => '6', 'juli' => '7', 'august' ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function month_str_to_int(string $month){\r\n $month = strtolower($month);\r\nswitch ($month) {\r\n case \"january\":\r\n $month_int = 1;\r\n break;\r\n case \"february\":\r\n $month_int = 2;\r\n break;\r\n case \"march\":\r\n $month_int = 3;\r\n ...
[ "0.65360385", "0.63201505", "0.61307883", "0.60415167", "0.5920464", "0.5855932", "0.5757033", "0.5755627", "0.5730147", "0.57301", "0.57301", "0.5715882", "0.5688576", "0.5667482", "0.5647239", "0.5620242", "0.5583498", "0.5553419", "0.5550962", "0.5548418", "0.55332243", ...
0.7527445
0
actualiza el stock del cada producto
обновите запас каждого продукта
public function updateStock() { // foreach($this->detalle_compras as $detalle) // { // $producto= Producto::model()->findByPk($detalle->producto); // $producto->stock+=$detalle->cantidad; // $producto->save(); // } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateStock(){\n $sql='UPDATE producto SET cantidad = (? +producto.cantidad) WHERE idProducto = ?';\n $params=array($this->cantidad, $this->id);\n return Database::executeRow($sql,$params);\n }", "public function updateProductStockStatuses($command)\n {\n // Load all ...
[ "0.6957589", "0.6718165", "0.6717912", "0.6624958", "0.65651125", "0.6538797", "0.647123", "0.64649236", "0.6449436", "0.6403318", "0.6383476", "0.63828456", "0.6380696", "0.6345345", "0.6333105", "0.6267543", "0.6252047", "0.62515396", "0.62299", "0.62274766", "0.6223057", ...
0.7704564
0
TODO: Implement tv() method.
TODO: Реализовать метод tv().
public function tv() { return new MiTv(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function tv()\n {\n return new AppleTv();\n }", "function isTV(){\n\t\tif ($this->view == \"tv\"){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public function visit($v);", "public function getShow()\n {\n echo \"Show TV!!!\";\n }", "public function getVtt()\n\t{\n...
[ "0.64013946", "0.6319063", "0.6177943", "0.5753771", "0.57288533", "0.55882496", "0.5534111", "0.5529888", "0.5479828", "0.54786265", "0.5206735", "0.5183692", "0.5170392", "0.51600593", "0.51118326", "0.5088101", "0.5058789", "0.5051677", "0.50225", "0.5020995", "0.5013954",...
0.7031357
0
Converts WHERE clause set by user (if any) to string
Преобразует WHERE-условие, заданное пользователем (если оно есть), в строку
protected function getWhere(): string { return ($this->where && !$this->where->isEmpty() ? "\r\nWHERE ".$this->where : ""); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function to_str(){\n //\n $op1 = $this->operand1->to_str();\n $op2 = $this->operand2->to_str();\n \n //return a valid where clause\n return \"$op1 $this->operator $op2\";\n }", "protected function buildWhereClause() {\r\n\t\t$sql='';\r\n\t\tif (count($this->_salt_wher...
[ "0.74910533", "0.73570645", "0.71952105", "0.71356946", "0.70945054", "0.7021035", "0.69724756", "0.69190955", "0.6850719", "0.6833996", "0.67701447", "0.67402834", "0.66881204", "0.66270804", "0.66126984", "0.6602968", "0.6595263", "0.65839297", "0.65824324", "0.6565746", "0...
0.76885754
0
Made by ::Himanshu Rohilla:: This function extracts the field from jsoninfo of teachers table from the database $jsonArray is that jsoninfo field value in techers table $subN is the array of field $type is the name in jsoninfo field
Создано ::Himanshu Rohilla:: Эта функция извлекает поле из jsoninfo таблицы учителей из базы данных $jsonArray — это значение поля jsoninfo в таблице techers $subN — это массив полей $type — это имя в поле jsoninfo
public static function extractFields($jsonArray,$subN,$type){ $jsonArray=str2json($jsonArray); $subjects=$jsonArray[$type]; $subArray=explode("-", $subjects); $check=0; $str=""; foreach ($subArray as $key) { if($key!='other' && $check==0) { if($subN[$key-1]!="Others") //for Other in 6 subjects ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function grabContents( $array, $field, $sub ){\n\t\n\t$value = $array[$field][$sub];\n\t\n\treturn $value;\t\n}", "public function getDataWithTypeLevelfield() {}", "public function getDataWithTypeField() {}", "public function Get_Teacher_Name($teacher_id,$type)\n {\n //search teacher data\n $this->DB-...
[ "0.53147537", "0.50333804", "0.49514484", "0.49321753", "0.48815146", "0.48538527", "0.48520958", "0.48372263", "0.48123148", "0.47304752", "0.47231328", "0.47173953", "0.4703191", "0.46922508", "0.46744245", "0.46677336", "0.465767", "0.46158913", "0.46061224", "0.45934606", ...
0.7498344
0
Get the Jaxon class name This is the name to be used in Jaxon javascript calls.
Получите имя класса Jaxon. Это имя используется в вызовах JavaScript Jaxon.
public function getJaxonClassName() { if(!$this->xJaxonCallable) { // Make the Jaxon class name for a class without an associated callable // !! Warning !! This can happen only if this object is not registered with the Jaxon libary $xReflectionClass = new \Reflect...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getClassName() {\r\n\t\treturn($this->class_name);\r\n\t}", "public function getClassName()\n {\n return $this->class_name;\n }", "public function getClassName(): string\n {\n return $this->get(self::CLASS_NAME);\n }", "public function getClassName()\n {\n ...
[ "0.7270437", "0.7198111", "0.7167501", "0.7131746", "0.7131746", "0.711863", "0.70842016", "0.7076043", "0.7076043", "0.7076043", "0.7076043", "0.7076043", "0.7076043", "0.7076043", "0.7076043", "0.7072785", "0.70725834", "0.70725834", "0.70725834", "0.70725834", "0.70658576"...
0.86541736
0
Get the Jaxon class namespace
Получить пространство имен класса Jaxon
public function getJaxonNamespace() { if(!$this->xJaxonCallable) { // Return an empty string. return ''; } return $this->xJaxonCallable->getNamespace(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function _getNamespace() {\n $ns = explode('_', get_class($this));\n return $ns[0];\n }", "public function getElementNamespace(): string\n {\n return $this->class_fqsen->getNamespace() ?: '\\\\';\n }", "public function getJaxonClassName()\n {\n if(!$this->xJaxonC...
[ "0.71283585", "0.71051824", "0.7098272", "0.7013576", "0.69890213", "0.6983318", "0.6978528", "0.6977134", "0.6977134", "0.6977134", "0.69559443", "0.694564", "0.69252944", "0.6916709", "0.69061136", "0.6875614", "0.6875614", "0.6875614", "0.6875614", "0.6875614", "0.6875614"...
0.74601007
0
Get the Jaxon class path
Получить путь класса Jaxon
public function getJaxonClassPath() { if(!$this->xJaxonCallable) { // Return an empty string. return ''; } return $this->xJaxonCallable->getPath(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getClassPath ()\n\t{\n\n\t\treturn self::$path;\n\t}", "public static function getClassPath();", "abstract public function getClassPath();", "public function getJaxonClassName()\n {\n if(!$this->xJaxonCallable)\n {\n // Make the Jaxon class name for a class ...
[ "0.6751619", "0.67486084", "0.6715947", "0.65114766", "0.63760734", "0.63568425", "0.61606514", "0.60728514", "0.5902399", "0.5842394", "0.580435", "0.56880224", "0.5670468", "0.5666957", "0.56120485", "0.5533291", "0.55208427", "0.55208427", "0.54962665", "0.54804647", "0.54...
0.7952131
0
Protected Methods ========================================================================= Enforces all Edit Event permissions.
Защищенные методы ========================================================================= Налагает все разрешения на редактирование событий.
protected function enforceEditEventPermissions(VentiEvent $event) { $userSessionService = Craft::$app->getUser(); $permissionSuffix = ':'.$event->groupId; if (Craft::$app->getIsMultiSite()) { // Make sure they have access to this site $this->requirePermission('editSite:'.$event->siteId);...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function canEdit() {}", "abstract function allowEditAction();", "public function testAllowEditing()\n {\n $this->assertFalse(LogEntry::create()->canEdit());\n }", "public function can_edit() {\n return true;\n }", "function canEdit() {\n\t\t\treturn true;\n\t\t}", "protec...
[ "0.7210056", "0.700222", "0.6714706", "0.6699693", "0.6549286", "0.65082926", "0.6498721", "0.6340456", "0.6263351", "0.6225686", "0.6202198", "0.6199583", "0.61266273", "0.6125731", "0.61069244", "0.61044115", "0.60828185", "0.6064121", "0.60617036", "0.60607576", "0.6058103...
0.7983528
0
Remove the breadcrumbs meta box from the Genesis Admin Menu Theme Settings.
Удалите блок мета-информации "Хлебные крошки" из меню Genesis Admin Theme Settings.
public function genesis_remove_breadcrumbs_meta_box( $_genesis_theme_settings_pagehook ) { remove_meta_box( 'genesis-theme-settings-breadcrumb', $_genesis_theme_settings_pagehook, 'main' ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function remove_admin_bar_options() {\n global $wp_admin_bar;\n\n $wp_admin_bar->remove_menu('wp-logo');\n\t$wp_admin_bar->remove_menu('comments');\n\t$wp_admin_bar->remove_menu('updates');\n $wp_admin_bar->remove_menu('new-content');\n $wp_admin_bar->remove_menu('wpseo-menu');\n}", "function clean_admin_bar...
[ "0.71878266", "0.699269", "0.69920516", "0.69397587", "0.68952185", "0.685665", "0.6855024", "0.681022", "0.679052", "0.67597777", "0.67429453", "0.6742501", "0.673015", "0.67151695", "0.66783905", "0.66705006", "0.6668074", "0.6660553", "0.6652123", "0.66162604", "0.65893966...
0.766228
0
Modify the yoast breadcrumbs markup if it exists.
Измените маркировку хлебных крошек Yoast, если она существует.
public static function yoast_breadcrumbs_markup() { if ( function_exists( 'yoast_breadcrumb' ) ) { yoast_breadcrumb( '<p class="wfc-yoast-breadcrumbs">','</p>' ); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function breadcrumbs(): void\n{\n\tif (function_exists('yoast_breadcrumb')) {\n\t\tyoast_breadcrumb(\n\t\t\t'<nav aria-label=\"You are here:\" role=\"navigation\" xmlns:v=\"http://rdf.data-vocabulary.org/#\">\n\t\t\t\t<ul class=\"breadcrumbs\">',\n\t\t\t'</ul></nav>'\n\t\t);\n\t}\n}", "public static function bre...
[ "0.72456634", "0.69868267", "0.69474983", "0.69401556", "0.6530729", "0.6513027", "0.6485641", "0.64733595", "0.6422087", "0.6383638", "0.63537", "0.63520414", "0.63427633", "0.6317497", "0.6295787", "0.6268182", "0.6240378", "0.62312245", "0.62249726", "0.6222201", "0.620699...
0.78999203
0
Create a Transfer to a connected account (later):
Создайте перевод на связанный аккаунт (позднее):
public function transfert() { $account = \Stripe\Account::create([ 'country' => 'US', 'type' => 'custom', 'requested_capabilities' => ['card_payments', 'transfers'], ]); $transfer = Transfer::create([ 'amount' => 7000, 'currency' ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function makeTransferAction()\n {\n if ($_SESSION['actionAvailable']) {\n try {\n $id = $_SESSION['id'];\n $account = new BankAccountModel(null, $id);\n $toAccountID = $account->findID($_POST['accountTo']);\n $fromAccountID = $...
[ "0.6475848", "0.64360714", "0.6401717", "0.6288592", "0.62331593", "0.62331593", "0.6170379", "0.6115866", "0.6112648", "0.60731596", "0.6066703", "0.60541415", "0.6009433", "0.6005807", "0.60037595", "0.5991132", "0.5859617", "0.5779668", "0.57770884", "0.5770577", "0.571661...
0.8121908
0
Action to display the detail of a forum profile
Действие для отображения деталей профиля форума
public function detailAction($id) { $profile = $this->models[ForumProfileModel::NAME]->findById($id); if (!$profile) { $this->setError404(); return; } $view = new ForumProfileView($profile); $this->response->setView($view); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function viewforum(){\n $d = new ForumDAO();\n $d->id = (int) $_GET['f'];\n $d->fetchItem();\n\n $v = $this->getView();\n $v->assign('count',$d->count);\n\n //divide results into pages...\n $page = 0;\n if(isset($_GET['page'])){\n $page = (int) $_GET['page'];\n }\n\n $this...
[ "0.7034649", "0.69832265", "0.68581873", "0.681084", "0.67892444", "0.66976756", "0.66801256", "0.66658145", "0.6627815", "0.65919894", "0.6577643", "0.65725785", "0.65666413", "0.6493009", "0.64824843", "0.64583814", "0.6422826", "0.6410026", "0.64036274", "0.63906527", "0.6...
0.7387854
0
Stores a bean and its lists in one run.
Хранит бин и его списки за один запуск.
protected function storeBeanWithLists( OODBBean $bean ) { $sharedAdditions = $sharedTrashcan = $sharedresidue = $sharedItems = $ownAdditions = $ownTrashcan = $ownresidue = $embeddedBeans = array(); //Define groups foreach ( $bean as $property => $value ) { $value = ( $value instanceof SimpleModel ) ? $value->un...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store( $bean )\n\t{\n\t\t$processLists = $this->hasListsOrObjects( $bean );\n\t\tif ( !$processLists && !$bean->getMeta( 'tainted' ) ) {\n\t\t\treturn $bean->getID(); //bail out!\n\t\t}\n\t\t$this->oodb->signal( 'update', $bean );\n\t\t$processLists = $this->hasListsOrObjects( $bean ); //check agai...
[ "0.59807205", "0.57403755", "0.57403755", "0.57403755", "0.5735997", "0.57152575", "0.56703377", "0.5633741", "0.5633741", "0.5633741", "0.5605111", "0.55714536", "0.5565995", "0.5565995", "0.5565995", "0.5565995", "0.5565995", "0.5565995", "0.5565995", "0.5565995", "0.556599...
0.70501506
0
Constructor, requires a query writer.
Конструктор, требует писателя запросов.
public function __construct( OODB $oodb, QueryWriter $writer ) { $this->writer = $writer; $this->oodb = $oodb; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __construct($query = '')\n {\n }", "public function __construct($query)\n\t{\n $this->query = $query;\n }", "public function __construct()\n {\n parent::__construct();\n $this->query = new Query();\n }", "public function __construct(Query $query)\n ...
[ "0.710486", "0.68346035", "0.67372763", "0.66141874", "0.64779854", "0.6423041", "0.63763213", "0.6365355", "0.62995374", "0.6278779", "0.6265703", "0.6242183", "0.6239844", "0.6208648", "0.61279523", "0.61260116", "0.61260116", "0.61260116", "0.61253256", "0.6091408", "0.608...
0.7373565
0
Stores a bean in the database. This method takes a OODBBean Bean Object $bean and stores it in the database. If the database schema is not compatible with this bean and RedBean runs in fluid mode the schema will be altered to store the bean correctly. If the database schema is not compatible with this bean and RedBean ...
Хранит бин в базе данных. Этот метод принимает объект OODBBean $bean и сохраняет его в базе данных. Если схема базы данных несовместима с этим бином, а RedBean работает в режиме fluid, схема будет изменена для корректного хранения бина. Если схема базы данных несовместима с этим бином, а RedBean работает в режиме froze...
public function store( $bean ) { $processLists = $this->hasListsOrObjects( $bean ); if ( !$processLists && !$bean->getMeta( 'tainted' ) ) { return $bean->getID(); //bail out! } $this->oodb->signal( 'update', $bean ); $processLists = $this->hasListsOrObjects( $bean ); //check again, might have changed by m...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function insert(\n SugarBean $bean\n )\n {\n $sql = $this->getHelper()->insertSQL($bean);\n $this->tableName = $bean->getTableName();\n $msg = \"Error inserting into table: \".$this->tableName;\n $this->query($sql,true,$msg);\n }", "public function setBean( ...
[ "0.62246007", "0.5711354", "0.54550457", "0.5444265", "0.54250777", "0.52477354", "0.51539683", "0.51030695", "0.51023614", "0.505421", "0.50380975", "0.5031905", "0.50081635", "0.5001481", "0.49826604", "0.49486482", "0.49325716", "0.49231267", "0.49178645", "0.49169022", "0...
0.7435313
0
get image levels for a given colour (R,G,B)
получить уровни изображения для заданного цвета (R,G,B)
private function _getLevels($colour) { $pngset = $this->_image->getImageParameters(); $survey = Imagesets::where('set', $pngset->{$colour . "_srv"})->first(); if (!$survey || $survey == null) { return false; } $levels = [ 'imlev' => $this->_nullOnEr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_colour_key($image)\n\t{\n\t$width=imagesx($image);$height=imagesy($image);\n\t$colours=array(\n\t\"K\"=>array(0,0,0), \t\t\t# Black\n\t\"W\"=>array(255,255,255),\t# White\n\t\"E\"=>array(200,200,200),\t# Grey\n\t\"E\"=>array(140,140,140),\t# Grey\n\t\"E\"=>array(100,100,100),\t# Grey\n\t\"R\"=>array(2...
[ "0.6122269", "0.5980753", "0.59049666", "0.5853168", "0.57719606", "0.57417357", "0.5572143", "0.55195403", "0.55044323", "0.5496182", "0.5496182", "0.54922384", "0.54809564", "0.54726577", "0.5471085", "0.545855", "0.54564327", "0.54399055", "0.5400209", "0.53986716", "0.535...
0.7289387
0
set values for $this>_imagesets to: [ 'run_id' => ['type' => 'rgb/int', 'run_id' => 'run_id', 'OutImage' => name of the out image file, 'rgb_cube' => name of the rgb image file, 'colour (RGB)' => ['inimage' => full path to the colour image 'levels' => ['imlev' => 'v/r', 'v' => ['min' => minimum level, 'max' => maximum ...
установить значения для $this>_imagesets в: [ 'run_id' => ['type' => 'rgb/int', 'run_id' => 'run_id', 'OutImage' => имя файла выходного изображения, 'rgb_cube' => имя файла rgb-изображения, 'colour (RGB)' => ['inimage' => полный путь к цветному изображению 'levels' => ['imlev' => 'v/r', 'v' => ['min' => минимальный уро...
public function setImagesets() { $this->_imagesets = []; try { $pnmain = $this->_qobject->getPNMainTable(); $type = $this->_image->getImageParams('type'); if ($type == 'rgb') { $model = $this->_image->getImageParams('R_model'); } else {...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function prepareResults()\n {\n $final_imageset = $this->_imagesets;\n foreach ($this->_imagesets as $run_id => $imageset) {\n if (!$this->_validateOutFiles($imageset['out_images'])) {\n unset($final_imageset[$run_id]);\n break;\n }\n ...
[ "0.6177962", "0.57770747", "0.54266524", "0.5293582", "0.5273906", "0.5269328", "0.52325934", "0.52314574", "0.52173173", "0.51997393", "0.5094002", "0.50767297", "0.50542754", "0.5042736", "0.50339556", "0.4991199", "0.4982639", "0.49820957", "0.48938543", "0.48894295", "0.4...
0.7977429
0
Return the thread GUID this comment is a part of
Верните GUID потока, к которому относится этот комментарий
public function getThreadGUID() { if (isset($this->thread_guid)) { return (int) $this->thread_guid; } return $this->guid; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function getThreadId() {\n $event = $this->getEvent();\n return (empty($event['thread_ts'])) ? $event['ts']: $event['thread_ts'];\n }", "public function getCommentId(): Uuid {\n\t\treturn ($this->commentId);\n\t}", "public function getThreadId();", "public function getThreadId();", ...
[ "0.72006667", "0.6804043", "0.6697971", "0.6697971", "0.6552646", "0.6427228", "0.6409759", "0.63536245", "0.6332532", "0.6278053", "0.62532866", "0.6186716", "0.6182655", "0.61230093", "0.61120623", "0.6110163", "0.6099862", "0.60983795", "0.6060561", "0.6051642", "0.6021083...
0.75122964
0
//Blog Function Echo out titles and descriptions of posts in the directory this is called from. Should be called as Blog($Caller, $Category, $Posts_PerLine); Where $Caller is the file that would cause recursion, and $Category is a Category or false. $Posts_PerLine should be an integer: 1, 2, or 3. Blog(__DIR__, $Catego...
//Функция блога Выводит заголовки и описания записей в каталоге, из которого вызывается эта функция. Должна вызываться как Blog($Caller, $Category, $Posts_PerLine); Где $Caller — это файл, вызывающий рекурсию, а $Category — категория или false. $Posts_PerLine должен быть целым числом: 1, 2 или 3. Blog(__DIR__, $Categor...
function Blog($Caller, $Category = false, $Posts_PerLine = 2, $Show = 10) { global $Place, $Request, $Sitewide; // Start a section for the Blog to appear in. echo ' <div class="section group posts">'; // Make an empty array to append to. $Posts_Return = array(); // Set Looper to 0 so it can be incremented l...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function print_blog_medium( $item_class, $item_size, $item_index, $num_excerpt ){\r\r\n\t\r\r\n\t\tglobal $gdl_admin_translator;\r\r\n\t\tif( $gdl_admin_translator == 'enable' ){\r\r\n\t\t\t$translator_continue_reading = get_option(THEME_SHORT_NAME.'_translator_continue_reading', 'Continue Reading →');\r\r\n\t\t}e...
[ "0.58550465", "0.58442765", "0.5831811", "0.58249617", "0.5763706", "0.5741704", "0.5716905", "0.5691086", "0.56257945", "0.5601805", "0.5584385", "0.5572653", "0.55652344", "0.5549588", "0.5538291", "0.551337", "0.55002284", "0.5493192", "0.54874384", "0.54489744", "0.543655...
0.74422055
0
Is user verified their info.
Пользователь проверил свои данные.
public function isVerified(): bool;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isVerified();", "public function isVerified()\n {\n return $this->verified;\n }", "public function isVerified()\n {\n return $this->verified;\n }", "public function isVerified()\n {\n return $this->verified;\n }", "public function isVerified(): bool\n ...
[ "0.7996903", "0.76099384", "0.76099384", "0.76099384", "0.7608573", "0.76054585", "0.75338334", "0.7505393", "0.74830854", "0.7475096", "0.74514544", "0.7415994", "0.73970604", "0.73968315", "0.73253965", "0.72991395", "0.7289158", "0.72881615", "0.72698677", "0.72697705", "0...
0.7715842
1
IMPLEMENTATION Checks if the request for the webservice is a documentation request (eg: WSDL) or an actual webservice call. The implementation of this method is based on soap_server::service().
IMPLEMENTATION Проверяет, является ли запрос к веб-сервису запросом на документацию (например, WSDL) или реальным вызовом веб-сервиса. Реализация данного метода основана на soap_server::service().
function mci_is_webservice_call( $p_service, $p_data ) { global $QUERY_STRING; global $_SERVER; if ( isset( $_SERVER['QUERY_STRING'] ) ) { $t_qs = $_SERVER['QUERY_STRING']; } else if( isset( $GLOBALS['QUERY_STRING'] ) ) { $t_qs = $GLOBALS['QUERY_STRING']; } else if( isset( $QUERY_STRING ) && $QUERY_STRING != ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function IsSoapRequest(){\r\n\t\treturn !$this->IsHtmlRequested()&&!$this->IsWsdlRequested()&&!$this->IsPhpRequested();\r\n\t}", "public function isSoap()\n\t{\n\t\tif (isset($_SERVER['HTTP_SOAPACTION']) || strrpos($_SERVER['CONTENT_TYPE'], 'application/soap+xml') !== false)\n\t\t{\n\t\t\treturn true;\n\t...
[ "0.71077275", "0.65767014", "0.65205425", "0.619781", "0.6111091", "0.5847026", "0.5803209", "0.5788015", "0.5749484", "0.56965923", "0.56965923", "0.56920063", "0.5593", "0.5546146", "0.5533385", "0.5518588", "0.5518588", "0.55063266", "0.5479681", "0.5476595", "0.5469945", ...
0.71640754
0
The originator from the message received from post
Автор сообщения, полученного из поста
public function getOriginator() { return $this->getMessage()['originator']; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getOriginator()\r\n {\r\n return $this->originator;\r\n }", "public function getSender();", "public function getSender(){\n return $this->sender;\n }", "public function getSender() {\n\t\treturn $this -> data['sender'];\n\t}", "public function getSender()\n ...
[ "0.72511166", "0.7177935", "0.69404715", "0.69284654", "0.6899217", "0.6899217", "0.6899217", "0.6899217", "0.6899217", "0.6899217", "0.68301624", "0.6687188", "0.66610223", "0.6429438", "0.6429434", "0.6429434", "0.6423339", "0.6423339", "0.64001465", "0.63798064", "0.637604...
0.80638546
0
Create the arrays of sms messages to be sent
Создайте массивы сообщений SMS для отправки
public function createSms() { $messages = array(); $totalSplits = count($this->getBody()); foreach ($this->getBody() as $key => $body) { $Message = new Message(); $Message->originator = $this->getOriginator(); $Message->recipients = $this->getRecipients();...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function sms()\n {\n require_once '/path/to/vendor/autoload.php'; // Loads the library\n\n use Twilio\\Rest\\Client;\n\n $account_sid = 'AC4ddb34f50fdca1d740d28b1a5d77dee0';\n $auth_token = '9c9ab3a3005fd7641683265b682bde80';\n $client = new Client($account_sid, $...
[ "0.62404674", "0.6230427", "0.6205201", "0.61820495", "0.6132744", "0.60360855", "0.60248834", "0.6020182", "0.6007799", "0.59887743", "0.59334314", "0.592872", "0.5896595", "0.58929753", "0.5862921", "0.585773", "0.58523244", "0.5847371", "0.57869035", "0.57811826", "0.57558...
0.79584223
0
Find University Account and Profile by Email Key $university_account_emailkey = EMAILKEY
Найдите аккаунт университета и профиль по электронному ключу $university_account_emailkey = EMAILKEY
function findAccountandProfileByEmailKey($university_account_emailkey) { $this->gdlog()->LogInfoStartFUNCTION("findAccountandProfileByEmailKey"); $fr; $sqlstmnt = "SELECT ". $this->dbfas("university_account.uid, ". "university_account.sdesc, ". ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function findAccountandProfileByUID($university_account_uid)\n {\n $this->gdlog()->LogInfoStartFUNCTION(\"findAccountandProfileByUID\");\n $fr;\n $sqlstmnt = \"SELECT \".\n $this->dbfas(\"university_account.uid, \".\n \"university_account.sdesc, \".\n ...
[ "0.65660393", "0.63085896", "0.625011", "0.60315347", "0.5990234", "0.5908502", "0.5904299", "0.58560926", "0.57601464", "0.56882596", "0.5634122", "0.5618022", "0.5575341", "0.55145705", "0.55095804", "0.5500714", "0.5492082", "0.54863787", "0.5478617", "0.5447529", "0.54379...
0.81197864
0
Find All Universities Accounts and Profiles use the getAllFoundUniversitiesAccountsandProfilesRecords to get results Results_findAllUniversitiesAccountsandProfiles getResults_findAllUniversitiesAccountsandProfiles
Найдите все аккаунты и профили университетов, используя getAllFoundUniversitiesAccountsandProfilesRecords, чтобы получить результаты Results_findAllUniversitiesAccountsandProfiles getResults_findAllUniversitiesAccountsandProfiles
function findAllUniversitiesAccountsandProfiles() { $this->gdlog()->LogInfoStartFUNCTION("findAllUniversitiesAccountsandProfiles"); $fr; $sqlstmnt = "SELECT ". $this->dbfas("university_account.uid, ". "university_account.sdesc, ". "...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getUniversities(){\n \t$universities = University::all();\n \tif (count($universities)==0) {\n \t\treturn response()->json(['data' => '' , 'message' => 'No Universities'], 400);\n \t}\n \treturn response()->json(['data' => $universities , 'message' => 'ok'], 200);\n }", "public ...
[ "0.5888046", "0.56627154", "0.5639982", "0.5623293", "0.55630976", "0.5562719", "0.5557242", "0.5543273", "0.5538312", "0.547862", "0.54783696", "0.54783696", "0.5457996", "0.5396325", "0.5389802", "0.5356727", "0.5345721", "0.53415155", "0.5287015", "0.52839655", "0.52777994...
0.8041982
0
Provides the team statistics of the match.
Предоставляет статистику команды матча.
public function teamStatistics(): Response { return $this->call('statistics/team'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function team_info() {\n\n $method=\"team.info\";\n $payload = array();\n $team_details = $this->apicall($method, $payload);\n $this->debug(\"team-details.log\", json_encode($team_details));\n return $team_details;\n\n }", "function viewTeamStatistics() {\n global $user;\n $p...
[ "0.62857914", "0.62632436", "0.6202364", "0.6191398", "0.61606276", "0.6122533", "0.61190116", "0.60939455", "0.6086018", "0.60266083", "0.60195136", "0.5995488", "0.5971533", "0.5966107", "0.590586", "0.5888152", "0.5851228", "0.5841663", "0.5832108", "0.5797617", "0.5791846...
0.7270759
0
Add item to Citizenship_Status_Reference value
Добавить элемент в значение Citizenship_Status_Reference
public function addToCitizenship_Status_Reference(\WorkdayWsdl\\StructType\Citizenship_StatusObjectType $item) { // validation for constraint: itemType if (!$item instanceof \WorkdayWsdl\\StructType\Citizenship_StatusObjectType) { throw new \InvalidArgumentException(sprintf('The Citizens...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addToCitizenship_Reference(\\WorkdayWsdl\\\\StructType\\Citizenship_StatusObjectType $item)\n {\n // validation for constraint: itemType\n if (!$item instanceof \\WorkdayWsdl\\\\StructType\\Citizenship_StatusObjectType) {\n throw new \\InvalidArgumentException(sprintf('T...
[ "0.7127568", "0.58020926", "0.5747396", "0.56953216", "0.5609012", "0.5604157", "0.549201", "0.524445", "0.5183837", "0.5145766", "0.51454157", "0.51381147", "0.51251763", "0.51157403", "0.50851846", "0.49871188", "0.49811763", "0.49796563", "0.49720854", "0.49453866", "0.491...
0.72667485
0
Add item to Has_Health_Insurance_Data value
Добавить элемент в значение Has_Health_Insurance_Data
public function addToHas_Health_Insurance_Data(\WorkdayWsdl\\StructType\Has_Health_Insurance_DataType $item) { // validation for constraint: itemType if (!$item instanceof \WorkdayWsdl\\StructType\Has_Health_Insurance_DataType) { throw new \InvalidArgumentException(sprintf('The Has_Healt...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function insertHospitalHealth($globalUtil,$data){\n\t\t\t\n\t\t\t$data_health_details=$data;\n\t\t\tif($globalUtil->sqlinsert($data_health_details,TABLE_HOSPITAL_HEALTH_INFORMATION)){\n\t\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse{\n\t\t\treturn false;\n\t\t\t}\n\t\t}", "public function addInventory($data)\...
[ "0.5523198", "0.54750913", "0.54721284", "0.5279901", "0.52729404", "0.52502596", "0.5205121", "0.5184897", "0.5184483", "0.51840675", "0.5177232", "0.516138", "0.51309615", "0.50829744", "0.50753415", "0.5062778", "0.5060599", "0.5028072", "0.50098294", "0.5009546", "0.49970...
0.7119563
0
Add item to Annual_Income_Data value
Добавить элемент в значение Annual_Income_Data
public function addToAnnual_Income_Data(\WorkdayWsdl\\StructType\Annual_Income_DataType $item) { // validation for constraint: itemType if (!$item instanceof \WorkdayWsdl\\StructType\Annual_Income_DataType) { throw new \InvalidArgumentException(sprintf('The Annual_Income_Data property ca...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function financialIncome($userId, $business_id, $answers, $conn)\n {\n $business_info = [];\n $business_info['income amounts'] = '';\n $business_info['income items'] = '';\n $answer_by_id = getAnswerById($answers, 64);\n foreach ($answer_by_id as $answer) {\n if ($b...
[ "0.5550937", "0.55450445", "0.53933877", "0.53620213", "0.52812254", "0.5173172", "0.5171656", "0.51674694", "0.5162144", "0.5137994", "0.51343185", "0.51031166", "0.5100441", "0.50778276", "0.50770307", "0.5073153", "0.5071423", "0.5066066", "0.5066066", "0.50657934", "0.503...
0.71007663
0
Show the form for creating a new roletask
Показать форму для создания новой роли задачи
public function create() { return View::make('roletasks.create'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create()\n {\n return view('tasks.form_Create');\n }", "public function create()\n\t{\n\t\treturn View::make(\"admin.new_tplan\");\n\t}", "public function create()\n {\n return view('WorkFlow.WorkTask.add');\n }", "public function show_create_form_task()\n {\n ...
[ "0.68853784", "0.6873191", "0.6871351", "0.6869024", "0.67993623", "0.6797655", "0.679123", "0.67644745", "0.67561716", "0.6724193", "0.6701313", "0.6668373", "0.6666515", "0.6666515", "0.665514", "0.6650721", "0.6634514", "0.6620968", "0.66092646", "0.66042995", "0.65917885"...
0.78230935
0
Return list of acceptable exit codes.
Вернуть список допустимых кодов завершения.
public function getAcceptableExitCodes(): array { return [0]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getExitCode();", "public function getExitCode();", "public function getExitCode() {}", "protected static function getBackupCodeJsonStatusCodes()\n {\n return array(\n self::NO_IDENTIFIER_SUPPLIED,\n self::NO_TOKEN_SUPPLIED,\n self::INVALID_TOKEN,\n ...
[ "0.6533462", "0.6533462", "0.6393842", "0.62546176", "0.624696", "0.6161016", "0.6140768", "0.60604286", "0.5890592", "0.5884754", "0.58738124", "0.58467287", "0.58005387", "0.5786407", "0.5744362", "0.57222724", "0.5713429", "0.5690393", "0.5690393", "0.5690393", "0.5642839"...
0.8426823
0
Returns a string of any config parameters set for use in the command.
Возвращает строку любого параметра конфигурации, заданного для использования в команде.
protected function getConfigParameterOptions(): string { $options = ''; foreach ($this->configParameters as $name => $value) { $options .= ' -c ' . escapeshellarg($name . '=' . $value); } return $options; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function declareConfig(){\n\n $output = '';\n \n foreach( $this->getConfig() as $key => $value ){\n \n $output .= $key . '=' . json_encode( $value ) . ';';\n \n }\n \n return $output;\n\n }", "public function getConfigToStrin...
[ "0.67103946", "0.6405553", "0.63559854", "0.63160545", "0.63160545", "0.63160545", "0.63160545", "0.63160545", "0.63160545", "0.63160545", "0.63160545", "0.63113356", "0.61824024", "0.61281925", "0.61209506", "0.6064427", "0.6052018", "0.5963647", "0.5957408", "0.59475636", "...
0.7755274
0
Get all subscribers for use in NewslettersSubscribersGrid
Получить всех подписчиков для использования в NewslettersSubscribersGrid
public function subscribersGrid(){ // Define range and order $start = abs(Input::postInt('start')); $limit = abs(Input::postInt('limit')); $order = Input::post('sort', 'created'); $direction = Input::post('dir', 'DESC'); // Search query $search = Input::post('search', null); // Get records ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSubscribers()\n {\n return $this['subscribers'];\n }", "public function index()\n {\n $subscribers = $this->subscribers->getSubscribers();\n\n abort_unless(! empty($subscribers), 204);\n\n return $subscribers;\n }", "public function getSubscriberEmails...
[ "0.71207565", "0.7112079", "0.70852834", "0.6922227", "0.6912323", "0.6907467", "0.6900009", "0.68698066", "0.6855104", "0.68364584", "0.68131715", "0.67114973", "0.6674013", "0.6621225", "0.6608157", "0.6589649", "0.658936", "0.65737164", "0.65682507", "0.6530359", "0.652891...
0.7556239
0
Delete subscriber from NewslettersSubscribersGrid
Удалить подписчика из NewslettersSubscribersGrid
public function subscribersGridDelete(){ // Get record $record = model('NewsletterSubscriberModel')->get(Input::postInt('id')); if(!$record){ output_json_encode(array( 'success' => false, 'message' => 'Record bestaat niet (meer)' )); } // Delete record model('NewsletterSubscriberModel')->d...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function mpp_delete_subscriber(){\n $response = array();\n $response['success'] = false;\n $response['message'] = __( 'Error: Unable to delete subscriber.', 'masterpopups' );\n\n if( ! $this->is_valid_nonce( 'xbox_ajax_nonce' ) ){\n die();\n }\n\n if( ! i...
[ "0.70251536", "0.6815335", "0.6479154", "0.6385265", "0.63705546", "0.63439643", "0.6296581", "0.6210243", "0.6196193", "0.61348736", "0.6119829", "0.6042758", "0.60207623", "0.60154253", "0.60154253", "0.60154253", "0.6002186", "0.5986731", "0.5980136", "0.59759027", "0.5943...
0.8156067
0
Create CSV with all subscribers
Создать CSV со всеми подписчиками
public function exportSubscribers(){ // Get all records $list = model('NewsletterSubscriberModel')->adminGetForExport(); // Generate CSV data $counter = 1; $csv = 'Nr;Naam;Email;Ingeschreven;Blacklisted'; foreach($list as &$row){ $csv .= "\n" . implode(';', array( $counter++, str_replace(';', '...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function generateCsv()\n\t{\n\t\t$doc = new CsvDocument(array(\"Member Name\",\"Email Address\",\"Alternate Email\"));\n\t\tforeach($this->emailList as $record)\n\t\t{\n\t\t\t$doc->addRow(array(\n\t\t\t\t$record->name,\n\t\t\t\t$record->emailAddress, \n\t\t\t\t$record->alternateEmail\n\t\t\t));\n\t\t}\n\n\...
[ "0.7203708", "0.65500075", "0.65495133", "0.6234266", "0.61544544", "0.6090246", "0.6088259", "0.6053872", "0.6038808", "0.600456", "0.59591633", "0.5946776", "0.5890853", "0.5887324", "0.5884497", "0.5863396", "0.585811", "0.5844999", "0.58436763", "0.58313954", "0.58263046"...
0.78714705
0
Find records by filters
Найти записи по фильтрам
public function findBy(array $filters);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function findBy(array $where = []);", "public function findWhere(array $conditions);", "public function findByFilter(array $filter, array $order);", "public function find($filters = array())\n\t{\n\t\t$sql = \"SELECT * FROM {$this->_tbl}\";\n\t\t$sql .= $this->_buildQuery($filters);\n\n\t\t$this->_db...
[ "0.6765626", "0.6736704", "0.6635374", "0.66076905", "0.66076905", "0.65741104", "0.65111095", "0.63864255", "0.63671374", "0.6325315", "0.63219833", "0.6316628", "0.62834865", "0.6225497", "0.62124336", "0.61998004", "0.6190806", "0.6186709", "0.6152327", "0.61360854", "0.61...
0.7368149
0
Override Recursively stripslashes an input variable: Strips slashes if magic quotes are enabled
Переопределить рекурсивно stripslashes переменной входа: Удаляет слэши, если включены magic quotes
public static function stripslashes($value) { if (Kohana::$magic_quotes === TRUE) { if (is_array($value) OR is_object($value)) { foreach ($value as $key => $val) { // Recursively clean each value $value[$...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function stripslashes($str)\n{\n}", "function stripslashes_deep($value)\n {\n }", "function stripslashes2($valeur) { //vire les / lorsqu'ils sont en double ou triple\n\t$valeur = str_replace(\"\\\\\\\\'\",\"'\",$valeur);\n\t$valeur = str_replace(\"\\\\'\",\"'\",$valeur);\n\t$valeur = str_replace(\"'\\\\\...
[ "0.79849356", "0.7842811", "0.7804451", "0.7718653", "0.7680127", "0.76758987", "0.7654944", "0.75637156", "0.75598323", "0.75404036", "0.7533922", "0.75188017", "0.7494904", "0.7455249", "0.74338", "0.73929465", "0.73590666", "0.7338662", "0.7328473", "0.7305263", "0.730423"...
0.7984726
1
Get members of a project.
Получить участников проекта.
public function getMembers($project) { return $this->dao->select('*')->from(TABLE_TEAM)->where('type')->eq('project')->andWhere('id')->eq($project)->fetchGroup('role'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function members($projectId)\n {\n return $this->service->members($projectId);\n }", "public function members($project_id, $username_query = null)\n {\n return $this->get($this->getProjectPath($project_id, 'members'), array(\n 'query' => $username_query\n ));\n ...
[ "0.7812578", "0.7383446", "0.7204644", "0.70955086", "0.7007273", "0.68072593", "0.68028706", "0.6802554", "0.6798794", "0.6784355", "0.6732902", "0.6701786", "0.6594499", "0.65647525", "0.65103817", "0.6499737", "0.64818937", "0.64554256", "0.6445024", "0.63968575", "0.63763...
0.7840628
0
Sets the value of col.
Устанавливает значение col.
public function setCol($col) { $this->col = $col; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function set($col, $value)\n {\n return $this->setCol($col, $value);\n }", "public function set($column,$value);", "function SetCol($col)\n {\n \n $this->col=$col;\n $x=10+$col*100;\n $this->SetLeftMargin($x);\n ...
[ "0.7704614", "0.7291097", "0.70829356", "0.7081474", "0.70376116", "0.6931861", "0.6914333", "0.6816205", "0.6535936", "0.6447491", "0.63550705", "0.6347688", "0.6347185", "0.6339623", "0.6293226", "0.61857957", "0.6084001", "0.60778767", "0.6027199", "0.59601724", "0.5952182...
0.7548401
1
Sets the value of row.
Устанавливает значение строки.
public function setRow($row) { $this->row = $row; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setRow($value)\n {\n return $this->set('Row', $value);\n }", "public function setRow($value)\n {\n return $this->set('Row', $value);\n }", "private function set($row, $column, $value) {\n if (!$this->invalid($row, $column)) {\n $this->matrix[$row][$column] = $v...
[ "0.74784124", "0.74780744", "0.7337037", "0.7166417", "0.6854541", "0.6788905", "0.67249", "0.65419453", "0.65386856", "0.64631575", "0.63638407", "0.6354721", "0.63189363", "0.63183933", "0.62069595", "0.6192698", "0.61419684", "0.61082315", "0.61050755", "0.60907537", "0.60...
0.7584379
0
Gets the value of idNiche.
Получает значение idNiche.
public function getIdNiche() { return $this->idNiche; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getNiche_code () {\n\t$preValue = $this->preGetValue(\"niche_code\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->niche_code;\n\treturn $data;\n}", "public function getIdNiveldinst()\n {\n return $this->id_niveldinst;\n }", "...
[ "0.7133589", "0.7067749", "0.68588394", "0.66942066", "0.66018254", "0.6574853", "0.6560361", "0.65448534", "0.65211517", "0.65211517", "0.65101314", "0.65009916", "0.64562225", "0.64467156", "0.6436849", "0.64319485", "0.6420491", "0.6420491", "0.64129543", "0.638805", "0.63...
0.87434137
0
Sets the value of idNiche.
Устанавливает значение idNiche.
public function setIdNiche($idNiche) { $this->idNiche = $idNiche; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getIdNiche()\n {\n return $this->idNiche;\n }", "public function setIdEdificio($n)\n {\n echo $this->getContenido();\n $this->c_id_edificio = $n;\n }", "public function setIdFornecedor($IdFornecedor) {\n $this->IdFornecedor = $IdFornecedor;\n ...
[ "0.71383", "0.67889714", "0.6596262", "0.62973046", "0.6275838", "0.6275838", "0.6234438", "0.6206346", "0.6205787", "0.61361074", "0.61126214", "0.6095467", "0.6093289", "0.6088652", "0.6088652", "0.6050693", "0.6023362", "0.60219646", "0.6006516", "0.5979328", "0.59639543",...
0.85072297
0
Creates a new SystemAdvert model. If creation is successful, the browser will be redirected to the 'view' page.
Создает новый объект модели SystemAdvert. Если создание успешно, браузер будет перенаправлен на страницу просмотра.
public function actionCreate() { $model = new SystemAdvert(); if(Yii::$app->request->isAjax){ return SystemAdvert::Add(Yii::$app->request->post(),$model); } return $this->render('create', [ 'model' => $model, ]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function actionCreate()\n {\n $model = new Advert();\n $advertPriceModel = new AdvertPrice();\n $advertAddressModel = new AdvertAddress();\n\n $models_loaded = false;\n if ($model->load(Yii::$app->request->post())\n && $advertPriceModel->load(Yii::$app->reque...
[ "0.7182746", "0.6816089", "0.675727", "0.6431346", "0.64113575", "0.6343284", "0.6317958", "0.6284351", "0.6281546", "0.61811036", "0.6167923", "0.6154153", "0.61518955", "0.61421794", "0.6137632", "0.6121614", "0.6120738", "0.61197853", "0.61122143", "0.61074907", "0.6105708...
0.79990286
0
Return a list of locales to try for any POSIXstyle locale specification.
Вернуть список локалей для попытки в любом POSIX-стиле спецификации локали.
function get_list_of_locales($locale) { /* Figure out all possible locale names and start with the most * specific ones. I.e. for sr_CS.UTF-8@latin, look through all of * sr_CS.UTF-8@latin, sr_CS@latin, sr@latin, sr_CS.UTF-8, sr_CS, sr. */ $locale_names = array(); $lang = NULL; $count...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function get_date_locales() {\n\n\t\treturn array(\n\t\t\t'af',\n\t\t\t'ar-dz',\n\t\t\t'ar-kw',\n\t\t\t'ar-ly',\n\t\t\t'ar-ma',\n\t\t\t'ar-sa',\n\t\t\t'ar-tn',\n\t\t\t'ar',\n\t\t\t'az',\n\t\t\t'be',\n\t\t\t'bg',\n\t\t\t'bm',\n\t\t\t'bn',\n\t\t\t'bo',\n\t\t\t'br',\n\t\t\t'bs',\n\t\t\t'ca',\n\t\t\t'cs',\n\...
[ "0.65877396", "0.65136695", "0.6474136", "0.6431601", "0.6419947", "0.63625294", "0.6280712", "0.62750345", "0.6262989", "0.6017824", "0.59920526", "0.5966098", "0.5964326", "0.590811", "0.589269", "0.5878421", "0.5831139", "0.5788041", "0.57153296", "0.5703613", "0.5688937",...
0.7298083
0
Get the codeset for the given domain.
Получите набор кодов для заданной области.
function _get_codeset($domain = null) { global $text_domains, $default_domain, $LC_CATEGORIES; if (!isset($domain)) $domain = $default_domain; return (isset($text_domains[$domain]->codeset)) ? $text_domains[$domain]->codeset : ini_get('mbstring.internal_encoding'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function competitors($domain) {\n $parameters = array(\n 'method' => __FUNCTION__,\n 'domain' => $domain\n );\n return $this->get_data($parameters);\n }", "public function buildByDomain($domain);", "public static function &get($domain = 'app', $code ...
[ "0.58632636", "0.5573025", "0.5479079", "0.5426461", "0.5402162", "0.52901214", "0.52824926", "0.52238524", "0.51880455", "0.5177259", "0.5171612", "0.5167441", "0.5146167", "0.5071719", "0.50621545", "0.4982146", "0.49749723", "0.4967076", "0.49528164", "0.491325", "0.488374...
0.7325654
0
Custom implementation of the standard gettext related functions Returns passed in $locale, or environment variable $LANG if $locale == ''.
Непосредственная реализация стандартных функций gettext. Возвращает переданный $locale, или переменную окружения $LANG, если $locale == ''.
function _get_default_locale($locale) { if ($locale == '') // emulate variable support return getenv('LANG'); else return $locale; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function determine_locale()\n {\n }", "function load_default_textdomain($locale = \\null)\n {\n }", "function _setlocale($category, $locale)\r\n\t{\r\n\t\tglobal $CURRENTLOCALE, $EMULATEGETTEXT;\r\n\t\tif ($locale === 0) { // use === to differentiate between string \"0\"\r\n\t\t\tif ($CURRENTLOCALE...
[ "0.71676046", "0.679914", "0.67923117", "0.6607854", "0.6599435", "0.65572244", "0.6482253", "0.647303", "0.6428996", "0.6428996", "0.6408359", "0.6394495", "0.6377014", "0.6377014", "0.6377014", "0.6358537", "0.6338468", "0.6319284", "0.6319284", "0.63028216", "0.6285627", ...
0.74165916
0
Context version of gettext.
Версия gettext в контексте.
function _pgettext($context, $msgid) { $l10n = _get_reader(); return _encode($l10n->pgettext($context, $msgid)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function yourls_translate_with_context( $text, $context, $domain = 'default' ) {\n\t$translations = yourls_get_translations_for_domain( $domain );\n\treturn yourls_apply_filter( 'translate_with_context', $translations->translate( $text, $context ), $text, $context, $domain );\n}", "function _dpgettext($domain, $...
[ "0.70337635", "0.702989", "0.69975466", "0.6942725", "0.6922286", "0.6817172", "0.6787126", "0.67275834", "0.6726504", "0.6709468", "0.6651789", "0.6607489", "0.650047", "0.6466971", "0.6364327", "0.63282657", "0.625998", "0.6259594", "0.625575", "0.6252893", "0.6184511", "...
0.7280228
0
Creates a new Link entity.
Создаёт новый объект Link.
public function createAction() { $request = $this->getRequest(); $em = $this->getDoctrine()->getManager(); $form = $this->createForm(new LinkType(), new Link()); $formHandler = new LinkHandler($form, $request, new Link(), $em); if ($formHandler->process()) { retu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static public function createLink($data = [])\n\t{\n\t\t$link = new Link;\n\n\t\t// set the link fields\n\t\t$link->object_id = $data['object_id'];\n\t\t$link->object_type = $data['object_type'];\n\t\t$link->link_type = $data['link_type'];\n\t\t$link->link = $data['link'];\n\n\t\t// save the record to the DB\n\t\t...
[ "0.7033701", "0.6778633", "0.65719986", "0.6522269", "0.64979774", "0.64273775", "0.6370544", "0.6317709", "0.6287801", "0.61893976", "0.61573434", "0.6138791", "0.61219", "0.60724354", "0.60390383", "0.6025005", "0.60012007", "0.59817463", "0.5953418", "0.59523094", "0.59500...
0.7034637
0
Sub Category list End // Services list //
Список подкатегорий окончен // Список услуг //
public function Services_list($category_id,$sub_category_id) { $sQuery = "SELECT A.main_cat_id, B.main_cat_name, B.main_cat_ta_name, A.sub_cat_id, C.sub_cat_name, C.sub_cat_ta_name, A.id AS service_id, A.service_name, A.service_ta_name, A.service_pic FROM se...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function servicecat(){\n\t\t$modelservices = new Application_Model_Services();\n\t\t\n\t\t$servicelist = $modelservices->servicesdata();\n\t\t//prd($servicelist);\n\t\t\t\t\t\n \t\t$this->addElement('text', 'service_name', array (\n\t\t\t\"required\" => TRUE,\n\t\t\t'class' => 'form-control required',\n\t\t...
[ "0.7079006", "0.70049", "0.6975326", "0.68490124", "0.6800223", "0.6797876", "0.6638572", "0.6527239", "0.64200914", "0.636184", "0.6267765", "0.6234958", "0.62005156", "0.61788154", "0.61383957", "0.6102683", "0.60817164", "0.6075677", "0.60699904", "0.60568374", "0.6053228"...
0.7361846
0
Additional service orders End // Remove Additional service remove //
Дополнительные заказы на услуги Конец // Удалить дополнительные услуги удалить //
public function Remove_addtional_services($user_master_id,$order_additional_id) { $sQuery = "DELETE FROM `service_order_additional` WHERE id = '".$order_additional_id."'"; $serv_result = $this->db->query($sQuery); if($serv_result) { $response = array("status" => "success", "msg" => "Additional Service Remo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function remove($order){\r\n /*\r\n $cache_id = \"standingorder_\" . $order;\r\n \r\n //remove standing order from cache\r\n if(Cache::has($cache_id)){\r\n Cache::forget($cache_id);\r\n }\r\n */\r\n $so = $this->soap->removeStandingOrder($th...
[ "0.6045041", "0.60044235", "0.59983927", "0.5996692", "0.5705694", "0.5700811", "0.5671095", "0.5643466", "0.562497", "0.5604663", "0.55761385", "0.5566014", "0.5527308", "0.55256015", "0.5522349", "0.5522071", "0.54942816", "0.54809827", "0.54663724", "0.54470414", "0.544421...
0.7163049
0
Gets any information about uploaded file
Получает любую информацию о загруженном файле
public function getUploadedFileInfo();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function fileInfo()\n {\n return R::findAll('uploaddetail');\n }", "public function getFileInfo();", "public function getFileInfo()\n {\n return $this->_info;\n }", "public function fileInfo() {\n $this->file = file_load($this->fid);\n\n // Creating an array...
[ "0.76784587", "0.7228467", "0.7211752", "0.71344936", "0.71157706", "0.704497", "0.70148534", "0.698039", "0.6892312", "0.6883726", "0.6862476", "0.6845302", "0.68440497", "0.68011475", "0.67814106", "0.67814106", "0.67814106", "0.67814106", "0.67814106", "0.67814106", "0.678...
0.8080177
0
Return the item bonus. All (default) or only agility/stamina/intellect/spirit/strength
Вернуть бонус предмета. Все (по умолчанию) или только ловкость/выносливость/интеллект/дух/сила
function ItemBonus($type='all') { // All bonus. if($type == 'all') { return array( 'agility' => $this->bonus['agility'], 'stamina' => $this->bonus['stamina'], 'intellect' => $this->bonus['intellect'], 'spirit' => $this->bonus['spirit'], 'strength' => $this->bonus['strength'] ); // Agility bonu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getBonus()\n {\n return $this->bonus;\n }", "public function getBonus()\n {\n return $this->bonus;\n }", "public function getBonus()\n {\n return $this->bonus;\n }", "public function get_bonus() {\n\t\treturn $this->_bonus;\n\t}", "public function getB...
[ "0.6664878", "0.6664878", "0.6664878", "0.66187876", "0.6468015", "0.6287891", "0.6235252", "0.60177094", "0.57873756", "0.5746364", "0.57268965", "0.5719573", "0.56395066", "0.55852115", "0.55727804", "0.5489885", "0.54569614", "0.5396031", "0.53766286", "0.5307276", "0.5268...
0.7902962
0
Register the other providers
Зарегистрируйте другие провайдеры
protected function registerOtherProviders() { foreach ($this->otherProviders as $key => $value) { $this->app->register($value); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function registerAdditionalProviders()\n {\n foreach ($this->providers as $provider) {\n $this->app->register($provider);\n }\n }", "protected function registerProviders() {\n\n\t\tforeach ( $this->getProviders() as $provider ) {\n\t\t\t$this->registerProvider( $provider );\...
[ "0.80990905", "0.79657656", "0.7937083", "0.7912309", "0.7839168", "0.7661141", "0.7418851", "0.73720485", "0.7355703", "0.7340319", "0.7290158", "0.7285044", "0.7239888", "0.7233176", "0.7213232", "0.7131889", "0.7128406", "0.70981735", "0.70763403", "0.7064909", "0.7055147"...
0.8465206
0
end projectArticleComment() Function to ExportArticleToPdf
Функция end projectArticleComment() для экспорта статьи в PDF
public function ExportArticleToPdf(){ $articleData = Session::get("article_detail"); return View::make('front.library.project_article_pdf',compact('articleData')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function makePdf(){\n\t\t$content = $_POST['data'];\n\t\t$id = $_POST['articleId'];\n\t\t\n\t\t$rootAndFile = $this->getRootArticleName($id);\n\t\t$fileName = $rootAndFile['fileName'];\n\t\t$root = $rootAndFile['root'];\n\t\t$path = $root.\"/pdfDirectory/articlePdf\";\n\t\t\n\t\t$iscreated = createPdf($path...
[ "0.66042924", "0.6277505", "0.6275263", "0.6261886", "0.624097", "0.6134733", "0.6118844", "0.6118844", "0.6118844", "0.6118844", "0.6118844", "0.6118011", "0.6118011", "0.6118011", "0.6118011", "0.6118011", "0.6118011", "0.6116677", "0.6116677", "0.6116677", "0.6091429", "...
0.7239905
0
getSocID converts a society's name to a society's ID Looks it up in our societies table in our database.
getSocID преобразует название общества в идентификатор общества. Ищет его в нашей таблице обществ в нашей базе данных.
function getSocID($soc_name){ global $con; $query="select id from societies where name='$soc_name'"; $result=mysqli_query($con,$query); if(!$result) { print "getSocID query failed"; } $socID = mysqli_fetch_assoc($result)[id]; $result->close(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getSoId($so_name)\n\t{\n\t\tglobal $log;\n $log->info(\"in getSoId \".$so_name);\n\t\tglobal $adb;\n\t\tif($so_name != '')\n\t\t{\n\t\t\t$sql = \"select salesorderid from ec_salesorder where subject='\".$so_name.\"'\";\n\t\t\t$result = $adb->query($sql);\n\t\t\t$so_id = $adb->query_result($...
[ "0.5764965", "0.5733738", "0.5635371", "0.5628279", "0.56046456", "0.5555978", "0.5545285", "0.54645175", "0.5385107", "0.53564775", "0.5337688", "0.53301334", "0.5327994", "0.53257483", "0.5325536", "0.5298452", "0.52906454", "0.5286247", "0.52810794", "0.52804357", "0.52537...
0.75791097
0
Provides a SQL query for all the posts of a given society, sorted in a given manner The current possible sorting options are DesDate Descending Date, or Most Recent Posts first AscDate Ascending Date, or Oldest Posts first AscUN Ascending Username, or Alphabetically sorted by Username DesUN Descending Username, or Reve...
Предоставляет SQL-запрос для всех постов заданного общества, отсортированных в заданном порядке. В настоящее время доступны следующие варианты сортировки: DesDate — по дате в порядке убывания, Most Recent Posts first — сначала самые свежие посты, AscDate — по дате в порядке возрастания, Oldest Posts first — сначала сам...
function getQuery($id, $sortOpt) { global $con; $query; switch($sortOpt) { case DesDate: print "Descending Date Sorting:<br>"; $query = "select * from posts where society_id=$id order by date desc"; break; case A...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function fPosts($orderCol=\"id\",$orderType=\"DESC\"){\n \n $sql = \"SELECT * FROM post ORDER BY $orderCol $orderType\";\n \n return fetchAll($sql);\n}", "function sortPosts($filter, $order, $tab, $start = null){\r\n\t\t$start = $start != null ? $start.\",\" : \"\";\r\n\r\n\t\tswitch($filter){\r\n\t...
[ "0.6126446", "0.5936175", "0.5925638", "0.58594465", "0.58591753", "0.5785026", "0.56695956", "0.56677604", "0.5616366", "0.5612559", "0.5600474", "0.5580399", "0.5546051", "0.5533871", "0.5524084", "0.5508617", "0.5452207", "0.5441366", "0.54298586", "0.5411559", "0.54057026...
0.7074474
0
Takes in a tuple for a post and its poster and filters it out if it doesn't match a filter option and argument. The filter option is a predefined string corresponding to an implemented filtering option, and the filter argument is an argument for that filtering option. Filter Options are: curQtr: Only show posts from th...
Принимает кортеж для поста и его автора и отфильтровывает его, если он не соответствует опции фильтра и аргументу. Опция фильтра — это заранее определенная строка, соответствующая реализованной опции фильтра, а аргумент фильтра — аргумент для этой опции фильтра. Опции фильтра: curQtr: Показывать только посты из текущег...
function filterPosts($filterOpt, $filterArg, $post, $poster) { global $con; switch($filterOpt) { case none: return true; break; case curQtr: if(strtotime($post[date])<strtotime(getCurrentQuarter())) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function charity_is_hope_team_query_add_filters($args, $filter) {\n\t\tif ($filter == 'team') {\n\t\t\t$args['post_type'] = 'team';\n\t\t}\n\t\treturn $args;\n\t}", "function filter_posts( $params ) {\n global $wpdb;\n\n $facet = $params['facet'];\n $selected_values = $params['selected_value...
[ "0.57947093", "0.5710605", "0.565178", "0.55360526", "0.55304617", "0.5464644", "0.542159", "0.541844", "0.53660464", "0.52823395", "0.5252831", "0.52446395", "0.5219406", "0.5203829", "0.518452", "0.5154773", "0.5132999", "0.5127192", "0.51054466", "0.5085962", "0.5064871", ...
0.79693866
0
Clean Keys This is a helper function. To prevent malicious users from trying to exploit keys we make sure that keys are only named with alphanumeric text and a few other items.
Чистые ключи. Это вспомогательная функция. Чтобы предотвратить попытки злонамеренных пользователей эксплуатировать ключи, мы убеждаемся, что ключи содержат только алфанические символы и несколько других элементов.
private function _clean_input_keys($str) { if (!preg_match('/^[a-z0-9:_\-\/-\\\\*]+$/i', $str)) { log_error('Disallowed Key Characters:' . $str); exit ('Disallowed Key Characters:' . $str); } return $str; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function clean_input_keys($str) {\n\t\t\n\t\tif ( ! preg_match('#^[&a-zA-Z0-9\\.:_/\\-\\s]+$#uD', $str)) {\n\t\t\techo $str.'<br />';\n\t\t\texit('Disallowed key characters in global data.');\n\t\t}\n\n\t\treturn $str;\n\t}", "function sanitize_key( $key ) {\n\t$raw_key = $key;\n\t$key = strtolower( $k...
[ "0.7027041", "0.69071436", "0.67198515", "0.6557368", "0.65082", "0.6465032", "0.6351981", "0.6332553", "0.6290126", "0.6271234", "0.6215472", "0.61461264", "0.60817826", "0.60003483", "0.5980303", "0.59647024", "0.59220487", "0.59105563", "0.5831905", "0.57118905", "0.570073...
0.72053856
0
Remove Invisible Characters This prevents sandwiching null characters between ascii characters, like Java\0script.
Удалить невидимые символы Это предотвращает вставку нулевых символов между символами ASCII, например, Java\0script.
private function _remove_invisible_characters($str) { static $non_displayables = false; if (!$non_displayables) { // every control character except newline (dec 10), carriage return (dec 13), and horizontal tab (dec 09), $non_displayables = array('/%0[0-8bcef]/', // url encoded 00-08, 11, 12, 14, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function _remove_invisible_characters($str)\n\t{\n\t\tstatic $non_displayables;\n\n\t\tif ( ! isset($non_displayables))\n\t\t{\n\t\t\t// every control character except newline (dec 10), carriage return (dec 13), and horizontal tab (dec 09),\n\t\t\t$non_displayables = array(\n\t\t\t\t\t\t\t\t\t\t'/%0[0-8bcef]/',\t\...
[ "0.7961192", "0.74297667", "0.6942515", "0.6914181", "0.68975663", "0.6828244", "0.68272114", "0.6753537", "0.67346567", "0.6670686", "0.6610734", "0.65644765", "0.654179", "0.6539844", "0.6530003", "0.6515416", "0.6489936", "0.6454209", "0.64533633", "0.6449876", "0.643311",...
0.77335304
1
JS Image Removal Callback function for xss_clean() to sanitize image tags This limits the PCRE backtracks, making it more performance friendly and prevents PREG_BACKTRACK_LIMIT_ERROR from being triggered in PHP 5.2+ on image tag heavy strings
Функция обратного вызова для удаления изображений JS xss_clean() для очистки тегов изображений. Это ограничивает обратные откаты PCRE, что делает его более производительным и предотвращает срабатывание ошибки PREG_BACKTRACK_LIMIT_ERROR в PHP 5.2+ при обработке строк с большим количеством тегов изображений.
function _js_img_removal($match) { $attributes = $this->_filter_attributes(str_replace(array('<', '>'), '', $match [1])); return str_replace($match [1], preg_replace('#src=.*?(alert\(|alert&\#40;|javascript\:|charset\=|window\.|document\.|\.cookie|<script|<xss|base64\s*,)#si', '', $attributes), $match [0]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function _js_img_removal($match)\r\n\t{\r\n\t\treturn preg_replace(\"#<img.+?src=.*?(alert\\(|alert&\\#40;|javascript\\:|window\\.|document\\.|\\.cookie|<script|<xss).*?\\>#si\", \"\", $match[0]);\r\n\t}", "private function _js_img_removal($match)\n {\n return str_replace(\n $match[1],\n ...
[ "0.6986511", "0.6370392", "0.63442826", "0.62462777", "0.6219739", "0.62173533", "0.6205153", "0.6167311", "0.61623544", "0.6099853", "0.60993475", "0.60956043", "0.60007817", "0.5991615", "0.5955362", "0.5955322", "0.5925323", "0.5918972", "0.59160036", "0.58757395", "0.5875...
0.71445674
0
It's mandatory for the EnableClientScript to be activated or the TActiveCustomValidator won't work.
Включение EnableClientScript обязательно, иначе TActiveCustomValidator не будет работать.
public function getEnableClientScript() { return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function isClientValidationEnabled() {\n\t\treturn $this->settings['validation']['client'] === '1';\n\t}", "public function __construct()\n\t{\n\t\tparent::__construct();\n\t\t$this->setAdapter(new TActiveControlAdapter($this));\n\t\t$this->getActiveControl()->setClientSide(new TActiveCustomValidatorCl...
[ "0.6211278", "0.61430395", "0.5947695", "0.5925383", "0.5720224", "0.5672613", "0.5662673", "0.5652675", "0.5624794", "0.5621695", "0.55175453", "0.55171514", "0.5481327", "0.5462251", "0.5458048", "0.5453433", "0.54390275", "0.5434648", "0.5412197", "0.5402041", "0.5394817",...
0.7253468
0
Dangerous (due to exec()) and unlikely to work properly outside of testing. Needed because getopt() can't have its input mocked without register_argc_argv=false
Опасный (из-за exec()) и маловероятен для корректной работы вне тестирования. Обосновано тем, что getopt() не может быть замаскирован без register_argc_argv=false
function fake_getopt($argv_in, $short_options, $long_options) { $command = fake_getopt_command($argv_in, $short_options, $long_options); $output = null; $result_code = null; exec($command, $output, $result_code); if(count($output) > 0) return unserialize($output[0]); return array(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getopt(string $short_options, array $long_options = [], ?int &$rest_index = null): array\n{\n error_clear_last();\n $safeResult = \\getopt($short_options, $long_options, $rest_index);\n if ($safeResult === false) {\n throw InfoException::createFromPhpError();\n }\n return $safeResult...
[ "0.63821787", "0.61578023", "0.6129074", "0.6124103", "0.59874266", "0.59181935", "0.5857519", "0.58122784", "0.57889706", "0.57539487", "0.57188076", "0.5673635", "0.5660037", "0.5656356", "0.56463134", "0.56368655", "0.5577335", "0.556943", "0.5563825", "0.5561597", "0.5556...
0.7756254
0
Callback What to do when form could not be processed?
Callback Что делать, если форма не может быть обработана?
public function callbackFail() { //$this->AddOutput("<p><i>Form was submitted and the Check() method returned false.</i></p>"); $this->redirectTo(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function callbackFail()\n {\n $this->AddOutput(\"<p><i>Form was submitted and the Check() method returned false.</i></p>\");\n $this->redirectTo();\n }", "public function callbackFail()\n {\n $this->AddOutput(\"<p><i>Form was submitted and the Check() method returned false.</...
[ "0.69022906", "0.68859833", "0.6851496", "0.6789805", "0.665458", "0.636642", "0.63344324", "0.63143146", "0.6271073", "0.62342095", "0.6210578", "0.60945857", "0.60476375", "0.5968024", "0.5953384", "0.59113306", "0.5905376", "0.5887078", "0.5858203", "0.58515626", "0.584771...
0.7012858
0
Get all staff qualifications from DHAMIS
Получить все квалификации сотрудников из DHAMIS
public function getStaffQualifications() { //Query statement $query = "SELECT [concept_name] AS [qualification] FROM [dbo].[concept] WHERE (([concept].[concept_ID_parent]) In (880,881,885,1494,1495,1498,1623,1624)) ORDER BY [concept_ID_parent], [...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function get_staff()\n {\n $sql = \"SELECT EM1_EmployeeID_pk, EM1_FullNameNoTitle, EM1_Lname_ind, S_SectionID_pk, SE_SectionEmployeeID_pk FROM t_Section INNER JOIN t_j_SectionEmployee ON S_SectionID_pk = SE_SectionID_ind_fk INNER JOIN t_Employee1 ON SE_EmployeeID_fk = EM1_EmployeeID_pk ORD...
[ "0.6449167", "0.61956143", "0.61642665", "0.60715467", "0.60101473", "0.5977012", "0.58323985", "0.57253975", "0.57172036", "0.5712464", "0.56933403", "0.5663762", "0.5586538", "0.5579183", "0.55481154", "0.5526884", "0.55019915", "0.5490822", "0.5489991", "0.54807353", "0.54...
0.7078946
0
get newest movie | get api/public/film/phimle/newest | get
получить самый новый фильм | получить api/public/film/phimle/newest | получить
public function getNewestMovie() { $movies = Film::with('categories','image') ->whereHas('categories', function($query) { $query->where('slug', 'phim-le'); }) ->orderByDesc('updated_at') ->get(); return response_success([ 'movi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getNewestDramaMovie(){\n $movies = Film::with('image')\n ->whereHas('categories',function($q) {\n $q->where('slug','phim-le');\n })\n ->whereHas('genres', function($q){\n $q->where('slug','phim-tam-ly');\n })\n ...
[ "0.74011666", "0.7376256", "0.73603266", "0.72032404", "0.70605904", "0.67593807", "0.6739162", "0.6462791", "0.6292159", "0.6203251", "0.6184493", "0.61523795", "0.6113205", "0.6102423", "0.60911214", "0.6077477", "0.6030115", "0.602274", "0.59957105", "0.59496975", "0.59245...
0.79399025
0
get highlight movie | get api/public/film/phimle/highlight | get
get highlight movie | get api/public/film/phimle/highlight | get
public function getHighlightMovie() { $movies = Film::with('image') ->whereHas('categories', function($q) { $q->where('slug', 'phim-le'); }) ->orderByDesc('view') ->get(); return response_success([ 'movies' => $movies ]...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getHighlightDramaMovie() {\n $movies = Film::with('image')\n ->whereHas('categories',function($q) {\n $q->where('slug','phim-le');\n })\n ->whereHas('genres', function($q){\n $q->where('slug','phim-tam-ly');\n })\n ...
[ "0.74750656", "0.7365157", "0.73288435", "0.71555895", "0.6124779", "0.55075336", "0.5495448", "0.5448481", "0.5386347", "0.531345", "0.5261098", "0.52023923", "0.5139919", "0.5135577", "0.5102321", "0.5102321", "0.50670445", "0.5060694", "0.50122416", "0.50086075", "0.500853...
0.7870286
0
get highlight action movie | get api/public/film/phimle/highlightaction | get
get highlight action movie | get api/public/film/phimle/highlightaction | get
public function getHighlightActionMovie(){ $movies = Film::with('image') ->whereHas('categories',function($q) { $q->where('slug','phim-le'); }) ->whereHas('genres', function($q){ $q->where('slug','phim-hanh-dong'); }) ->...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getHighlightMovie() {\n $movies = Film::with('image')\n ->whereHas('categories', function($q) {\n $q->where('slug', 'phim-le');\n })\n ->orderByDesc('view')\n ->get();\n\n return response_success([\n 'movies' => $mo...
[ "0.695899", "0.6421484", "0.6342194", "0.6340063", "0.5841859", "0.5812036", "0.5711795", "0.5711795", "0.5711795", "0.5711795", "0.5711795", "0.5711795", "0.5711795", "0.5482026", "0.5478146", "0.54511774", "0.54511774", "0.54077375", "0.53893214", "0.53893214", "0.53893214"...
0.7243047
0
get newest action movie | get api/public/film/phimle/newestaction | get
получить самый новый боевик | get api/public/film/phimle/newestaction | get
public function getNewestActionMovie() { $movies = Film::with('image') ->whereHas('categories',function($q) { $q->where('slug','phim-le'); }) ->whereHas('genres', function($q){ $q->where('slug','phim-hanh-dong'); }) ->or...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getNewestMovie() {\n $movies = Film::with('categories','image')\n ->whereHas('categories', function($query) {\n $query->where('slug', 'phim-le');\n })\n ->orderByDesc('updated_at')\n ->get();\n\n return response_success([\n ...
[ "0.73409474", "0.6862749", "0.6714865", "0.66504294", "0.64710337", "0.6420175", "0.6330363", "0.5908425", "0.58602977", "0.57674795", "0.5733755", "0.57043153", "0.56524414", "0.56498164", "0.56358314", "0.56241876", "0.5603531", "0.5593628", "0.5584111", "0.5581186", "0.553...
0.7794907
0
get highlight horror movie api/public/film/phimle/highlighthorror | get
get highlight horror movie api/public/film/phimle/highlighthorror | get
public function getHighlightHorrorMovie() { $movies = Film::with('image') ->whereHas('categories',function($q) { $q->where('slug','phim-le'); }) ->whereHas('genres', function($q){ $q->where('slug','phim-kinh-di'); }) ->o...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getHighlightScienceFictionMovie() {\n $movies = Film::with('image')\n ->whereHas('categories',function($q) {\n $q->where('slug','phim-le');\n })\n ->whereHas('genres', function($q){\n $q->where('slug','phim-khoa-hoc-vien-tuong');...
[ "0.70138633", "0.69536823", "0.6807886", "0.64763033", "0.5895867", "0.557813", "0.54811937", "0.5432355", "0.5184862", "0.5146602", "0.5030914", "0.49740392", "0.49538392", "0.493584", "0.48986912", "0.4827227", "0.48226836", "0.47619617", "0.4739304", "0.47180703", "0.46989...
0.7800417
0
get newest horror movie api/public/film/phimle/newesthorror | get
получить самый новый фильм ужаса api/public/film/phimle/newesthorror | получить
public function getNewestHorrorMovie() { $movies = Film::with('image') ->whereHas('categories',function($q) { $q->where('slug','phim-le'); }) ->whereHas('genres', function($q){ $q->where('slug','phim-kinh-di'); }) ->orde...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getNewestMovie() {\n $movies = Film::with('categories','image')\n ->whereHas('categories', function($query) {\n $query->where('slug', 'phim-le');\n })\n ->orderByDesc('updated_at')\n ->get();\n\n return response_success([\n ...
[ "0.6962319", "0.68482834", "0.6751383", "0.6711014", "0.6537375", "0.64139163", "0.6374791", "0.6137981", "0.58796567", "0.5812792", "0.57221186", "0.5558542", "0.55383956", "0.5532435", "0.55238175", "0.55052245", "0.5467622", "0.5459504", "0.54391295", "0.5430872", "0.53487...
0.7663166
0
get highlight drama movie api/public/film/phimle/highlightdrama | get
get highlight drama movie api/public/film/phimle/highlightdrama | get
public function getHighlightDramaMovie() { $movies = Film::with('image') ->whereHas('categories',function($q) { $q->where('slug','phim-le'); }) ->whereHas('genres', function($q){ $q->where('slug','phim-tam-ly'); }) ->ord...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getHighlightMovie() {\n $movies = Film::with('image')\n ->whereHas('categories', function($q) {\n $q->where('slug', 'phim-le');\n })\n ->orderByDesc('view')\n ->get();\n\n return response_success([\n 'movies' => $mo...
[ "0.7001926", "0.6806127", "0.64850384", "0.64028895", "0.5393845", "0.5265555", "0.5185455", "0.5135344", "0.51044357", "0.5091771", "0.5046578", "0.49485672", "0.4947452", "0.49256918", "0.4861146", "0.47796983", "0.47497362", "0.4704326", "0.46284738", "0.46284738", "0.4601...
0.7851636
0
get newest drama movie api/public/film/phimle/newestdrama | get
получить последнюю драму фильм api/public/film/phimle/newestdrama | получить
public function getNewestDramaMovie(){ $movies = Film::with('image') ->whereHas('categories',function($q) { $q->where('slug','phim-le'); }) ->whereHas('genres', function($q){ $q->where('slug','phim-tam-ly'); }) ->orderBy...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getNewestMovie() {\n $movies = Film::with('categories','image')\n ->whereHas('categories', function($query) {\n $query->where('slug', 'phim-le');\n })\n ->orderByDesc('updated_at')\n ->get();\n\n return response_success([\n ...
[ "0.721764", "0.6891353", "0.67787766", "0.6766617", "0.669395", "0.664977", "0.62078774", "0.6137129", "0.6099885", "0.6042333", "0.59666216", "0.5886658", "0.58857864", "0.5872599", "0.5778347", "0.5775138", "0.572608", "0.568846", "0.56703556", "0.5643547", "0.56114984", ...
0.79311734
0
get highlight science fiction movie api/public/film/phimle/highlightsciencefiction | get
get highlight science fiction movie api/public/film/phimle/highlightsciencefiction | get
public function getHighlightScienceFictionMovie() { $movies = Film::with('image') ->whereHas('categories',function($q) { $q->where('slug','phim-le'); }) ->whereHas('genres', function($q){ $q->where('slug','phim-khoa-hoc-vien-tuong'); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getHighlightMovie() {\n $movies = Film::with('image')\n ->whereHas('categories', function($q) {\n $q->where('slug', 'phim-le');\n })\n ->orderByDesc('view')\n ->get();\n\n return response_success([\n 'movies' => $mo...
[ "0.68358046", "0.6724173", "0.6490231", "0.6482646", "0.53828984", "0.5241775", "0.5211475", "0.51096123", "0.50862604", "0.503726", "0.4980912", "0.4957301", "0.4885526", "0.48645014", "0.47483024", "0.46173427", "0.4616283", "0.45706534", "0.4504464", "0.4491581", "0.448806...
0.7676941
0
get newest science fiction move api/public/film/phimle/newestsciencefiction | get
получить последнюю научно-фантастическую киноленту api/public/film/phimle/newestsciencefiction | получить
public function getNewestScienceFictionMovie() { $movies = Film::with('image') ->whereHas('categories',function($q) { $q->where('slug','phim-le'); }) ->whereHas('genres', function($q){ $q->where('slug','phim-khoa-hoc-vien-tuong'); }...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getNewestMovie() {\n $movies = Film::with('categories','image')\n ->whereHas('categories', function($query) {\n $query->where('slug', 'phim-le');\n })\n ->orderByDesc('updated_at')\n ->get();\n\n return response_success([\n ...
[ "0.62035745", "0.60239446", "0.6001657", "0.59170306", "0.5880448", "0.55906785", "0.557311", "0.55351925", "0.5478364", "0.54752964", "0.5400395", "0.5382018", "0.5298901", "0.52636445", "0.52036464", "0.5118809", "0.5109345", "0.50085", "0.4980735", "0.4975914", "0.49393672...
0.7103066
0
Recupera todos los registros de la tabla. Devuelve un array de objetos SagaDAO
Восстановите все записи из таблицы. Возвращает массив объектов SagaDAO
function findAll() { $query = "SELECT id, nameEN, nameES FROM saga"; $res = array(); foreach(DB::ejecutarConsulta($query) as $row) { // Añadimos un objeto por cada elemento obtenido $res[] = new SagaDAO($row); } return $res; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function lista() {\n $sql = \"SELECT * FROM cliente\";\n $qry = $this->db->query($sql); // query do pdo com acesso ao bd\n\n //return $qry->fetchAll(); // retorna todos os registros\n return $qry->fetchAll(\\PDO::FETCH_OBJ); // retorna todos os registros a nível d...
[ "0.74008965", "0.7331233", "0.7041002", "0.7033367", "0.7013794", "0.6989815", "0.6941459", "0.6937863", "0.6933672", "0.69093585", "0.6899558", "0.6879848", "0.68526727", "0.68174714", "0.68076926", "0.6803043", "0.67878956", "0.6741945", "0.6738751", "0.673501", "0.6734663"...
0.7827002
0
Create the destination directory.
Создайте целевую директорию.
protected function createDestinationDirectory() { if ($this->fs->exists($this->destinationDirectory)) { if (!$this->overwrite) { throw new RuntimeException(t('The directory %s already exists.', $this->destinationDirectory)); } if ($this->fs->isFile($this->...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function createDestination(): void\n {\n $directory = \\dirname($this->to);\n\n if (! is_dir($directory)) {\n mkdir($directory, 0777, true);\n }\n }", "protected function createDirectory() {}", "private function createWritableDestinationFolder()\n {\n $...
[ "0.8588285", "0.7629342", "0.73802453", "0.7194694", "0.7167879", "0.6999777", "0.6955484", "0.68322545", "0.67509353", "0.6722292", "0.66901183", "0.66646266", "0.6591961", "0.65785736", "0.6547147", "0.65239465", "0.64674103", "0.6446584", "0.6385872", "0.63728654", "0.6326...
0.83803356
1
Initialize $clients to SplObjectStorage. This will be used to store all connections.
Инициализируйте $clients как SplObjectStorage. Это будет использоваться для хранения всех соединений.
public function __construct() { $this->clients = new \SplObjectStorage(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __construct() {\n\t\t\t$this->clients = new \\SplObjectStorage;\n\t\t}", "public function __construct()\n {\n self::$clients = new Collection();\n }", "public function __construct()\n {\n $this->clients = Client::all();\n }", "public function Clients()\n\t{\n\t\t//\n...
[ "0.8092215", "0.69717765", "0.6503004", "0.6292244", "0.6091678", "0.5986344", "0.59861356", "0.5958802", "0.5913094", "0.58439463", "0.5839981", "0.5835161", "0.582038", "0.582038", "0.58038753", "0.5763582", "0.57270896", "0.57217175", "0.5708949", "0.5699568", "0.56702745"...
0.79465115
1
Linkedin Initialize Handles LinkedIn Login Initialize
LinkedIn Инициализация Обработчик LinkedIn Вход Инициализация
public function woo_slg_initialize_linkedin() { global $woo_slg_options; //check enable linkedin & linkedin application id & linkedin application secret are not empty if( !empty( $woo_slg_options['woo_slg_enable_linkedin'] ) && !empty( $woo_slg_options['woo_slg_li_app_id'] ) && !empty( $woo_slg_op...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function initiate(){\n $linkedin_config = array(\n 'appKey' => 'xxxxxxxx',\n 'appSecret' => 'xxxxxxxx',\n 'callbackUrl' => 'xxx=url=xxx/linkedin_signup/data/'\n );\n \n $this->load->l...
[ "0.7189103", "0.7015023", "0.69894433", "0.6731751", "0.65540713", "0.6540151", "0.6520646", "0.64914554", "0.640031", "0.63795656", "0.63631976", "0.6251913", "0.62084156", "0.6098549", "0.6090765", "0.6073715", "0.6038372", "0.59986854", "0.59854794", "0.597896", "0.5932587...
0.7265671
0
Get LinkedIn Auth URL Handles to return linkedin auth url
Получить URL аутентификации LinkedIn для возврата URL аутентификации LinkedIn
public function woo_slg_linkedin_auth_url() { //Remove unused scope for login $scope = array( 'r_emailaddress', 'r_liteprofile' ); //load linkedin class $linkedin = $this->woo_slg_load_linkedin(); //check linkedin loaded or not if( !$linkedin ) return false; //Get Linkedin confi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function linkedin()\n {\n return Socialite::driver('linkedin')->redirect();\n }", "public function getLinkedinUrl()\n {\n return $this->linkedin_url;\n }", "public function getAuthUrl();", "public function get_auth_url()\n\t{\n\t\treturn $this->auth_url.'?oauth_token='.$...
[ "0.71861136", "0.7140007", "0.71047735", "0.68468404", "0.6827488", "0.6667215", "0.6590916", "0.6552159", "0.65140396", "0.6482503", "0.6440442", "0.6437182", "0.6411738", "0.6397378", "0.6381477", "0.6339435", "0.6330493", "0.62970304", "0.6254345", "0.6245376", "0.62379384...
0.80950433
0
Get LinkedIn User Data Function to get LinkedIn User Data
Функция получения данных пользователя LinkedIn для получения данных пользователя LinkedIn
public function woo_slg_get_linkedin_user_data() { $user_profile_data = ''; $user_profile_data = \WSL\Persistent\WOOSLGPersistent::get('woo_slg_linkedin_user_cache'); \WSL\Persistent\WOOSLGPersistent::delete('woo_slg_linkedin_user_cache'); return $user_profile_data; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getUserFromAccessToken()\n {\n try {\n return $this->api('GET', '/v1/people/~:(id,firstName,lastName,headline)');\n } catch (LinkedInApiException $e) {\n return;\n }\n }", "public static function get_user_data()\n {\n }", "public...
[ "0.66642827", "0.64717466", "0.64318067", "0.6351934", "0.6334739", "0.6332917", "0.6332592", "0.63178444", "0.6197151", "0.61920655", "0.6162255", "0.6148445", "0.61346316", "0.6122206", "0.61078024", "0.6090845", "0.60435313", "0.6035665", "0.6028686", "0.60117227", "0.6008...
0.7666657
0
Load sort order parameters
Загрузить параметры порядка сортировки
function LoadSortOrder() { global $fs_multijoin_v; $sOrderBy = $fs_multijoin_v->getSessionOrderBy(); // Get ORDER BY from Session if ($sOrderBy == "") { if ($fs_multijoin_v->SqlOrderBy() <> "") { $sOrderBy = $fs_multijoin_v->SqlOrderBy(); $fs_multijoin_v->setSessionOrderBy($sOrderBy); } } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function SetUpSortOrder() {\r\n\r\n\t\t// Check for \"order\" parameter\r\n\t\tif (@$_GET[\"order\"] <> \"\") {\r\n\t\t\t$this->CurrentOrder = ew_StripSlashes(@$_GET[\"order\"]);\r\n\t\t\t$this->CurrentOrderType = @$_GET[\"ordertype\"];\r\n\t\t\t$this->UpdateSort($this->identries); // identries\r\n\t\t\t$this->Upd...
[ "0.7273682", "0.71990395", "0.71924156", "0.7139926", "0.70895296", "0.7080433", "0.7019652", "0.70072585", "0.70050514", "0.6981087", "0.69784397", "0.6967039", "0.69651145", "0.6964101", "0.6962345", "0.69511503", "0.69328815", "0.693247", "0.69241923", "0.69206035", "0.691...
0.7247497
1
Reset command cmd=reset (Reset search parameters) cmd=resetall (Reset search and master/detail parameters) cmd=resetsort (Reset sort parameters)
Команда сброса cmd=reset (Сброс параметров поиска) cmd=resetall (Сброс параметров поиска и мастер/деталь) cmd=resetsort (Сброс параметров сортировки)
function ResetCmd() { global $fs_multijoin_v; // Get reset command if (@$_GET["cmd"] <> "") { $sCmd = $_GET["cmd"]; // Reset search criteria if (strtolower($sCmd) == "reset" || strtolower($sCmd) == "resetall") $this->ResetSearchParms(); // Reset sorting order if (strtolower($sCmd...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ResetCmd() {\n\tglobal $sDbMasterFilter, $sDbDetailFilter, $nStartRec, $sOrderBy;\n\tglobal $dpp_proveedores;\n\n\t// Get reset cmd\n\tif (@$_GET[\"cmd\"] <> \"\") {\n\t\t$sCmd = $_GET[\"cmd\"];\n\n\t\t// Reset search criteria\n\t\tif (strtolower($sCmd) == \"reset\" || strtolower($sCmd) == \"resetall\") {...
[ "0.8461009", "0.84371823", "0.8352717", "0.81166744", "0.81145996", "0.8112183", "0.81014943", "0.8088427", "0.8087382", "0.80804247", "0.80627424", "0.80589026", "0.8039587", "0.79904735", "0.7968004", "0.79500496", "0.78107697", "0.75892496", "0.74238086", "0.6856707", "0.6...
0.8503101
0
Reads app config and view files
Читает конфигурационные файлы приложения и файлы представлений
public function readConfig() { if ( file_exists( $this->path . '/config/config.php' ) ) { require_once $this->path . '/config/config.php'; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function loadConfig() {\n $json = new JSON();\n $viewConfig = $json->readFile(__SITE_PATH . \"\\\\config\\\\view.json\");\n $this->meta_info = $viewConfig['meta'];\n $this->js_files = $viewConfig['javascript'];\n $this->css_files = $viewConfig['css'];\n }", "privat...
[ "0.7072067", "0.65948087", "0.65162903", "0.6461198", "0.63518375", "0.62223226", "0.62100255", "0.616052", "0.6131028", "0.60709196", "0.60643864", "0.60583025", "0.60441923", "0.6039578", "0.6025172", "0.59967995", "0.5969063", "0.5968777", "0.59675485", "0.59267044", "0.58...
0.7008452
1
scans the modules directory and checks the existence of the module named $module. Returns true if the module exists, else returns false.
сканирует каталог модулей и проверяет существование модуля с именем $module. Возвращает true, если модуль существует, иначе возвращает false.
public function moduleExists( $module ) { $dir = $this->path . '/modules'; $found = false; if ( is_dir( $dir ) ) { if ( $dh = opendir( $dir ) ) { while ( ( $file = readdir( $dh ) ) !== false && !$found ) { if ( substr( $file, 0, 1) != '.' ) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function existsModule($module = '') {\n\t\tif(!is_empty($module)) {\n\t\t\treturn (bool)(\n\t\t\t\tin_array(\n\t\t\t\t\tstrtolower($module), \n\t\t\t\t\t$this->_arr_modules) ? true : false\n\t\t\t);\n\t\t}\n\t}", "static function exists($module) {\n return isset(Modules::$modules[$module]);\n }"...
[ "0.8191182", "0.7738346", "0.7200612", "0.7182587", "0.7182287", "0.70780367", "0.7069974", "0.7069101", "0.69508225", "0.68688893", "0.6731444", "0.6705725", "0.6705396", "0.669502", "0.6636067", "0.6631309", "0.6616357", "0.6607751", "0.66069424", "0.6585209", "0.6578901", ...
0.82653606
0
Triggered when action is protected. if controller doesn't have method "onActionProtected"
Срабатывает при защищённом действии. если контроллер не имеет метода "onActionProtected"
public function onActionProtected() { $closure = $this->onActionProtected; if ( is_object( $closure ) && get_class( $closure ) == "Closure" ) { $closure(); } else { $this->controller->onActionProtected(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isProtected()\n {\n return array_get($this->action, 'protected', false) === true;\n }", "protected function beforeAction() {\n\n }", "protected function beforeAction () {\n\t}", "public function _checkControllerAccess() \n {\n static $_unprotectedControllersHookDone ...
[ "0.66814876", "0.6664873", "0.6641774", "0.65932906", "0.6479723", "0.643002", "0.64066505", "0.63754386", "0.6269697", "0.62554204", "0.62382764", "0.6205642", "0.6201089", "0.6191711", "0.61559564", "0.6126011", "0.61154646", "0.6114219", "0.6106644", "0.608595", "0.6081682...
0.855354
0