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

	var $name = 'Rating';
	var $validate = array(
		'id' => VALID_NUMBER,
		'rating' => VALID_NUMBER,
		'video_id' => VALID_NUMBER,
		'user_id' => VALID_NUMBER,
	);

	//The Associations below have been created with all possible keys, those that are not needed can be removed
	var $belongsTo = array(
			'Video' => array('className' => 'Video',
								'foreignKey' => 'video_id',
								'conditions' => '',
								'fields' => '',
								'order' => '',
								'counterCache' => ''),
			'User' => array('className' => 'User',
								'foreignKey' => 'user_id',
								'conditions' => '',
								'fields' => '',
								'order' => '',
								'counterCache' => ''),
	);

}
?>
Return current item: OSShare