TestDataStore
MMO\admin\helpers · 1 symbol · generated 27 Oct 2026
TestDataStore
TestDataStore.php:15Where TestData reads and makes the test records: an application's repository, through its entities -- each record committed as the account writing it (\MMO\oauth\user() while it is saved), so the application's rules apply as to that account's request; a file as mmo.edms' FileManager::uploadFile() does (upload).
- Namespace
MMO\admin\helpers
Index
| filesKey | ||
| repository | ||
| archive($entity, $author) | Archive $entity, as $author | |
| author($username) | ||
| commitAs($author, $entity, $change) | Change $entity with $change, and commit it as $author. | |
| create($collection, $data, $status, $calls, $author) | Make a record, as $author: its fields, its add…() calls, its status; committed alone. | |
| find($collection, $where, $sort) | ||
| get($collection, $id) | ||
| hasProperty($entity, $name) | ||
| id($entity) | ||
| isArchived($entity) | ||
| labelled($collection, $label) | ||
| setUser($user) | ||
| upload($author, $name, $content, $labels, $data) | Make a file of $author (mmo.edms), from $content: its labels' tokens, its fields (attachment, description) -- as FileManager::uploadFile() does, its bytes under $filesKey (the storage's … | |
| user() | ||
| value($from, $path) | ||
| __construct($repository) |
Properties2
filesKey
- Type
- string
repository
- Type
- iRepository
Methods15
archive($entity, $author)
TestDataStore.php:123Archive $entity, as $author
author($username)
TestDataStore.php:47commitAs($author, $entity, $change)
TestDataStore.php:133Change $entity with $change, and commit it as $author.
create($collection, $data, $status, $calls, $author)
TestDataStore.php:69Make a record, as $author: its fields, its add…() calls, its status; committed alone.
find($collection, $where, $sort)
TestDataStore.php:42get($collection, $id)
TestDataStore.php:20hasProperty($entity, $name)
TestDataStore.php:147id($entity)
TestDataStore.php:54isArchived($entity)
TestDataStore.php:26labelled($collection, $label)
TestDataStore.php:31setUser($user)
TestDataStore.php:157upload($author, $name, $content, $labels, $data)
TestDataStore.php:90Make a file of $author (mmo.edms), from $content: its labels' tokens, its fields (attachment, description) -- as FileManager::uploadFile() does, its bytes under $filesKey (the storage's month folders are the web server's: this machine's user may not write in them, and one it made the web server could not), readable by the web server.
user()
TestDataStore.php:152value($from, $path)
TestDataStore.php:59__construct($repository)
TestDataStore.php:17| $repository | iRepository | the application's (\MMO\getInstance('repository')): its collections by id |