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

Class Dolistore. More...

Public Member Functions

 __construct ($debug=false)
 Constructor. More...
 
 getRemoteData ($options=array('start'=> 0, 'end'=> 10, 'per_page'=> 50, 'categorie'=> 0))
 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 26 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 57 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 173 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 318 of file dolistore.class.php.

◆ get_next_url()

Dolistore::get_next_url ( )

get next url

Returns
string next url

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

◆ get_previous_link()

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

get previous link

Parameters
string$textsymbol previous
Returns
string html previous link

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

◆ get_previous_url()

Dolistore::get_previous_url ( )

get previous url

Returns
string previous url

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

◆ get_products()

Dolistore::get_products ( )

Return list of product formated for output.

Returns
string HTML output

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

◆ getRemoteData()

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

Load data from remote Dolistore market place.

This fills ->categories

Parameters
array$optionsOptions
Returns
void

Definition at line 80 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 380 of file dolistore.class.php.


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