public function toArray() { $out = parent::toArray(); $out['format'] = Mesour\Components\Utils\Helpers::convertDateToJsFormat($this->format); $out['nullable'] = $this->isNullable(); return $out; }
public function toArray() { $out = parent::toArray(); $out['nullable'] = $this->isNullable(); $out['hasTextarea'] = !$this->hasTextarea ? 'false' : 'true'; return $out; }
public function toArray() { $out = parent::toArray(); $out['nullable'] = $this->isNullable(); //todo: translate description $out['description'] = $this->description ?: $this->getName(); return $out; }
public function toArray() { $out = parent::toArray(); //todo: translate value names $out['values'] = $this->values; $out['nullable'] = $this->isNullable(); return $out; }
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; }
public function getAllowedMethods() { return array_merge(parent::getAllowedMethods(), [Mesour\Editable\Structures\PermissionsChecker::CREATE, Mesour\Editable\Structures\PermissionsChecker::REMOVE, Mesour\Editable\Structures\PermissionsChecker::EDIT_FORM]); }