public function read() { if ($this->type === Input::TYPE_BOOL) { $valueRequired = $this->option->getValueOption('none'); } else { $valueRequired = $this->option->getValueOption('required'); } $data = $this->option->get($this->id, $this->shortName, $valueRequired); if ($data !== null) { if ($this->type === Input::TYPE_BOOL) { if ($data === true) { $data = 'true'; } else { $data = 'false'; } } else { $data = (string) $data; } } return $data; }