dolibarr 19.0.4
|
Public Member Functions | |
__construct ($debug=false) | |
Constructor. | |
getRemoteCategories () | |
Load data from remote Dolistore market place. | |
getRemoteProducts ($options=array('start'=> 0, 'end'=> 10, 'per_page'=> 50, 'categorie'=> 0, 'search'=> '')) | |
Load data from remote Dolistore market place. | |
get_categories ($parent=0) | |
Return tree of Dolistore categories. | |
get_products () | |
Return list of product formated for output. | |
get_previous_link ($text='<<') | |
get previous link | |
get_next_link ($text='> >') | |
get next link | |
get_previous_url () | |
get previous url | |
get_next_url () | |
get next url | |
version_compare ($v1, $v2) | |
version compare | |
Class Dolistore.
Definition at line 28 of file dolistore.class.php.
Dolistore::__construct | ( | $debug = false | ) |
Constructor.
boolean | $debug | Enable debug of request on screen |
Definition at line 61 of file dolistore.class.php.
Dolistore::get_categories | ( | $parent = 0 | ) |
Return tree of Dolistore categories.
$this->categories must have been loaded before.
int | $parent | Id of parent category |
Definition at line 207 of file dolistore.class.php.
References dol_escape_htmltag(), and get_categories().
Referenced by get_categories().
Dolistore::get_next_link | ( | $text = '>>' | ) |
get next link
string | $text | symbol next |
Definition at line 364 of file dolistore.class.php.
References dol_escape_htmltag().
Dolistore::get_next_url | ( | ) |
Dolistore::get_previous_link | ( | $text = '<<' | ) |
get previous link
string | $text | symbol previous |
Definition at line 351 of file dolistore.class.php.
References dol_escape_htmltag().
Dolistore::get_previous_url | ( | ) |
Dolistore::get_products | ( | ) |
Return list of product formated for output.
Definition at line 253 of file dolistore.class.php.
References dol_escape_htmltag(), dol_stringtotime(), price2num(), and version_compare().
Dolistore::getRemoteCategories | ( | ) |
Load data from remote Dolistore market place.
This fills ->categories
Definition at line 84 of file dolistore.class.php.
References dol_syslog(), and getDolGlobalString().
Dolistore::getRemoteProducts | ( | $options = array('start' => 0, 'end' => 10, 'per_page' => 50, 'categorie' => 0, 'search' => '') | ) |
Load data from remote Dolistore market place.
This fills ->products
array | $options | Options. If 'categorie' is defined, we filter products on this category id |
Definition at line 124 of file dolistore.class.php.
References dol_syslog(), and getDolGlobalString().
Dolistore::version_compare | ( | $v1, | |
$v2 ) |
version compare
string | $v1 | version 1 |
string | $v2 | version 2 |
Definition at line 426 of file dolistore.class.php.
Referenced by get_products().