![]() ![]() | ![]() |
FB2 export
<?php class DbFieldQuestion extends DbField { public function getName() { return 'Вопрос '.$this->getNumber(); } public function getFb2() { $result = "\n<empty-line/>\n<empty-line/>\n".parent::getFb2(); return $result; } protected function updateFirstParagraph() { array_unshift($this->paragraphs, '<strong>'.$this->getName(). ':</strong> '); } }