|
| __construct () |
| Constructor.
|
|
| get ($id) |
| Get properties of a supplier proposal (price request) object.
|
|
| index ($sortfield="t.rowid", $sortorder='ASC', $limit=100, $page=0, $thirdparty_ids='', $sqlfilters='') |
| List supplier proposals.
|
|
| __construct ($db, $cachedir='', $refreshCache=false) |
| Constructor.
|
|
|
| _cleanObjectDatas ($object) |
| Clean sensible object datas.
|
|
| _checkValForAPI ($field, $value, $object) |
| Check and convert a string depending on its type/name.
|
|
| _checkFilters ($sqlfilters, &$error='') |
| Return if a $sqlfilters parameter is valid Function no more used.
|
|
|
static | _checkAccessToResource ($resource, $resource_id=0, $dbtablename='', $feature2='', $dbt_keyfield='fk_soc', $dbt_select='rowid') |
| Check access by user to a given resource.
|
|
static | _forge_criteria_callback ($matches) |
| Function to forge a SQL criteria from a Generic filter string.
|
|
◆ _cleanObjectDatas()
SupplierProposals::_cleanObjectDatas |
( |
| $object | ) |
|
|
protected |
◆ _validate()
SupplierProposals::_validate |
( |
| $data | ) |
|
|
private |
◆ get()
SupplierProposals::get |
( |
| $id | ) |
|
◆ index()
SupplierProposals::index |
( |
| $sortfield = "t.rowid", |
|
|
| $sortorder = 'ASC', |
|
|
| $limit = 100, |
|
|
| $page = 0, |
|
|
| $thirdparty_ids = '', |
|
|
| $sqlfilters = '' ) |
List supplier proposals.
Get a list of supplier proposals
- Parameters
-
string | $sortfield | Sort field |
string | $sortorder | Sort order |
int | $limit | Limit for list |
int | $page | Page number |
string | $thirdparty_ids | Thirdparty ids to filter supplier proposals (example '1' or '1,2,3') {@pattern /^[0-9,]*$/i} |
string | $sqlfilters | Other criteria to filter answers separated by a comma. Syntax example "(t.ref:like:'SO-%') and (t.datec:<:'20160101')" |
- Returns
- array Array of order objects
Definition at line 97 of file api_supplier_proposals.class.php.
References _cleanObjectDatas(), and forgeSQLFromUniversalSearchCriteria().
The documentation for this class was generated from the following file: