/** * Load the ignore surname field if it exists. * @param array $post * @param boolean $populate_on_set_id */ public function setFromPost($post, $populate_on_set_id = false) { parent::setFromPost($post, $populate_on_set_id); if (is_array($post) && array_key_exists('ignore', $post) && is_array($post['ignore'])) { if (array_key_exists('surname', $post['ignore'])) { $this->fields['surname_ignore']->setFromPost($post['ignore']['surname']); } } }