Hoa central
Public Member Functions | Protected Attributes | List of all members
Hoa\Acl\Permission Class Reference

Public Member Functions

 __construct ($id, $label=null)
 
 setId ($id)
 
 setLabel ($label)
 
 getId ()
 
 getLabel ()
 

Protected Attributes

 $permissionId = null
 
 $permissionLabel = null
 

Detailed Description

Class .

Describe a permission profil.

Definition at line 47 of file Permission.php.

Constructor & Destructor Documentation

Hoa\Acl\Permission::__construct (   $id,
  $label = null 
)

Built a new permission.

Parameters
mixed$idThe permission ID.
string$labelThe permission label.
Returns
void

Definition at line 72 of file Permission.php.

73  {
74  $this->setId($id);
75  $this->setLabel($label);
76 
77  return;
78  }

Here is the call graph for this function:

Member Function Documentation

Hoa\Acl\Permission::getId ( )

Get permission ID.

Returns
mixed

Definition at line 113 of file Permission.php.

114  {
115  return $this->permissionId;
116  }
Hoa\Acl\Permission::getLabel ( )

Get permission label.

Returns
mixed

Definition at line 123 of file Permission.php.

124  {
125  return $this->permissionLabel;
126  }
Hoa\Acl\Permission::setId (   $id)

Set permission ID.

Parameters
mixed$idThe permission ID.
Returns
mixed

Definition at line 86 of file Permission.php.

87  {
88  $old = $this->permissionId;
89  $this->permissionId = $id;
90 
91  return $old;
92  }

Here is the caller graph for this function:

Hoa\Acl\Permission::setLabel (   $label)

Set permission label.

Parameters
string$labelThe permission label.
Returns
string

Definition at line 100 of file Permission.php.

101  {
102  $old = $this->permissionLabel;
103  $this->permissionLabel = $label;
104 
105  return $old;
106  }

Here is the caller graph for this function:

Member Data Documentation

Hoa\Acl\Permission::$permissionId = null
protected

Definition at line 54 of file Permission.php.

Hoa\Acl\Permission::$permissionLabel = null
protected

Definition at line 61 of file Permission.php.


The documentation for this class was generated from the following file: