Beispiel #1
0
 /**
  * Attempt to create a collection of relevant words about this object, most useful for <meta name="keywords" />
  *
  * @return array list of aliases
  */
 function generateKeywords()
 {
     $ret = array();
     if ($this->isValid()) {
         if ($this->getField('metatags_keywords')) {
             $ret = $this->getField('metatags_keywords');
         }
         foreach (array('products_manufacturers_model', 'categories_name', 'manufacturers_name', 'real_name', 'products_model', 'type_name') as $key) {
             if ($this->getField($key)) {
                 $ret[] = $this->getField($key);
             }
         }
         $ret = array_merge($ret, parent::generateKeywords());
     }
     return $ret;
 }