CostCentreHandler
This class contains the functions to perform the following:
- Retrieve Cost Centre(s)
api | |
---|---|
package | simPROAPI |
subpackage | Configuration |
author | Nathan Muir |
version | 2011-07-18 |
Retrieve(int $CompanyID, int $CostCentreID, bool $ReturnRemoved = false) : array
This function retrieves details for a specific details id
uses | \CostCentreHandler::RetrieveList() |
---|
int
the Company ID. In single company builds, this is 0.
int
the Cost Centre id to retrieve details for
bool
if true, it will return removed departments
array
RetrieveList(int $CompanyID, array $CostCentreIDs, bool $ReturnRemoved) : array
This function retrieves details on the provided list of cost centre ids
used_by | \CostCentreHandler::Search() |
---|---|
used_by | \CostCentreHandler::Retrieve() |
int
the Company ID. In single company builds, this is 0.
array
the cost centre ids to retrieve details for
bool
if true, it will return removed departments
array
Search(int $CompanyID, string $Name = '%', bool $ReturnRemoved = false) : array
This function searches for a cost centre with a name. Use % for wildcards
uses | \CostCentreHandler::RetrieveList() |
---|
int
the Company ID. In single company builds, this is 0.
string
The Cost Centre Name to search for
bool
if true, it will return removed departments
array