dolibarr 18.0.6
|
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 58 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 204 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 361 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 348 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 250 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 81 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 121 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 423 of file dolistore.class.php.
Referenced by get_products().