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 toArray() { $this->setParameter('create_new_row', $this->createNewRow, true); $this->setParameter('remove_row', $this->removeRow, true); $out = parent::toArray(); if (!$this->reference) { throw new Mesour\InvalidStateException(sprintf("Element field require reference. Is registered relational column '%s' on source data structure?", $this->getName())); } $out['reference'] = $this->reference; return $out; }