Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
16621 anikendra 1
<?php
2
App::uses('AppModel', 'Model');
3
/**
4
 * Appacl Model
5
 *
6
 * @property User $User
7
 */
8
class Appacl extends AppModel {
9
 
10
/**
11
 * Primary key field
12
 *
13
 * @var string
14
 */
15
	public $primaryKey = 'user_id';
16
 
17
/**
18
 * Validation rules
19
 *
20
 * @var array
21
 */
22
	public $validate = array(
23
		'user_id' => array(
24
			'numeric' => array(
25
				'rule' => array('numeric'),
26
				//'message' => 'Your custom message here',
27
				//'allowEmpty' => false,
28
				//'required' => false,
29
				//'last' => false, // Stop validation after this rule
30
				//'on' => 'create', // Limit validation to 'create' or 'update' operations
31
			),
32
		),
33
	);
34
 
35
	//The Associations below have been created with all possible keys, those that are not needed can be removed
36
 
37
/**
38
 * belongsTo associations
39
 *
40
 * @var array
41
 */
42
	public $belongsTo = array(
43
		'User' => array(
44
			'className' => 'User',
45
			'foreignKey' => 'user_id',
46
			'conditions' => '',
47
			'fields' => '',
48
			'order' => ''
49
		)
50
	);
51
}