cmc-sales/php/app/models/group.php

32 lines
680 B
PHP
Raw Normal View History

<?php
class Group extends AppModel {
var $name = 'Group';
var $validate = array(
'name' => array('alphanumeric')
);
//The Associations below have been created with all possible keys, those that are not needed can be removed
var $hasMany = array(
'User' => array('className' => 'User',
'foreignKey' => 'group_id',
'dependent' => false,
'conditions' => '',
'fields' => '',
'order' => '',
'limit' => '',
'offset' => '',
'exclusive' => '',
'finderQuery' => '',
'counterQuery' => ''
)
);
var $actsAs = array('Acl' => array('requester'));
function parentNode() {
return null;
}
}
?>