|
| | builtTemplate () |
| |
| | __construct ($data=false, $table=false, $location=false, $path=false, $id=false) |
| |
|
| getPath () |
| |
| | save ($force=false) |
| |
| | view (Injections $overrideInjections=null, $level=1) |
| |
| | get (Injections $overrideInjections=null, $level=1) |
| |
Events:
- "inject"(Injections $inject(The view injections)): Use this to inject into the entity view.
| __construct |
( |
|
$data = false, |
|
|
|
$table = false, |
|
|
|
$location = false, |
|
|
|
$path = false, |
|
|
|
$id = false |
|
) |
| |
|
final |
Override this to set the object values.
You can use $this.
| get |
( |
Injections |
$overrideInjections = null, |
|
|
|
$level = 1 |
|
) |
| |
Get this entity's html.
- Parameters
-
| Injections | $overrideInjections | Set this to an injections instance if you wish to inject things into the view. |
- Returns
- A string containing the entity display.
This is called after the constructor. You can override this.
This will save the contents of the entity to its location in the database.
- Parameters
-
| bool | $force | If all values(including unchanged) of the entity should be updated in the database. |
| view |
( |
Injections |
$overrideInjections = null, |
|
|
|
$level = 1 |
|
) |
| |
This will get a view instance for this entity.
- Returns
- A view instance for this entity.
The current raw entity data taken from the database.
The table index that this entity is stored at.
If this entity has no database location yet.
The standard query used to find this entity.
The smallest link to this entity;
The table this entity is stored in.
The level this entity follows. Do not change this.
The short link path. Do not change this.
The standard this entity is following. Do not change this.
Override this.
This is the raw data template.
It is used by the entity when creating new default entities. Example:
static public $template = [
"id" => -1,
"name" =>
"Default name",
"body" =>
"Put body text here" ];
The type of entity this is. Do not change this.
The documentation for this class was generated from the following file: