// Normalize Validate class
This commit is contained in:
@@ -194,7 +194,7 @@ class StatsBestCategories extends ModuleGrid
|
||||
if (Validate::IsName($this->_sort))
|
||||
{
|
||||
$this->_query .= ' ORDER BY `'.$this->_sort.'`';
|
||||
if (isset($this->_direction) && Validate::IsSortDirection($this->_direction))
|
||||
if (isset($this->_direction) && Validate::isSortDirection($this->_direction))
|
||||
$this->_query .= ' '.$this->_direction;
|
||||
}
|
||||
if (($this->_start === 0 || Validate::IsUnsignedInt($this->_start)) && Validate::IsUnsignedInt($this->_limit))
|
||||
|
||||
@@ -153,7 +153,7 @@ class StatsBestCustomers extends ModuleGrid
|
||||
if (Validate::IsName($this->_sort))
|
||||
{
|
||||
$this->_query .= ' ORDER BY `'.$this->_sort.'`';
|
||||
if (isset($this->_direction) && Validate::IsSortDirection($this->_direction))
|
||||
if (isset($this->_direction) && Validate::isSortDirection($this->_direction))
|
||||
$this->_query .= ' '.$this->_direction;
|
||||
}
|
||||
if (($this->_start === 0 || Validate::IsUnsignedInt($this->_start)) && Validate::IsUnsignedInt($this->_limit))
|
||||
|
||||
@@ -141,7 +141,7 @@ class StatsBestManufacturers extends ModuleGrid
|
||||
if (Validate::IsName($this->_sort))
|
||||
{
|
||||
$this->_query .= ' ORDER BY `'.$this->_sort.'`';
|
||||
if (isset($this->_direction) && Validate::IsSortDirection($this->_direction))
|
||||
if (isset($this->_direction) && Validate::isSortDirection($this->_direction))
|
||||
$this->_query .= ' '.$this->_direction;
|
||||
}
|
||||
if (($this->_start === 0 || Validate::IsUnsignedInt($this->_start)) && Validate::IsUnsignedInt($this->_limit))
|
||||
|
||||
@@ -178,7 +178,7 @@ class StatsBestProducts extends ModuleGrid
|
||||
if (Validate::IsName($this->_sort))
|
||||
{
|
||||
$this->_query .= ' ORDER BY `'.$this->_sort.'`';
|
||||
if (isset($this->_direction) && Validate::IsSortDirection($this->_direction))
|
||||
if (isset($this->_direction) && Validate::isSortDirection($this->_direction))
|
||||
$this->_query .= ' '.$this->_direction;
|
||||
}
|
||||
|
||||
|
||||
@@ -142,7 +142,7 @@ class StatsBestSuppliers extends ModuleGrid
|
||||
if (Validate::IsName($this->_sort))
|
||||
{
|
||||
$this->_query .= ' ORDER BY `'.$this->_sort.'`';
|
||||
if (isset($this->_direction) && Validate::IsSortDirection($this->_direction))
|
||||
if (isset($this->_direction) && Validate::isSortDirection($this->_direction))
|
||||
$this->_query .= ' '.$this->_direction;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user