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