git-svn-id: file:///svn-source/pmgr/branches/initial_20090526/site@24 97e9348a-65ac-dc4b-aefc-98561f571b83
41 lines
889 B
PHP
41 lines
889 B
PHP
<?php
|
|
class Site extends AppModel {
|
|
|
|
var $name = 'Site';
|
|
var $validate = array(
|
|
'id' => array('numeric'),
|
|
'name' => array('notempty')
|
|
);
|
|
|
|
//The Associations below have been created with all possible keys, those that are not needed can be removed
|
|
var $hasMany = array(
|
|
'SiteArea' => array(
|
|
'className' => 'SiteArea',
|
|
'foreignKey' => 'site_id',
|
|
'dependent' => false,
|
|
'conditions' => '',
|
|
'fields' => '',
|
|
'order' => '',
|
|
'limit' => '',
|
|
'offset' => '',
|
|
'exclusive' => '',
|
|
'finderQuery' => '',
|
|
'counterQuery' => ''
|
|
),
|
|
'SiteOption' => array(
|
|
'className' => 'SiteOption',
|
|
'foreignKey' => 'site_id',
|
|
'dependent' => false,
|
|
'conditions' => '',
|
|
'fields' => '',
|
|
'order' => '',
|
|
'limit' => '',
|
|
'offset' => '',
|
|
'exclusive' => '',
|
|
'finderQuery' => '',
|
|
'counterQuery' => ''
|
|
)
|
|
);
|
|
|
|
}
|
|
?>
|