protected function shouldBeImportedFromPost(array $a_post) { if (!(bool) $this->text_input) { return (bool) $a_post["tgl"]; } return parent::shouldBeImportedFromPost($post); }
public function isValid() { return parent::isValid() && ((int) $this->radius || (bool) $this->force_valid); }