/** * @copydoc DataSet::build */ public function build() { $result = ''; switch ($this->getState()) { case 'ban': $result = $this->userEditor->build(); break; case 'banip': $result = $this->banIPEditor->build(); break; default: $result = parent::build(); break; } return $result; }