.

DAOCoursesTest Class Reference
[Simpletest]

A test class, representing a course at university. More...

Inheritance diagram for DAOCoursesTest:
DataObjectBase IDataObject IActionSource ISearchAdapter IDBTable IDBWhereHolder

List of all members.

Public Attributes

  $description
  $id
  $id_room
  $id_teacher
  $title

Protected Member Functions

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

Detailed Description

A test class, representing a course at university.

Author:
Gerd Riesselmann

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


Member Function Documentation

DAOCoursesTest::create_table_object (  )  [protected]

Create the table object describing this dataobejcts table.

Reimplemented from DataObjectBase.

Definition at line 15 of file coursestest.model.php.

00015                                                  {
00016             return new DBTable(
00017                 'coursestest',
00018                         array(
00019                                 new DBFieldInt('id', null, DBFieldInt::AUTOINCREMENT | DBFieldInt::UNSIGNED | DBFieldInt::NOT_NULL),
00020                                 new DBFieldInt('id_room', null, DBFieldInt::UNSIGNED | DBFieldInt::NOT_NULL),
00021                                 new DBFieldInt('id_teacher', null, DBFieldInt::UNSIGNED | DBFieldInt::NOT_NULL),
00022                                 new DBFieldText('title', 100, null, DBField::NOT_NULL),
00023                                 new DBFieldText('description', DBFieldText::BLOB_LENGTH_SMALL, DBField::NOT_NULL) 
00024                         ),
00025                         'id',
00026                         array(
00027                                 new DBRelation(
00028                                         'roomstest',
00029                                         new DBFieldRelation('id_room', 'id')
00030                                 ),
00031                                 new DBRelation(
00032                                         'teacherstest',
00033                                         new DBFieldRelation('id_teacher', 'id')
00034                                 )
00035                         ),
00036                         null,
00037                         new DBDriverMySqlMock()                                                         
00038             );
00039         }       

Member Data Documentation

DAOCoursesTest::$description

Definition at line 13 of file coursestest.model.php.

DAOCoursesTest::$id

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

DAOCoursesTest::$id_room

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

DAOCoursesTest::$id_teacher

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

DAOCoursesTest::$title

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


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