River table database action.
More...
River table database action.
- Since
- 4.0
Definition at line 16 of file RiverTable.php.
Create the river table service.
- Parameters
-
Definition at line 36 of file RiverTable.php.
Save a river item to the database.
- Parameters
-
\ElggRiverItem | $item | item to save |
- Returns
- bool
Definition at line 69 of file RiverTable.php.
Delete a river item.
- Parameters
-
\ElggRiverItem | $item | the item to delete |
- Returns
- bool
Definition at line 138 of file RiverTable.php.
Elgg\Database\RiverTable::get |
( |
int |
$id | ) |
|
Get a river item based on its ID.
- Parameters
-
int | $id | the ID of the river item |
- Returns
- |null
Definition at line 52 of file RiverTable.php.
Elgg\Database\RiverTable::updateLastAction |
( |
\ElggRiverItem |
$item, |
|
|
int |
$last_action = null |
|
) |
| |
Update the last_action column in the river table for $item.
- Parameters
-
\ElggRiverItem | $item | River item to update |
int | $last_action | Timestamp of last action |
- Returns
- int
Definition at line 165 of file RiverTable.php.
const Elgg\Database\RiverTable::DEFAULT_JOIN_ALIAS = 'rv' |
const Elgg\Database\RiverTable::TABLE_NAME = 'river' |
The documentation for this class was generated from the following file: