|
| __construct ($db) |
|
| load ($userId=null, $reset=true) |
|
| bind ($array, $ignore='') |
|
| check () |
|
| store ($updateNulls=false) |
|
| delete ($userId=null) |
|
| setLastVisit ($timeStamp=null, $userId=null) |
|
| __construct ($table, $key, $db) |
|
| attachObserver (\JObserverInterface $observer) |
|
| getObserverOfClass ($observerClass) |
|
| getFields ($reload=false) |
|
| appendPrimaryKeys ($query, $pk=null) |
|
| getTableName () |
|
| getKeyName ($multiple=false) |
|
| getDbo () |
|
| setDbo ($db) |
|
| setRules ($input) |
|
| getRules () |
|
| reset () |
|
| bind ($src, $ignore=array()) |
|
| load ($keys=null, $reset=true) |
|
| check () |
|
| save ($src, $orderingFilter='', $ignore='') |
|
| checkOut ($userId, $pk=null) |
|
| checkIn ($pk=null) |
|
| hasPrimaryKey () |
|
| hit ($pk=null) |
|
| isCheckedOut ($with=0, $against=null) |
|
| getNextOrder ($where='') |
|
| getPrimaryKey (array $keys=array()) |
|
| reorder ($where='') |
|
| move ($delta, $where='') |
|
| publish ($pks=null, $state=1, $userId=0) |
|
| getColumnAlias ($column) |
|
| setColumnAlias ($column, $columnAlias) |
|
| hasField ($key) |
|
| attachObserver (JObserverInterface $observer) |
|
◆ __construct()
Constructor
- Paramètres
-
\JDatabaseDriver | $db | Database driver object. |
- Depuis
- 1.7.0
Références $db.
◆ bind()
bind |
( |
|
$array, |
|
|
|
$ignore = '' |
|
) |
| |
Method to bind the user, user groups, and any other necessary data.
- Paramètres
-
array | $array | The data to bind. |
mixed | $ignore | An array or space separated list of fields to ignore. |
- Renvoie
- boolean True on success, false on failure.
- Depuis
- 1.7.0
Références $groups, $query, $return, et ArrayHelper\toInteger().
◆ check()
Validation and filtering
- Renvoie
- boolean True if satisfactory
- Depuis
- 1.7.0
Références $config, $query, et null.
◆ delete()
Method to delete a user, user groups, and any other necessary data from the database.
- Paramètres
-
integer | $userId | An optional user id. |
- Renvoie
- boolean True on success, false on failure.
- Depuis
- 1.7.0
Références $query, et $userId.
◆ load()
Method to load a user, user groups, and any other necessary data from the database so that it can be bound to the user object.
- Paramètres
-
integer | $userId | An optional user id. |
boolean | $reset | False if row not found or on error (internal error state set in that case). |
- Renvoie
- boolean True on success, false on failure.
- Depuis
- 1.7.0
Références $data, $id, $query, $return, $userId, et null.
◆ setLastVisit()
setLastVisit |
( |
|
$timeStamp = null , |
|
|
|
$userId = null |
|
) |
| |
Updates last visit time of user
- Paramètres
-
integer | $timeStamp | The timestamp, defaults to 'now'. |
integer | $userId | The user id (optional). |
- Renvoie
- boolean False if an error occurs
- Depuis
- 1.7.0
Références $date, $db, $id, $query, $userId, et null.
◆ store()
store |
( |
|
$updateNulls = false | ) |
|
Method to store a row in the database from the Table instance properties.
If a primary key value is set the row with that primary key value will be updated with the instance property values. If no primary key value is set a new row will be inserted into the database with the properties from the Table instance.
- Paramètres
-
boolean | $updateNulls | True to update fields even if they are null. |
- Renvoie
- boolean True on success.
- Depuis
- 1.7.0
Références $groups, $key, $query, et block.
◆ $groups
La documentation de cette classe a été générée à partir du fichier suivant :