dolibarr
x.y.z
|
Class to manage payment terms records in dictionary. More...
Public Member Functions | |
__construct (DoliDB $db) | |
Constructor. More... | |
create ($user, $notrigger=0) | |
Create in database. More... | |
fetch ($id, $code='') | |
Load object in memory from database. More... | |
getDefaultId () | |
Return id of default payment term. More... | |
update ($user=null, $notrigger=0) | |
Update database. More... | |
delete ($user, $notrigger=0) | |
Delete object in database. More... | |
createFromClone (User $user, $fromid) | |
Load an object from its id and create a new one in database. More... | |
initAsSpecimen () | |
Initialise an instance with random values. More... | |
Class to manage payment terms records in dictionary.
Definition at line 28 of file paymentterm.class.php.
PaymentTerm::__construct | ( | DoliDB | $db | ) |
PaymentTerm::create | ( | $user, | |
$notrigger = 0 |
|||
) |
Create in database.
Definition at line 84 of file paymentterm.class.php.
PaymentTerm::createFromClone | ( | User | $user, |
$fromid | |||
) |
Load an object from its id and create a new one in database.
Definition at line 393 of file paymentterm.class.php.
PaymentTerm::delete | ( | $user, | |
$notrigger = 0 |
|||
) |
Delete object in database.
Definition at line 353 of file paymentterm.class.php.
PaymentTerm::fetch | ( | $id, | |
$code = '' |
|||
) |
Load object in memory from database.
int | $id | Id object |
string | $code | Code object |
Definition at line 178 of file paymentterm.class.php.
PaymentTerm::getDefaultId | ( | ) |
Return id of default payment term.
Definition at line 235 of file paymentterm.class.php.
PaymentTerm::initAsSpecimen | ( | ) |
Initialise an instance with random values.
Used to build previews or test instances. id must be 0 if object instance is a specimen.
Definition at line 439 of file paymentterm.class.php.
References code.
PaymentTerm::update | ( | $user = null , |
|
$notrigger = 0 |
|||
) |
Update database.
Definition at line 272 of file paymentterm.class.php.