FUEL CMS User Guide : Version 1.4


Fuel Logs Model Class

Fuel_logs_model is used for logging action in FUEL.

This class extends the Base_module_model class.

Function Reference [+]

$this->fuel->logs_model->list_items(['$limit'=NULL], ['$offset'=NULL], ['$col'='entry_date'], ['$order'='desc'], ['$just_count'=FALSE])

Lists the log items.

Returns

mixed If $just_count is true it will return an integer value. Otherwise it will return an array of data (optional)

Parameters

(int) $limit The limit value for the list data (optional)
(int) $offset The offset value for the list data (optional)
(string) $col The field name to order by (optional)
(string) $order The sorting order (optional)
(boolean) $just_count Determines whether the result is just an integer of the number of records or an array of data (optional)

$this->fuel->logs_model->latest_activity(['$limit'=NULL])

Returns just the latest activity in the log.

Returns

array of data

Parameters

(int) $limit The limit value for the list data (optional)

$this->fuel->logs_model->logit('$msg', ['$type'=NULL], ['$user_id'=NULL])

Saves to the logging table.

Returns

boolean TRUE if saved correctly. FALSE otherwise

Parameters

(string) $msg The message to associate with the log
(string) $type The type of log (optional)
(int) $user_id The user ID associated with the log (optional)


Fuel Log Model Class

This class extends the Base_module_record class.