mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-01-02 23:22:32 +01:00
function Comment Missing
This commit is contained in:
@@ -25,9 +25,18 @@ include_once DOL_DOCUMENT_ROOT.'/admin/dolistore/class/PSWebServiceLibrary.class
|
||||
*/
|
||||
class Dolistore
|
||||
{
|
||||
// params
|
||||
public $start; // beginning of pagination
|
||||
public $end; // end of pagination
|
||||
/**
|
||||
* beginning of pagination
|
||||
* @var int
|
||||
*/
|
||||
|
||||
public $start;
|
||||
/**
|
||||
* end of pagination
|
||||
* @var int
|
||||
*/
|
||||
public $end;
|
||||
|
||||
public $per_page; // pagination: display per page
|
||||
public $categorie; // the current categorie
|
||||
public $search; // the search keywords
|
||||
@@ -282,16 +291,33 @@ class Dolistore
|
||||
return $html;
|
||||
}
|
||||
|
||||
/**
|
||||
* get previous link
|
||||
*
|
||||
* @param string $text symbol previous
|
||||
* @return string html previous link
|
||||
*/
|
||||
function get_previous_link($text = '<<')
|
||||
{
|
||||
return '<a href="'.$this->get_previous_url().'" class="button">'.$text.'</a>';
|
||||
}
|
||||
|
||||
/**
|
||||
* get next link
|
||||
*
|
||||
* @param string $text symbol next
|
||||
* @return string html next link
|
||||
*/
|
||||
function get_next_link($text = '>>')
|
||||
{
|
||||
return '<a href="'.$this->get_next_url().'" class="button">'.$text.'</a>';
|
||||
}
|
||||
|
||||
/**
|
||||
* get previous url
|
||||
*
|
||||
* @return string previous url
|
||||
*/
|
||||
function get_previous_url()
|
||||
{
|
||||
$param_array = array();
|
||||
@@ -309,6 +335,11 @@ class Dolistore
|
||||
return $this->url."&".$param;
|
||||
}
|
||||
|
||||
/**
|
||||
* get next url
|
||||
*
|
||||
* @return string next url
|
||||
*/
|
||||
function get_next_url()
|
||||
{
|
||||
$param_array = array();
|
||||
@@ -326,6 +357,13 @@ class Dolistore
|
||||
return $this->url."&".$param;
|
||||
}
|
||||
|
||||
/**
|
||||
* version compare
|
||||
*
|
||||
* @param string $v1 version 1
|
||||
* @param string $v2 version 2
|
||||
* @return int result of compare
|
||||
*/
|
||||
function version_compare($v1, $v2)
|
||||
{
|
||||
$v1 = explode('.', $v1);
|
||||
@@ -355,4 +393,3 @@ class Dolistore
|
||||
return $ret;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -52,6 +52,12 @@ if (!$mode) $mode='config';
|
||||
|
||||
// used in library escpos maybe useful if php doesn't support gzdecode
|
||||
if (!function_exists('gzdecode')) {
|
||||
/**
|
||||
* Gzdecode
|
||||
*
|
||||
* @param string $data data to deflate
|
||||
* @return string data deflated
|
||||
*/
|
||||
function gzdecode($data)
|
||||
{
|
||||
return gzinflate(substr($data,10,-8));
|
||||
@@ -450,4 +456,3 @@ if ($mode == 'template' && $user->admin)
|
||||
// End of page
|
||||
llxFooter();
|
||||
$db->close();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user