// Format definitions

This commit is contained in:
rMalie
2011-12-13 13:41:54 +00:00
parent a40f3c304c
commit c022f4e0e5
71 changed files with 710 additions and 1791 deletions
+1 -13
View File
@@ -29,10 +29,6 @@ class SubDomainCore extends ObjectModel
{
public $name;
/**
* @see ObjectModel::$definition
*/
@@ -40,18 +36,10 @@ class SubDomainCore extends ObjectModel
'table' => 'subdomain',
'primary' => 'id_subdomain',
'fields' => array(
'name' => array('type' => 'FILL_ME', 'validate' => 'isSubDomainName', 'required' => true, 'size' => 16),
'name' => array('type' => self::TYPE_STRING, 'validate' => 'isSubDomainName', 'required' => true, 'size' => 16),
),
);
public function getFields()
{
$this->validateFields();
$fields['name'] = pSQL($this->name);
return $fields;
}
public static function getSubDomains()
{
if (!$result = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS('SELECT `name` FROM `'._DB_PREFIX_.'subdomain`'))