Пример #1
0
 private function _generatePredefinedAttributes($field)
 {
     $id = $this->_generateId($field);
     $attributes = array('id' => $id);
     if (in_array($field, $this->_object->getErrorFields())) {
         $attributes['class'] = 'error';
     }
     return $attributes;
 }