Application->GetVar('section'); $keys_hash[$this->IDField] = $this->ID; return parent::GetKeyClause($method, $keys_hash); } /** * Set's field error, if pseudo passed not found then create it with message text supplied. * Don't owerrite existing pseudo translation. * * @param string $field * @param string $pseudo * @param string $error_label */ function SetError($field, $pseudo, $error_label = null, $error_params = null) { if (!parent::SetError($field, $pseudo, $error_label, $error_params)) { // this field already has an error -> don't overwrite it return false; } $list_errors = $this->Application->GetVar('errors_' . $this->getPrefixSpecial(), Array ()); $list_errors[ $this->GetDBField('VariableName') ] = $this->GetErrorMsg($field); $this->Application->SetVar('errors_' . $this->getPrefixSpecial(), $list_errors); } }