DAOCountries2countriesgroups Class Reference
[Countries]
Model class for assigning countries to groups. More...
Inheritance diagram for
DAOCountries2countriesgroups:
Public Member Functions |
|
get_description () | |
Get description for this instance. |
|
get_title () | |
Get title for this class. |
|
Public Attributes |
|
$id_country | |
$id_group | |
Protected Member Functions |
|
create_table_object () | |
Create table definition. |
Detailed Description
Model class for assigning countries to groups.
Definition at line 8 of file countries2countriesgroups.model.php.
Member Function Documentation
DAOCountries2countriesgroups::create_table_object | ( | ) | [protected] |
Create table definition.
- Returns:
- DBTable
Reimplemented from DataObjectBase.
Definition at line 17 of file countries2countriesgroups.model.php.
00017 { 00018 return new DBTable( 00019 'countries2countriesgroups', 00020 array( 00021 new DBFieldText('id_country', 2, null, DBField::NOT_NULL), 00022 new DBFieldInt('id_group', null, DBFieldInt::UNSIGNED | DBField::NOT_NULL), 00023 ), 00024 array('id_country', 'id_group'), 00025 array( 00026 new DBRelation( 00027 'countries', 00028 new DBFieldRelation('id_country', 'id') 00029 ), 00030 new DBRelation( 00031 'countriesgroups', 00032 new DBFieldRelation('id_group', 'id') 00033 ) 00034 ) 00035 ); 00036 }
DAOCountries2countriesgroups::get_description | ( | ) |
Get description for this instance.
- Returns:
- string
Definition at line 56 of file countries2countriesgroups.model.php.
DAOCountries2countriesgroups::get_title | ( | ) |
Get title for this class.
- Returns:
- string
Definition at line 47 of file countries2countriesgroups.model.php.
00047 { 00048 return tr($this->name, 'countries'); 00049 }
Member Data Documentation
DAOCountries2countriesgroups::$id_country |
Definition at line 9 of file countries2countriesgroups.model.php.
DAOCountries2countriesgroups::$id_group |
Definition at line 10 of file countries2countriesgroups.model.php.
The documentation for this class was generated from the following file:
- contributions/countries/model/classes/countries2countriesgroups.model.php