// 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
+3 -17
View File
@@ -36,10 +36,6 @@ class CountyCore extends ObjectModel
public $id_state;
public $active;
/**
* @see ObjectModel::$definition
*/
@@ -47,13 +43,12 @@ class CountyCore extends ObjectModel
'table' => 'county',
'primary' => 'id_county',
'fields' => array(
'name' => array('type' => 'FILL_ME', 'validate' => 'isGenericName', 'required' => true, 'size' => 64),
'id_state' => array('type' => 'FILL_ME', 'validate' => 'isUnsignedId'),
'active' => array('type' => 'FILL_ME', 'validate' => 'isBool'),
'name' => array('type' => self::TYPE_STRING, 'validate' => 'isGenericName', 'required' => true, 'size' => 64),
'id_state' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId'),
'active' => array('type' => self::TYPE_BOOL, 'validate' => 'isBool'),
),
);
private static $_cache_get_counties = array();
private static $_cache_county_zipcode = array();
@@ -67,15 +62,6 @@ class CountyCore extends ObjectModel
),
);
public function getFields()
{
$this->validateFields();
$fields['id_state'] = (int)($this->id_state);
$fields['name'] = pSQL($this->name);
$fields['active'] = (int)($this->active);
return $fields;
}
public function delete()
{
return true;