dolibarr 19.0.3
|
Class CGenericDic. More...
Public Member Functions | |
__construct (DoliDB $db) | |
Constructor. | |
create (User $user, $notrigger=false) | |
Create object into database. | |
fetch ($id, $code='', $label='') | |
Load object in memory from the database. | |
fetchAll ($sortorder='', $sortfield='', $limit=0, $offset=0, array $filter=array(), $filtermode='AND') | |
Load object in memory from the database. | |
update (User $user, $notrigger=false) | |
Update object into database. | |
delete (User $user, $notrigger=false) | |
Delete object in database. | |
createFromClone (User $user, $fromid) | |
Load an object from its id and create a new one in database. | |
initAsSpecimen () | |
Initialise object with example values Id must be 0 if object instance is a specimen. | |
Class CGenericDic.
Definition at line 32 of file cgenericdic.class.php.
CGenericDic::__construct | ( | DoliDB | $db | ) |
Constructor.
DoliDb | $db | Database handler |
Definition at line 64 of file cgenericdic.class.php.
CGenericDic::create | ( | User | $user, |
$notrigger = false ) |
Create object into database.
User | $user | User that creates |
bool | $notrigger | false=launch triggers after, true=disable triggers |
Definition at line 79 of file cgenericdic.class.php.
References dol_syslog().
CGenericDic::createFromClone | ( | User | $user, |
$fromid ) |
Load an object from its id and create a new one in database.
Definition at line 431 of file cgenericdic.class.php.
References dol_syslog().
CGenericDic::delete | ( | User | $user, |
$notrigger = false ) |
Delete object in database.
User | $user | User that deletes |
bool | $notrigger | false=launch triggers after, true=disable triggers |
Definition at line 378 of file cgenericdic.class.php.
References dol_syslog().
CGenericDic::fetch | ( | $id, | |
$code = '', | |||
$label = '' ) |
Load object in memory from the database.
int | $id | Id object |
string | $code | code |
string | $label | Label |
Definition at line 159 of file cgenericdic.class.php.
References dol_syslog().
CGenericDic::fetchAll | ( | $sortorder = '', | |
$sortfield = '', | |||
$limit = 0, | |||
$offset = 0, | |||
array | $filter = array(), | ||
$filtermode = 'AND' ) |
Load object in memory from the database.
string | $sortorder | Sort Order |
string | $sortfield | Sort field |
int | $limit | offset limit |
int | $offset | offset limit |
array | $filter | filter array |
string | $filtermode | filter mode (AND or OR) |
Definition at line 232 of file cgenericdic.class.php.
References dol_syslog().
CGenericDic::initAsSpecimen | ( | ) |
Initialise object with example values Id must be 0 if object instance is a specimen.
Definition at line 479 of file cgenericdic.class.php.
CGenericDic::update | ( | User | $user, |
$notrigger = false ) |
Update object into database.
User | $user | User that modifies |
bool | $notrigger | false=launch triggers after, true=disable triggers |
Definition at line 302 of file cgenericdic.class.php.
References dol_syslog().