$r
$tpl
$_SESSION
$_POST
$_GET
$_FILES
Array ( [path] => Array ( [root] => /home/uj015500/www_parapetynamieru [src] => /home/uj015500/www_parapetynamieru/src [tpl] => /home/uj015500/www_parapetynamieru/tpl [gfx] => /home/uj015500/www_parapetynamieru/gfx [data] => /home/uj015500/www_parapetynamieru/data [app] => /home/uj015500/www_parapetynamieru/app [lib] => /home/uj015500/www_parapetynamieru/lib [rain] => /home/uj015500/www_parapetynamieru/lib/rain [smarty] => /home/uj015500/www_parapetynamieru/lib/smarty [modules] => /home/uj015500/www_parapetynamieru/modules [module] => Array ( [root] => /home/uj015500/www_parapetynamieru/modules/News [src] => /home/uj015500/www_parapetynamieru/modules/News/src [tpl] => /home/uj015500/www_parapetynamieru/modules/News/tpl [gfx] => /home/uj015500/www_parapetynamieru/modules/News/gfx [data] => /home/uj015500/www_parapetynamieru/data/News ) ) [webpath] => Array ( [root] => [server] => http://parapetynamieru.sk [index] => index.php [REQUEST_URI] => /sk/news?sessid9d1e02f6725570ba7df443918f28a705=lo0o6uh1g7642vlfoe1f1lp656 [src] => /src [tpl] => /tpl [gfx] => /gfx [data] => /data [app] => /app [lib] => /lib [rain] => /lib/rain [smarty] => /lib/smarty [modules] => /modules [page] => news [module] => Array ( [root] => /modules/News [src] => /modules/News/src [tpl] => /modules/News/tpl [gfx] => /modules/News/gfx [data] => /data/News ) ) [arg] => Array ( [0] => news ) [ref] => Array ( [0] => sk [1] => news ) )
RSmarty Object ( [conf] => Array ( [global] => Array ( [email_name] => Vasa [email_address] => obchod@vasagroup.sk [rl_project] => vasa [cms_table_width] => 545 [pager_otherPagesCount] => 3 [default_timezone] => Europe/Bratislava [recaptcha_public_key] => 6Ld0NbsSAAAAAAGbLWejRkKk7mO5t2dvgJ2RF7LR [recaptcha_private_key] => 6Ld0NbsSAAAAAGKtrjtaQMW2SYkTQ8EkIZsXfDKc [watch_unload] => 1 ) [Actions] => Array ( ) [Blocks] => Array ( [protected_blocks] => 5 [green_block_id] => 5 [positions] => left [styles] => ) [Comments] => Array ( [show_menu_item] => 0 ) [Content] => Array ( [protected_content] => [default_article] => 11 [menu] => main,bottom [menu_main_depth] => 0 [menu_bottom_depth] => 0 [revisions] => 8 [image_size] => 520 [thumb_size] => 120 ) [MediaLibrary] => Array ( [jpg_quality] => 100 [upload_chunk_size] => 100000 [maximum_total_upload] => -1 [maximum_upload] => -1 [maximum_concurrent_upload] => 1 [maximum_number_to_upload] => -1 [filter_all] => All Files|*.* [filter_jpeg] => JPEG|*.jpg;*.jpeg;*.JPG;*.JPEG [filter_images] => JPEG, GIF|*.jpg;*.jpeg;*.JPG;*.JPEG;*.gif;*.GIF; [filter_pdf] => PDF|*.pdf;*.PDF [filter_zip] => ZIP|*.zip;*.ZIP [filter_doc] => Microsoft Word (DOC, DOCX)|*.doc;*.docx;*.DOC;*.DOCX ) [News] => Array ( [newsPerPage] => 10 [newsInMenu] => 5 ) [User] => Array ( [forgotten_password] => 1 [timeout] => 3600 [new_password_expiration] => 24 ) [Stats] => Array ( [ua_code] => [profile] => [login] => [password] => ) ) [head] => Array ( ) [breadcrumbs] => Array ( ) [displayAlreadyCalled] => [templateAlreadyPrepared:RSmarty:private] => [auto_literal] => 1 [error_unassigned] => [template_dir] => Array ( [0] => ./templates/ [1] => /home/uj015500/www_parapetynamieru/ ) [default_template_handler_func] => [compile_dir] => /home/uj015500/www_parapetynamieru/data/RSmarty/compiled/ [plugins_dir] => Array ( [0] => /home/uj015500/www_parapetynamieru/lib/smarty/plugins/ [1] => /home/uj015500/www_parapetynamieru/modules/Actions/tpl/plugins [2] => /home/uj015500/www_parapetynamieru/modules/Blocks/tpl/plugins [3] => /home/uj015500/www_parapetynamieru/modules/Comments/tpl/plugins [4] => /home/uj015500/www_parapetynamieru/modules/Content/tpl/plugins [5] => /home/uj015500/www_parapetynamieru/modules/MediaLibrary/tpl/plugins [6] => /home/uj015500/www_parapetynamieru/modules/News/tpl/plugins [7] => /home/uj015500/www_parapetynamieru/modules/Tools/tpl/plugins [8] => /home/uj015500/www_parapetynamieru/modules/User/tpl/plugins [9] => /home/uj015500/www_parapetynamieru/modules/Stats/tpl/plugins [10] => /home/uj015500/www_parapetynamieru/modules/Babel/tpl/plugins [11] => /home/uj015500/www_parapetynamieru/modules/Setup/tpl/plugins [12] => /home/uj015500/www_parapetynamieru/lib/smarty/rain_plugins ) [cache_dir] => /home/uj015500/www_parapetynamieru/data/RSmarty/cached/ [config_dir] => /home/uj015500/www_parapetynamieru/ [force_compile] => [compile_check] => 1 [compile_locking] => 1 [use_sub_dirs] => [compile_error] => [caching] => 0 [merge_compiled_includes] => [cache_lifetime] => 3600 [force_cache] => [cache_id] => [compile_id] => [left_delimiter] => { [right_delimiter] => } [security_class] => Smarty_Security [php_handling] => 0 [allow_php_tag] => [allow_php_templates] => [security] => [security_policy] => [security_handler] => [direct_access_security] => 1 [debugging] => [debugging_ctrl] => NONE [smarty_debug_id] => SMARTY_DEBUG [debug_tpl] => /home/uj015500/www_parapetynamieru/lib/smarty/debug.tpl [error_reporting] => [config_overwrite] => 1 [config_booleanize] => [config_read_hidden] => 1 [config_vars] => Array ( ) [global_tpl_vars] => Array ( [SCRIPT_NAME] => Smarty_Variable Object ( [value] => /index.php [nocache] => [scope] => 0 ) ) [parent] => [template_functions] => Array ( ) [default_resource_type] => file [caching_type] => file [cache_resource_types] => Array ( [0] => file ) [cache_resource_objects] => Array ( ) [properties] => Array ( [file_dependency] => Array ( [3279d1ca2145de641e73168eadacb6a0140c9641] => Array ( [0] => /home/uj015500/www_parapetynamieru/conf/setup.php [1] => 1617875038 ) [9f0d65e0b31119f54b8d005a2f6d4b48e2067018] => Array ( [0] => /home/uj015500/www_parapetynamieru/modules/Actions/conf/setup.php [1] => 1617875090 ) [211508719829ef20b83f636cc68e062664ddaed6] => Array ( [0] => /home/uj015500/www_parapetynamieru/modules/Blocks/conf/setup.php [1] => 1617875090 ) [aced83b0a22a0c7377480965b914b5710949d1f0] => Array ( [0] => /home/uj015500/www_parapetynamieru/modules/Comments/conf/setup.php [1] => 1617875091 ) [7eec3faa41d1a468ad9379ffc66b8b76b5e33246] => Array ( [0] => /home/uj015500/www_parapetynamieru/modules/Content/conf/setup.php [1] => 1617875091 ) [84ef9168203b1f3d26ba32ab447b4f0bbe0b9110] => Array ( [0] => /home/uj015500/www_parapetynamieru/modules/MediaLibrary/conf/setup.php [1] => 1617875091 ) [c6c26e16d228d1515a357aa4d1054975ca2313a9] => Array ( [0] => /home/uj015500/www_parapetynamieru/modules/News/conf/setup.php [1] => 1617875092 ) [88a591a8feac5ff07c1c5b339c70c7d5210253e9] => Array ( [0] => /home/uj015500/www_parapetynamieru/modules/User/conf/setup.php [1] => 1617875093 ) [7433db385000cc6042feb4dad8698b005be588da] => Array ( [0] => /home/uj015500/www_parapetynamieru/modules/Stats/conf/setup.php [1] => 1617875092 ) ) ) [default_config_type] => file [exception_handler] => [cache_modified_check] => [registered_plugins] => Array ( ) [plugin_search_order] => Array ( [0] => function [1] => block [2] => compiler [3] => class ) [registered_objects] => Array ( ) [registered_filters] => Array ( ) [autoload_filters] => Array ( ) [variable_filter] => 1 [default_modifiers] => Array ( ) [_smarty_vars] => Array ( ) [start_time] => 1740147696.8268 [_file_perms] => 420 [_dir_perms] => 505 [smarty] => RSmarty Object *RECURSION* [block_data] => Array ( ) [block_data_stack] => Array ( ) [_tag_stack] => Array ( ) [_plugins] => Array ( ) [deprecation_notices] => 1 [template_class] => Smarty_Internal_Template )
Array ( [rain] => Array ( [arg] => Array ( [0] => news ) ) [user] => Array ( [user_id] => 0 [user_group_id] => 1 [type] => anonym ) )
Array ( )
Array ( [rain] => news [mr] => 1 [sessid9d1e02f6725570ba7df443918f28a705] => lo0o6uh1g7642vlfoe1f1lp656 )
Array ( )
/lib/rain/RDataObject.php:325, RDataObject::generateStructure(...)Array ( [0] => articles )[Rain::RDB] Cannot get table structure for table 'articles'.
318 private function generateStructure() {
319 global $db, $r, $tpl;
320
321 $slnt = RI18N::$silent;
322 RI18N::$silent = true;
323
324 $weight = 0;
325 $tableStructure = $db->getTableStructure($this->tableName);
326
327 $setAlias = false;
328
329 foreach ($tableStructure as $dbColumn) {
330 if (!$this->idColumn) {
331 $this->idColumn = $dbColumn["column_name"];
332 }
/lib/rain/RDataObject.php:197, RDataObject::__construct(...)Array ( [0] => News_Article [1] => articles_i18n.lang='sk' [2] => time_posted DESC [3] => Array ( [perPage] => 10 ) [4] => )
190
191 $this->className = get_class($this);
192 $this->moduleName = substr($this->className, 0, strpos($this->className, "_"));
193 $this->tableName = $this->getTableName();
194
195 $this->beforeInit();
196
197 $this->generateStructure();
198
199 $this->afterInit();
200
201 // ak pouzivame aliasy skontrolujeme ci je zadany platny stlpec
202 if($this->usesAlias && !$this->hasAliasColumn()){
203 throw new RException("You must specify alias source column or remove 'alias' column from your table.");
204 }
/lib/rain/RDataObjectArray.php:148, RDataObjectArray::loadFromTable(...)Array ( [0] => News_Article [1] => articles_i18n.lang='sk' [2] => time_posted DESC [3] => Array ( [perPage] => 10 ) )
141 */
142 public function loadFromTable($className, $conditions = null, $orderBy = null, $pager = null, $limit = null) {
143 global $db, $tpl;
144
145 $this->container = array();
146 $this->id = uniqid();
147
148 $temporaryObject = new $className();
149
150 if ($temporaryObject->hasI18N()) {
151
152 // TODO vyriesit pager pri viacjazycnych objektoch - rata kazdy jazyk zvlast, a to by nemalo...
153
154 $data = $db->getArray("
155 SELECT " . $temporaryObject->getCommaSeparatedColumnsList("both") . "
/lib/rain/RDataObjectArray.php:211, RDataObjectArray::createFromTable()
204 * @param string $orderBy ORDER BY, napr. "date DESC"
205 * @param string $pager pager, pouzity pre {@link RDB::getArray()}
206 * @param string $limit SQL LIMIT, napr. "10 OFFSET 40"
207 * @return RDataObjectArray pole datovych objektov
208 */
209 public static function createFromTable($className, $conditions = null, $orderBy = null, $pager = null, $limit = null) {
210 $array = new RDataObjectArray();
211 $array->loadFromTable($className, $conditions, $orderBy, $pager, $limit);
212
213 return $array;
214 }
215
216
217 public function loadBySearch($className, $string, $conditions = null, $orderBy = null, $pager = null, $limit = null, $options = array()) {
218 global $db;
/modules/News/src/News.php:36, News::index()
29
30 /* *** Verejna cast modulu ********************************************* */
31
32
33 protected function index() {
34 global $db, $tpl;
35
36 $newsList = RDataObjectArray::createFromTable('News_Article',"articles_i18n.lang='".RI18N::$lang."'",'time_posted DESC',array('perPage'=>RConf::get('News','newsPerPage')));
37 foreach($newsList as $news) {
38 $news->setData('link',R::a("news/view/id:{$news['article_id']}"));
39 }
40
41 $topNews = RDataObjectArray::createFromTable('News_Article',"articles_i18n.lang='".RI18N::$lang."'",'time_posted DESC',null,RConf::get('News','newsInMenu')." OFFSET 0");
42 foreach($topNews as $news) {
43 $news->setData('link',R::a("news/view/id:{$news['article_id']}"));
/lib/rain/RModule.php:335, RModule::bindMethod()
328 // Ak pouzivame Simple Access Policy, potrebujeme overit, ci ma uzivatel pravo "admin"
329 // pre metody zacinajuce sa na admin*
330 if (($this->simpleAccessPolicy) && (preg_match('/^admin/', R::getMethodName()))) {
331 if (!User::access(R::getModuleName() . ":admin", "message")) return; //TODO: zmenit pre noveho usera na ACCESS_PROMPT s prislusnymi parametrami
332 }
333
334 // Konecne zavolame hladanu metodu a uchovame jej navratovu hodnotu
335 $returnValue = $this->$methodName();
336
337 // Ak nam metoda nevratila explicitne false, skusime najst prislusnu sablonu a zobrazit ju
338 if (($returnValue !== false) && (!$tpl->displayAlreadyCalled)) {
339 $template = R::getPath("modules") . "/" . R::getModuleName() . "/tpl/" . R::getMethodName() . ".tpl";
340 if (file_exists($template)) {
341 $tpl->display($template);
342 }
/modules/News/src/News.php:19, News::show()
12
13
14 public function show() {
15 global $db, $tpl;
16
17 $this->setDefaultMethod("index");
18 $this->useSimpleAccessPolicy(true);
19 $this->bindMethod();
20 }
21
22
23
24 public static function registerAliases() {
25 R::registerHiddenArg(__CLASS__, "view", "id", 0);
26 }
/lib/rain/R.php:1508, R::run()
1501
1502 date_default_timezone_set(RConf::get("global",'default_timezone'));
1503
1504 $activeModuleName = R::getModuleName();
1505
1506 if ($activeModuleName) {
1507 self::$moduleInstances[$activeModuleName] = new $activeModuleName();
1508 self::$moduleInstances[$activeModuleName]->show();
1509 }
1510
1511 RModule::raiseEvent('exit');
1512 }
1513
1514
1515 /**
/index.php:134
127 * objekt (triedy R::getModuleName()), ktory je dostupny cez R::getModuleInstance().
128 * Na zaver sa zavola jeho metoda show().
129 */
130
131 R::prepareArgs();
132 R::bindModule();
133
134 R::run();
135
136
137 /*
138 * Statistiky
139 *
140 * Cas generovania stranky, pocet dopytov, spotrebovana pamat
141 */