Location: PHPKode > projects > Auto TV to Sabnzbd > autoTvToSab/modules/auth/classes/model/auth/role.php
<?php defined('SYSPATH') or die('No direct access allowed.');

class Model_Auth_Role extends ORM {

	// Relationships
	protected $_has_many = array('users' => array('through' => 'roles_users'));

	// Validation rules
	protected $_rules = array(
		'name' => array(
			'not_empty'  => NULL,
			'min_length' => array(4),
			'max_length' => array(32),
		),
		'description' => array(
			'max_length' => array(255),
		),
	);

} // End Auth Role Model
Return current item: Auto TV to Sabnzbd