Example #1
0
 /**
  * (non-PHPdoc)
  * @see CModel::attributeLabels()
  */
 public function attributeLabels()
 {
     $dynamicAttributeLabels = array();
     foreach ($this->dynamicAttributeNames as $attributeName) {
         $delimiter = FormModelUtil::DELIMITER;
         list($realAttributeName, $type) = explode($delimiter, $attributeName);
         $dynamicAttributeLabels[$attributeName] = $this->model->getAttributeLabel($realAttributeName);
     }
     $attributeLabels = array_merge(parent::attributeLabels(), $dynamicAttributeLabels);
     return array_merge($attributeLabels, $this->getMixedSearchAttributeLabels());
 }