40 lines
816 B
PHP
40 lines
816 B
PHP
<?php defined('SYSPATH') or die('No direct access allowed.');
|
|
|
|
/**
|
|
* @package lnApp
|
|
* @subpackage Auth
|
|
* @category Models
|
|
* @author Deon George
|
|
* @copyright (c) 2010 Deon George
|
|
* @license http://dev.leenooks.net/license.html
|
|
*/
|
|
class Model_Group extends Model_Auth_RoleDefault {
|
|
protected $_object_formated = array();
|
|
|
|
// Relationships
|
|
protected $_has_many = array(
|
|
'account'=>array('through'=>'account_group'),
|
|
);
|
|
|
|
protected $_sorting = array(
|
|
'name'=>'ASC',
|
|
);
|
|
|
|
protected $_formats = array(
|
|
'status'=>array('StaticList_YesNo::display'=>array()),
|
|
);
|
|
|
|
// Validation rules
|
|
protected $_rules = array(
|
|
'name' => array(
|
|
'not_empty' => NULL,
|
|
'min_length' => array(4),
|
|
'max_length' => array(32),
|
|
),
|
|
'description' => array(
|
|
'max_length' => array(255),
|
|
),
|
|
);
|
|
}
|
|
?>
|