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( )
This method returns the available providers and the services that can
provide.
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.
|