DAOSystemupdates Class Reference
[SystemUpdate]
Table for systemupdate version control. More...
Inheritance diagram for
DAOSystemupdates:
Public Member Functions |
|
create_table_object () | |
Return table definition. |
|
get_table_driver () | |
Returns DB driver fro this
table. |
|
get_table_name_escaped () | |
Returns name of table, but escaped. |
|
Public Attributes |
|
$component | |
$connection = DB::DEFAULT_CONNECTION | |
$version |
Detailed Description
Table for systemupdate version control.
Definition at line 8 of file systemupdates.model.php.
Member Function Documentation
DAOSystemupdates::create_table_object | ( | ) |
Return table definition.
- Returns:
- IDBTable
Reimplemented from DataObjectBase.
Definition at line 19 of file systemupdates.model.php.
00019 { 00020 return new DBTable( 00021 'systemupdates', 00022 array( 00023 new DBFieldText('component', 50, null, DBFieldText::NOT_NULL), 00024 new DBFieldInt('version', null, DBFieldInt::UNSIGNED | DBFieldInt::NOT_NULL) 00025 ), 00026 'component' 00027 ); 00028 }
DAOSystemupdates::get_table_driver | ( | ) |
Returns DB driver fro this table.
- Returns:
- IDBDriver
Reimplemented from DataObjectBase.
Definition at line 35 of file systemupdates.model.php.
00035 { 00036 return DB::get_connection($this->connection); 00037 }
DAOSystemupdates::get_table_name_escaped | ( | ) |
Returns name of table, but escaped.
- Returns:
- string
Reimplemented from DataObjectBase.
Definition at line 44 of file systemupdates.model.php.
00044 { 00045 return $this->get_table_driver()->escape_database_entity($this->get_table_name(), IDBDriver::TABLE); 00046 }
Member Data Documentation
DAOSystemupdates::$component |
Definition at line 9 of file systemupdates.model.php.
DAOSystemupdates::$connection = DB::DEFAULT_CONNECTION |
Definition at line 12 of file systemupdates.model.php.
DAOSystemupdates::$version |
Definition at line 10 of file systemupdates.model.php.
The documentation for this class was generated from the following file:
- gyro/modules/systemupdate/model/classes/systemupdates.model.php