Class mr_fixture_user

Description

MR Fixture User

  • author: Mark Nielsen

Located in /fixture/user.php (line 38)

mr_fixture_abstract
   |
   --mr_fixture_user
Variable Summary
array $options
Method Summary
mr_fixture_user __construct ([array|object  $options = array()])
void build ()
void delete_user (stdClass $user)
void destroy ()
boolean exists ()
array get_options ()
mr_fixture_user set_options (array|object  $options)
Variables
array $options = array() (line 44)

Properties to use for the user

  • access: protected

Inherited Variables

Inherited from mr_fixture_abstract

mr_fixture_abstract::$results
Methods
Constructor __construct (line 49)
  • access: public
mr_fixture_user __construct ([array|object  $options = array()])
  • array|object $options: Properties to use for the user

Redefinition of:
mr_fixture_abstract::__construct()
build (line 62)

Create the fixture

This method must be safe to call multiple times.

  • throws: moodle_exception
  • access: public
void build ()
delete_user (line 118)

Does work of deleting the user

  • access: protected
void delete_user (stdClass $user)
  • stdClass $user
destroy (line 91)

Delete the fixture

This method must be safe to call multiple times.

  • throws: moodle_exception
  • access: public
void destroy ()
exists (line 103)

Determine if the fixture exists

  • access: public
boolean exists ()
get_options (line 141)

Get the properties used for the user

  • access: public
array get_options ()
set_options (line 131)

Set properties to use for the user

  • access: public
mr_fixture_user set_options (array|object  $options)
  • array|object $options

Inherited Methods

Inherited From mr_fixture_abstract

mr_fixture_abstract::__construct()
mr_fixture_abstract::get()
mr_fixture_abstract::get_results()
mr_fixture_abstract::set_results()

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