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 = 10000, integer $offset = 0 )
Gets all people from the database table
Gets all people from the database table
Parameters
- $limit
- limits the query return rows
- $offset
- offset the query
Returns
array array of people table rows
Overrides
|
public
array
|
#
get_info( integer $employee_id )
Gets information about a person as an array
Gets information about a person as an array
Parameters
- $employee_id
- $person_id identifier of the person
Returns
array containing all the fields of the table row
Overrides
|
public
array
|
#
get_multiple_info( array $employee_ids )
Gets information about people as an array of rows
Gets information about people as an array of rows
Parameters
- $employee_ids
- $person_ids array of people identifiers
Returns
array containing all the fields of the table row
Overrides
|
public
|
#
save_employee( & $person_data, & $employee_data, & $grants_data, $employee_id = FALSE )
|
public
boolean
|
#
delete( integer $employee_id )
Deletes one Person (dummy base function)
Deletes one Person (dummy base function)
Parameters
- $employee_id
- $person_id person identificator
Returns
boolean always TRUE
Overrides
|
public
boolean
|
#
delete_list( array $employee_ids )
Deletes a list of people (dummy base function)
Deletes a list of people (dummy base function)
Parameters
- $employee_ids
- $person_ids list of person identificators
Returns
boolean always TRUE
Overrides
|
public
array
|
#
get_search_suggestions( string $search, integer $limit = 5 )
Get search suggestions to find person
Get search suggestions to find person
Parameters
- $search
- string containing the term to search in the people table
- $limit
- limit the search
Returns
array array with the suggestion strings
Overrides
|
public
|
|
public
|
#
search( $search, $rows = 0, $limit_from = 0, $sort = 'last_name', $order = 'asc' )
|
public
|
#
login( $username, $password )
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|