dolibarr  18.0.0
Public Member Functions | List of all members
Dolistore Class Reference

Class Dolistore. More...

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...
 

Detailed Description

Class Dolistore.

Definition at line 28 of file dolistore.class.php.

Constructor & Destructor Documentation

◆ __construct()

Dolistore::__construct (   $debug = false)

Constructor.

Parameters
boolean$debugEnable debug of request on screen

Definition at line 58 of file dolistore.class.php.

Member Function Documentation

◆ get_categories()

Dolistore::get_categories (   $parent = 0)

Return tree of Dolistore categories.

$this->categories must have been loaded before.

Parameters
int$parentId of parent category
Returns
string

Definition at line 204 of file dolistore.class.php.

◆ get_next_link()

Dolistore::get_next_link (   $text = '>>')

get next link

Parameters
string$textsymbol next
Returns
string html next link

Definition at line 361 of file dolistore.class.php.

◆ get_next_url()

Dolistore::get_next_url ( )

get next url

Returns
string next url

Definition at line 397 of file dolistore.class.php.

References start.

◆ get_previous_link()

Dolistore::get_previous_link (   $text = '<<')

get previous link

Parameters
string$textsymbol previous
Returns
string html previous link

Definition at line 348 of file dolistore.class.php.

◆ get_previous_url()

Dolistore::get_previous_url ( )

get previous url

Returns
string previous url

Definition at line 373 of file dolistore.class.php.

References start.

◆ get_products()

Dolistore::get_products ( )

Return list of product formated for output.

Returns
string HTML output

Definition at line 250 of file dolistore.class.php.

◆ getRemoteCategories()

Dolistore::getRemoteCategories ( )

Load data from remote Dolistore market place.

This fills ->categories

Returns
void

Definition at line 81 of file dolistore.class.php.

◆ getRemoteProducts()

Dolistore::getRemoteProducts (   $options = array('start' => 0, 'end' => 10, 'per_page' => 50, 'categorie' => 0, 'search' => ''))

Load data from remote Dolistore market place.

This fills ->products

Parameters
array$optionsOptions. If 'categorie' is defined, we filter products on this category id
Returns
void

Definition at line 121 of file dolistore.class.php.

◆ version_compare()

Dolistore::version_compare (   $v1,
  $v2 
)

version compare

Parameters
string$v1version 1
string$v2version 2
Returns
int result of compare

Definition at line 423 of file dolistore.class.php.


The documentation for this class was generated from the following file: