OEModule\OphCiExamination\models\Element_OphCiExamination_Investigation::getLetter_string PHP Метод

getLetter_string() публичный Метод

get the letter strings for this element and its children method used by correspondence module if installed.
public getLetter_string ( ) : string
Результат string
    public function getLetter_string()
    {
        $res = '';
        if ($this->description) {
            $res .= "Investigation: {$this->description}\n";
        }
        foreach ($this->getChildren() as $el) {
            if (method_exists($el, 'getLetter_string')) {
                $res .= $el->getLetter_string() . "\n";
            }
        }
        return $res;
    }