.

DAOStudentsTest Class Reference
[Simpletest]

A test class, representing students at university. More...

Inheritance diagram for DAOStudentsTest:
DataObjectBase IDataObject IActionSource ISearchAdapter IDBTable IDBWhereHolder

List of all members.

Public Attributes

  $id
  $name

Protected Member Functions

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

Detailed Description

A test class, representing students at university.

Author:
Gerd Riesselmann

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


Member Function Documentation

DAOStudentsTest::create_table_object (  )  [protected]

Create the table object describing this dataobejcts table.

Reimplemented from DataObjectBase.

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

00012                                                  {
00013             return new DBTable(
00014                 'studentstest',
00015                         array(
00016                                 new DBFieldInt('id', null, DBFieldInt::AUTOINCREMENT | DBFieldInt::UNSIGNED | DBFieldInt::NOT_NULL),
00017                                 new DBFieldText('name', 40, null, DBField::NOT_NULL), 
00018                                 new DBFieldDateTime('modificationdate', null, DBFieldDateTime::TIMESTAMP | DBField::NOT_NULL)
00019                         ),
00020                         'id',
00021                         null,
00022                         null,
00023                         new DBDriverMySqlMock()         
00024             );
00025         }       

Member Data Documentation

DAOStudentsTest::$id

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

DAOStudentsTest::$name

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


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