.

DAORoomsTest Class Reference
[Simpletest]

A test class, representing a room in university. More...

Inheritance diagram for DAORoomsTest:
DataObjectBase IDataObject IActionSource ISearchAdapter IDBTable IDBWhereHolder

List of all members.

Public Attributes

  $id
  $number

Protected Member Functions

  create_table_object ()
  Create the table object describing this dataobejcts table.

Detailed Description

A test class, representing a room in university.

Author:
Gerd Riesselmann

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


Member Function Documentation

DAORoomsTest::create_table_object (  )  [protected]

Create the table object describing this dataobejcts table.

Reimplemented from DataObjectBase.

Definition at line 12 of file roomstest.model.php.

00012                                                  {
00013             return new DBTable(
00014                 'roomstest',
00015                         array(
00016                                 new DBFieldInt('id', null, DBFieldInt::AUTOINCREMENT | DBFieldInt::UNSIGNED | DBFieldInt::NOT_NULL),
00017                                 new DBFieldText('number', 10, null, DBField::NOT_NULL), 
00018                         ),
00019                         'id',
00020                         null,
00021                         null,
00022                         new DBDriverMySqlMock()                 
00023             );
00024         }       

Member Data Documentation

DAORoomsTest::$id

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

DAORoomsTest::$number

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


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