/** * Checks if the user has filled in something: * return true if he has, otherwise return false. * * @param - * * @return boolean. */ public function filledInForm() { if (is_null($this->getAttributes())) { return false; } $postvars = Tools::atkGetPostVar(); foreach ($this->m_attribList as $name => $value) { if (!$value->hasFlag(Attribute::AF_HIDE_LIST)) { if (!is_array($value->fetchValue($postvars)) && $value->fetchValue($postvars) !== '') { return true; } } } return false; }