Ejemplo n.º 1
0
 /**
  * Get object title
  */
 public function getTitle()
 {
     $title = $this->_config->getLinkTitle();
     if (strpos($title, '{') !== false) {
         $fields = $this->_config->getFieldsConfig(true);
         foreach ($fields as $name => $cfg) {
             $title = str_replace('{' . $name . '}', (string) $this->get($name), $title);
         }
     } else {
         if ($this->fieldExists($title)) {
             $title = $this->get($title);
         }
     }
     return $title;
 }