--- db/prgsrc/drupal/modules/chgk_db/classes/DbPackage.class.php 2010/03/08 16:19:22 1.2 +++ db/prgsrc/drupal/modules/chgk_db/classes/DbPackage.class.php 2010/03/09 21:08:33 1.3 @@ -68,4 +68,27 @@ class DbPackage { public function getLongTitle() { return $this->getTitle(); } + public function getInfo() { + return $this->tour->Info; + } +public function hasEditor() { + return $this->tour->Editors?TRUE:FALSE; + } +public function hasInfo() { + return $this->tour->Editors?TRUE:FALSE; + } + + public function getEditor() { + return $this->tour->Editors; + } + + public function getEditorHtml() { + $ed = $this->tour->Editors; + if (preg_match('/\,/', $ed)) { + $ob = 'Редакторы: '; + } else { + $ob = 'Редактор: '; + } + return $ob.$ed; + } }