DAOConfirmations Class Reference
[Confirmations]
Table Definition for confirmations. More...
Inheritance diagram for
DAOConfirmations:
Public Member Functions |
|
create_handler () | |
Creates a handler for this confirmation.
|
|
Public Attributes |
|
$action | |
$code | |
$data | |
$expirationdate | |
$id | |
$id_item | |
Protected Member Functions |
|
create_table_object () |
Detailed Description
Table Definition for confirmations.
Definition at line 8 of file confirmations.model.php.
Member Function Documentation
DAOConfirmations::create_handler | ( | ) |
Creates a handler for this confirmation.
- Returns:
- IConfirmationHandler
Definition at line 37 of file confirmations.model.php.
00037 { 00038 Load::classes_in_directory('behaviour/confirmationhandlers', $this->action, 'confirmationhandler', false); 00039 $cls = Load::filename_to_classname($this->action, 'ConfirmationHandler'); 00040 if (class_exists($cls)) { 00041 return new $cls($this); 00042 } 00043 // Default implementation handles missing confirmation... 00044 return new ConfirmationHandlerBase(false); 00045 }
DAOConfirmations::create_table_object | ( | ) | [protected] |
Reimplemented from DataObjectBase.
Definition at line 17 of file confirmations.model.php.
00017 { 00018 return new DBTable( 00019 'confirmations', 00020 array( 00021 new DBFieldInt('id', null, DBFieldInt::AUTOINCREMENT | DBFieldInt::UNSIGNED | DBFieldInt::NOT_NULL), 00022 new DBFieldInt('id_item', null, DBFieldInt::UNSIGNED | DBFieldInt::NOT_NULL), 00023 new DBFieldText('code', 50, null, DBFieldText::NOT_NULL), 00024 new DBFieldSerialized('data', DBFieldText::BLOB_LENGTH_SMALL), 00025 new DBFieldText('action', 20, null, DBFieldText::NOT_NULL), 00026 new DBFieldDateTime('expirationdate', null, DBFieldDateTime::NOT_NULL), 00027 ), 00028 'id' 00029 ); 00030 }
Member Data Documentation
DAOConfirmations::$action |
Definition at line 14 of file confirmations.model.php.
DAOConfirmations::$code |
Definition at line 12 of file confirmations.model.php.
DAOConfirmations::$data |
Definition at line 13 of file confirmations.model.php.
DAOConfirmations::$expirationdate |
Definition at line 15 of file confirmations.model.php.
DAOConfirmations::$id |
Definition at line 10 of file confirmations.model.php.
DAOConfirmations::$id_item |
Definition at line 11 of file confirmations.model.php.
The documentation for this class was generated from the following file:
- contributions/confirmations/model/classes/confirmations.model.php