// Format definitions

This commit is contained in:
rMalie
2011-12-13 13:41:54 +00:00
parent d189fd8ed0
commit 1506dc39b3
71 changed files with 710 additions and 1791 deletions
+1 -12
View File
@@ -29,9 +29,6 @@ class ThemeCore extends ObjectModel
{
public $name;
/**
* @see ObjectModel::$definition
*/
@@ -39,18 +36,10 @@ class ThemeCore extends ObjectModel
'table' => 'theme',
'primary' => 'id_theme',
'fields' => array(
'name' => array('type' => 'FILL_ME', 'validate' => 'isGenericName', 'size' => 64),
'name' => array('type' => self::TYPE_STRING, 'validate' => 'isGenericName', 'size' => 64),
),
);
public function getFields()
{
$this->validateFields();
$fields['name'] = pSQL($this->name);
return $fields;
}
public static function getThemes()
{
$sql = 'SELECT *