dolibarr 21.0.0-alpha
|
Class Ctyperesource. More...
Public Member Functions | |
__construct (DoliDB $db) | |
Constructor. | |
create (User $user, $notrigger=0) | |
Create object into database. | |
fetch ($id, $code='', $label='') | |
Load object in memory from the database. | |
fetchAll ($sortorder='', $sortfield='', $limit=0, $offset=0, $filter='', $filtermode='AND') | |
Load object in memory from the database. | |
update (User $user, $notrigger=0) | |
Update object into database. | |
delete (User $user, $notrigger=0) | |
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 Ctyperesource.
Definition at line 35 of file ctyperesource.class.php.
Ctyperesource::__construct | ( | DoliDB | $db | ) |
Constructor.
Definition at line 58 of file ctyperesource.class.php.
Ctyperesource::create | ( | User | $user, |
$notrigger = 0 ) |
Create object into database.
Definition at line 70 of file ctyperesource.class.php.
References dol_syslog().
Ctyperesource::createFromClone | ( | User | $user, |
$fromid ) |
Load an object from its id and create a new one in database.
Definition at line 405 of file ctyperesource.class.php.
References $object, and dol_syslog().
Ctyperesource::delete | ( | User | $user, |
$notrigger = 0 ) |
Delete object in database.
Definition at line 354 of file ctyperesource.class.php.
References dol_syslog().
Ctyperesource::fetch | ( | $id, | |
$code = '', | |||
$label = '' ) |
Load object in memory from the database.
int | $id | Id object |
string | $code | code |
string | $label | Label |
Definition at line 143 of file ctyperesource.class.php.
References dol_syslog().
Ctyperesource::fetchAll | ( | $sortorder = '', | |
$sortfield = '', | |||
$limit = 0, | |||
$offset = 0, | |||
$filter = '', | |||
$filtermode = 'AND' ) |
Load object in memory from the database.
string | $sortorder | Sort Order |
string | $sortfield | Sort field |
int | $limit | Limit |
int | $offset | Offset limit |
string|array<string,mixed> | $filter Filter array | |
string | $filtermode | filter mode (AND or OR) |
Definition at line 206 of file ctyperesource.class.php.
References dol_syslog(), and forgeSQLFromUniversalSearchCriteria().
Ctyperesource::initAsSpecimen | ( | ) |
Initialise object with example values Id must be 0 if object instance is a specimen.
Definition at line 453 of file ctyperesource.class.php.
Ctyperesource::update | ( | User | $user, |
$notrigger = 0 ) |
Update object into database.
Definition at line 288 of file ctyperesource.class.php.
References dol_syslog().