|
| static | $events |
| |
| static | $version = '1.0' |
| |
|
static | $major = '1' |
| |
|
static | $minor = '0' |
| |
This is the standard interface class, used for getting Standard(s)
| static error |
( |
|
$errorMsg | ) |
|
|
static |
This will return a string containing the $errorMsg and any html structure around it.
Use this to standardize the error message look.
| static findEntities |
( |
|
$location, |
|
|
|
$data = false |
|
) |
| |
|
static |
This will try to find the entity associated with the location provided.
– How locations work – Locations are strings that contain a path to a certain piece of information in the database. Example: "Forum.Post.#65" Breakdown: The "Forum" part is looking in the installed Forum systems data tables. The "Post" part is telling Standard to search inside of the posts table. The "#65" part is looking for the post that has an id of 65.
You can also use "Forum.Post.<time|-90" This will get 90 forum posts going from newest to oldest.
If you are using user input to search use:
- Parameters
-
| string | $location | The location where a entity is stored. |
- Returns
- An array of found entities or false if the query is invalid.
This will get an entity from the path.
- Parameters
-
| string | $path | The short location of an entity. |
- Returns
- An entity loaded with the data found or false if not found.
| static registerStandard |
( |
Standard |
$standard | ) |
|
|
static |
This will register a standard instance with the global Standards.
See the tutorial for making a Standard
This will get a standard if it is installed.
- Parameters
-
| string | $type | The standard type. See StandardsList for a list. |
- Returns
- The found Standard instance or false if not found.
This will create a path from the trail.
- Parameters
-
| string | $trail | The location of an entity. |
- Returns
- A short string that contains the path to the trail or false if trail is invalid.
This will create a trail from the path.
- Parameters
-
| string | $path | The short location of an entity. |
- Returns
- A long readable string that contains the trail or false if the path is invalid.
The documentation for this class was generated from the following file: