FUEL CMS User Guide : Version 1.3.2


Fuel Base Library Class

This class is the base class that many other FUEL objects inherit from.

Properties Reference

Property Default Value Description
protected
CI N/A Reference to the CI super object
fuel N/A Reference to the fuel object
permission N/A Permission required to run
init_permission_check N/A Whether to check permissions on initialization or not
_errors N/A Array to keep track of errors
_inited N/A Flag set upon initialization

Function Reference [+]

$this->fuel->base_library->initialize([$params=array()])

Initialize the object and set object parameters. Accepts an associative array as input, containing object preferences. Also will set the values in the parameters array as properties of this object.

Returns

void

Parameters

(array) $params Config preferences

$this->fuel->base_library->is_inited()

Returns a boolean value depending on if the class's initialize method has been run.

Returns

boolean

$this->fuel->base_library->set_params($params)

Set object parameters.

Returns

void

Parameters

(array) $params Config preferences

$this->fuel->base_library->errors(['$formatted'=FALSE], ['$open'=''], ['$close'=' '])

Returns either an array of errors or a formatted string error message.

Returns

mixed Will return either an array of error messages or a formatted string if the first parameter is set to TRUE

Parameters

(boolean) $formatted Whether to format the error messages
(string) $open The opening tag to append before the error messages
(string) $close The closing tag to append before the error messages

$this->fuel->base_library->last_error()

Returns the last error message.

Returns

string

$this->fuel->base_library->has_errors()

Returns whether there were errors or not set on the object.

Returns

boolean