Class: atkAbstractFixtureLoader
Source Location: /fixture/class.atkabstractfixtureloader.inc
Class atkAbstractFixtureLoader
Descendants
| atkPHPFixtureLoader |
PHP fixture loader. Loads fixtures that are plain PHP files. PHP files have access to a "global" variable named $data that should be filled with the fixture data.
|
| atkYAMLFixtureLoader |
YAML fixture loader. Loads YAML fixtures. In the YAML fixture you can optionally use PHP code to output the fixtures PHP code should be enclosed in PHP tags. Script has full access to all of ATK. Scripts output will be interpreted as YAML.
|
Method Summary
| array |
load() |
Loads and returns the fixture data from the given file. |
| string |
parse() |
Parses the given string using PHP. Parsed results will be returned. |
Methods
array load(
string
$path
)
|
|
Loads and returns the fixture data from the given file.
Parameters:
|
string |
$path: |
fixture file path |
API Tags:
| Return: | fixture data |
| Abstract: | |
Redefined in descendants as:
string parse(
string
$string
)
|
|
Parses the given string using PHP. Parsed results will be returned.
PHP code must be surrounded by PHP open and close tags. Script code has full access to all loaded ATK files.
Parameters:
|
string |
$string: |
string to parse |
API Tags:
| Return: | parse result |
| Access: | protected |