attributeString(); return array( 'messages' => !empty($this->custom_error) && !empty($this->error) ? $this->custom_error : $this->error, 'label' => $this->label == false ? false : sprintf('', $form_name, $name, $this->class, $this->label), 'field' => sprintf('', $name, $this->class, $value, $this->attribute_string, $form_name), 'html' => $this->html ); } }