Location: PHPKode > projects > OSShare > osshare-project-v1.0.1/app/models/category.php
<?php
/*
OsShare v1 , 
Coded By Paimpozhil B. , SaravanaKumar M.S.
*/
class Category extends AppModel {

	var $name = 'Category';
	var $validate = array(
		'id' => VALID_NUMBER,
		'name' => VALID_NOT_EMPTY,
		'public' => VALID_NUMBER,
	);

	//The Associations below have been created with all possible keys, those that are not needed can be removed
	var $hasMany = array(
			'Video' => array('className' => 'Video',
								'foreignKey' => 'category_id',
								'conditions' => '',
								'fields' => '',
								'order' => '',
								'limit' => '',
								'offset' => '',
								'dependent' => '',
								'exclusive' => '',
								'finderQuery' => '',
								'counterQuery' => ''),
			'Picture' => array('className' => 'Picture',
								'foreignKey' => 'category_id',
								'conditions' => '',
								'fields' => '',
								'order' => '',
								'limit' => '',
								'offset' => '',
								'dependent' => '',
								'exclusive' => '',
								'finderQuery' => '',
								'counterQuery' => '')
	);

}
?>
Return current item: OSShare