Exemple #1
0
 public function getEntityClassName($data = array())
 {
     if (isset($data['type'])) {
         // todo: psr0 need verify
         $type = Entity::getTypeById($data['type']);
         $type = ucfirst($type);
         $class_name = '\\Floxim\\Floxim\\Field\\' . $type;
     }
     return $class_name;
 }
Exemple #2
0
 protected function getWrapCssClass()
 {
     return "fx_form_wrap fx_form_wrap_" . Field\Entity::getTypeById($this->type_id);
 }