.

DAOPermanentlogins Class Reference
[Usermanagement]

Table Definition for permanentlogins. More...

Inheritance diagram for DAOPermanentlogins:
DataObjectBase IDataObject IActionSource ISearchAdapter IDBTable IDBWhereHolder

List of all members.

Public Member Functions

  get_valid ($code)
  Loads item, and returns true, if a valid one was fond, false otherwise.

Public Attributes

  $code
  $expirationdate
  $id_user

Protected Member Functions

  create_table_object ()

Detailed Description

Table Definition for permanentlogins.

Author:
Gerd Riesselmann

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


Member Function Documentation

DAOPermanentlogins::create_table_object (  )  [protected]

Reimplemented from DataObjectBase.

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

00014                                                  {
00015                 return new DBTable(
00016                         'permanentlogins',
00017                         array(
00018                                 new DBFieldText('code', 50, null, DBFieldText::NOT_NULL),
00019                                 new DBFieldInt('id_user', null, DBFieldInt::NOT_NULL),
00020                                 new DBFieldDateTime('expirationdate')
00021                         ),
00022                         'code'
00023                 );
00024         }
DAOPermanentlogins::get_valid ( code  ) 

Loads item, and returns true, if a valid one was fond, false otherwise.

Definition at line 30 of file permanentlogins.model.php.

00030                                          {
00031                 if ($this->get($code)) {
00032                         return ($this->expirationdate > time());
00033                 }
00034                 return false;
00035         }

Member Data Documentation

DAOPermanentlogins::$code

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

DAOPermanentlogins::$expirationdate

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

DAOPermanentlogins::$id_user

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


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