Class Supplier
-
CI_Model
-
Person
-
Supplier
Methods summary
public
boolean
|
#
exists( integer $person_id )
Determines whether the given person exists in the people database table
Determines whether the given person exists in the people database table
Parameters
- $person_id
- identifier of the person to verify the existence
Returns
boolean TRUE if the person exists, FALSE if not
Overrides
|
public
integer
|
#
get_total_rows( )
Gets total of rows of people database table
Gets total of rows of people database table
Returns
integer row counter
Overrides
|
public
array
|
#
get_all( integer $limit_from = 0, integer $rows = 0 )
Gets all people from the database table
Gets all people from the database table
Parameters
- $limit_from
- $limit limits the query return rows
- $rows
- $offset offset the query
Returns
array array of people table rows
Overrides
|
public
array
|
#
get_info( integer $supplier_id )
Gets information about a person as an array
Gets information about a person as an array
Parameters
- $supplier_id
- $person_id identifier of the person
Returns
array containing all the fields of the table row
Overrides
|
public
array
|
#
get_multiple_info( array $suppliers_ids )
Gets information about people as an array of rows
Gets information about people as an array of rows
Parameters
- $suppliers_ids
- $person_ids array of people identifiers
Returns
array containing all the fields of the table row
Overrides
|
public
|
#
save_supplier( & $person_data, & $supplier_data, $supplier_id = FALSE )
|
public
boolean
|
#
delete( integer $supplier_id )
Deletes one Person (dummy base function)
Deletes one Person (dummy base function)
Parameters
- $supplier_id
- $person_id person identificator
Returns
boolean always TRUE
Overrides
|
public
boolean
|
#
delete_list( array $supplier_ids )
Deletes a list of people (dummy base function)
Deletes a list of people (dummy base function)
Parameters
- $supplier_ids
- $person_ids list of person identificators
Returns
boolean always TRUE
Overrides
|
public
array
|
#
get_search_suggestions( string $search, integer $unique = FALSE, $limit = 25 )
Get search suggestions to find person
Get search suggestions to find person
Parameters
- $search
- string containing the term to search in the people table
- $unique
- $limit limit the search
- $limit
Returns
array array with the suggestion strings
Overrides
|
public
|
|
public
|
#
search( $search, $rows = 0, $limit_from = 0, $sort = 'last_name', $order = 'asc' )
|