<?php
/**
* KumbiaPHP web & app Framework
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://wiki.kumbiaphp.com/Licencia
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to hide@address.com so we can send you a copy immediately.
*
* Esta clase define los roles y parametros
* de cada uno
*
* @category Kumbia
* @package Acl
* @subpackage AclRole
* @copyright Copyright (c) 2005-2009 Kumbia Team (http://www.kumbiaphp.com)
* @license http://wiki.kumbiaphp.com/Licencia New BSD License
*/
class AclRole
{
/**
* Nombre del Rol
*
* @var string
*/
public $name;
/**
* Constructor de la clase Rol
*
* @param string $name
* @return Acl_Role
*/
function __construct ($name)
{
if ($name == '*') {
throw new KumbiaException('Nombre invalido "*" para nombre de Rol en Acl_Role::__constuct');
}
$this->name = $name;
}
/**
* Impide que le cambien el nombre al Rol en el Objeto
*
* @param string $name
* @param string $value
*/
function __set ($name, $value)
{
if ($name != 'name') {
$this->$name = $value;
}
}
}