## Class mr_repository_recordset

Description

MR Repository Record Set

This is returned by repository mappers instead of a regular moodle_recordset. Instead of iterating over plain objects, this will iterate over your models.

All other moodle_recordset behavior is exactly the same.

- author: Mark Nielsen
- example: See this class in action

Located in /repository/recordset.php (line 39)

    moodle_recordset
       |
       --mr_repository_recordset

Variable Summary
mr_repository_abstract $repo
moodle_recordset $rs
Method Summary
mr_repository_recordset __construct (mr_repository_abstract $repo, $rs)
void close ()
mr_model_record_abstract current ()
void key ()
void next ()
void valid ()
Variables
mr_repository_abstract $repo (line 43)

- access: protected

moodle_recordset $rs (line 48)

- access: protected

Methods
Constructor __construct (line 54)

- access: public

mr_repository_recordset __construct (mr_repository_abstract $repo, $rs)

- mr_repository_abstract $repo
- moodle_recordset $rs

close (line 83)

- access: public

void close ()
current (line 65)

Our only real magic here, we are converting the record to our model.

- access: public

mr_model_record_abstract current ()
key (line 75)

- access: public

void key ()
next (line 71)

- access: public

void next ()
valid (line 79)

- access: public

void valid ()

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