/** * Load prevalue editor * * @param AbstractDatatype $datatype Datatype * * @return Fieldset */ public static function loadPrevalueEditor(AbstractDatatype $datatype) { $fieldset = new Fieldset('prevalue-editor'); AbstractForm::addContent($fieldset, $datatype->getPrevalueEditor()->load()); return $fieldset; }
/** * Abstract function for save Editor * * @param Datatype\AbstractDatatype $datatypeAbstract Datatype */ public function __construct(Datatype\AbstractDatatype $datatypeAbstract) { $this->datatype = $datatypeAbstract; $this->property = $datatypeAbstract->getProperty(); parent::__construct(); }
/** * Test * * @return void */ public function testGetDocument() { $this->assertFalse($this->object->getDocument()); }