->validate()

->validate() -- check object data, and call objects validation methods.

Synopsis

array $DB_DataObject->validate ()

Описание

Check all the objects variables to see if they are valid, by default this means is a column an integer or string, if you define methods like validateEmail(), in your extended class then it will be called to validate the row called 'email'. This may be useful if called prior to an update or insert.., to generate error messages.

override this to set up your validation rules.

Возвращаемое значение

array - of validation results or TRUE

Заметка

Эта функция не должна вызываться статически.

the examples below utilize the PEAR validation package

Пример


HIVE: All information for read only. Please respect copyright!
Hosted by hive йца: йХЕБЯЙЮЪ ЦНПНДЯЙЮЪ АХАКХНРЕЙЮ