dolibarr 21.0.0-alpha
|
Class to manage dictionary Regions. More...
Public Member Functions | |
__construct ($db) | |
Constructor. | |
create ($user, $notrigger=0) | |
Create object into database. | |
fetch ($id, $code_region=0, $fk_pays=0) | |
Load object in memory from database. | |
update ($user=null, $notrigger=0) | |
Update object into database. | |
delete ($user, $notrigger=0) | |
Delete object in database. | |
getNomUrl ($withpicto=0, $option='', $notooltip=0, $morecss='', $save_lastsearch_value=-1) | |
Return a link to the object card (with optionally the picto) | |
Class to manage dictionary Regions.
Definition at line 33 of file cregion.class.php.
Cregion::__construct | ( | $db | ) |
Cregion::create | ( | $user, | |
$notrigger = 0 ) |
Create object into database.
Definition at line 79 of file cregion.class.php.
References dol_syslog(), and name.
Cregion::delete | ( | $user, | |
$notrigger = 0 ) |
Delete object in database.
Definition at line 275 of file cregion.class.php.
References dol_syslog().
Cregion::fetch | ( | $id, | |
$code_region = 0, | |||
$fk_pays = 0 ) |
Load object in memory from database.
int | $id | Id object |
int | $code_region | Code |
int | $fk_pays | Country Id |
Definition at line 157 of file cregion.class.php.
References dol_syslog(), and name.
Cregion::getNomUrl | ( | $withpicto = 0, | |
$option = '', | |||
$notooltip = 0, | |||
$morecss = '', | |||
$save_lastsearch_value = -1 ) |
Return a link to the object card (with optionally the picto)
int | $withpicto | Include picto in link (0=No picto, 1=Include picto into link, 2=Only picto) |
string | $option | On what the link point to ('nolink', ...) |
int | $notooltip | 1=Disable tooltip |
string | $morecss | Add more css on link |
int | $save_lastsearch_value | -1=Auto, 0=No save of lastsearch_values when clicking, 1=Save lastsearch_values whenclicking |
Definition at line 316 of file cregion.class.php.
References name.
Cregion::update | ( | $user = null, | |
$notrigger = 0 ) |
Update object into database.
Definition at line 209 of file cregion.class.php.
References dol_syslog(), and name.