version 1.2, 2010/03/08 16:19:22
|
version 1.4, 2010/03/20 17:23:42
|
Line 68 class DbPackage {
|
Line 68 class DbPackage {
|
public function getLongTitle() { |
public function getLongTitle() { |
return $this->getTitle(); |
return $this->getTitle(); |
} |
} |
|
public function getInfo() { |
|
$info = $this->tour->Info; |
|
$info = preg_replace('/(\s+)-+(\s+)/','\1—$2', $info); |
|
|
|
return $info; |
|
} |
|
public function hasEditor() { |
|
return $this->tour->Editors?TRUE:FALSE; |
|
} |
|
public function hasInfo() { |
|
return $this->tour->Info?TRUE:FALSE; |
|
} |
|
|
|
public function getEditor() { |
|
return $this->tour->Editors; |
|
} |
|
|
|
public function getEditorHtml() { |
|
$ed = $this->tour->Editors; |
|
$ed = preg_replace('/(\s+)-+(\s+)/','\1—$2', $ed); |
|
|
|
if (preg_match('/\,/', $ed)) { |
|
$ob = 'Редакторы: '; |
|
} else { |
|
$ob = 'Редактор: '; |
|
} |
|
return $ob.$ed; |
|
} |
} |
} |