◆ __construct()
__construct |
( |
|
$db = null | ) |
|
Class constructor.
- Paramètres
-
- Depuis
- 3.7.0
Références $db.
◆ _getAssetName()
Method to compute the default name of the asset. The default name is in the form table_name.id where id is the value of the primary key of the table.
- Renvoie
- string
- Depuis
- 3.7.0
◆ _getAssetParentId()
_getAssetParentId |
( |
JTable |
$table = null , |
|
|
|
$id = null |
|
) |
| |
|
protected |
Method to get the parent asset under which to register this one. By default, all assets are registered to the ROOT node with ID, which will default to 1 if none exists. The extended class can define a table and id to lookup. If the asset does not exist it will be created.
- Paramètres
-
JTable | $table | A JTable object for the asset parent. |
integer | $id | Id to look up |
- Renvoie
- integer
- Depuis
- 3.7.0
Références $assetId, $component, et $id.
◆ _getAssetTitle()
Method to return the title to use for the asset table. In tracking the assets a title is kept for each asset so that there is some context available in a unified access manager. Usually this would just return $this->title or $this->name or whatever is being used for the primary name of the row. If this method is not overridden, the asset name is used.
- Renvoie
- string The string to use as the title in the asset table.
3.7.0
Références $title.
◆ bind()
bind |
( |
|
$src, |
|
|
|
$ignore = '' |
|
) |
| |
Method to bind an associative array or object to the JTable instance.This method only binds properties that are publicly accessible and optionally takes an array of properties to ignore when binding.
- Paramètres
-
mixed | $src | An associative array or object to bind to the JTable instance. |
mixed | $ignore | An optional array or space separated list of properties to ignore while binding. |
- Renvoie
- boolean True on success.
- Depuis
- 3.7.0
- Exceptions
-
Références Registry\loadArray().
◆ check()
Method to perform sanity checks on the JTable instance properties to ensure they are safe to store in the database. Child classes should override this method to make sure the data they are storing in the database is safe and as expected before storage.
- Renvoie
- boolean True if the instance is sane and able to be stored in the database.
3.7.0
Références $date, $title, $user, language, name, et title.
◆ getAssetId()
Returns an asset id for the given name or false.
- Paramètres
-
string | $name | The asset name |
- Renvoie
- number|boolean
- Depuis
- 3.7.0
Références $assetId, $db, $name, $query, et null.
La documentation de cette classe a été générée à partir du fichier suivant :