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

	var $name = 'Message';
	var $validate = array(
		'id' => VALID_NUMBER,
		'user_id' => VALID_NUMBER,
		'from' => VALID_NOT_EMPTY,
		'to' => VALID_NOT_EMPTY,
		'message' => VALID_NOT_EMPTY,
		'created' => 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' => ''),
						);
								
	
}

?>
Return current item: OSShare