.

DAOStudentsTest2CoursesTest Class Reference
[Simpletest]

A test class, assigning students to courses. More...

Inheritance diagram for DAOStudentsTest2CoursesTest:
DataObjectBase IDataObject IActionSource ISearchAdapter IDBTable IDBWhereHolder

List of all members.

Public Attributes

  $id_course
  $id_student

Protected Member Functions

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

Detailed Description

A test class, assigning students to courses.

Author:
Gerd Riesselmann

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


Member Function Documentation

DAOStudentsTest2CoursesTest::create_table_object (  )  [protected]

Create the table object describing this dataobejcts table.

Reimplemented from DataObjectBase.

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

00012                                                  {
00013             return new DBTable(
00014                 'studentstest2coursestest',
00015                         array(
00016                                 new DBFieldInt('id_student', null, DBFieldInt::UNSIGNED | DBFieldInt::NOT_NULL),
00017                                 new DBFieldInt('id_course', null, DBFieldInt::UNSIGNED | DBFieldInt::NOT_NULL), 
00018                         ),
00019                         array('id_student', 'id_course'),
00020                         array(
00021                                 new DBRelation(
00022                                         'studentstest',
00023                                         new DBFieldRelation('id_student', 'id')
00024                                 ),
00025                                 new DBRelation(
00026                                         'coursestest',
00027                                         new DBFieldRelation('id_course', 'id')
00028                                 )
00029                         ),
00030                         null,
00031                         new DBDriverMySqlMock()         
00032             );
00033         }       

Member Data Documentation

DAOStudentsTest2CoursesTest::$id_course

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

DAOStudentsTest2CoursesTest::$id_student

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


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