Пример #1
0
 /**
  * Create hover tip text for validations
  *
  * @return  array  Messages
  */
 public function hoverTexts()
 {
     $texts = array();
     if ($this->elementModel->isEditable()) {
         $tmpl = $this->elementModel->getFormModel()->getTmpl();
         $validations = array_unique($this->findAll());
         foreach ($validations as $c => $validation) {
             $texts[] = $validation->getHoverText($c, $tmpl);
         }
         $internal = $this->elementModel->internalValidataionText();
         if ($internal !== '') {
             $i = $this->elementModel->internalValidationIcon();
             $icon = FabrikHelperHTML::image($i, 'form', $tmpl, $this->iconOpts);
             $texts[] = $icon . ' ' . $internal;
         }
     }
     return $texts;
 }