## Interface mr_fixture_interface

Description

MR Fixture Interface

A class implementing this interface can be managed by the mr_fixture_manager class.

- author: Mark Nielsen
- see: mr_fixture_manager

Located in /fixture/interface.php (line 36)

Method Summary
void build ()
void destroy ()
boolean exists ()
mixed get (string $name)
stdClass get_results ()
mr_fixture_interface set_results (stdClass $results)
Methods
build (line 84)

Create the fixture

This method must be safe to call multiple times.

- abstract:
- throws: moodle_exception
- access: public

void build ()
destroy (line 95)

Delete the fixture

This method must be safe to call multiple times.

- abstract:
- throws: moodle_exception
- access: public

void destroy ()
exists (line 103)

Determine if the fixture exists

- abstract:
- access: public

boolean exists ()
get (line 48)

Get a property from the build results

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

- abstract:
- throws: moodle_exception
- access: public

mixed get (string $name)

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

get_results (line 60)

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.

- abstract:
- access: public

stdClass get_results ()
set_results (line 73)

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.

- abstract:
- access: public

mr_fixture_interface set_results (stdClass $results)

- stdClass $results: The results to set

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