|
dolibarr
x.y.z
|
Class to manage dictionary Countries (used by imports) More...
Public Member Functions | |
| __construct ($db) | |
| Constructor. More... | |
| create ($user, $notrigger=0) | |
| Create object into database. More... | |
| fetch ($id, $code='', $code_iso='') | |
| Load object in memory from database. More... | |
| update ($user=null, $notrigger=0) | |
| Update object into database. More... | |
| delete ($user, $notrigger=0) | |
| Delete object in database. More... | |
| getNomUrl ($withpicto=0, $option='', $notooltip=0, $morecss='', $save_lastsearch_value=-1) | |
| Return a link to the object card (with optionaly the picto) More... | |
Public Attributes | |
| $element = 'ccountry' | |
| Id that identify managed objects. | |
| $table_element = 'c_country' | |
| Name of table without prefix where object is stored. | |
Class to manage dictionary Countries (used by imports)
Definition at line 33 of file ccountry.class.php.
| Ccountry::__construct | ( | $db | ) |
Constructor.
| DoliDb | $db | Database handler |
Definition at line 78 of file ccountry.class.php.
References db.
| Ccountry::create | ( | $user, | |
$notrigger = 0 |
|||
| ) |
Create object into database.
Definition at line 91 of file ccountry.class.php.
| Ccountry::delete | ( | $user, | |
$notrigger = 0 |
|||
| ) |
Delete object in database.
Definition at line 276 of file ccountry.class.php.
| Ccountry::fetch | ( | $id, | |
$code = '', |
|||
$code_iso = '' |
|||
| ) |
Load object in memory from database.
| int | $id | Id object |
| string | $code | Code |
| string | $code_iso | Code ISO |
Definition at line 164 of file ccountry.class.php.
| Ccountry::getNomUrl | ( | $withpicto = 0, |
|
$option = '', |
|||
$notooltip = 0, |
|||
$morecss = '', |
|||
$save_lastsearch_value = -1 |
|||
| ) |
Return a link to the object card (with optionaly 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 317 of file ccountry.class.php.
| Ccountry::update | ( | $user = null, |
|
$notrigger = 0 |
|||
| ) |
Update object into database.
Definition at line 214 of file ccountry.class.php.