UOMHandler
This class contains the functions to perform the following:
api | |
---|---|
package | simPROAPI |
subpackage | Materials |
author | Edgar Luzardo |
version | 2013-05-24 |
uses | \global\ |
Insert(int $CompanyID, array $UOMDetails) : int
<?php
array_keys($UOMDetails) == array(
"UOMName",
"WholeItemOnly"
);
?>
int
the company id
array
an associative array of uom information.
int
Retrieve(mixed $CompanyID, int $UOMID) : array
This function retrieves a uom with a specific ID
uses | \UOMHandler::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
uom id
array
RetrieveList(mixed $CompanyID, array $UOMIDs) : array
This function retrieves details on the provided list of uom ids
used_by | \UOMHandler::Search() |
---|---|
used_by | \UOMHandler::SearchFields() |
used_by | \UOMHandler::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 UOM ID's to retrieve.
array
Search(mixed $CompanyID, string $Search = '%') : array
This function retrieves a list of UMOs whose name matches the search term.
uses | \UOMHandler::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 uom. Can use % for wildcards.
array
SearchFields(mixed $CompanyID, array $SearchTerms) : array
This function retrieves a list of UOMs whose set of fields match their associated values
Implemented Search Terms are: WholeItemOnly
uses | \UOMHandler::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
Update(int $CompanyID, int $UOMID, array $UOMDetails) : bool
<?php
array_keys($UOMDetails) == array(
"UOMName",
"WholeItemOnly"
);
?>
int
the company id
int
the uom id to update with the supplied information
array
an associative array of employee information.
bool