dolibarr 21.0.0-alpha
|
Class of dictionary of nature of product (used by imports) More...
Public Member Functions | |
__construct ($db) | |
Constructor. | |
create ($user, $notrigger=0) | |
Create object into database. | |
fetch ($id, $code='') | |
Load object in memory from database. | |
fetchAll ($sortorder='', $sortfield='', $limit=0, $offset=0, $filter='', $filtermode='AND') | |
Load list of objects in memory from the database. | |
update ($user=null, $notrigger=0) | |
Update object into database. | |
delete ($user, $notrigger=0) | |
Delete object in database. | |
getProductNatureFromCode ($code, $mode='code') | |
Get unit from code. | |
Class of dictionary of nature of product (used by imports)
Definition at line 33 of file cproductnature.class.php.
CProductNature::__construct | ( | $db | ) |
Constructor.
Definition at line 56 of file cproductnature.class.php.
CProductNature::create | ( | $user, | |
$notrigger = 0 ) |
Create object into database.
Definition at line 69 of file cproductnature.class.php.
References dol_syslog().
CProductNature::delete | ( | $user, | |
$notrigger = 0 ) |
Delete object in database.
Definition at line 282 of file cproductnature.class.php.
References dol_syslog().
CProductNature::fetch | ( | $id, | |
$code = '' ) |
Load object in memory from database.
int | $id | Id of CUnit object to fetch (rowid) |
string | $code | Code |
Definition at line 111 of file cproductnature.class.php.
CProductNature::fetchAll | ( | $sortorder = '', | |
$sortfield = '', | |||
$limit = 0, | |||
$offset = 0, | |||
$filter = '', | |||
$filtermode = 'AND' ) |
Load list of objects in memory from the database.
string | $sortorder | Sort Order |
string | $sortfield | Sort field |
int | $limit | Limit |
int | $offset | Offset |
string|array<string,mixed> | $filter Filter USF | |
string | $filtermode | Filter mode (AND or OR) |
Definition at line 163 of file cproductnature.class.php.
References dol_syslog(), and forgeSQLFromUniversalSearchCriteria().
CProductNature::getProductNatureFromCode | ( | $code, | |
$mode = 'code' ) |
Get unit from code.
int | $code | code of unit |
string | $mode | 0= id , short_label=Use short label as value, code=use code |
Definition at line 313 of file cproductnature.class.php.
References dol_getIdFromCode().
CProductNature::update | ( | $user = null, | |
$notrigger = 0 ) |
Update object into database.
Definition at line 247 of file cproductnature.class.php.
References dol_syslog().