Index: branches/5.2.x/core/units/helpers/page_helper.php =================================================================== diff -u -N -r16409 -r16513 --- branches/5.2.x/core/units/helpers/page_helper.php (.../page_helper.php) (revision 16409) +++ branches/5.2.x/core/units/helpers/page_helper.php (.../page_helper.php) (revision 16513) @@ -1,6 +1,6 @@ Application->recallObject('PermissionsHelper'); - /* @var $perm_helper kPermissionsHelper */ $user_id = (int)$this->Application->RecallVar($this->Application->isAdmin ? 'user_id' : 'admin_user_id'); $history_permission = $perm_helper->CheckUserPermission($user_id, 'CATEGORY.REVISION.HISTORY.VIEW', 0, $page_id); @@ -84,8 +84,8 @@ */ protected function getCurrentRevisionInfo() { + /** @var kDBItem $revision */ $revision = $this->Application->recallObject('page-revision.current'); - /* @var $revision kDBItem */ $status_label = $this->getRevisionStatusText($revision); @@ -173,8 +173,8 @@ */ protected function getEditorsWarning(array $users) { + /** @var kMultiLanguageHelper $ml_helper */ $ml_helper = $this->Application->recallObject('kMultiLanguageHelper'); - /* @var $ml_helper kMultiLanguageHelper */ $ret = $ml_helper->getPluralPhrase( count($users), @@ -202,8 +202,8 @@ $tag_params = Array ('per_page' => -1, 'skip_parent_filter' => 1, 'requery' => 1, 'page_id' => $page_id); + /** @var kDBList $revisions */ $revisions = $this->Application->recallObject('page-revision.list', 'page-revision_List', $tag_params); - /* @var $revisions kDBList */ $revisions->Query(); $revisions->GoFirst(); @@ -381,8 +381,8 @@ if ( !$revisions ) { // no revisions for a page -> create a live revision + /** @var kDBItem $revision */ $revision = $this->Application->recallObject('page-revision.live', null, Array ('skip_autoload' => true)); - /* @var $revision kDBItem */ $revision->SetDBField('PageId', $page_id); $revision->SetDBField('RevisionNumber', 1); @@ -392,8 +392,8 @@ $revisions[ $revision->GetID() ] = NULL; } + /** @var kDBItem $content_block */ $content_block = $this->Application->recallObject('content.new', null, Array ('skip_autoload' => true)); - /* @var $content_block kDBItem */ $content_block->SetDBField('PageId', $page_id); $content_block->SetDBField('ContentNum', $num);