|
dolibarr
x.y.z
|
Public Member Functions | |
| __construct ($debug=false) | |
| Constructor. More... | |
| getRemoteCategories () | |
| Load data from remote Dolistore market place. More... | |
| getRemoteProducts ($options=array('start'=> 0, 'end'=> 10, 'per_page'=> 50, 'categorie'=> 0, 'search'=> '')) | |
| Load data from remote Dolistore market place. More... | |
| get_categories ($parent=0) | |
| Return tree of Dolistore categories. More... | |
| get_products () | |
| Return list of product formated for output. More... | |
| get_previous_link ($text='<<') | |
| get previous link More... | |
| get_next_link ($text='>>') | |
| get next link More... | |
| get_previous_url () | |
| get previous url More... | |
| get_next_url () | |
| get next url More... | |
| version_compare ($v1, $v2) | |
| version compare More... | |
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.
| Dolistore::get_next_link | ( | $text = '>>' | ) |
get next link
| string | $text | symbol next |
Definition at line 362 of file dolistore.class.php.
| Dolistore::get_next_url | ( | ) |
get next url
Definition at line 398 of file dolistore.class.php.
References start.
| Dolistore::get_previous_link | ( | $text = '<<' | ) |
get previous link
| string | $text | symbol previous |
Definition at line 349 of file dolistore.class.php.
| Dolistore::get_previous_url | ( | ) |
get previous url
Definition at line 374 of file dolistore.class.php.
References start.
| Dolistore::get_products | ( | ) |
Return list of product formated for output.
Definition at line 250 of file dolistore.class.php.
| Dolistore::getRemoteCategories | ( | ) |
Load data from remote Dolistore market place.
This fills ->categories
Definition at line 81 of file dolistore.class.php.
| 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.
| Dolistore::version_compare | ( | $v1, | |
| $v2 | |||
| ) |
version compare
| string | $v1 | version 1 |
| string | $v2 | version 2 |
Definition at line 424 of file dolistore.class.php.