Ejemplo n.º 1
0
 public function toArray()
 {
     $out = parent::toArray();
     $out['format'] = Mesour\Components\Utils\Helpers::convertDateToJsFormat($this->format);
     $out['nullable'] = $this->isNullable();
     return $out;
 }
Ejemplo n.º 2
0
 public function toArray()
 {
     $out = parent::toArray();
     $out['nullable'] = $this->isNullable();
     $out['hasTextarea'] = !$this->hasTextarea ? 'false' : 'true';
     return $out;
 }
Ejemplo n.º 3
0
 public function toArray()
 {
     $out = parent::toArray();
     $out['nullable'] = $this->isNullable();
     //todo: translate description
     $out['description'] = $this->description ?: $this->getName();
     return $out;
 }
Ejemplo n.º 4
0
 public function toArray()
 {
     $out = parent::toArray();
     //todo: translate value names
     $out['values'] = $this->values;
     $out['nullable'] = $this->isNullable();
     return $out;
 }
Ejemplo n.º 5
0
 public function toArray()
 {
     $out = parent::toArray();
     $out['unit'] = $this->unit;
     $out['separator'] = $this->separator;
     $out['decimalPoint'] = $this->decimalPoint;
     $out['decimals'] = $this->decimals;
     $out['nullable'] = $this->isNullable();
     return $out;
 }
Ejemplo n.º 6
0
 public function getAllowedMethods()
 {
     return array_merge(parent::getAllowedMethods(), [Mesour\Editable\Structures\PermissionsChecker::CREATE, Mesour\Editable\Structures\PermissionsChecker::REMOVE, Mesour\Editable\Structures\PermissionsChecker::EDIT_FORM]);
 }