Server IP : 180.180.241.3 / Your IP : 216.73.216.194 Web Server : Microsoft-IIS/7.5 System : Windows NT NETWORK-NHRC 6.1 build 7601 (Windows Server 2008 R2 Standard Edition Service Pack 1) i586 User : IUSR ( 0) PHP Version : 5.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/AppServ/www/app/Model/ |
Upload File : |
<?php App::uses('AppModel', 'Model'); /** * Person Model * * @property Organization $Organization * @property Member $Member * @property District $District * @property Action $Action * @property Activity $Activity * @property Offer $Offer * @property Subtopic $Subtopic * @property Target $Target * @property Type $Type */ class Person extends AppModel { /** * Display field * * @var string */ public $displayField = 'name'; //The Associations below have been created with all possible keys, those that are not needed can be removed /** * belongsTo associations * * @var array */ public $belongsTo = array( 'Organization' => array( 'className' => 'Organization', 'foreignKey' => 'organization_id', 'conditions' => '', 'fields' => '', 'order' => '' ), // 'Position' => array( // 'className' => 'Position', // 'foreignKey' => 'position_id', // 'conditions' => '', // 'fields' => '', // 'order' => '' // ), 'District' => array( 'className' => 'District', 'foreignKey' => 'district_id', 'conditions' => '', 'fields' => '', 'order' => '' ), 'Role' => array( 'className' => 'Role', 'foreignKey' => 'role_id', 'conditions' => '', 'fields' => '', 'order' => '' ), ); public $hasMany = array( 'Photo' => array( 'className' => 'Photo', 'foreignKey' => 'fk_id', 'conditions' => array( 'Photo.model' => 'person' ), 'fields' => '', 'order' => '' ), 'PeopleMembership' => array( 'className' => 'PeopleMembership', 'foreignKey' => 'person_id', 'dependent' => false, 'conditions' => '', 'fields' => '', 'order' => '', 'limit' => '', 'offset' => '', 'exclusive' => '', 'finderQuery' => '', 'counterQuery' => '' ), 'PersonProvinceWide'=> array( 'className' => 'PersonProvinceWide', 'foreignKey' => 'person_id', 'dependent' => false, 'conditions' => '', 'fields' => '', 'order' => '', 'limit' => '', 'offset' => '', 'exclusive' => '', 'finderQuery' => '', 'counterQuery' => '' ), 'PeoplePosition' => array( 'className' => 'PeoplePosition', 'foreignKey' => 'person_id', 'dependent' => false, 'conditions' => '', 'fields' => '', 'order' => '', 'limit' => '', 'offset' => '', 'exclusive' => '', 'finderQuery' => '', 'counterQuery' => '' ), ); /** * hasAndBelongsToMany associations * * @var array */ public $hasAndBelongsToMany = array( 'Action' => array( 'className' => 'Action', 'joinTable' => 'actions_people', 'foreignKey' => 'person_id', 'associationForeignKey' => 'action_id', 'unique' => 'keepExisting', 'conditions' => '', 'fields' => '', 'order' => '', 'limit' => '', 'offset' => '', 'finderQuery' => '', ), 'Activity' => array( 'className' => 'Activity', 'joinTable' => 'activities_people', 'foreignKey' => 'person_id', 'associationForeignKey' => 'activity_id', 'unique' => 'keepExisting', 'conditions' => '', 'fields' => '', 'order' => '', 'limit' => '', 'offset' => '', 'finderQuery' => '', ), 'Offer' => array( 'className' => 'Offer', 'joinTable' => 'offers_people', 'foreignKey' => 'person_id', 'associationForeignKey' => 'offer_id', 'unique' => 'keepExisting', 'conditions' => '', 'fields' => '', 'order' => '', 'limit' => '', 'offset' => '', 'finderQuery' => '', ), 'Subtopic' => array( 'className' => 'Subtopic', 'joinTable' => 'people_subtopics', 'foreignKey' => 'person_id', 'associationForeignKey' => 'subtopic_id', 'unique' => 'keepExisting', 'conditions' => '', 'fields' => '', 'order' => '', 'limit' => '', 'offset' => '', 'finderQuery' => '', ), 'Target' => array( 'className' => 'Target', 'joinTable' => 'people_targets', 'foreignKey' => 'person_id', 'associationForeignKey' => 'target_id', 'unique' => 'keepExisting', 'conditions' => '', 'fields' => '', 'order' => '', 'limit' => '', 'offset' => '', 'finderQuery' => '', ), // 'Type' => array( // 'className' => 'Type', // 'joinTable' => 'people_types', // 'foreignKey' => 'person_id', // 'associationForeignKey' => 'type_id', // 'unique' => 'keepExisting', // 'conditions' => '', // 'fields' => '', // 'order' => '', // 'limit' => '', // 'offset' => '', // 'finderQuery' => '', // ), 'DistrictM2M' => array( 'className' => 'District', 'joinTable' => 'districts_people', 'foreignKey' => 'person_id', 'associationForeignKey' => 'district_id', 'unique' => 'keepExisting', 'conditions' => '', 'fields' => '', 'order' => '', 'limit' => '', 'offset' => '', 'finderQuery' => '', ), ); }