Elgg  Version master
Public Member Functions | Public Attributes | Protected Attributes | List of all members
Elgg\Database\RiverTable Class Reference

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...
 

Public Attributes

const TABLE_NAME = 'river'
 

Protected Attributes

 $annotationsTable
 
 $db
 
 $entityTable
 
 $events
 
 $views
 

Detailed Description

River table database action.

Since
4.0

Definition at line 16 of file RiverTable.php.

Constructor & Destructor Documentation

Elgg\Database\RiverTable::__construct ( Database  $db,
AnnotationsTable  $annotationsTable,
EntityTable  $entityTable,
EventsService  $events,
ViewsService  $views 
)

Create the river table service.

Parameters
Database$dbdatabase service
AnnotationsTable$annotationsTableannotations service
EntityTable$entityTableentity table service
EventsService$eventsevents service
ViewsService$viewsviews service

Definition at line 59 of file RiverTable.php.

Member Function Documentation

Elgg\Database\RiverTable::create ( \ElggRiverItem  $item)

Save a river item to the database.

Parameters
\ElggRiverItem$itemitem to save
Returns
bool

Definition at line 94 of file RiverTable.php.

Elgg\Database\RiverTable::delete ( \ElggRiverItem  $item)

Delete a river item.

Parameters
\ElggRiverItem$itemthe item to delete
Returns
bool

Definition at line 161 of file RiverTable.php.

Elgg\Database\RiverTable::get ( int  $id)

Get a river item based on its ID.

Parameters
int$idthe ID of the river item
Returns
|null

Definition at line 74 of file RiverTable.php.

Member Data Documentation

Elgg\Database\RiverTable::$annotationsTable
protected

Definition at line 28 of file RiverTable.php.

Elgg\Database\RiverTable::$db
protected

Definition at line 33 of file RiverTable.php.

Elgg\Database\RiverTable::$entityTable
protected

Definition at line 38 of file RiverTable.php.

Elgg\Database\RiverTable::$events
protected

Definition at line 43 of file RiverTable.php.

Elgg\Database\RiverTable::$views
protected

Definition at line 48 of file RiverTable.php.

const Elgg\Database\RiverTable::TABLE_NAME = 'river'

Definition at line 23 of file RiverTable.php.


The documentation for this class was generated from the following file: