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
/ This function retrieves and returns CN from given DN
// Эта функция получает и возвращает CN из заданного DN
function getCN($dn) { preg_match('/[^,]*/', $dn, $matchs, PREG_OFFSET_CAPTURE, 3); return $matchs[0][0]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static function getCN($dn) {\r\n preg_match('/[^,]*/', $dn, $matchs, PREG_OFFSET_CAPTURE, 3);\r\n return $matchs[0][0];\r\n }", "function getCN($dn) {\r\n preg_match('/[^,]*/', $dn, $matchs, PREG_OFFSET_CAPTURE, 3);\r\n return $matchs[0][0];\r\n}", "public static function getCnFromDistin...
[ "0.8435594", "0.79953396", "0.69253117", "0.6606356", "0.6529534", "0.6421102", "0.63560075", "0.6293379", "0.62474835", "0.61928934", "0.609914", "0.60792077", "0.5984444", "0.5982308", "0.5936936", "0.5852374", "0.5852205", "0.5842141", "0.58397937", "0.58283716", "0.582377...
0.82104826
1
Used for doing designbycontract assertions in the code; when the condition fails we'll write the message to the debug log
Используется для выполнения утверждений, связанных с проектированием по контракту, в коде; при неудаче условия сообщение будет записано в журнал отладки
public function assert( $message, $condition ) { if (!$condition) { $this->debug($message); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function assert($condition, $error) {\n\t\tif (!$condition) throw new \\Exception($error);\n\t}", "public function assertLog($assertion = true, $msg = '') {\n\t\tif($assertion == false) {\n\t\t\t$this->error($msg);\n\t\t}\n\t}", "protected function assert($condition, $message)\n\t{\n\t\tif (!$condition...
[ "0.64332306", "0.63559985", "0.6270919", "0.6249757", "0.62018824", "0.5949374", "0.5894036", "0.5889457", "0.5889457", "0.5870606", "0.58624136", "0.58074856", "0.58074856", "0.5784521", "0.57633686", "0.56926125", "0.5689919", "0.56843716", "0.5653714", "0.5652199", "0.5600...
0.741953
0
Tell if user creatin is allowed or not
Укажите, разрешено ли создание пользователя
public function allowsUserCreation() : bool { return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function canCreate() {\n if ($this->security->isGranted('ROLE_ADMIN')) {\n return true;\n }\n\n return false;\n }", "function userCanCreateUser( $sessionID ) {\r\n\t\treturn $this->getAccessLevel() == ADMINISTRATOR;\r\n\t}", "public function authorize()\n {\n ...
[ "0.74694705", "0.73402643", "0.7269254", "0.7137165", "0.71353376", "0.71216685", "0.7119382", "0.7065124", "0.70482033", "0.7046447", "0.70364356", "0.70364356", "0.7035625", "0.7032532", "0.70155615", "0.7004761", "0.6980867", "0.69429713", "0.6920573", "0.69194657", "0.691...
0.8076515
0
Read config file to array
Чтение файла конфигурации в массив
function readConfig($configFile, $context) { $arrayConfig = array(); $arrayConfig = parse_ini_file($configFile, true); // echo "<pre>"; // print_r($arrayConfig); // echo "</pre>"; // die; return $arrayConfig; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function readConfigs() \n\t{\n $paths = array('~/bookability.ini', '/etc/bookability.ini');\n foreach($paths as $path) \n\t\t{\n if (file_exists($path)) \n\t\t\t{\n $config = parse_ini_file($path);\n if ($config) \n\t\t\t\t{\n return ...
[ "0.7773668", "0.7389366", "0.73552907", "0.731465", "0.7302889", "0.72927725", "0.7247465", "0.71641856", "0.7162456", "0.7156802", "0.7135475", "0.7113449", "0.70564604", "0.70205945", "0.7005593", "0.69987077", "0.6982093", "0.6976137", "0.6971813", "0.69610673", "0.6858852...
0.7768227
1
Internal route 403 can be generated by throwing exception.
Внутренний маршрут 403 может быть сгенерирован с помощью выброса исключения.
public function testInternal403Generate() { $router = new Router(); $router->addInternalRoute( "403", function () { return "403"; } ); $router->add("test403", function () { throw new ForbiddenException("Message 403."); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function accessDenied() {\n\n\t}", "public function action403()\n {\n\n }", "public function accessDenied() {\n\n }", "protected function error_403() {\n $message = apply_filters('wp_router_access_denied_message', __('You are not authorized to access this page', 'wp-router'));\n ...
[ "0.77113837", "0.76333565", "0.76331294", "0.76175314", "0.7439236", "0.7425316", "0.7371409", "0.7350818", "0.7258837", "0.7212592", "0.7154835", "0.7116058", "0.70520043", "0.7028791", "0.70263237", "0.70032847", "0.6959826", "0.69549894", "0.6949996", "0.6934013", "0.68884...
0.8077377
0
Internal route 404 is triggered when no route is found.
Внутренний маршрут 404 активируется, когда маршрут не найден.
public function testInternal404NoRouteIsFound() { $router = new Router(); $router->addInternalRoute( "404", function () { return "404"; } ); $res = $router->handle("test404"); $this->assertEquals("404", $res); $rou...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function routeToNotFound()\n {\n $this->dispatchController($this->api->notFound);\n }", "public function testInternal404Generate()\n {\n $router = new Router();\n $router->addInternalRoute(\n \"404\",\n function () {\n return \"404\";\n...
[ "0.82677203", "0.79578966", "0.75628996", "0.7516739", "0.75111073", "0.74256164", "0.7410983", "0.73925954", "0.7391809", "0.73794514", "0.7373639", "0.73398364", "0.73348457", "0.73313963", "0.73207474", "0.7304489", "0.72926784", "0.72926784", "0.72926784", "0.72926784", "...
0.8172145
1
Internal route 500 throws exception during development.
Внутренняя ошибка маршрутизации 500 возникает во время разработки.
public function testInternal500Development() { $router = new Router(); $router->addInternalRoute( "500", function () { return "500"; } ); $router->add("test500", function () { throw new \Exception("Message 500."); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function error500($response)\n{\n\t$response->body(\"Internal Server Error (HTTP 500): \".Backbone::$request->getPath());\n}", "public function testInternal500Production()\n {\n $router = new Router();\n $router->addInternalRoute(\n \"500\",\n function () {\n ...
[ "0.7479081", "0.71637833", "0.6975657", "0.69488317", "0.6862662", "0.67741275", "0.6770647", "0.673297", "0.6725395", "0.6723984", "0.6710644", "0.66774577", "0.6663343", "0.655078", "0.65194464", "0.65160865", "0.65149033", "0.64626956", "0.6445112", "0.64004946", "0.639012...
0.7546104
0
Internal route 500 handles during production.
Внутренняя ошибка маршрутизации 500 во время производства.
public function testInternal500Production() { $router = new Router(); $router->addInternalRoute( "500", function () { return "500"; } ); $router->setMode(Router::PRODUCTION); $router->add("test500", function () { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testInternal500Development()\n {\n $router = new Router();\n $router->addInternalRoute(\n \"500\",\n function () {\n return \"500\";\n }\n );\n\n $router->add(\"test500\", function () {\n throw new \\Exception...
[ "0.7317452", "0.711508", "0.68822", "0.6841649", "0.681183", "0.6718435", "0.66118723", "0.6605659", "0.6473444", "0.64634967", "0.6414213", "0.640131", "0.6399173", "0.6298206", "0.6276164", "0.61863154", "0.6157689", "0.6138829", "0.6137886", "0.6121044", "0.60927093", "0...
0.75504297
0
Current objects unsetter function This function unset a current object by his name
Функция разрешения текущего объекта. Эта функция удаляет текущий объект по его имени
protected function unsetObject($name) { if (isset($this->objects->$name)) { unset($this->objects->$name); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __unset($name) {}", "public function __unset($name);", "public function __unset($name);", "public function __unset($name);", "final public function __unset($name) {}", "abstract public function unsetInCurrent(&$current);", "public function __unset($name)\n {\n }", "public functi...
[ "0.72839534", "0.7277972", "0.7277972", "0.7277972", "0.7115613", "0.7085377", "0.691851", "0.69182736", "0.69182736", "0.69182736", "0.69182736", "0.69182736", "0.69182736", "0.69182736", "0.6890538", "0.6890538", "0.6743629", "0.67128015", "0.67040455", "0.66616005", "0.658...
0.74201643
0
Gets the Template Manager.
Получает менеджер шаблонов.
protected function getTemplateManager() { if (null === $this->templateManager) { $this->templateManager = new TemplateManager($this->profiler, $this->twig, $this->templates); } return $this->templateManager; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTemplateManager()\n {\n return $this->templateManager;\n }", "public function template(): TemplateManager\n {\n return new \\Goat\\Managers\\TemplateManager();\n }", "public function getMailingTemplateManager()\n\t{\n\t\treturn new Inx_Apiimpl_MailingTemplate_Mailin...
[ "0.8944873", "0.8387143", "0.75401753", "0.72187024", "0.7058245", "0.7031533", "0.700401", "0.6913729", "0.68296105", "0.6822526", "0.68133765", "0.67579556", "0.6741517", "0.6661126", "0.66188097", "0.65929943", "0.65881175", "0.65780085", "0.6572946", "0.6558887", "0.65582...
0.84436816
1
Handle the asset "updated" event.
Обработка события "обновлен" для актива.
public function updated(Asset $asset) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateAsset() {\n try {\n if (!($this->asset instanceof Base_Model_ObtorLib_App_Core_Asset_Entity_Asset)) {\n throw new Base_Model_ObtorLib_App_Core_Asset_Exception(\" Asset Entity not initialized\");\n } else {\n $data = array(\n ...
[ "0.6475284", "0.61759853", "0.60903615", "0.6034787", "0.6010176", "0.6010176", "0.6010176", "0.6010176", "0.5941562", "0.5935927", "0.592742", "0.59109527", "0.5908732", "0.5900881", "0.5877816", "0.5859596", "0.5859596", "0.58105075", "0.580836", "0.57926947", "0.57897913",...
0.76188034
0
Query SQL SELECT name.id, name.id_work,name.id_salary, name.name, work.name_work, salary.salary FROM name JOIN work ON name.id_work = work.id JOIN salary ON work.id_salary = salary.id ORDER BY name
Запрос SQL SELECT name.id, name.id_work,name.id_salary, name.name, work.name_work, salary.salary FROM name JOIN work ON name.id_work = work.id JOIN salary ON work.id_salary = salary.id ORDER BY name
function getdata() { $this->db->select('name.id,name.id_work,name.id_salary,name.name,work.name_work,salary.salary'); $this->db->from('name'); $this->db->join('work','name.id_work = work.id'); $this->db->join('salary','work.id_salary = salary.id'); $this->db->order_by('name'); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function fetchAllEmpMonthlyWork($name,$year)\n {\n /*$sql=\"SELECT registration.employee_name, SEC_TO_TIME( SUM( TIME_TO_SEC( user_work_history.worked_hour ) ) ) AS twh, MONTH( user_work_history.worked_date ) AS mw\n FROM user_work_history\n INNER JOIN registr...
[ "0.59133065", "0.5580986", "0.5538556", "0.5465759", "0.527876", "0.52621037", "0.51611984", "0.51529944", "0.513121", "0.51280963", "0.51234686", "0.5094979", "0.5089483", "0.49898762", "0.49890882", "0.49866876", "0.494573", "0.4930144", "0.49278757", "0.49183148", "0.49087...
0.7739334
0
/ Plugin Name: Tell a Friend Version: 0.1 Plugin URI: Description: Adds a 'Share This Post' button after each post. The service which is used is freetellafriend.com which supports email address book, social bookmarks and favorites. Author: FreeTellaFriend Author URI:
Название плагина: Tell a Friend Версия: 0.1 URI плагина: Описание: Добавляет кнопку "Поделиться этим постом" после каждого поста. Используется сервис freetellafriend.com, который поддерживает адресную книгу электронной почты, социальные закладки и избранное. Автор: FreeTellaFriend URI автора:
function tell_a_friend($content) { global $post; $taf_permlink = urlencode(get_permalink($post->ID)); $taf_title = urlencode(get_the_title($post->ID) ); $taf_img = get_settings('home') . '/wp-content/plugins/tell-a-friend/button.gif'; if ( !is_feed() && !is_page() ) { $content .= '<a href="https://www.freetel...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function adforest_social_share() {\r\n\t\tif ( in_array( 'add-to-any/add-to-any.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) )\r\n\t\t{\r\n\t\t\treturn do_shortcode('[addtoany]');\r\n\t\t}\r\n\t\t\r\n\t\r\n\t\t// Get current page URL \r\n\t\t$sbURL = esc_url( get_permalink() );\r\n \r\...
[ "0.69395095", "0.6652913", "0.65892285", "0.6514103", "0.65021974", "0.6447937", "0.64453477", "0.6409765", "0.6397843", "0.6385262", "0.6374276", "0.6361866", "0.62858224", "0.6246577", "0.6213685", "0.6163642", "0.6124872", "0.6120938", "0.61176187", "0.6088084", "0.6054807...
0.7160038
0
Returns a singleton array of FieldMaps for the Review object
Возвращает одиночный массив FieldMaps для объекта Review
public static function GetFieldMaps() { static $fm = null; if ($fm == null) { $fm = Array(); $fm["Reviewer"] = new FieldMap("Reviewer","reviews","reviewer",true,FM_TYPE_VARCHAR,10,null,false); $fm["ReviewDate"] = new FieldMap("ReviewDate","reviews","review_date",false,FM_TYPE_DATE,null,null,false...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function GetFieldMaps()\n\t{\n\t\tstatic $fm = null;\n\t\tif ($fm == null)\n\t\t{\n\t\t\t$fm = Array();\n\t\t\t$fm[\"Id\"] = new FieldMap(\"Id\",\"customer_view\",\"c_id\",true,FM_TYPE_INT,10,null,false);\n\t\t\t$fm[\"Name\"] = new FieldMap(\"Name\",\"customer_view\",\"c_name\",false,FM_TYPE_VARCHAR,...
[ "0.6691641", "0.6442484", "0.63378584", "0.6291461", "0.62812936", "0.6257382", "0.622648", "0.6198762", "0.6176149", "0.61472535", "0.6140819", "0.6124627", "0.60746294", "0.6066377", "0.60607463", "0.5967403", "0.5951205", "0.592462", "0.5913501", "0.58700484", "0.58654225"...
0.81034267
0
TODO: Implement resolveChildRouteBinding() method.
TODO: Реализовать метод resolveChildRouteBinding().
public function resolveChildRouteBinding($childType, $value, $field) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function resolveChildRouteBinding($childType, $value, $field)\n {\n // TODO: Implement resolveChildRouteBinding() method.\n }", "public function resolveRouteBinding($value)\n {\n }", "public function resolveChildRouteBinding($childType, $value, $field)\n {\n throw ne...
[ "0.67898643", "0.65725464", "0.63852894", "0.57702833", "0.5696675", "0.5676796", "0.5507594", "0.5411174", "0.53808916", "0.5354092", "0.53389347", "0.52433676", "0.52433676", "0.52433676", "0.52428895", "0.5239042", "0.52187973", "0.5200916", "0.51544446", "0.5148124", "0.5...
0.70711
0
Register the alert class.
Зарегистрируйте класс оповещения.
protected function registerAlert() { $this->app->singleton('alert', function (Container $app) { $session = $app['session.store']; return new Alert($session); }); $this->app->alias('alert', Alert::class); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function register()\n {\n $this->registerAlert();\n }", "function alert(string $class, string $text)\n {\n $alerts = service('alerts');\n $alerts->add($class, $text);\n }", "public function __construct(Container $alert)\n {\n $this->alert = $alert;\n }", "...
[ "0.66095716", "0.6478837", "0.5738859", "0.5699189", "0.5598676", "0.55675864", "0.54964125", "0.5350076", "0.5261575", "0.52489895", "0.5219226", "0.5193311", "0.5172583", "0.5163926", "0.51528805", "0.51461583", "0.51287156", "0.5118448", "0.5106854", "0.5092088", "0.508184...
0.7582746
0
Detect the functions documentation. Default implementation uses docblock description.
Обнаружить документацию функций. Стандартная реализация использует описание из блока docblock.
public function getFunctionDocumentation(AbstractFunction $function);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isDocumentation();", "function test_docblocks() {\n}", "public function getDetailedDocumentation() {\r\n\t\treturn \"\";\r\n\t}", "public function getGeneralDocumentation() {\r\n\t\treturn \"\";\t\r\n\t}", "public function getFunctionDocumentation(AbstractFunction $function)\n {\n ...
[ "0.78116024", "0.70551693", "0.70377755", "0.70214254", "0.6750092", "0.67121935", "0.6621151", "0.66170526", "0.6488961", "0.63940895", "0.633653", "0.6285085", "0.6231456", "0.62020844", "0.6120241", "0.61006665", "0.60809934", "0.6069331", "0.60561407", "0.6022648", "0.600...
0.738099
1
end of get_main_site() Returns the array of multisite WP sites/blogs IDs for the current network
конец get_main_site() Возвращает массив идентификаторов multisite WP сайтов/блогов для текущей сети
protected function get_blog_ids() { global $wpdb; $network = get_current_site(); $query = $wpdb->prepare( "SELECT blog_id FROM {$wpdb->blogs} WHERE site_id=%d ORDER BY blog_id ASC", array($network->id)); $blog_i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function get_site_ids()\n {\n }", "function my_custom_sites( $site, $args ) {\n\treturn array( 1, 2, 3 ); // Array of IDs representing sites in your network.\n\n\treturn $return;\n}", "public function getWebsiteIds()\n {\n return $this->getData(self::KEY_WEBSITES);\n }", "public ...
[ "0.7250182", "0.68044055", "0.675445", "0.6711678", "0.667831", "0.66760385", "0.6667251", "0.663241", "0.65722716", "0.6526472", "0.64865136", "0.6471159", "0.64609647", "0.64061165", "0.6343103", "0.63097227", "0.6185677", "0.6178804", "0.61722344", "0.6167266", "0.6120853"...
0.7094122
1
update Activity map order
обновить порядок карты активности
public function update_map_order() { $mapid = $this->input->post('id'); $order = $this->input->post('order'); $this->Activity_model->update_map_order($mapid, $order); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function add_activity_map() {\n\t\t\t\t$this->Activity_model->add_to_map();\n\t\t}", "public function updateOrder() {\n $this->autoRender = false;\n if (isset($_GET) && !empty($_GET)) {\n foreach ($_GET as $key => $val) {\n $this->Item->updateAll(array('position' => $val),...
[ "0.64738744", "0.58251506", "0.58020985", "0.5514836", "0.54899216", "0.5446034", "0.5397505", "0.5257546", "0.52119374", "0.5180719", "0.5121646", "0.5120126", "0.5103026", "0.5086446", "0.50577086", "0.50381523", "0.502978", "0.5029285", "0.50262105", "0.50262105", "0.49671...
0.73224306
0
Activity Add to map
Добавить на карту
function add_activity_map() { $this->Activity_model->add_to_map(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function add_map( $map ) {\r\n\t\t\r\n\t\tif ( $map->id == 0 ) {\r\n\t\t\t$map->id = count($this->maps) + 1;\r\n\t\t}\r\n\t\t\r\n\t\t$this->maps[] = $map;\r\n\t\t\r\n\t\treturn $map;\r\n\t\t\r\n\t}", "public function add(MapInterface $map);", "public function googleMapAction() {\n $this->view->assignMultipl...
[ "0.6056421", "0.5817366", "0.57052493", "0.5702141", "0.56927496", "0.56509495", "0.5650944", "0.5504511", "0.549099", "0.545386", "0.5428473", "0.53675616", "0.5343433", "0.5322169", "0.53187346", "0.5299943", "0.5251289", "0.5240093", "0.52150375", "0.5209216", "0.5201103",...
0.80805224
0
Delete multiple map items
Удалить несколько элементов карты
function delete_multiple_map_items() { $mapids = $this->input->post('maplist'); foreach ($mapids as $id) { $this->Activity_model->delete_map_item($id); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function deleteMultiple( $keys );", "public function deleteItemMultiple(array $items);", "public function deleteMultiple($keys)\n {\n }", "abstract public function deleteMulti(array $keys): void;", "public function deleteMapObjects() {\n\t\t$daction = false;\n\t\t$options = array(\n\t\t\t'type...
[ "0.7132121", "0.70529914", "0.6889822", "0.6881824", "0.68202275", "0.66713995", "0.6636264", "0.66081744", "0.66081744", "0.6579249", "0.65613055", "0.6521352", "0.6487193", "0.64242536", "0.6393981", "0.6393413", "0.63910085", "0.63894933", "0.6382047", "0.6353451", "0.6309...
0.8004451
0
Delete Single map item
Удалить элемент Single map
function delete_single_map_item() { $id = $this->input->post('mapid'); $this->Activity_model->delete_map_item($id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function deleteMapItem(MapItem $mapItem): void\n {\n $em = $this->doctrine->getManager();\n $em->remove($mapItem);\n $em->flush();\n }", "public function deleteItem($key);", "function heatmap_grade_item_delete($heatmap) {\n global $CFG;\n require_once($CFG->libdir.'/g...
[ "0.726983", "0.7043051", "0.7005415", "0.68497294", "0.66655964", "0.6616352", "0.6574227", "0.6538328", "0.6507827", "0.6506209", "0.64807355", "0.6466887", "0.6427645", "0.64206135", "0.64185727", "0.64026076", "0.63966197", "0.63966197", "0.6378797", "0.63658506", "0.63427...
0.80432725
0
Add activity settings data
Добавить данные настроек активности
function add_activity_settings() { $this->Activity_model->add_settings_data(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function update_activity_settings() {\n\t\t\t\t$this->Activity_model->update_settings_data();\n\t\t}", "public function save_activity() {\n\t\t$this->update_meta( 'activity', $this->activity() );\n\t}", "public function processAddSetting()\n\t{\n\t\t\n\t}", "protected function define_my_settings() {\n ...
[ "0.68806255", "0.6008051", "0.59887755", "0.59734523", "0.58989644", "0.5824086", "0.5794566", "0.577586", "0.5739944", "0.57280904", "0.5726291", "0.5717441", "0.5710459", "0.57065016", "0.5695181", "0.5667999", "0.5621082", "0.5605833", "0.558174", "0.557903", "0.5578305", ...
0.84241045
0
update activity settings data
обновить настройки активности данных
function update_activity_settings() { $this->Activity_model->update_settings_data(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function add_activity_settings() {\n\t\t\t\t$this->Activity_model->add_settings_data();\n\t\t}", "function update_settings()\n {\n }", "public function processSettingsUpdate()\n\t{\n\t\t\n\t}", "public function updateCache() {\n $data = ArrayHelper::map(Settings::find()->asArray()->all(), 'p_name', ...
[ "0.70930123", "0.66648847", "0.6518331", "0.64986175", "0.64385766", "0.63813823", "0.63593894", "0.6199125", "0.6195707", "0.61590403", "0.61490005", "0.6139927", "0.6099484", "0.60821885", "0.60814196", "0.6068193", "0.6038845", "0.60293365", "0.5963706", "0.596125", "0.593...
0.86888254
0
Get the [id_periodo] column value.
Получите значение столбца [id_periodo].
public function getIdPeriodo() { return $this->id_periodo; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getPeriodoById($id){\n $mysqli = Database::getInstance();\n $query =<<<sql\n SELECT * FROM prorrateo_periodo WHERE prorrateo_periodo_id = \"$id\"\nsql;\n return $mysqli->queryOne($query);\n }", "public function getPeriodo() {\n return $this->periodo;\n...
[ "0.6978095", "0.6896661", "0.68731374", "0.68211013", "0.6799022", "0.6780209", "0.67252827", "0.67088056", "0.65652084", "0.6553337", "0.6456276", "0.6383313", "0.6191884", "0.61640036", "0.6105432", "0.6044811", "0.6043705", "0.59235984", "0.5869853", "0.58554596", "0.58387...
0.8253107
0
Get the [descricao] column value.
Получите значение столбца [descricao].
public function getDescricao() { return $this->descricao; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDescricao()\n {\n return $this->descricao;\n }", "public function getDescricao()\n {\n return $this->descricao;\n }", "public function getDescricao()\n {\n return $this->descricao;\n }", "public function getDescricao()\n {\n return $this->de...
[ "0.76415807", "0.76415807", "0.76415807", "0.76415807", "0.76415807", "0.76415807", "0.76415807", "0.76415807", "0.76415807", "0.7638566", "0.76241934", "0.76116735", "0.7604963", "0.7604963", "0.7506754", "0.7485705", "0.7456823", "0.72044456", "0.71372384", "0.70961154", "0...
0.7688919
0
Get the [semestre] column value.
Получите значение столбца [semestre].
public function getSemestre() { return $this->semestre; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSemestre()\n {\n return $this->semestre;\n }", "public function getSemestre(){\n return $this->semestre;\n }", "public function getSemestre(){\n return $this->semestre;\n }", "public function getSemestre(){\n return $this->semestre;\n }", "public function g...
[ "0.76427025", "0.7566759", "0.7566759", "0.7566759", "0.62703085", "0.606003", "0.603626", "0.60259974", "0.5982851", "0.5972894", "0.5945598", "0.5857798", "0.5857798", "0.5857798", "0.5777335", "0.57742107", "0.56969243", "0.5673974", "0.5648777", "0.5544188", "0.54839784",...
0.7602388
1
Get the [optionally formatted] temporal [dt_inicio_fila] column value.
Получите значение временной колонки [dt_inicio_fila] с [опционально форматированным].
public function getDtInicioFila($format = 'Y-m-d') { if ($this->dt_inicio_fila === null) { return null; } try { $dt = new DateTime($this->dt_inicio_fila); } catch (Exception $x) { throw new PropelException("Internally stored date/time/timestamp value could not be converted to DateTime: " . var_expo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDataInicioRealFormatadaAttribute()\n {\n if (! is_null($this->data_inicio_real)) {\n return \\Carbon\\Carbon::createFromFormat('Y-m-d H:i:s', $this->data_inicio_real)->format('d/m/Y H:i:s');\n }\n }", "public function getDtInicioAjusteFila($format = 'Y-m-d')\n\t{...
[ "0.6864926", "0.6711411", "0.63241154", "0.63241154", "0.63211036", "0.6314793", "0.62477267", "0.6244447", "0.6244447", "0.62092495", "0.6190294", "0.6183217", "0.6183217", "0.61649203", "0.61452", "0.60765064", "0.6075551", "0.60511535", "0.60331714", "0.6023008", "0.601339...
0.7090581
0
Get the [sucinto] column value.
Получите значение столбца [sucinto].
public function getSucinto() { return $this->sucinto; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setSucinto($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (string) $v;\n\t\t}\n\n\t\tif ($this->sucinto !== $v) {\n\t\t\t$this->sucinto = $v;\n\t\t\t$this->modifiedColumns[] = TbperiodoPeer::SUCINTO;\n\t\t}\n\n\t\treturn $this;\n\t}", "public /*String*/ function getSuccess(){\n\t\treturn $this->suc...
[ "0.5693388", "0.56815726", "0.55352396", "0.54159987", "0.53563243", "0.53060114", "0.5293236", "0.5264536", "0.525206", "0.52417004", "0.521554", "0.5214248", "0.5211187", "0.52087075", "0.52087075", "0.52087075", "0.52087075", "0.52077496", "0.51961344", "0.5193515", "0.518...
0.7344804
0
Get the [id_nivel] column value.
Получите значение столбца [id_nivel].
public function getIdNivel() { return $this->id_nivel; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getNivel()\n {\n return $this->nivel;\n }", "public function getNivel () {\n\t\treturn $this->nivel;\n\t}", "public function getNivel () {\n\t\treturn $this->nivel;\n\t}", "public function getConocimientosNivelid()\n {\n return $this->conocimientos_nivelId;\n }", "...
[ "0.71220565", "0.70177686", "0.70177686", "0.70052344", "0.68761814", "0.66834", "0.6531792", "0.6406574", "0.63858193", "0.6306784", "0.6298785", "0.62721527", "0.6243229", "0.61605906", "0.61550224", "0.61419654", "0.6121063", "0.60906714", "0.6019067", "0.5983909", "0.5973...
0.7967779
0
Set the value of [id_periodo] column.
Задайте значение столбца [id_periodo].
public function setIdPeriodo($v) { if ($v !== null) { $v = (int) $v; } if ($this->id_periodo !== $v) { $this->id_periodo = $v; $this->modifiedColumns[] = TbperiodoPeer::ID_PERIODO; } return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getIdPeriodo()\n\t{\n\t\treturn $this->id_periodo;\n\t}", "public function setPeriodo( $periodo ){\n\t\t$this->periodo = $periodo;\n\t}", "public function setPeriodo($periodo) {\n $this->periodo = $periodo;\n }", "public function setPeriodo($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v...
[ "0.67596865", "0.6722873", "0.64866704", "0.6416075", "0.62356704", "0.6196351", "0.6158638", "0.61437947", "0.61123586", "0.61032397", "0.60682964", "0.6040119", "0.5957836", "0.59521574", "0.59077114", "0.58743125", "0.58485043", "0.5775579", "0.5764487", "0.57563823", "0.5...
0.77840745
0
setIdPeriodo() Set the value of [descricao] column.
setIdPeriodo() Устанавливает значение столбца [descricao].
public function setDescricao($v) { if ($v !== null) { $v = (string) $v; } if ($this->descricao !== $v) { $this->descricao = $v; $this->modifiedColumns[] = TbperiodoPeer::DESCRICAO; } return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setDescricaoConsumo($descricaoConsumo) {\n $this->descricaoConsumo = $descricaoConsumo;\n }", "public function setPeriodo( $periodo ){\n\t\t$this->periodo = $periodo;\n\t}", "public function setPeriodo($periodo) {\n $this->periodo = $periodo;\n }", "public function setCod...
[ "0.6507581", "0.6400847", "0.61978006", "0.6145352", "0.603653", "0.59940296", "0.5984898", "0.5951067", "0.5944441", "0.593444", "0.58907205", "0.57489425", "0.5742556", "0.57282263", "0.5712538", "0.56665325", "0.5637354", "0.56177455", "0.56170326", "0.5613716", "0.5592543...
0.7140796
0
setPeriodo() Sets the value of [dt_inicio] column to a normalized version of the date/time value specified.
setPeriodo() Устанавливает значение столбца [dt_inicio] в нормализованную версию указанного значения даты/времени.
public function setDtInicio($v) { // we treat '' as NULL for temporal objects because DateTime('') == DateTime('now') // -- which is unexpected, to say the least. if ($v === null || $v === '') { $dt = null; } elseif ($v instanceof DateTime) { $dt = $v; } else { // some string/numeric value passed; w...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setDtInicioFila($v)\n\t{\n\t\t// we treat '' as NULL for temporal objects because DateTime('') == DateTime('now')\n\t\t// -- which is unexpected, to say the least.\n\t\tif ($v === null || $v === '') {\n\t\t\t$dt = null;\n\t\t} elseif ($v instanceof DateTime) {\n\t\t\t$dt = $v;\n\t\t} else {\n\t\t\t...
[ "0.70307004", "0.68766034", "0.6816621", "0.6800325", "0.6782398", "0.66716987", "0.66384524", "0.66016126", "0.65815836", "0.65403175", "0.6518528", "0.64704376", "0.6308935", "0.62616163", "0.61852556", "0.61666936", "0.6134789", "0.61166185", "0.6076236", "0.60440534", "0....
0.70920473
0
setDtFimOferta() Sets the value of [dt_inicio_fila] column to a normalized version of the date/time value specified.
setDtFimOferta() Устанавливает значение столбца [dt_inicio_fila] в нормализованную версию указанного значения даты/времени.
public function setDtInicioFila($v) { // we treat '' as NULL for temporal objects because DateTime('') == DateTime('now') // -- which is unexpected, to say the least. if ($v === null || $v === '') { $dt = null; } elseif ($v instanceof DateTime) { $dt = $v; } else { // some string/numeric value passe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setDtInicioAjusteFila($v)\n\t{\n\t\t// we treat '' as NULL for temporal objects because DateTime('') == DateTime('now')\n\t\t// -- which is unexpected, to say the least.\n\t\tif ($v === null || $v === '') {\n\t\t\t$dt = null;\n\t\t} elseif ($v instanceof DateTime) {\n\t\t\t$dt = $v;\n\t\t} else {\n...
[ "0.7249267", "0.7247465", "0.7116175", "0.7000817", "0.6989343", "0.69340014", "0.6872217", "0.68427896", "0.6836148", "0.68244755", "0.6784527", "0.6772589", "0.6612199", "0.64715016", "0.63628983", "0.63595897", "0.63317204", "0.63105005", "0.6308158", "0.6261934", "0.62443...
0.7487749
0
setDtInicioOfertaCadastro() Sets the value of [dt_fim_oferta_cadastro] column to a normalized version of the date/time value specified.
setDtInicioOfertaCadastro() Устанавливает значение столбца [dt_fim_oferta_cadastro] в нормализованную версию указанного значения даты/времени.
public function setDtFimOfertaCadastro($v) { // we treat '' as NULL for temporal objects because DateTime('') == DateTime('now') // -- which is unexpected, to say the least. if ($v === null || $v === '') { $dt = null; } elseif ($v instanceof DateTime) { $dt = $v; } else { // some string/numeric valu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setDtInicioOfertaCadastro($v)\n\t{\n\t\t// we treat '' as NULL for temporal objects because DateTime('') == DateTime('now')\n\t\t// -- which is unexpected, to say the least.\n\t\tif ($v === null || $v === '') {\n\t\t\t$dt = null;\n\t\t} elseif ($v instanceof DateTime) {\n\t\t\t$dt = $v;\n\t\t} else...
[ "0.76520365", "0.71849906", "0.71031934", "0.6964102", "0.6854726", "0.6838814", "0.67145956", "0.6702322", "0.6683366", "0.6572273", "0.6524983", "0.6457823", "0.630301", "0.62634057", "0.62578", "0.6202022", "0.61652315", "0.61397904", "0.612579", "0.6123571", "0.6063522", ...
0.736833
1
setDtInicioCadastro() Sets the value of [dt_fim_cadastro] column to a normalized version of the date/time value specified.
setDtInicioCadastro() Устанавливает значение столбца [dt_fim_cadastro] в нормализованную версию указанного значения даты/времени.
public function setDtFimCadastro($v) { // we treat '' as NULL for temporal objects because DateTime('') == DateTime('now') // -- which is unexpected, to say the least. if ($v === null || $v === '') { $dt = null; } elseif ($v instanceof DateTime) { $dt = $v; } else { // some string/numeric value pass...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setDtInicioCadastro($v)\n\t{\n\t\t// we treat '' as NULL for temporal objects because DateTime('') == DateTime('now')\n\t\t// -- which is unexpected, to say the least.\n\t\tif ($v === null || $v === '') {\n\t\t\t$dt = null;\n\t\t} elseif ($v instanceof DateTime) {\n\t\t\t$dt = $v;\n\t\t} else {\n\t...
[ "0.7302216", "0.7006982", "0.6989151", "0.6976478", "0.6878861", "0.68295294", "0.67514324", "0.66638774", "0.65950596", "0.6582075", "0.65722346", "0.65440434", "0.65186524", "0.6359775", "0.63142985", "0.6285042", "0.6256237", "0.6215531", "0.6207403", "0.6075167", "0.60270...
0.70583665
1
setDtFimAjuste() Sets the value of [dt_inicio_ajuste_fila] column to a normalized version of the date/time value specified.
setDtFimAjuste() Устанавливает значение столбца [dt_inicio_ajuste_fila] в нормализованную версию указанного значения даты/времени.
public function setDtInicioAjusteFila($v) { // we treat '' as NULL for temporal objects because DateTime('') == DateTime('now') // -- which is unexpected, to say the least. if ($v === null || $v === '') { $dt = null; } elseif ($v instanceof DateTime) { $dt = $v; } else { // some string/numeric value...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setDtInicioFila($v)\n\t{\n\t\t// we treat '' as NULL for temporal objects because DateTime('') == DateTime('now')\n\t\t// -- which is unexpected, to say the least.\n\t\tif ($v === null || $v === '') {\n\t\t\t$dt = null;\n\t\t} elseif ($v instanceof DateTime) {\n\t\t\t$dt = $v;\n\t\t} else {\n\t\t\t...
[ "0.7034903", "0.6928941", "0.67243326", "0.66846573", "0.65507054", "0.64809716", "0.6397089", "0.6356027", "0.6354067", "0.63028127", "0.6262333", "0.6215236", "0.62023056", "0.6159814", "0.6143286", "0.60973775", "0.6079673", "0.60616505", "0.6059879", "0.60296965", "0.5972...
0.7447116
0
setDtInicioAjusteResultado() Sets the value of [dt_fim_ajuste_resultado] column to a normalized version of the date/time value specified.
setDtInicioAjusteResultado() Устанавливает значение столбца [dt_fim_ajuste_resultado] в нормализованную версию указанного значения даты/времени.
public function setDtFimAjusteResultado($v) { // we treat '' as NULL for temporal objects because DateTime('') == DateTime('now') // -- which is unexpected, to say the least. if ($v === null || $v === '') { $dt = null; } elseif ($v instanceof DateTime) { $dt = $v; } else { // some string/numeric val...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setDtInicioAjusteResultado($v)\n\t{\n\t\t// we treat '' as NULL for temporal objects because DateTime('') == DateTime('now')\n\t\t// -- which is unexpected, to say the least.\n\t\tif ($v === null || $v === '') {\n\t\t\t$dt = null;\n\t\t} elseif ($v instanceof DateTime) {\n\t\t\t$dt = $v;\n\t\t} els...
[ "0.73332703", "0.71037424", "0.672516", "0.64844203", "0.61744386", "0.614004", "0.609266", "0.60682994", "0.60437214", "0.5986254", "0.59556824", "0.5937012", "0.58607376", "0.57979876", "0.575125", "0.5747594", "0.57429224", "0.57127535", "0.56902796", "0.56320333", "0.5599...
0.71410435
1
Gets any ValidationFailed objects that resulted from last call to validate().
Получает любые объекты ValidationFailed, возникшие в результате последнего вызова validate().
public function getValidationFailures() { return $this->validationFailures; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getValidationFailures()\n {\n return $this->validationFailures;\n }", "public function getValidationFailures()\n {\n return $this->validationFailures;\n }", "public function getValidationFailures()\n {\n return $this->validationFailures;\n }", "public fu...
[ "0.7610681", "0.7610681", "0.7610681", "0.7610681", "0.7610681", "0.7610681", "0.7610681", "0.7610681", "0.7610681", "0.7610681", "0.7605179", "0.7572113", "0.72270244", "0.71786416", "0.7122542", "0.7122542", "0.7121668", "0.7092306", "0.70782226", "0.70743996", "0.7064104",...
0.76112866
1
Generic method to set the primary key (id_periodo column).
Общая методика установки первичного ключа (столбец id_periodo).
public function setPrimaryKey($key) { $this->setIdPeriodo($key); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setIdPeriodo($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (int) $v;\n\t\t}\n\n\t\tif ($this->id_periodo !== $v) {\n\t\t\t$this->id_periodo = $v;\n\t\t\t$this->modifiedColumns[] = TbperiodoPeer::ID_PERIODO;\n\t\t}\n\n\t\treturn $this;\n\t}", "public function getPrimaryKey()\n\t{\n\t\treturn $this-...
[ "0.7059455", "0.6778839", "0.62079865", "0.6205252", "0.62028164", "0.6177511", "0.59815353", "0.5945669", "0.59423596", "0.59349364", "0.5923868", "0.5915739", "0.59059197", "0.59018815", "0.5891144", "0.5891144", "0.5891144", "0.5891144", "0.5891144", "0.5891144", "0.589114...
0.76681995
0
Get the associated Tbcursonivel object
Получить связанный объект Tbcursonivel
public function getTbcursonivel(PropelPDO $con = null) { if ($this->aTbcursonivel === null && ($this->id_nivel !== null)) { $this->aTbcursonivel = TbcursonivelPeer::retrieveByPk($this->id_nivel); /* The following can be used additionally to guarantee the related object contains a reference to this ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCURSO()\n {\n return $this->hasOne(Curso::className(), ['ID' => 'CURSO_ID']);\n }", "public function getCURSO()\n {\n return $this->hasOne(Curso::className(), ['ID' => 'CURSO_ID']);\n }", "public function getOne(){\r\n\t\t$sql = \"SELECT * FROM bases_cotizacion WHER...
[ "0.70437586", "0.70437586", "0.6846619", "0.65850466", "0.65477616", "0.6290148", "0.6275073", "0.62430966", "0.62326425", "0.62278146", "0.6162765", "0.6156664", "0.61163455", "0.6088197", "0.6073955", "0.60680926", "0.6065077", "0.6050096", "0.60456246", "0.60354096", "0.60...
0.72763026
0
Clears out the collTbfilacalouross collection (array). This does not modify the database; however, it will remove any associated objects, causing them to be refetched by subsequent calls to accessor method.
Очищает коллекцию (массив) collTbfilacalouross. Это не изменяет базу данных; однако, это удаляет все связанные объекты, заставляя их быть заново получены последующими вызовами метода доступа.
public function clearTbfilacalouross() { $this->collTbfilacalouross = null; // important to set this to NULL since that means it is uninitialized }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function clearFbos()\n\t{\n\t\t$this->collFbos = null; // important to set this to NULL since that means it is uninitialized\n\t}", "public function clearTbofertas()\n\t{\n\t\t$this->collTbofertas = null; // important to set this to NULL since that means it is uninitialized\n\t}", "public function clear...
[ "0.72654396", "0.709685", "0.70651", "0.695831", "0.69453645", "0.6908317", "0.67483944", "0.67483944", "0.66913897", "0.6691358", "0.6680036", "0.66575134", "0.6632653", "0.6625069", "0.6608933", "0.66046894", "0.66027004", "0.65766764", "0.65710384", "0.6564261", "0.6558153...
0.8039688
0
Initializes the collTbfilacalouross collection (array). By default this just sets the collTbfilacalouross collection to an empty array (like clearcollTbfilacalouross()); however, you may wish to override this method in your stub class to provide setting appropriate to your application for example, setting the initial a...
Инициализирует коллекцию (массив) collTbfilacalouross. По умолчанию это просто устанавливает коллекцию collTbfilacalouross в пустой массив (как clearcollTbfilacalouross()); однако вы можете переопределить этот метод в своей заглушке класса, чтобы задать подходящее значение для вашего приложения, например, установить на...
public function initTbfilacalouross() { $this->collTbfilacalouross = array(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function initTbofertas()\n\t{\n\t\t$this->collTbofertas = array();\n\t}", "public function clearTbfilacalouross()\n\t{\n\t\t$this->collTbfilacalouross = null; // important to set this to NULL since that means it is uninitialized\n\t}", "public function initFbos()\n\t{\n\t\t$this->collFbos = array();\n\t...
[ "0.66723984", "0.6446834", "0.64177775", "0.6089781", "0.5957835", "0.5699441", "0.5642494", "0.5642494", "0.56347775", "0.5618242", "0.54244405", "0.53958297", "0.5343761", "0.5323813", "0.531246", "0.53080547", "0.517033", "0.51374", "0.51183885", "0.510882", "0.50728184", ...
0.83900297
0
Gets an array of Tbfilacalouros objects which contain a foreign key that references this object. If this collection has already been initialized with an identical Criteria, it returns the collection. Otherwise if this Tbperiodo has previously been saved, it will retrieve related Tbfilacalouross from storage. If this Tb...
Получает массив объектов Tbfilacalouros, которые содержат идентификатор внешнего ключа, ссылающийся на этот объект. Если эта коллекция уже была инициализирована с одинаковым критерием, возвращается сама коллекция. В противном случае, если Tbperiodo ранее сохранялся, будут получены связанные Tbfilacalouross из хранилища...
public function getTbfilacalouross($criteria = null, PropelPDO $con = null) { if ($criteria === null) { $criteria = new Criteria(TbperiodoPeer::DATABASE_NAME); } elseif ($criteria instanceof Criteria) { $criteria = clone $criteria; } if ($this->collTbfilacalouross === null) { if ($this->isNew()) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFournisseurs(Criteria $criteria = null, ConnectionInterface $con = null)\n {\n $partial = $this->collFournisseursPartial && !$this->isNew();\n if (null === $this->collFournisseurs || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collFourni...
[ "0.6696844", "0.6631318", "0.6458702", "0.64465106", "0.6351525", "0.6322312", "0.6309831", "0.6306956", "0.6304359", "0.6267945", "0.62669516", "0.62228084", "0.6209791", "0.61833626", "0.6141572", "0.6096355", "0.6062432", "0.60181946", "0.5970523", "0.59166795", "0.5897992...
0.73977375
0
Clears out the collTbhistoricos collection (array). This does not modify the database; however, it will remove any associated objects, causing them to be refetched by subsequent calls to accessor method.
Очищает коллекцию (массив) collTbhistoricos. Это не изменяет базу данных; однако, это удалит любые связанные объекты, заставляя их быть заново получены последующими вызовами метода-доступа.
public function clearTbhistoricos() { $this->collTbhistoricos = null; // important to set this to NULL since that means it is uninitialized }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function clearTbturmas()\n\t{\n\t\t$this->collTbturmas = null; // important to set this to NULL since that means it is uninitialized\n\t}", "public function clearTbofertas()\n\t{\n\t\t$this->collTbofertas = null; // important to set this to NULL since that means it is uninitialized\n\t}", "public functi...
[ "0.70593673", "0.6941767", "0.686693", "0.6852798", "0.68446225", "0.68184096", "0.6669673", "0.65720093", "0.64976984", "0.64400476", "0.64293647", "0.63995767", "0.6393703", "0.638562", "0.63814497", "0.6337224", "0.6335832", "0.6326707", "0.6293733", "0.6293733", "0.629041...
0.84833443
0
Initializes the collTbhistoricos collection (array). By default this just sets the collTbhistoricos collection to an empty array (like clearcollTbhistoricos()); however, you may wish to override this method in your stub class to provide setting appropriate to your application for example, setting the initial array to t...
Инициализирует коллекцию collTbhistoricos (массив). По умолчанию это просто устанавливает коллекцию collTbhistoricos в пустой массив (как clearcollTbhistoricos()); однако вы можете переопределить этот метод в своей класс-оболочке, чтобы задать соответствующие значения для вашей приложения, например, установить начальны...
public function initTbhistoricos() { $this->collTbhistoricos = array(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function clearTbhistoricos()\n\t{\n\t\t$this->collTbhistoricos = null; // important to set this to NULL since that means it is uninitialized\n\t}", "public function initTbofertas()\n\t{\n\t\t$this->collTbofertas = array();\n\t}", "public function initTbturmas()\n\t{\n\t\t$this->collTbturmas = array();\n...
[ "0.68348384", "0.65382296", "0.6137672", "0.5749358", "0.571393", "0.52342385", "0.52273875", "0.5224545", "0.51810455", "0.5135091", "0.5135091", "0.511414", "0.50949603", "0.5026176", "0.49852675", "0.49836454", "0.49699607", "0.48495364", "0.48416165", "0.48412675", "0.480...
0.83942544
0
Gets an array of Tbhistorico objects which contain a foreign key that references this object. If this collection has already been initialized with an identical Criteria, it returns the collection. Otherwise if this Tbperiodo has previously been saved, it will retrieve related Tbhistoricos from storage. If this Tbperiod...
Получает массив объектов Tbhistorico, которые содержат иностранный ключ, ссылающийся на этот объект. Если эта коллекция уже была инициализирована с одинаковым критерием, она возвращается. В противном случае, если этот Tbperiodo был сохранен ранее, будут получены связанные Tbhistoricos из хранилища. Если этот Tbperiodo ...
public function getTbhistoricos($criteria = null, PropelPDO $con = null) { if ($criteria === null) { $criteria = new Criteria(TbperiodoPeer::DATABASE_NAME); } elseif ($criteria instanceof Criteria) { $criteria = clone $criteria; } if ($this->collTbhistoricos === null) { if ($this->isNew()) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTbofertas($criteria = null, PropelPDO $con = null)\n\t{\n\t\tif ($criteria === null) {\n\t\t\t$criteria = new Criteria(TbperiodoPeer::DATABASE_NAME);\n\t\t}\n\t\telseif ($criteria instanceof Criteria)\n\t\t{\n\t\t\t$criteria = clone $criteria;\n\t\t}\n\n\t\tif ($this->collTbofertas === null) {\n...
[ "0.680732", "0.663976", "0.6607792", "0.6525417", "0.64777935", "0.64688003", "0.61841315", "0.6149495", "0.6056157", "0.59969515", "0.597174", "0.5968771", "0.59022945", "0.5896807", "0.5896807", "0.5846869", "0.58338785", "0.5821556", "0.5794079", "0.5781675", "0.57709384",...
0.76798517
0
Clears out the collTbofertas collection (array). This does not modify the database; however, it will remove any associated objects, causing them to be refetched by subsequent calls to accessor method.
Очищает коллекцию collTbofertas (массив). Это не изменяет базу данных; однако, это удаляет все связанные объекты, что приведет к их повторному получению последующими вызовами метода доступа.
public function clearTbofertas() { $this->collTbofertas = null; // important to set this to NULL since that means it is uninitialized }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function clearTbturmas()\n\t{\n\t\t$this->collTbturmas = null; // important to set this to NULL since that means it is uninitialized\n\t}", "public function clearFbos()\n\t{\n\t\t$this->collFbos = null; // important to set this to NULL since that means it is uninitialized\n\t}", "public function clearTb...
[ "0.73039716", "0.69921005", "0.68266404", "0.667981", "0.6604276", "0.6604276", "0.6577142", "0.6442849", "0.63915044", "0.63882416", "0.62821996", "0.62661", "0.6239911", "0.62211794", "0.62156653", "0.6213587", "0.61696035", "0.61667657", "0.6138921", "0.61330014", "0.61265...
0.84064597
0
Initializes the collTbofertas collection (array). By default this just sets the collTbofertas collection to an empty array (like clearcollTbofertas()); however, you may wish to override this method in your stub class to provide setting appropriate to your application for example, setting the initial array to the values...
Инициализирует коллекцию collTbofertas (массив). По умолчанию это просто устанавливает коллекцию collTbofertas в пустой массив (так же, как clearcollTbofertas()); однако вы можете переопределить этот метод в своей классовой оболочке, чтобы задать подходящие значения для вашего приложения, например, установить начальный...
public function initTbofertas() { $this->collTbofertas = array(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function clearTbofertas()\n\t{\n\t\t$this->collTbofertas = null; // important to set this to NULL since that means it is uninitialized\n\t}", "public function initTbturmas()\n\t{\n\t\t$this->collTbturmas = array();\n\t}", "public function initTbhistoricos()\n\t{\n\t\t$this->collTbhistoricos = array();\n...
[ "0.6742437", "0.67422146", "0.6384471", "0.63812685", "0.59186643", "0.5721242", "0.5584696", "0.55282253", "0.5496706", "0.51539063", "0.51507545", "0.5150106", "0.5136725", "0.5025871", "0.4961644", "0.49399105", "0.49241185", "0.48829153", "0.48651963", "0.48585263", "0.48...
0.8397267
0
Gets an array of Tboferta objects which contain a foreign key that references this object. If this collection has already been initialized with an identical Criteria, it returns the collection. Otherwise if this Tbperiodo has previously been saved, it will retrieve related Tbofertas from storage. If this Tbperiodo is n...
Получает массив объектов Tboferta, содержащих идентификатор внешнего ключа, ссылающийся на этот объект. Если данная коллекция уже была инициализирована с идентичным критерием, возвращается сама коллекция. В противном случае, если этот Tbperiodo был ранее сохранен, будут получены связанные Tbofertas из хранилища. Если э...
public function getTbofertas($criteria = null, PropelPDO $con = null) { if ($criteria === null) { $criteria = new Criteria(TbperiodoPeer::DATABASE_NAME); } elseif ($criteria instanceof Criteria) { $criteria = clone $criteria; } if ($this->collTbofertas === null) { if ($this->isNew()) { $thi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTbofertasJoinTbsetor($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN)\n\t{\n\t\tif ($criteria === null) {\n\t\t\t$criteria = new Criteria(TbperiodoPeer::DATABASE_NAME);\n\t\t}\n\t\telseif ($criteria instanceof Criteria)\n\t\t{\n\t\t\t$criteria = clone $criteria;\n\t\t}\n\n\t\...
[ "0.6666509", "0.6623606", "0.66095686", "0.6598585", "0.65910923", "0.6570161", "0.64333475", "0.64247423", "0.6383501", "0.6362491", "0.6240066", "0.6227986", "0.6227221", "0.62184405", "0.6117047", "0.59967834", "0.59954566", "0.5977305", "0.5945984", "0.59345645", "0.58750...
0.7765405
0
Clears out the collTbprofessortickets collection (array). This does not modify the database; however, it will remove any associated objects, causing them to be refetched by subsequent calls to accessor method.
Очищает коллекцию collTbprofessortickets (массив). Это не изменяет базу данных; однако, это удалит все связанные объекты, заставляя их повторно загружаться последующими вызовами метода доступа.
public function clearTbprofessortickets() { $this->collTbprofessortickets = null; // important to set this to NULL since that means it is uninitialized }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function initTbprofessortickets()\n\t{\n\t\t$this->collTbprofessortickets = array();\n\t}", "public function clearHabilidadeProposicaos()\n {\n $this->collHabilidadeProposicaos = null; // important to set this to NULL since that means it is uninitialized\n }", "public function clearRecursoP...
[ "0.6623809", "0.6446671", "0.6099076", "0.60332197", "0.6011506", "0.5982073", "0.5944477", "0.591346", "0.5886651", "0.58013934", "0.57810897", "0.5780338", "0.5763309", "0.5724686", "0.57242864", "0.5724281", "0.57147264", "0.5676325", "0.56719404", "0.5641332", "0.56395626...
0.8823964
0
Initializes the collTbprofessortickets collection (array). By default this just sets the collTbprofessortickets collection to an empty array (like clearcollTbprofessortickets()); however, you may wish to override this method in your stub class to provide setting appropriate to your application for example, setting the ...
Инициализирует коллекцию collTbprofessortickets (массив). По умолчанию это просто устанавливает коллекцию collTbprofessortickets в пустой массив (как clearcollTbprofessortickets()); однако вы можете переопределить этот метод в своей заглушке класса, чтобы задать соответствующие значения для вашей приложения, например, ...
public function initTbprofessortickets() { $this->collTbprofessortickets = array(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function clearTbprofessortickets()\n\t{\n\t\t$this->collTbprofessortickets = null; // important to set this to NULL since that means it is uninitialized\n\t}", "public function getTbprofessortickets($criteria = null, PropelPDO $con = null)\n\t{\n\t\tif ($criteria === null) {\n\t\t\t$criteria = new Criteri...
[ "0.7219332", "0.592449", "0.55895543", "0.55746335", "0.54294574", "0.5111544", "0.5086655", "0.49801034", "0.49475515", "0.4947471", "0.494651", "0.49326643", "0.49221048", "0.48479456", "0.48252067", "0.47767392", "0.47637287", "0.4742612", "0.47236115", "0.47198623", "0.46...
0.8562151
0
Gets an array of Tbprofessorticket objects which contain a foreign key that references this object. If this collection has already been initialized with an identical Criteria, it returns the collection. Otherwise if this Tbperiodo has previously been saved, it will retrieve related Tbprofessortickets from storage. If t...
Получает массив объектов Tbprofessorticket, которые содержат идентификатор внешнего ключа, ссылающийся на этот объект. Если эта коллекция уже была инициализирована с идентичным критерием, возвращается сама коллекция. В противном случае, если этот Tbperiodo был сохранен ранее, будут извлечены связанные Tbprofessorticket...
public function getTbprofessortickets($criteria = null, PropelPDO $con = null) { if ($criteria === null) { $criteria = new Criteria(TbperiodoPeer::DATABASE_NAME); } elseif ($criteria instanceof Criteria) { $criteria = clone $criteria; } if ($this->collTbprofessortickets === null) { if ($this->isN...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTbprofessorticketsJoinTbprofessor($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN)\n\t{\n\t\tif ($criteria === null) {\n\t\t\t$criteria = new Criteria(TbperiodoPeer::DATABASE_NAME);\n\t\t}\n\t\telseif ($criteria instanceof Criteria)\n\t\t{\n\t\t\t$criteria = clone $criteria;\...
[ "0.6809474", "0.6272156", "0.6253553", "0.5962947", "0.5961331", "0.5904555", "0.5820398", "0.58169067", "0.5740942", "0.57328415", "0.57100624", "0.5601783", "0.5598559", "0.55948424", "0.5583753", "0.5561346", "0.55553865", "0.55430704", "0.5540734", "0.5522922", "0.5495446...
0.7970208
0
Clears out the collTbturmas collection (array). This does not modify the database; however, it will remove any associated objects, causing them to be refetched by subsequent calls to accessor method.
Очищает коллекцию collTbturmas (массив). Это не изменяет базу данных; однако, это удаляет все связанные объекты, заставляя их повторно загружаться последующими вызовами метода доступа.
public function clearTbturmas() { $this->collTbturmas = null; // important to set this to NULL since that means it is uninitialized }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function clearTbofertas()\n\t{\n\t\t$this->collTbofertas = null; // important to set this to NULL since that means it is uninitialized\n\t}", "public function clearMROSocietes()\n {\n $this->collMROSocietes = null; // important to set this to NULL since that means it is uninitialized\n }", ...
[ "0.7164901", "0.6742524", "0.66906196", "0.660246", "0.6571203", "0.6502145", "0.6501342", "0.6491573", "0.645123", "0.64478207", "0.6400127", "0.639957", "0.6388004", "0.63563436", "0.6329341", "0.63164896", "0.630105", "0.6299121", "0.62849975", "0.6269949", "0.6269949", ...
0.84170246
0
Initializes the collTbturmas collection (array). By default this just sets the collTbturmas collection to an empty array (like clearcollTbturmas()); however, you may wish to override this method in your stub class to provide setting appropriate to your application for example, setting the initial array to the values st...
Инициализирует коллекцию collTbturmas (массив). По умолчанию это просто устанавливает коллекцию collTbturmas в пустой массив (так же, как clearcollTbturmas()); однако вы можете переопределить этот метод в своей заглушке класса, чтобы установить значения, соответствующие вашему приложению, например, инициализировать мас...
public function initTbturmas() { $this->collTbturmas = array(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function initTbofertas()\n\t{\n\t\t$this->collTbofertas = array();\n\t}", "public function clearTbturmas()\n\t{\n\t\t$this->collTbturmas = null; // important to set this to NULL since that means it is uninitialized\n\t}", "public function initTbhistoricos()\n\t{\n\t\t$this->collTbhistoricos = array();\n...
[ "0.71573555", "0.707294", "0.66418344", "0.5908028", "0.56982946", "0.54517007", "0.5377247", "0.5364216", "0.5364216", "0.53358895", "0.5232213", "0.51033366", "0.5072658", "0.50524896", "0.5022004", "0.4984649", "0.49576068", "0.49531862", "0.4936689", "0.4872782", "0.48425...
0.8516629
0
Gets an array of Tbturma objects which contain a foreign key that references this object. If this collection has already been initialized with an identical Criteria, it returns the collection. Otherwise if this Tbperiodo has previously been saved, it will retrieve related Tbturmas from storage. If this Tbperiodo is new...
Получает массив объектов Tbturma, которые содержат иностранный ключ, ссылающийся на этот объект. Если эта коллекция уже была инициализирована с идентичным критерием, возвращается коллекция. В противном случае, если этот Tbperiodo был ранее сохранен, будет извлечена связанная коллекция Tbturmas из хранилища. Если этот T...
public function getTbturmas($criteria = null, PropelPDO $con = null) { if ($criteria === null) { $criteria = new Criteria(TbperiodoPeer::DATABASE_NAME); } elseif ($criteria instanceof Criteria) { $criteria = clone $criteria; } if ($this->collTbturmas === null) { if ($this->isNew()) { $this-...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTbhistoricos($criteria = null, PropelPDO $con = null)\n\t{\n\t\tif ($criteria === null) {\n\t\t\t$criteria = new Criteria(TbperiodoPeer::DATABASE_NAME);\n\t\t}\n\t\telseif ($criteria instanceof Criteria)\n\t\t{\n\t\t\t$criteria = clone $criteria;\n\t\t}\n\n\t\tif ($this->collTbhistoricos === nul...
[ "0.71382594", "0.7031354", "0.64813924", "0.6430169", "0.6313226", "0.61689717", "0.60971665", "0.60573965", "0.59952706", "0.5961057", "0.5945808", "0.58996046", "0.5884444", "0.5793055", "0.57449746", "0.574114", "0.57299", "0.56887406", "0.5637682", "0.5620686", "0.5612345...
0.74730176
0
Register the bindings for the main BotAuth class.
Зарегистрируйте привязки для основного класса BotAuth.
protected function registerAuth() { $this->app->singleton('laragram.auth', function ($app) { return (new BotAuth( $app['request'], $this->config('auth.driver'), $this->config('bot.languages'), $this->config('auth.user.model') ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function registerAuthBindings()\n {\n $this->singleton('auth', function () {\n return $this->loadComponent('auth', \\Illuminate\\Auth\\AuthServiceProvider::class, 'auth');\n });\n\n $this->singleton('auth.driver', function () {\n return $this->loadComponent('...
[ "0.7246272", "0.7122966", "0.70268375", "0.69213533", "0.65890914", "0.6393395", "0.63487643", "0.6344619", "0.6226233", "0.62146246", "0.61873305", "0.6160534", "0.6150794", "0.6143778", "0.61128724", "0.6082761", "0.60558206", "0.60296106", "0.59929305", "0.598224", "0.5980...
0.72559404
0
Register the bindings for the main BotResponse class.
Зарегистрируйте привязки для основного класса BotResponse.
protected function registerResponse() { $this->app->singleton('laragram.response', function () { return new BotResponse( $this->config('paths.views') ); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function registerResponseFactoryBindings()\n {\n $this->singleton('Illuminate\\Contracts\\Routing\\ResponseFactory', static function () {\n return new ResponseFactory();\n });\n }", "protected function registerPsrResponseBindings()\n {\n $this->singleton(Respons...
[ "0.63239187", "0.6251344", "0.6174381", "0.6070725", "0.59909296", "0.59742093", "0.5959524", "0.5843511", "0.56724894", "0.563279", "0.563279", "0.55684704", "0.55185777", "0.54336125", "0.54265845", "0.5413376", "0.5411261", "0.5409631", "0.5405445", "0.5372938", "0.5353296...
0.7540574
0
Alias the middleware for Laravel.
Присвоить алиас посреднику для Laravel.
protected function aliasLaravelMiddleware() { $router = $this->app['router']; $method = method_exists($router, 'aliasMiddleware') ? 'aliasMiddleware' : 'middleware'; foreach ($this->middlewareAliases as $alias => $middleware) { $router->$method($alias, $middleware); } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function middleware()\n {\n }", "public function middleware()\n {\n // TODO: Implement middleware() method.\n }", "protected function registerMiddleware()\n {\n $router = $this->app['router'];\n\n $router->aliasMiddleware('admin.api.auth', AdminApiAuth::class);\n ...
[ "0.7433286", "0.7347797", "0.7032603", "0.69653255", "0.6791506", "0.66128314", "0.65144503", "0.64820796", "0.645858", "0.64554685", "0.64524335", "0.6398311", "0.6391488", "0.63580185", "0.6339857", "0.6323937", "0.6323025", "0.63132614", "0.6307229", "0.6237373", "0.621622...
0.7714726
0
Register the application's event listeners.
Зарегистрируйте обработчики событий приложения.
protected function registerEvents() { foreach ($this->listen as $event => $listeners) { foreach ($listeners as $listener) { $this->app['events']->listen($event, $listener); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function registerEvents()\n {\n $events = $this->app->make(Dispatcher::class);\n\n foreach ($this->events as $event => $listeners) {\n foreach ($listeners as $listener) {\n $events->listen($event, $listener);\n }\n }\n }", "protected functio...
[ "0.82009375", "0.8151163", "0.8151163", "0.8151163", "0.8151163", "0.8151163", "0.77781993", "0.768783", "0.7644874", "0.76356035", "0.76164067", "0.7588979", "0.7563673", "0.749426", "0.7478305", "0.74737877", "0.7431801", "0.7400104", "0.7382565", "0.72877926", "0.7268603",...
0.82277554
0
Formating help text and exit
Форматирование справочной информации и выход
private function outputHelp() { $yellow = "\e[93m"; $green = "\e[92m"; $default = "\e[39m"; $text = "$yellow Description: $default \n"; $text .= " Run command to remove your temporary .bak files or anything else \n\n"; $text .= "$yellow Usage: $defau...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function renderHelp()\n\t\t{\n\n\n\t\t}", "function helpMessage($argv): void {\n //Check if in argv exists '--help' or '-help'\n //also, if WPDocGen is run without params, print the help message\n if (!in_array('--help', $argv) && !in_array('-h', $argv) && isset($argv[1]))...
[ "0.69916666", "0.69760287", "0.6862086", "0.6834672", "0.67703444", "0.6711703", "0.6697897", "0.66894597", "0.66783714", "0.66683036", "0.66635334", "0.66606045", "0.66497314", "0.6648865", "0.6638863", "0.6638161", "0.6636769", "0.66168606", "0.6595159", "0.6592078", "0.658...
0.7035102
0
Setup the DB connection for tests.
Настройте соединение с БД для тестов.
protected function setUp() { $this->pdo_db = new PdoDatabase(); $pdo_connection = new PdoConnection(); $pdo_connection->setConfig( array('dsn' => PDO_DSN, 'user' => PDO_USER, 'password' => PDO_PASS, 'driverOptions' => array(), ) ); $pd...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setupDatabase()\n {\n $config = $this->getDatabaseConfig();\n switch ($config['driver']) {\n case 'mysql':\n $mysql_config = $config['drivers']['mysql'];\n Database::createMysqlConnection(\n $mysql_config['host'],\n ...
[ "0.7919355", "0.7887356", "0.78573936", "0.7846728", "0.7826282", "0.7818396", "0.77229327", "0.7701814", "0.76751745", "0.7664844", "0.764213", "0.7610975", "0.7569555", "0.75523335", "0.7471385", "0.7413677", "0.74104184", "0.7404498", "0.73827356", "0.7369535", "0.7342017"...
0.7890766
1
Test insert, update, and delete.
Тест вставки, обновления и удаления.
public function testInsertAndUpdateAndDelete() { $this->setUp(); $id = $this->pdo_db->insert('user', array('username' => 'testInsert')); $this->pdo_db->prepare( 'SELECT username FROM user WHERE id = :id', array()); $this->pdo_db->execute(array('id' => $id)); $rows...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testInsert() {\n }", "public function testInsert()\n {\n }", "function testSaveToDb_regular()\n\t{\n\t}", "public function testSavingAndGetting() {\n $o = $this->dao->get()->set('id', 99);\n $this->dao->insert($o);\n $this->dao->getById(99);\n return $this->assertTrue(true)...
[ "0.7627497", "0.749967", "0.69691974", "0.6916822", "0.69017476", "0.6897014", "0.6846133", "0.6811162", "0.68039846", "0.6799143", "0.67782223", "0.67211765", "0.6708768", "0.6693004", "0.66753983", "0.66209626", "0.66209626", "0.66045123", "0.6603108", "0.66009897", "0.6593...
0.7517668
1
Test the various fetch options.
Проверьте различные варианты загрузки.
public function testFetchOptions() { $this->setUp(); $this->pdo_db->prepare( 'SELECT id FROM user WHERE id IN(1,2,3) ORDER BY ID', array()); $this->pdo_db->execute(array()); $rows = $this->pdo_db->fetch( array( 'fetchMode' => \PDO::FETCH_ASSOC,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static function need_fetch($options) {\n\t\t\t$need_fetch = RaspHash::get($options, 'fetch', true);\n\t\t\treturn $need_fetch !== false;\n\t\t}", "public function testFetchAllWithOptions()\n {\n // add counters to test\n $counters = array(\n 'testcounter1',\n 'testc...
[ "0.6822454", "0.62493616", "0.62007684", "0.6149352", "0.60603625", "0.5981366", "0.5981366", "0.5981366", "0.5981366", "0.59347814", "0.5922035", "0.587124", "0.58517796", "0.57353735", "0.5709964", "0.56421477", "0.5635959", "0.56347984", "0.5627674", "0.560877", "0.5600152...
0.7021282
0
Test the fecthAll fetch mode option.
Проверьте параметр режима fetchAll fetch.
public function testFetchAllOptions() { $this->setUp(); $this->pdo_db->prepare( 'SELECT id FROM user WHERE id IN(1,2,3) ORDER BY ID', array()); $this->pdo_db->execute(array()); $rows = $this->pdo_db->fetchAll(array('fetchMode' => \PDO::FETCH_ASSOC)); $this->assert...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function fetchAll($fetchMode);", "public function setFetchmode($mode);", "public function testAdapterFetchAllOverrideFetchMode()\n {\n $products = $this->_db->quoteIdentifier('zfproducts');\n $product_id = $this->_db->quoteIdentifier('product_id');\n $col_name = $this->_...
[ "0.7829363", "0.7090132", "0.70750755", "0.6979375", "0.6956424", "0.6955156", "0.68821496", "0.68337023", "0.6807918", "0.6735906", "0.6676826", "0.6631498", "0.6599493", "0.6558009", "0.6536794", "0.65247226", "0.65247226", "0.65134174", "0.6483854", "0.63988364", "0.638968...
0.71438116
1
Creates a temporary file and returns a Stream instance.
Создаёт временный файл и возвращает экземпляр Stream.
static function tempfile() { return new Stream(tmpfile()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function temp(): File\n {\n $resource = tmpfile();\n $path = stream_get_meta_data($resource)['uri'];\n\n return new static($path, self::CREATE_TRUNCATE_READ_WRITE, $resource);\n }", "protected function createStream()\n {\n return stream_for(try_fopen($this->file...
[ "0.7998106", "0.7368394", "0.7368394", "0.70593804", "0.700529", "0.6821407", "0.677375", "0.67425764", "0.6568136", "0.65453947", "0.641266", "0.6362445", "0.6312917", "0.6227339", "0.62172395", "0.6191979", "0.61462694", "0.61083215", "0.6104972", "0.608938", "0.6089005", ...
0.8059241
0
Check that all required properties is set in request data.
Проверьте, что все необходимые свойства заданы в данных запроса.
private function checkRequiredProperties(array $data): bool { foreach ($this::REQUIRED_PROPERTIES as $property) { if (!isset($data[$property])) { return false; } } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function check_required_fields()\n {\n\n\n }", "private function validate_props() {\n\t\t$is_valid = $this->validate_conditions( $this->props, $this->props_schema );\n\n\t\t$this->props['valid'] = $is_valid;\n\t}", "public function hasRequiredValues(): bool\n {\n $missing = [];\n ...
[ "0.7240413", "0.70012474", "0.69841105", "0.691971", "0.6886707", "0.68591183", "0.6857881", "0.6795623", "0.678875", "0.6728221", "0.66946054", "0.6670263", "0.66593933", "0.662061", "0.6592715", "0.6569881", "0.65599054", "0.6559642", "0.65554965", "0.654718", "0.6539933", ...
0.73974544
0
Gets the last id from a successfully executed insert query. Throws an exception if this is called at the wrong time or from the wrong query type.
Получает последний id из успешно выполненного запроса вставки. Выбрасывает исключение, если это вызывается в неправильное время или из неправильного типа запроса.
public function getLastId() { if ($this->lastId) { return $this->lastId; } else { throw new AtlasException("Can't get last ID, this query wasn't executed or isn't an insert!"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function dblibLastInsertId() {\n\n $query = \"SELECT SCOPE_IDENTITY() as id\";\n\n try {\n\n $response = $this->dbh->prepare($query);\n $response->execute();\n $id = $response->fetchAll(\\PDO::FETCH_ASSOC);\n\n }\n catch (\\PDOException $e) {\n\n...
[ "0.78253585", "0.7701771", "0.7638656", "0.7619197", "0.7594391", "0.74793816", "0.74573886", "0.74248165", "0.7388566", "0.7329768", "0.7329482", "0.7319229", "0.7309788", "0.72994345", "0.7286527", "0.7282926", "0.72825724", "0.72587156", "0.7240718", "0.7237784", "0.723758...
0.8025452
0
Register theme supports from an array. Theme supports cannot be unregistered. Supports can take a true or false value, or can be extra arguments to pass along with the support, such as an array, string, boolean or integer.
Регистрация поддержки тем из массива. Поддержка тем не может быть снята с регистрации. Поддержка может принимать значение true или false, или может быть дополнительными аргументами, которые передаются вместе с поддержкой, например, массивом, строкой, логическим или целочисленным значением.
function mer_add_theme_support(array $themeSupports): void { foreach ($themeSupports as $support => $value) { if ($value === false) { continue; } if ($value === true) { add_theme_support($support); } else { add_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function add_theme_supports() {\n foreach ( $this->supports as $support => $params ) {\n add_theme_support( $support, $params );\n }\n }", "public static function theme_support() {\n\t\t$features = apply_filters('cnp_theme_features', static::$theme_features);\n\t\tforeach($feat...
[ "0.72388977", "0.6789697", "0.6663279", "0.66573936", "0.6655115", "0.6567279", "0.6545029", "0.6541908", "0.64857006", "0.64853287", "0.64790577", "0.6456377", "0.6412725", "0.6354168", "0.6280019", "0.61913925", "0.61766297", "0.6167608", "0.61318904", "0.6128327", "0.60230...
0.76457965
0
Checks for minimum Genesis Theme version before allowing plugin to activate
Проверяет минимальную версию темы Genesis перед активацией плагина
function gfwa_activation_check() { $latest = '1.8'; $theme_info = get_theme_data( TEMPLATEPATH . '/style.css' ); if ( basename( TEMPLATEPATH ) != 'genesis' ) { deactivate_plugins( plugin_basename( __FILE__ ) ); // Deactivate ourself wp_die( sprintf( __( 'Sorry, you can\'t activate unless ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function gs_activation_check() {\n\n $latest = '1.7';\n\n $theme_info = get_theme_data( TEMPLATEPATH . '/style.css' );\n\n if ( basename( TEMPLATEPATH ) != 'genesis' ) {\n deactivate_plugins( plugin_basename( __FILE__ ) ); // Deactivate ourself\n wp_die( sprintf( __( 'Sorry, you can\\'t acti...
[ "0.78377706", "0.75620157", "0.74889827", "0.73755026", "0.7254515", "0.71409726", "0.70924705", "0.7012336", "0.68461806", "0.6757062", "0.6702522", "0.6679967", "0.6663158", "0.6646608", "0.66020465", "0.66001236", "0.65894884", "0.65870214", "0.65817225", "0.65731025", "0....
0.7741659
1
Used to cutoff a string to a set length if it exceeds the specified length
Используется для обрезки строки до заданной длины, если она превышает указанную длину
function gfwa_truncate( $str, $length=10 ) { if ( strlen( $str ) > $length ) { return substr( $str, 0, $length ); } else { $res = $str; } return $res; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function limitText($text, $length)\n{\n\t$textLength = strlen($text);\n\n\t//substr if exceed limit\n\tif($textLength > $length)\n\t\t$text = substr($text,0,250).'...';\n\n\treturn $text;\n}", "function truncate($string, $length, $stopanywhere=false) {\n if (strlen($string) > $length) {\n //limit hit!\...
[ "0.73356646", "0.7331503", "0.7124214", "0.7106906", "0.70977044", "0.70829904", "0.7079045", "0.70684284", "0.70682573", "0.70425636", "0.7015828", "0.6993904", "0.6987212", "0.6986217", "0.69503546", "0.6896038", "0.6895509", "0.68666273", "0.6849695", "0.68491834", "0.6844...
0.74142176
0
Does Widget Action "gfwa_before_loop"
Действие виджета "gfwa_before_loop"
function gfwa_before_loop( $instance ) { do_action( 'gfwa_before_loop', $instance ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function gfwa_after_loop( $instance ) {\n do_action( 'gfwa_after_loop', $instance );\n}", "public function preStartPageHook() {}", "public function preStartPageHook() {}", "public function onBeforeRun() {\n\t\tglobal $app;\n\n\t\treturn parent::onBeforeRun();\n\t}", "public function onBeforeRun() {\n\t\...
[ "0.6758566", "0.60915", "0.60915", "0.60612833", "0.60612833", "0.60612833", "0.5929108", "0.5846844", "0.5840209", "0.58269894", "0.5819151", "0.5815849", "0.5801924", "0.57930905", "0.57913804", "0.5785895", "0.576614", "0.5764995", "0.57544386", "0.575393", "0.5745021", ...
0.7960306
0
Does Widget Action "gfwa_before_post_content"
Действие виджета "gfwa_before_post_content"
function gfwa_before_post_content( $instance ) { do_action( 'gfwa_before_post_content', $instance ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function gfwa_post_content( $instance ) {\n do_action( 'gfwa_post_content', $instance );\n}", "function gfwa_after_post_content( $instance ) {\n do_action( 'gfwa_after_post_content', $instance );\n}", "function agencies_hook_content_before() {\n\tif( cs_get_option( 'enable-content-before-hook' ) ) :\n\t\...
[ "0.7118463", "0.6989663", "0.67726666", "0.6714738", "0.6705367", "0.65482295", "0.6534064", "0.6517837", "0.6458314", "0.6387291", "0.63838565", "0.6287144", "0.6231036", "0.6229025", "0.6213221", "0.6204561", "0.6195336", "0.6181576", "0.61773145", "0.6174796", "0.61687183"...
0.82390136
0
Does Widget Action "gfwa_post_content"
Действие виджета "gfwa_post_content"
function gfwa_post_content( $instance ) { do_action( 'gfwa_post_content', $instance ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function gfwa_before_post_content( $instance ) {\n do_action( 'gfwa_before_post_content', $instance );\n}", "function gfwa_after_post_content( $instance ) {\n do_action( 'gfwa_after_post_content', $instance );\n}", "function _oembed_filter_feed_content($content)\n{\n}", "function boomb_editor_widget_co...
[ "0.7190979", "0.69589764", "0.6374069", "0.6359597", "0.62049514", "0.62049514", "0.6192473", "0.61359996", "0.6135653", "0.6131964", "0.6110497", "0.609545", "0.6044348", "0.6037621", "0.5999048", "0.5996902", "0.599091", "0.5988079", "0.5954193", "0.5944644", "0.5942209", ...
0.7602232
0
Does Widget Action "gfwa_after_post_content"
Действие виджета "gfwa_after_post_content"
function gfwa_after_post_content( $instance ) { do_action( 'gfwa_after_post_content', $instance ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function gfwa_before_post_content( $instance ) {\n do_action( 'gfwa_before_post_content', $instance );\n}", "function gfwa_post_content( $instance ) {\n do_action( 'gfwa_post_content', $instance );\n}", "public function afterContent($content);", "function agencies_hook_content_after() {\n\tif( cs_get_o...
[ "0.74742126", "0.74218184", "0.6894008", "0.6761235", "0.6668841", "0.6542886", "0.6528552", "0.6390831", "0.6351634", "0.6292103", "0.6261347", "0.62147963", "0.6209511", "0.6197696", "0.6187942", "0.6176128", "0.6175958", "0.61481434", "0.61388516", "0.61124563", "0.6107478...
0.82734317
0
Does Widget Action "gfwa_endwhile"
Действие виджета "gfwa_endwhile"
function gfwa_endwhile( $instance ) { do_action( 'gfwa_endwhile', $instance ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function DoWhileLoop() {\n}", "function gfwa_after_loop( $instance ) {\n do_action( 'gfwa_after_loop', $instance );\n}", "public function endContent()\n\t{\n\t\t$this->endWidget();\n\t}", "function isFinished() ;", "protected function displayEnd()\n {\n }", "public function widget_end($args)\n ...
[ "0.6204225", "0.5895686", "0.56846875", "0.5670891", "0.5654208", "0.5631293", "0.5609897", "0.55971503", "0.5592834", "0.55917794", "0.5546025", "0.55430275", "0.55348665", "0.5528905", "0.55092853", "0.5507919", "0.54915595", "0.54915595", "0.5488424", "0.54630613", "0.5457...
0.81833184
0
Does Widget Action "gfwa_after_loop"
Действие виджета "gfwa_after_loop"
function gfwa_after_loop( $instance ) { do_action( 'gfwa_after_loop', $instance ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function gfwa_before_loop( $instance ) {\n do_action( 'gfwa_before_loop', $instance );\n}", "public function widget_end($args)\n {\n echo $args['after_widget'];\n }", "function gfwa_after_post_content( $instance ) {\n do_action( 'gfwa_after_post_content', $instance );\n}", "public function...
[ "0.63627595", "0.63240826", "0.62287575", "0.61877704", "0.6173729", "0.6154336", "0.6149916", "0.6143211", "0.61276615", "0.6120578", "0.60847616", "0.6005904", "0.6005904", "0.6005904", "0.59528625", "0.59203273", "0.59066105", "0.59066105", "0.59066105", "0.5902907", "0.58...
0.80257505
0
Does Widget Action "gfwa_list_items"
Действие виджета "gfwa_list_items"
function gfwa_list_items( $instance ) { do_action( 'gfwa_list_items', $instance ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function gfwa_print_list_items( $instance ) {\n do_action( 'gfwa_print_list_items', $instance );\n}", "public function listAction();", "public function listAction() {}", "protected function renderActionList() {}", "public function list_action() {\n Navigation::activateItem('/calendar/raumbelegung...
[ "0.71644163", "0.6463726", "0.63183933", "0.629084", "0.6285755", "0.612026", "0.59500307", "0.5928479", "0.58744335", "0.5857139", "0.58386093", "0.5797008", "0.57935643", "0.57765406", "0.57622343", "0.5752695", "0.5743222", "0.57245284", "0.5714142", "0.5667587", "0.565187...
0.7886645
0
Does Widget Action "gfwa_print_list_items"
Действие Виджета "gfwa_print_list_items"
function gfwa_print_list_items( $instance ) { do_action( 'gfwa_print_list_items', $instance ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function gfwa_list_items( $instance ) {\n do_action( 'gfwa_list_items', $instance );\n}", "public function actionPrintList()\n\t{\n\t\tAudit::add('diary','print list');\n\n\t\tYii::app()->getClientScript()->registerCssFile(Yii::app()->createUrl(\n\t\t\tYii::app()->getAssetManager()->publish(\n\t\t\t\tYii::get...
[ "0.74441963", "0.63939005", "0.63778067", "0.6297477", "0.62570673", "0.62327003", "0.62163055", "0.6170852", "0.61512625", "0.61451465", "0.60905033", "0.6076548", "0.6074165", "0.59890085", "0.5939839", "0.59101844", "0.5894285", "0.58927095", "0.58782905", "0.58614266", "0...
0.82566
0
Does Widget Action "gfwa_category_more"
Действие виджета "gfwa_category_more"
function gfwa_category_more( $instance ) { do_action( 'gfwa_category_more', $instance ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function gfwa_after_category_more( $instance ) {\n do_action( 'gfwa_after_category_more', $instance );\n}", "function more_link($text='Read More',$before='',$after='') {\r\n\tglobal $entry;\r\n\tif(strpos($entry['content'],run_actions('snippet_separator','__More__'))) { echo $before; ?><a href=\"<?php entry_p...
[ "0.77943075", "0.64263034", "0.6299138", "0.6261226", "0.61861867", "0.6179967", "0.61755323", "0.6131098", "0.6046086", "0.5979921", "0.5958376", "0.59375334", "0.5877238", "0.5865591", "0.58280617", "0.5826654", "0.58243304", "0.5815811", "0.5814961", "0.5789745", "0.577954...
0.8133975
0
Does Widget Action "gfwa_after_category_more"
Действие виджета "gfwa_after_category_more"
function gfwa_after_category_more( $instance ) { do_action( 'gfwa_after_category_more', $instance ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function gfwa_category_more( $instance ) {\n do_action( 'gfwa_category_more', $instance );\n}", "function more_link($text='Read More',$before='',$after='') {\r\n\tglobal $entry;\r\n\tif(strpos($entry['content'],run_actions('snippet_separator','__More__'))) { echo $before; ?><a href=\"<?php entry_permalink(); ...
[ "0.82450354", "0.6448652", "0.628679", "0.6201099", "0.6107834", "0.6099162", "0.60712546", "0.6025125", "0.59021616", "0.58198404", "0.5814294", "0.57783216", "0.57420397", "0.57385224", "0.573595", "0.5732562", "0.57308656", "0.572082", "0.571413", "0.5713833", "0.5702934",...
0.84629023
0
Does Widget Action "gfwa_form_first_colum"
Действие виджета "gfwa_form_first_colum"
function gfwa_form_first_column( $instance ) { do_action( 'gfwa_form_first_colum', $instance ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function gfwa_form_second_column( $instance ) {\n do_action( 'gfwa_form_second_colum', $instance );\n}", "public function columnSetting()\n {\n ?>\n <div class=\"isc-main-title\">\n <h3><?php _e( 'Column Setting' ); ?></h3>\n </div>\n <div class=\"...
[ "0.687129", "0.60004985", "0.5852005", "0.57600063", "0.56035554", "0.5569842", "0.55309075", "0.55275273", "0.5511388", "0.5493076", "0.54591316", "0.5418824", "0.5410662", "0.5330869", "0.5330123", "0.53150874", "0.53129834", "0.5299857", "0.52871495", "0.52848893", "0.5277...
0.77244854
0
Does Widget Action "gfwa_form_second_colum"
Действие виджета "gfwa_form_second_colum"
function gfwa_form_second_column( $instance ) { do_action( 'gfwa_form_second_colum', $instance ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function gfwa_form_first_column( $instance ) {\n do_action( 'gfwa_form_first_colum', $instance );\n}", "public function columnSetting()\n {\n ?>\n <div class=\"isc-main-title\">\n <h3><?php _e( 'Column Setting' ); ?></h3>\n </div>\n <div class=\"is...
[ "0.6847982", "0.57254887", "0.5548917", "0.5547288", "0.5517377", "0.55091286", "0.5465984", "0.54275745", "0.53733176", "0.5369493", "0.5346209", "0.53311896", "0.52940875", "0.5282155", "0.52814734", "0.5269946", "0.52490544", "0.52141476", "0.5190195", "0.51773405", "0.517...
0.77751577
0
Display all expenses from current tablet for current user
Показать все расходы с текущего планшета для текущего пользователя
public function all() { $userTablet = $this->_getCurrentTablet(); $expense = new Expense(); $expenses = $expense->getLastExpenses($userTablet->id); return View::make('expense/all', array( 'expenses' => $expenses, 'tablet' => $userTablet ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function index()\n {\n if(Auth::user()->hasRole('Administrator'))\n {\n $expenses = Expense::OrderBy('id', 'updated_at')->paginate(10);\n }\n else $expenses = Expense::where('user_id', null)->orderBy('id', 'updated_at')->paginate(10);\n\n return view('expense...
[ "0.7211899", "0.7105019", "0.7064972", "0.70133644", "0.6964442", "0.6942758", "0.6942758", "0.68268394", "0.680737", "0.6748733", "0.67472416", "0.67253554", "0.6656149", "0.6649855", "0.6538704", "0.6527731", "0.6455368", "0.6451435", "0.6449981", "0.64427656", "0.6441782",...
0.74593645
0
Get all expenses so far in json format
Получить все расходы до сих пор в формате json
public function getAllExpensesJson() { $response = array( array('Expense', 'Total expense'), ); $prediction = new Prediction(); $expenses = $prediction->getAllSpentPredictions(Auth::user()->id); if (count($expenses)) { foreach ($expenses as $expense) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function index()\n {\n $expenses = new ExpensesResource(\n $this->expense->whereNull('archived_at')\n ->orderBy('id', 'desc')\n ->paginate(40)\n );\n return response($expenses, Response::HTTP_OK);\n }", "public function index()\n {\n ...
[ "0.72569793", "0.71896154", "0.7086705", "0.70609695", "0.7008941", "0.6843446", "0.6813193", "0.66928226", "0.6659901", "0.64558345", "0.64163774", "0.6368122", "0.62887776", "0.6194115", "0.61668825", "0.61357", "0.61351454", "0.61249053", "0.60949194", "0.6093947", "0.6093...
0.7970282
0
Return the Customer Default Data or false
Вернуть данные по клиенту по умолчанию или false
protected function getDefaultData() { if (!isset($this->customerSession)) { $this->customerSession = ObjectManager::getInstance()->get('\Magento\Customer\Model\Session'); } $customer = $this->customerSession->getCustomer(); if ($customer) { $billingAddress = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDefaultCustomer() {\n $storeId = Mage::app()->getStore(true)->getId();\n $websiteId = Mage::getModel('core/store')->load($storeId)->getWebsiteId();\n $customerSession = Mage::getModel('customer/session');\n $posorder = Mage::getModel('webpos/posorder');\n $help...
[ "0.71754575", "0.6996553", "0.6880908", "0.68134457", "0.667741", "0.6619158", "0.6542775", "0.65270954", "0.65251136", "0.65184224", "0.6485243", "0.6485243", "0.6485243", "0.64844984", "0.6470797", "0.6448953", "0.6430459", "0.6425721", "0.6415864", "0.6408782", "0.6407443"...
0.8065139
0
Return the cms Block content
Вернуть содержимое cms-блока
protected function getBlockContent() { $blockId = self::CONTRACT_CMS_BLOCK_IDENTIFIER; $html = ''; if ($blockId) { $block = $this->_blockFactory->create(); $block->setStoreId($this->getStoreId())->load($blockId); if ($block->isActive()) { i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_content() {\n if ($this->content !== null) {\n return $this->content;\n }\n\n $this->content = new stdClass;\n $this->content->text = 'This is the content of the samblock!!!';\n $this->content->footer = '<code>Footer here...</code>';\n\n re...
[ "0.7714745", "0.76361245", "0.7618201", "0.76162875", "0.75323844", "0.7411419", "0.73830336", "0.736696", "0.73338395", "0.7292021", "0.7269117", "0.72478414", "0.7161405", "0.7145114", "0.7067733", "0.70287037", "0.7018617", "0.70077795", "0.69819635", "0.6968587", "0.69496...
0.8196605
0
Set the featured value.
Установите выделенное значение.
public function setFeaturedAttribute($value) { $this->attributes['featured'] = (bool) $value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function set_featured($featured)\n {\n }", "public function setIsFeatured(?bool $value): void {\n $this->getBackingStore()->set('isFeatured', $value);\n }", "public function setFeaturedphoto(string $value){\n\t\t$this->featuredPhoto = $value;\n\t}", "public function setFeatured...
[ "0.8062961", "0.69546276", "0.6878238", "0.6828293", "0.6669839", "0.650421", "0.6501063", "0.64237773", "0.63941604", "0.6203348", "0.6187329", "0.61800873", "0.61788803", "0.6153851", "0.6094151", "0.5980386", "0.59798175", "0.5952144", "0.5950187", "0.58966607", "0.5895959...
0.77639675
1
Test if additional css returns an empty string if banner has no margin
Проверить, возвращает ли дополнительный css пустую строку, если баннер не имеет отступа
public function getAdditionalCssReturnsEmptyStringIfBannerHasNoMarginsTest() { $result = $this->bannerService->getAdditionalCss(array()); $this->assertEquals('', $result); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAdditionalCssReturnsMarginTopIfBannerHasMarginTopTest() {\n\t\t$pid = 110;\n\t\t$bannerUid = $this->testingFramework->createRecord('tx_sfbanners_domain_model_banner', array('pid' => $pid,\n\t\t\t'margin_top' => 10));\n\n\t\t/* Get banner from Repository */\n\t\t$this->demand->setStartingPoint($p...
[ "0.7040577", "0.6714231", "0.632361", "0.5963653", "0.59341824", "0.57659215", "0.57205296", "0.55516464", "0.55256045", "0.53899175", "0.5362755", "0.5322115", "0.52514756", "0.5154502", "0.5125143", "0.51212424", "0.5113824", "0.5106074", "0.5102024", "0.51016647", "0.50637...
0.7583611
0
Test if additional css returns correct top margin
Проверьте, возвращает ли дополнительный css правильный верхний отступ
public function getAdditionalCssReturnsMarginTopIfBannerHasMarginTopTest() { $pid = 110; $bannerUid = $this->testingFramework->createRecord('tx_sfbanners_domain_model_banner', array('pid' => $pid, 'margin_top' => 10)); /* Get banner from Repository */ $this->demand->setStartingPoint($pid); $banners = $thi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAdditionalCssReturnsMarginBottomIfBannerHasMarginBottomTest() {\n\t\t$pid = 110;\n\t\t$bannerUid = $this->testingFramework->createRecord('tx_sfbanners_domain_model_banner', array('pid' => $pid,\n\t\t\t'margin_bottom' => 10));\n\n\t\t/* Get banner from Repository */\n\t\t$this->demand->setStartin...
[ "0.6400173", "0.5821262", "0.57441187", "0.5698423", "0.56968844", "0.56547165", "0.56493515", "0.5635626", "0.55513114", "0.54755026", "0.5385668", "0.5261228", "0.52548105", "0.5161702", "0.5157468", "0.5134859", "0.5132278", "0.5090012", "0.5089178", "0.50826055", "0.50424...
0.7757983
0
Test if additional css returns correct right margin
Проверить, возвращает ли дополнительный css правильный правый отступ
public function getAdditionalCssReturnsMarginRightIfBannerHasMarginRightTest() { $pid = 110; $bannerUid = $this->testingFramework->createRecord('tx_sfbanners_domain_model_banner', array('pid' => $pid, 'margin_right' => 10)); /* Get banner from Repository */ $this->demand->setStartingPoint($pid); $banners ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAdditionalCssReturnsMarginLeftIfBannerHasMarginLeftTest() {\n\t\t$pid = 110;\n\t\t$bannerUid = $this->testingFramework->createRecord('tx_sfbanners_domain_model_banner', array('pid' => $pid,\n\t\t\t'margin_left' => 10));\n\n\t\t/* Get banner from Repository */\n\t\t$this->demand->setStartingPoint...
[ "0.64013755", "0.60435945", "0.6037295", "0.58203566", "0.5585093", "0.5524138", "0.5503988", "0.54602605", "0.5323995", "0.5309485", "0.52210456", "0.5182664", "0.51710874", "0.5142671", "0.5084334", "0.5065009", "0.5004482", "0.5001502", "0.4998688", "0.49935967", "0.498137...
0.76992476
0
Test if additional css returns correct bottom margin
Проверить, возвращает ли дополнительный css правильный нижний отступ
public function getAdditionalCssReturnsMarginBottomIfBannerHasMarginBottomTest() { $pid = 110; $bannerUid = $this->testingFramework->createRecord('tx_sfbanners_domain_model_banner', array('pid' => $pid, 'margin_bottom' => 10)); /* Get banner from Repository */ $this->demand->setStartingPoint($pid); $banne...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAdditionalCssReturnsMarginTopIfBannerHasMarginTopTest() {\n\t\t$pid = 110;\n\t\t$bannerUid = $this->testingFramework->createRecord('tx_sfbanners_domain_model_banner', array('pid' => $pid,\n\t\t\t'margin_top' => 10));\n\n\t\t/* Get banner from Repository */\n\t\t$this->demand->setStartingPoint($p...
[ "0.67741996", "0.59992325", "0.59075725", "0.5824752", "0.5686933", "0.5662576", "0.5536494", "0.5512905", "0.55020344", "0.54801315", "0.5479986", "0.5460442", "0.5448803", "0.5415864", "0.53696203", "0.53648484", "0.5359925", "0.53522885", "0.53494877", "0.5335406", "0.5206...
0.78959554
0
Test if additional css returns correct left margin
Проверить, возвращает ли дополнительный css правильный левый отступ
public function getAdditionalCssReturnsMarginLeftIfBannerHasMarginLeftTest() { $pid = 110; $bannerUid = $this->testingFramework->createRecord('tx_sfbanners_domain_model_banner', array('pid' => $pid, 'margin_left' => 10)); /* Get banner from Repository */ $this->demand->setStartingPoint($pid); $banners = $...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getMarginLeft() : ?int\n {\n return $this->marginLeft;\n }", "public function getAdditionalCssReturnsMarginRightIfBannerHasMarginRightTest() {\n\t\t$pid = 110;\n\t\t$bannerUid = $this->testingFramework->createRecord('tx_sfbanners_domain_model_banner', array('pid' => $pid,\n\t\t\t'mar...
[ "0.63602704", "0.5934696", "0.5659933", "0.56234384", "0.55717397", "0.5556244", "0.55457956", "0.55356914", "0.5524865", "0.5487449", "0.5450758", "0.54494566", "0.5375139", "0.53392226", "0.52724355", "0.52697545", "0.52392113", "0.5195862", "0.51912373", "0.5172419", "0.51...
0.751391
0
Test if no CSS file is returned if no banners given
Проверить, что не возвращается CSS-файл, если не задано баннеров
public function getAdditionalCssFileReturnsEmptyStringIfNoBannersFoundTest() { $pid = 112; /* Get banner from Repository */ $this->demand->setStartingPoint($pid); $banners = $this->bannerRepository->findDemanded($this->demand); $result = $this->bannerService->getAdditionalCssFile($banners); $this->assertE...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function checkIfItsACSSFile () {\n \t// Memorize the result, performance wise;\n \tstatic $returnOfCSS = NULL;\n\n \tif ($returnOfCSS == NULL) {\n \t // Do return ...\n \t\treturn $returnOfCSS = strpos ($_SERVER['SCRIPT_FILENAME'],\n\t\t\t'.css') !== FALSE;\n \t} else {\n \t // Do return...
[ "0.69248956", "0.6804386", "0.6424655", "0.6412972", "0.6253588", "0.6138763", "0.607956", "0.5945036", "0.59394246", "0.5890755", "0.5881065", "0.5879978", "0.58463925", "0.58297884", "0.581261", "0.5745561", "0.5711815", "0.56920826", "0.5686679", "0.56199515", "0.56168437"...
0.7499916
0
Test if no CSS link is returned if no banners given
Проверить, что не возвращается CSS-ссылка, если не задано баннеров
public function getAdditionalCssLinkReturnsEmptyStringIfNoBannersFoundTest() { $pid = 114; /* Get banner from Repository */ $this->demand->setStartingPoint($pid); $banners = $this->bannerRepository->findDemanded($this->demand); $result = $this->bannerService->getAdditionalCssLink($banners); $this->assertE...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAdditionalCssFileReturnsEmptyStringIfNoBannersFoundTest() {\n\t\t$pid = 112;\n\n\t\t/* Get banner from Repository */\n\t\t$this->demand->setStartingPoint($pid);\n\t\t$banners = $this->bannerRepository->findDemanded($this->demand);\n\n\t\t$result = $this->bannerService->getAdditionalCssFile($bann...
[ "0.69264877", "0.65418917", "0.5861008", "0.58228475", "0.57913065", "0.57563496", "0.5676023", "0.5641118", "0.5571072", "0.5515652", "0.5437067", "0.5407222", "0.53595966", "0.5357414", "0.53234994", "0.52912533", "0.52712107", "0.5253706", "0.51351047", "0.51168495", "0.51...
0.75500876
0
Marks the current position in this input stream.
Отмечает текущую позицию в этом потоке ввода.
public function mark() { if (!$this->markSupported()) { throw new IOException(get_class($this) . " does not support mark() and reset() methods."); } $this->mark = $this->currentPosition; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function mark()\n {\n $this->inStream->mark();\n }", "public function mark($position = 0) {\n\t\tif(!$this->isClosed()) {\n\t\t\t$this->markPosition = $position;\n\t\t} else {\n\t\t\tthrow new Exception('Read stream has been closed');\n\t\t}\n\t}", "public function mark($position = null) {\...
[ "0.76213086", "0.69838387", "0.68606496", "0.62957275", "0.6133315", "0.59583765", "0.59260756", "0.5877693", "0.58429694", "0.5729799", "0.5684358", "0.5670439", "0.5649892", "0.5528178", "0.5527802", "0.5517501", "0.5513608", "0.551151", "0.5486401", "0.54556096", "0.545290...
0.80239046
0
Returns string representation of attached stream.
Возвращает строковое представление прикрепленного потока.
public function __toString() { return (string) $this->stream; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __toString() {\n\t\treturn $this->streamData;\n\t}", "public function getStream()\n {\n return $this->_getValue('Stream');\n }", "public function __toString() {\n $this->stream->seek( 0, SEEK_SET );\n return $this->stream->read();\n }", "public function toString(...
[ "0.7594634", "0.6997036", "0.6757288", "0.6419562", "0.6412119", "0.63808095", "0.63808095", "0.63808095", "0.63808095", "0.63414276", "0.6326481", "0.632103", "0.6311781", "0.62456256", "0.62456256", "0.62456256", "0.6214806", "0.6181426", "0.61362755", "0.6133684", "0.61336...
0.7762055
0
Obtains the first and the last years in the post list.
Получает первый и последний годы в списке публикаций.
protected function getFirstAndLastYear() { list($row) = $GLOBALS['TYPO3_DB']->exec_SELECTgetRows( 'year(from_unixtime(max(date))) AS first_year, year(from_unixtime(min(date))) AS last_year', 'tx_t3blog_post', '1=1' . $this->cObj->enableFields('tx_t3blog_post')); return array(intval($row['first_year']), intval...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_year_list(){\r\n\t\t$this->db->select(\"Distinct(DATE_FORMAT(blog.post_date, '%c-%Y')) as month_year\", FALSE);\r\n\t\t$this->db->order_by(\"YEAR(post_date) DESC, MONTH(post_date) ASC\");\r\n\t\t$query = $this->db->get('blog');\r\n\t\treturn $query->result_array();\r\n\t}", "static function g...
[ "0.637327", "0.6362071", "0.62847877", "0.61625665", "0.60747266", "0.60288924", "0.60056716", "0.6002069", "0.59898585", "0.5978222", "0.5974359", "0.5973098", "0.59423244", "0.59146994", "0.5880509", "0.5875166", "0.5851665", "0.58467937", "0.58335906", "0.58253187", "0.581...
0.8058197
0
Method to set the value of field id_departamento_pai
Метод установки значения поля id_departamento_pai
public function setIdDepartamentoPai($id_departamento_pai) { $this->id_departamento_pai = $id_departamento_pai; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getIdDepartamentoPai()\n {\n return $this->id_departamento_pai;\n }", "function setId_pais($id_pais) {\n $this->id_pais = $id_pais;\n }", "function setId_diario($id_diario) {\n $this->id_diario = $id_diario;\n }", "public function setDepartamento($departamento...
[ "0.7507028", "0.6597522", "0.65771735", "0.6532247", "0.6513898", "0.65071976", "0.6422172", "0.6405132", "0.63676363", "0.63485116", "0.6342251", "0.63201696", "0.6273603", "0.6262901", "0.6221932", "0.6175041", "0.6163473", "0.6111537", "0.6083341", "0.60601175", "0.6051751...
0.796931
0
Returns the value of field id_departamento_pai
Возвращает значение поля id_departamento_pai
public function getIdDepartamentoPai() { return $this->id_departamento_pai; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getIdDepartamento()\n {\n return $this->idDepartamento;\n }", "public function consultarIdDepartamento(){\n\t\t\t//echo \"id departamento: \". $this->getIdDepartamento();\n\t\t\t$conexion=new conexion();\n\t\t\t$query = \"SELECT nombred, idd, iddepa, fechacreacion\n\t\t\t\tfrom depar...
[ "0.7709145", "0.6995976", "0.6988268", "0.6986541", "0.6962743", "0.695416", "0.6858086", "0.6858086", "0.68365866", "0.67571855", "0.6722058", "0.67074823", "0.6698348", "0.6682303", "0.6667978", "0.66596466", "0.6656501", "0.66520786", "0.6636438", "0.66267926", "0.66142505...
0.8832795
0