## Class TAuthorizationRuleCollection

Description

TAuthorizationRuleCollection class.

TAuthorizationRuleCollection represents a collection of authorization rules TAuthorizationRule. To check if a user is allowed, call isUserAllowed.

- since: 3.0
- version: $Id: TAuthorizationRule.php 1436 2006-09-23 01:51:57Z xue $
- author: Qiang Xue <qiang.xue@gmail.com>

Located in /Security/TAuthorizationRule.php (line 181)

    TComponent
       |
       --TList
          |
          --TAuthorizationRuleCollection

Method Summary
void insertAt (integer $index, mixed $item)
boolean isUserAllowed (IUser $user, string $verb)
Methods
insertAt (line 212)

Inserts an item at the specified position.

This overrides the parent implementation by performing additional operations for each newly added TAuthorizationRule object.

- access: public
- throws: TInvalidDataTypeException if the item to be inserted is not a TAuthorizationRule object.

void insertAt (integer $index, mixed $item)

- integer $index: the speicified position.
- mixed $item: new item

Redefinition of:

TList::insertAt()
  Inserts an item at the specified position.

isUserAllowed (line 188)

- return: whether the user is allowed
- access: public

boolean isUserAllowed (IUser $user, string $verb)

- IUser $user: the user to be authorized
- string $verb: verb, can be empty, 'post' or 'get'.

#### Inherited Methods

Inherited From TList

> TList::__construct()
> TList::add()
> TList::clear()
> TList::contains()
> TList::copyFrom()
> TList::count()
> TList::getCount()
> TList::getIterator()
> TList::getReadOnly()
> TList::indexOf()
> TList::insertAt()
> TList::itemAt()
> TList::mergeWith()
> TList::offsetExists()
> TList::offsetGet()
> TList::offsetSet()
> TList::offsetUnset()
> TList::remove()
> TList::removeAt()
> TList::setReadOnly()
> TList::toArray()

Inherited From TComponent

> TComponent::addParsedObject()
> TComponent::attachEventHandler()
> TComponent::canGetProperty()
> TComponent::canSetProperty()
> TComponent::createdOnTemplate()
> TComponent::detachEventHandler()
> TComponent::evaluateExpression()
> TComponent::evaluateStatements()
> TComponent::getEventHandlers()
> TComponent::getSubProperty()
> TComponent::hasEvent()
> TComponent::hasEventHandler()
> TComponent::hasProperty()
> TComponent::raiseEvent()
> TComponent::setSubProperty()
> TComponent::__get()
> TComponent::__set()

Documentation generated on Sun, 14 Jan 2007 21:41:08 -0500 by phpDocumentor 1.3.0RC4