.

DAOCountriestranslations Class Reference
[Countries]

Model class for translation of country names. More...

Inheritance diagram for DAOCountriestranslations:
DataObjectBase IDataObject IActionSource ISearchAdapter IDBTable IDBWhereHolder

List of all members.

Public Attributes

  $id
  $lang
  $name

Protected Member Functions

  create_table_object ()
  Create table definition.

Detailed Description

Model class for translation of country names.

Author:
Gerd Riesselmann

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


Member Function Documentation

DAOCountriestranslations::create_table_object (  )  [protected]

Create table definition.

Returns:
DBTable

Reimplemented from DataObjectBase.

Definition at line 18 of file countriestranslations.model.php.

00018                                              {
00019         return new DBTable(
00020             'countriestranslations',
00021             array(
00022                 new DBFieldText('id_country', 2, null, DBField::NOT_NULL),
00023                 new DBFieldText('lang', 5, null, DBField::NOT_NULL),
00024                 new DBFieldText('name', 50, null, DBField::NOT_NULL),
00025             ),
00026             array('id_country', 'lang'),
00027             new DBRelation(
00028                 'countries',
00029                 new DBFieldRelation('id_country', 'id')
00030             )
00031         );
00032     }

Member Data Documentation

DAOCountriestranslations::$id

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

DAOCountriestranslations::$lang

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

DAOCountriestranslations::$name

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


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