PlantHandler
This class contains the functions to perform the following:
api | |
---|---|
package | simPROAPI |
subpackage | Staff |
author | Nathan Muir, Isaac Martin |
version | 2014-06-23 |
uses | \global\StaffHandler |
Retrieve(mixed $CompanyID, int $PlantID) : array
This function retrieves a plant with a specific Plant ID
uses | \PlantHandler::RetrieveList() |
---|
mixed
the Company IDs. Can be a single Company ID or an array of Company IDs. In single company builds, this is 0.
int
plant id
array
RetrieveList(mixed $CompanyID, array $PlantIDs, array $Detail = array()) : array
This function retrieves details on the provided list of plant ids
uses | \StaffHandler::RetrieveList() |
---|---|
used_by | \PlantHandler::Search() |
used_by | \PlantHandler::SearchFields() |
used_by | \PlantHandler::Retrieve() |
mixed
the Company IDs. Can be a single Company ID or an array of Company IDs. In single company builds, this is 0.
array
list of Plant ID's to retrieve.
array
the specification of which details to return - ("Zones","Departments"). Null/Empty/Empty array will return none.
array
Search(mixed $CompanyID, string $Search = '%', array $Detail = array(), bool $Schedulable = false) : array
This function retrieve's a list of plants who's name matches the search term.
uses | \PlantHandler::RetrieveList() |
---|
mixed
the Company IDs. Can be a single Company ID or an array of Company IDs. In single company builds, this is 0.
string
The search text for the plant. Can use % for wildcards.
array
the specification of which details to return - ("Zones","Departments"). Null/Empty/Empty array will return none.
bool
wether to return schedulable Plant items. Null/Empty will return all.
array
SearchFields(mixed $CompanyID, array $SearchTerms) : array
This function retrieve's a list of plants who's set of fields match their associated values
Implemented Search Terms are: ZoneID, ZoneName, PlantTypeID, PlantTypeName
uses | \PlantHandler::RetrieveList() |
---|
mixed
the Company IDs. Can be a single Company ID or an array of Company IDs. In single company builds, this is 0.
array
An associative array of Search Fields[key] and their search terms [value]
array
TypesRetrieve(mixed $CompanyID) : array
This function retrieves plant types
mixed
the Company IDs. Can be a single Company ID or an array of Company IDs. In single company builds, this is 0.
array