modules/auth/models/Roles.phpView Source

Show: PublicProtectedPrivateinherited
Table of Contents
Package
Default  

\Auth_Model_Roles

Package: Auth\Models
Auth_Model_Roles
Parent(s)
\Zend_Db_Table_Abstract
Author
Alexander  
Version
$Id$  

Properties

>VPropertyprotected$_dependentTables = array('Users', 'Permissions')
Default valuearray('Users', 'Permissions')Details
Type
n/a
>VPropertyprotected$_name = 'roles'
Default value'roles'Details
Type
n/a
>VPropertyprotected$_primary = 'id'
Default value'id'Details
Type
n/a

Methods

methodpublicgetParentRole(integer $role) : integer | boolean

Get parent role info

Parameters
NameTypeDescription
$roleinteger
Returns
TypeDescription
integer | boolean
methodpublicgetRole(integer $id_role) : Object

Get role info by id

Parameters
NameTypeDescription
$id_roleinteger
Returns
TypeDescription
Object
methodpublicgetRoles(string $where = null) : object

Get all roles

Parameters
NameTypeDescription
$wherestring
Returns
TypeDescription
object
Documentation was generated by phpDocumentor 2.8.5.