## Class mr_fixture_abstract

Description

Implements interfaces:

- mr_fixture_interface

MR Fixture Abstract

- author: Mark Nielsen
- abstract:

Located in /fixture/abstract.php (line 37)

Direct descendents

Class | Description
--- | ---
mr_fixture_course | MR Fixture Course
mr_fixture_enrollment | MR Fixture Enrollment
mr_fixture_group_member | MR Fixture Group Member
mr_fixture_group | MR Fixture Group
mr_fixture_role_assignment | MR Fixture Group Member
mr_fixture_role | MR Fixture Role
mr_fixture_user | MR Fixture User

Variable Summary
stdClass $results
Method Summary
mr_fixture_abstract __construct ()
mixed get (string $name)
stdClass get_results ()
mr_fixture_interface set_results (stdClass $results)
Variables
stdClass $results (line 41)

- access: protected

Methods
Constructor __construct (line 43)

- access: public

mr_fixture_abstract __construct ()

Redefined in descendants as:

- mr_fixture_course::__construct()
- mr_fixture_enrollment::__construct()
- mr_fixture_group_member::__construct()
- mr_fixture_group::__construct()
- mr_fixture_role_assignment::__construct()
- mr_fixture_role::__construct()
- mr_fixture_user::__construct()

get (line 58)

Get a property from the build results

Build results vary from fixture to fixture so not all fixtures may respond the same.

- throws: coding_exception
- throws: moodle_exception
- access: public

mixed get (string $name)

- string $name: The name of the property to get from the build results

Implementation of:

mr_fixture_interface::get()
  Get a property from the build results

get_results (line 81)

Get the build results

What is returned is largely up to the fixture so be sure you know which type of fixture you are using.

- access: public

stdClass get_results ()

Implementation of:

mr_fixture_interface::get_results()
  Get the build results

set_results (line 95)

Set the build results

This value is highly dependent upon the fixture class that you are using. Be sure to know which type of fixture you are using.

- access: public

mr_fixture_interface set_results (stdClass $results)

- stdClass $results: The results to set

Implementation of:

mr_fixture_interface::set_results()
  Set the build results

Documentation generated on Thu, 28 Jun 2012 16:33:45 -0700 by phpDocumentor 1.4.3