Index: branches/5.3.x/core/kernel/application.php =================================================================== diff -u -N -r16395 -r16519 --- branches/5.3.x/core/kernel/application.php (.../application.php) (revision 16395) +++ branches/5.3.x/core/kernel/application.php (.../application.php) (revision 16519) @@ -1,6 +1,6 @@ makeClass('kModulesHelper'); - /* @var $modules_helper kModulesHelper */ $this->Conn->nextQueryCachable = true; $sql = 'SELECT * @@ -674,7 +674,7 @@ if ( !$this->siteDomain ) { $this->siteDomain = $this->recallObject('site-domain.current', null, Array ('live_table' => true)); - /* @var $site_domain kDBItem */ + /** @var kDBItem $site_domain */ } if ( $this->siteDomain->isLoaded() ) { @@ -1010,8 +1010,8 @@ } } elseif ( $this->GetVar('admin') ) { + /** @var Session $admin_session */ $admin_session = $this->recallObject('Session.admin'); - /* @var $admin_session Session */ // store Admin Console User's ID to Front-End's session for cross-session permission checks $this->StoreVar('admin_user_id', (int)$admin_session->RecallVar('user_id')); @@ -1032,8 +1032,8 @@ $t = $this->GetVar('render_template', $this->GetVar('t')); if ( !$this->TemplatesCache->TemplateExists($t) && !$this->isAdmin ) { + /** @var CategoriesEventHandler $cms_handler */ $cms_handler = $this->recallObject('st_EventHandler'); - /* @var $cms_handler CategoriesEventHandler */ $t = ltrim($cms_handler->GetDesignTemplate(), '/'); @@ -1322,8 +1322,8 @@ */ public function GetSID() { + /** @var Session $session */ $session = $this->recallObject('Session'); - /* @var $session Session */ return $session->GetID(); } @@ -1337,8 +1337,8 @@ */ public function DestroySession() { + /** @var Session $session */ $session = $this->recallObject('Session'); - /* @var $session Session */ $session->Destroy(); } @@ -1508,8 +1508,8 @@ */ public function StoreVar($var, $val, $optional = false) { + /** @var Session $session */ $session = $this->recallObject('Session'); - /* @var $session Session */ $this->Session->StoreVar($var, $val, $optional); } @@ -1541,8 +1541,8 @@ */ public function StoreVarDefault($var, $val, $optional = false) { + /** @var Session $session */ $session = $this->recallObject('Session'); - /* @var $session Session */ $this->Session->StoreVarDefault($var, $val, $optional); } @@ -1610,8 +1610,8 @@ */ public function ProcessParsedTag($prefix, $tag, $params) { + /** @var kDBTagProcessor $processor */ $processor = $this->Parser->GetProcessor($prefix); - /* @var $processor kDBTagProcessor */ return $processor->ProcessParsedTag($tag, $params, $prefix); } @@ -1931,8 +1931,8 @@ // session expiration is called from session initialization, // that's why $this->Session may be not defined here + /** @var Session $session */ $session = $this->recallObject('Session'); - /* @var $session Session */ if ( $this->InitDone ) { // if redirect happened in the middle of application initialization don't call event, @@ -2012,8 +2012,8 @@ */ protected function ValidateLogin() { + /** @var Session $session */ $session = $this->recallObject('Session'); - /* @var $session Session */ $user_id = $session->GetField('PortalUserId'); @@ -2034,8 +2034,8 @@ if ( $this->GetVar('expired') == 1 ) { // this parameter is set only from admin + /** @var UsersItem $user */ $user = $this->recallObject('u.login-admin', null, Array ('form_name' => 'login')); - /* @var $user UsersItem */ $user->SetError('UserLogin', 'session_expired', 'la_text_sess_expired'); } @@ -2217,8 +2217,8 @@ */ public function registerAggregateTag($tag_info) { + /** @var kArray $aggregator */ $aggregator = $this->recallObject('TagsAggregator', 'kArray'); - /* @var $aggregator kArray */ $tag_data = Array ( $tag_info['LocalPrefix'], @@ -2528,8 +2528,8 @@ */ protected function _email($email_template_name, $email_template_type, $to_user_id = null, $send_params = Array ()) { + /** @var kEmail $email */ $email = $this->makeClass('kEmail'); - /* @var $email kEmail */ if ( !$email->findTemplate($email_template_name, $email_template_type) ) { return false; @@ -2563,8 +2563,8 @@ */ public function CheckPermission($name, $type = 1, $cat_id = null) { + /** @var kPermissionsHelper $perm_helper */ $perm_helper = $this->recallObject('PermissionsHelper'); - /* @var $perm_helper kPermissionsHelper */ return $perm_helper->CheckPermission($name, $type, $cat_id); } @@ -2580,8 +2580,8 @@ */ public function CheckAdminPermission($name, $type = 1, $cat_id = null) { + /** @var kPermissionsHelper $perm_helper */ $perm_helper = $this->recallObject('PermissionsHelper'); - /* @var $perm_helper kPermissionsHelper */ return $perm_helper->CheckAdminPermission($name, $type, $cat_id); } @@ -2602,8 +2602,8 @@ return; } + /** @var kDBItem $visit */ $visit = $this->recallObject('visits', null, Array ('raise_warnings' => 0)); - /* @var $visit kDBItem */ if ( $visit->isLoaded() ) { $visit->SetDBField($field, $value); @@ -2851,8 +2851,8 @@ */ public function getCounter($name, $params = Array (), $query_name = null, $multiple_results = false) { + /** @var kCountHelper $count_helper */ $count_helper = $this->recallObject('CountHelper'); - /* @var $count_helper kCountHelper */ return $count_helper->getCounter($name, $params, $query_name, $multiple_results); } @@ -2870,8 +2870,8 @@ return; } + /** @var kCountHelper $count_helper */ $count_helper = $this->recallObject('CountHelper'); - /* @var $count_helper kCountHelper */ $count_helper->resetCounters($tables); }