// 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
+2 -14
View File
@@ -32,9 +32,6 @@ class PageCore extends ObjectModel
public $name;
/**
* @see ObjectModel::$definition
*/
@@ -42,20 +39,11 @@ class PageCore extends ObjectModel
'table' => 'page',
'primary' => 'id_page',
'fields' => array(
'id_page_type' => array('type' => 'FILL_ME', 'validate' => 'isUnsignedId', 'required' => true),
'id_object' => array('type' => 'FILL_ME', 'validate' => 'isUnsignedId'),
'id_page_type' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId', 'required' => true),
'id_object' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId'),
),
);
public function getFields()
{
$this->validateFields();
$fields['id_page_type'] = (int)($this->id_page_type);
$fields['id_object'] = (int)($this->id_object);
return $fields;
}
/**
* @return int Current page ID
*/