Beispiel #1
0
 /**
  * Get form notices.
  *
  * @param string|null $field Field name
  *
  * @return array
  */
 public function getNotices($field = null)
 {
     if ($field) {
         $notices = $this->_notices->filter($field);
     } else {
         $notices = iterator_to_array($this->_notices);
     }
     foreach ($this->getFieldSets() as $fieldSet) {
         $notices += $fieldSet->getNotices($field);
     }
     return $notices;
 }
Beispiel #2
0
 public function filter($fieldName)
 {
     return parent::filter($fieldName);
 }