// Format definitions
This commit is contained in:
+1
-13
@@ -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`'))
|
||||
|
||||
Reference in New Issue
Block a user