config = array_merge($this->config, $config); $this->label = $label; $this->ismulti = (bool) $ismulti; $this->sort = (int) $sort; } /** * Return the current configuration for this type * * @return array */ public function getConfig() { return $this->config; } /** * @return boolean */ public function isMulti() { return $this->ismulti; } /** * @return int */ public function getSort() { return $this->sort; } /** * @return string */ public function getLabel() { return $this->label; } /** * Adds the admin schema editor to the given form * * @param Form $form * @return void */ abstract public function schemaEditor(Form $form); /** * Adds the frontend editor to the given form * * @param Form $form * @return void */ abstract public function frontendEditor(Form $form); /** * Output the stored data * * @param string|int $value the value stored in the database * @return string the HTML to represent this data */ abstract public function getDisplayData($value); }