.

DAOContinents Class Reference
[Countries]

Model class for continetns. More...

Inheritance diagram for DAOContinents:
DataObjectBase ISelfDescribing IHierarchic IDataObject IActionSource ISearchAdapter IDBTable IDBWhereHolder

List of all members.

Public Member Functions

  get_childs ()
  Get childs for this item.
  get_countries ()
  Return countries - lcoalized.
  get_description ()
  Get description for this instance.
  get_parent ()
  Get parent for this item.
  get_title ()
  Get title for this class.

Public Attributes

  $id
  $name

Protected Member Functions

  create_table_object ()
  Create table definition.

Detailed Description

Model class for continetns.

Author:
Gerd Riesselmann

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


Member Function Documentation

DAOContinents::create_table_object (  )  [protected]

Create table definition.

Returns:
DBTable

Reimplemented from DataObjectBase.

Definition at line 17 of file continents.model.php.

00017                                              {
00018         return new DBTable(
00019             'continents',
00020             array(
00021                 new DBFieldText('id', 2, null, DBField::NOT_NULL),
00022                 new DBFieldText('name', 50, null, DBField::NOT_NULL),
00023             ),
00024             'id'
00025         );
00026     }
DAOContinents::get_childs (  ) 

Get childs for this item.

Returns:
array Array of IHierarchic items

Implements IHierarchic.

Definition at line 77 of file continents.model.php.

00077                                      {
00078                 return $this->get_countries();
00079         }
DAOContinents::get_countries (  ) 

Return countries - lcoalized.

Definition at line 31 of file continents.model.php.

00031                                     {
00032         $adapter = Countries::create_continent_adapter($this->id);
00033         Countries::localize_adapter($adapter);
00034         return $adapter->execute();
00035     }
DAOContinents::get_description (  ) 

Get description for this instance.

Returns:
string

Implements ISelfDescribing.

Definition at line 55 of file continents.model.php.

00055                                           {
00056                 return '';
00057         }
DAOContinents::get_parent (  ) 

Get parent for this item.

Returns:
IHierarchic Parent item or null

Implements IHierarchic.

Definition at line 68 of file continents.model.php.

00068                                      {
00069                 return false;
00070         }
DAOContinents::get_title (  ) 

Get title for this class.

Returns:
string

Implements ISelfDescribing.

Definition at line 46 of file continents.model.php.

00046                                     {
00047                 return tr($this->name, 'countries');
00048         }

Member Data Documentation

DAOContinents::$id

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

DAOContinents::$name

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


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