// Format definitions
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11184 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -33,10 +33,6 @@ class TaxRulesGroupCore extends ObjectModel
|
||||
/** @var bool active state */
|
||||
public $active;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @see ObjectModel::$definition
|
||||
*/
|
||||
@@ -44,21 +40,13 @@ class TaxRulesGroupCore extends ObjectModel
|
||||
'table' => 'tax_rules_group',
|
||||
'primary' => 'id_tax_rules_group',
|
||||
'fields' => array(
|
||||
'name' => array('type' => 'FILL_ME', 'validate' => 'isGenericName', 'required' => true, 'size' => 64),
|
||||
'name' => array('type' => self::TYPE_STRING, 'validate' => 'isGenericName', 'required' => true, 'size' => 64),
|
||||
'active' => array('type' => self::TYPE_BOOL),
|
||||
),
|
||||
);
|
||||
|
||||
|
||||
protected static $_taxes = array();
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
$this->validateFields();
|
||||
$fields['name'] = ($this->name);
|
||||
$fields['active'] = (int)$this->active;
|
||||
return $fields;
|
||||
}
|
||||
|
||||
public static function getTaxRulesGroups($only_active = true)
|
||||
{
|
||||
return Db::getInstance()->executeS('
|
||||
|
||||
Reference in New Issue
Block a user