Exemplo n.º 1
0
 /**
  * Attempt to create a brief description of this object, most useful for <meta name="description" />
  *
  * @return array list of aliases
  */
 function generateDescription()
 {
     $ret = NULL;
     if ($this->isValid()) {
         if ($this->getField('metatags_description')) {
             $ret = $this->getField('metatags_description');
         } elseif ($this->getField('products_description')) {
             $ret = $this->getField('products_description');
         } else {
             $ret = parent::generateDescription();
         }
         if ($ret) {
             $ret = $this->getTypeName() . ': ' . $ret;
         }
     }
     return $ret;
 }