Methods summary
public
|
|
public
array
|
#
get_row( integer $provider_id )
Get a specific row from the providers table.
Get a specific row from the providers table.
Parameters
- $provider_id
integer $provider_id The record's id to be returned.
Returns
array Returns an associative array with the selected record's data. Each key has the
same name as the database field names.
|
public
string
|
#
get_value( string $field_name, integer $provider_id )
Get a specific field value from the database.
Get a specific field value from the database.
Parameters
- $field_name
string $field_name The field name of the value to be returned.
- $provider_id
integer $provider_id The selected record's id.
Returns
string Returns the records value from the database.
|
public
array
|
#
get_batch( string $where_clause = '' )
Get all, or specific records from provider's table.
Get all, or specific records from provider's table.
Parameters
- $where_clause
string $whereClause (OPTIONAL) The WHERE clause of the query to be executed. DO NOT
INCLUDE 'WHERE' KEYWORD.
Returns
array Returns the rows from the database.
Example
$this->Model->getBatch('id = ' . $recordId);
|
public
array
|
#
get_available_providers( )
Get the available system providers.
Get the available system providers.
This method returns the available providers and the services that can
provide.
Returns
array Returns an array with the providers data.
|
public
integer
|
#
get_providers_role_id( )
Get the providers role id from the database.
Get the providers role id from the database.
Returns
integer Returns the role id for the customer records.
|
public
string
|
#
get_setting( string $setting_name, integer $provider_id )
Get a providers setting from the database.
Get a providers setting from the database.
Parameters
- $setting_name
string $setting_name The setting name that is going to be returned.
- $provider_id
integer $provider_id The selected provider id.
Returns
string Returs the value of the selected user setting.
|
public
|
#
set_setting( string $setting_name, string $value, numeric $provider_id )
Set a provider's setting value in the database.
Set a provider's setting value in the database.
Parameters
- $setting_name
string $setting_name The setting's name.
- $value
string $value The setting's value.
- $provider_id
numeric $provider_id The selected provider id.
|