.

DAOFormvalidations Class Reference
[Model]

Table Definition for form validations. More...

Inheritance diagram for DAOFormvalidations:
DataObjectBase IDataObject IActionSource ISearchAdapter IDBTable IDBWhereHolder

List of all members.

Public Member Functions

  is_valid_for_at_least ($minutes)

Public Attributes

  $expirationdate
  $name
  $sessionid
  $token

Protected Member Functions

  create_table_object ()
  Create the table object describing this dataobejcts table.

Detailed Description

Table Definition for form validations.

Author:
Gerd Riesselmann

Definition at line 8 of file formvalidations.model.php.


Member Function Documentation

DAOFormvalidations::create_table_object (  )  [protected]

Create the table object describing this dataobejcts table.

Reimplemented from DataObjectBase.

Definition at line 14 of file formvalidations.model.php.

00014                                                  {
00015             return new DBTable(
00016                 'formvalidations',
00017                         array(
00018                                 new DBFieldText('token', 35, null, DBField::NOT_NULL),
00019                                 new DBFieldText('name', 35, null, DBField::NOT_NULL),
00020                                 new DBFieldText('sessionid', 60, '', DBField::NONE),
00021                                 new DBFieldDateTime('expirationdate', null, DBField::NOT_NULL),                         
00022                         ),
00023                         array('token', 'name')
00024             );
00025         }
DAOFormvalidations::is_valid_for_at_least ( minutes  ) 

Definition at line 27 of file formvalidations.model.php.

00027                                                         {
00028                 return $this->expirationdate > (time() + $minutes * 60);
00029         }

Member Data Documentation

DAOFormvalidations::$expirationdate

Definition at line 12 of file formvalidations.model.php.

DAOFormvalidations::$name

Definition at line 10 of file formvalidations.model.php.

DAOFormvalidations::$sessionid

Definition at line 11 of file formvalidations.model.php.

DAOFormvalidations::$token

Definition at line 9 of file formvalidations.model.php.


The documentation for this class was generated from the following file: