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

	var $name = 'Plsitem';
	var $validate = array(
		'id' => VALID_NUMBER,
		'pl_id' => VALID_NUMBER,
		'video_id' => VALID_NUMBER,
		'precedence' => VALID_NUMBER,
	
	);

	//The Associations below have been created with all possible keys, those that are not needed can be removed
	
		
	var $belongsTo = array(
		
			'Pl' => array('className' => 'Pl',
								'foreignKey' => 'pl_id',
								'conditions' => '',
								'fields' => '',
								'order' => '',
								'counterCache' => ''),
			'Video' => array('className' => 'Video',
								'foreignKey' => 'video_id',
								'conditions' => '',
								'fields' => '',
								'order' => '',
								'counterCache' => ''),
	);
}
?>
Return current item: OSShare