Elgg
Version 5.0
|
River table database action. More...
Public Member Functions | |
__construct (Database $db, AnnotationsTable $annotationsTable, EntityTable $entityTable, EventsService $events, ViewsService $views) | |
Create the river table service. More... | |
get (int $id) | |
Get a river item based on its ID. More... | |
create (\ElggRiverItem $item) | |
Save a river item to the database. More... | |
delete (\ElggRiverItem $item) | |
Delete a river item. More... | |
updateLastAction (\ElggRiverItem $item, int $last_action=null) | |
Update the last_action column in the river table for $item. More... | |
Public Attributes | |
const | TABLE_NAME = 'river' |
Protected Attributes | |
AnnotationsTable | $annotationsTable |
Database | $db |
EntityTable | $entityTable |
EventsService | $events |
ViewsService | $views |
Elgg\Database\RiverTable::__construct | ( | Database | $db, |
AnnotationsTable | $annotationsTable, | ||
EntityTable | $entityTable, | ||
EventsService | $events, | ||
ViewsService | $views | ||
) |
Create the river table service.
Database | $db | database service |
AnnotationsTable | $annotationsTable | annotations service |
EntityTable | $entityTable | entity table service |
EventsService | $events | events service |
ViewsService | $views | views service |
Definition at line 44 of file RiverTable.php.
Elgg\Database\RiverTable::create | ( | \ElggRiverItem | $item | ) |
Save a river item to the database.
\ElggRiverItem | $item | item to save |
Definition at line 76 of file RiverTable.php.
Elgg\Database\RiverTable::delete | ( | \ElggRiverItem | $item | ) |
Delete a river item.
\ElggRiverItem | $item | the item to delete |
Definition at line 145 of file RiverTable.php.
Elgg\Database\RiverTable::get | ( | int | $id | ) |
Get a river item based on its ID.
int | $id | the ID of the river item |
Definition at line 59 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.
\ElggRiverItem | $item | River item to update |
int | $last_action | Timestamp of last action |
Definition at line 172 of file RiverTable.php.
|
protected |
Definition at line 25 of file RiverTable.php.
|
protected |
Definition at line 27 of file RiverTable.php.
|
protected |
Definition at line 29 of file RiverTable.php.
|
protected |
Definition at line 31 of file RiverTable.php.
|
protected |
Definition at line 33 of file RiverTable.php.
const Elgg\Database\RiverTable::TABLE_NAME = 'river' |
Definition at line 23 of file RiverTable.php.