public function gettitle() { if ($this->idpost == 0) { return parent::gettitle(); } else { return tlocal::admin('downloaditems')->editor; } }