Esempio n. 1
0
 public function getAttributes($names = null)
 {
     $ret = parent::getAttributes($names);
     foreach ($this->i18n() as $field) {
         $ret[$field] = $this->{$field};
     }
     return $ret;
 }
 /**
  * Returns all column attribute values.
  * Note, related objects are not returned.
  * @param string $outputType Can be 
  * 
  * raw: return values as they are stored in the db
  * formatted: return the values formatted for an input form
  * html: Return the values formatted for HTML display
  * 
  * @return array attribute values indexed by attribute names.
  */
 public function getAttributes($outputType = 'formatted')
 {
     if (!$this->isNew) {
         $this->_loadMultilingualAttributes();
     }
     return parent::getAttributes($outputType);
 }
Esempio n. 3
0
 public function getAttributes()
 {
     return array_merge(parent::getAttributes(), array('alpha' => 1, 'color' => "red"));
 }