// Normalize Validate class

This commit is contained in:
rMalie
2012-01-23 14:03:51 +00:00
parent 4fdae718ed
commit 3c395ccefa
7 changed files with 427 additions and 412 deletions
@@ -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;
}