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

	var $name = 'Alb';
		var $displayField = 'albname'; 
	var $validate = array(
		'id' => VALID_NUMBER,
		'albname' => VALID_NOT_EMPTY,
		'user_id' => VALID_NOT_EMPTY,
	
	);

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

?>
Return current item: OSShare