public function addPermission($action)
    {
        // Check if permission is already added
        if ($this->hasPermission($action) === false) {
            //
            $this->setPermissions(
                $this->getPermissions() + $this->getKey($action)
            );
        }

        // Chaining API
        return $this;
    }
public function addPermission($action)
    {
        // Check if permission is already added
        if ($this->hasPermission($action) === false) {
            //
            $this->setPermissions(
                $this->getPermissions() + $this->getKey($action)
            );
        }

        // Chaining API
        return $this;
    }
public function addPermission ( $ action ) { // Check if permission is already added if ( $ this -> hasPermission ( $ action ) === false ) { // $ this -> setPermissions ( $ this -> getPermissions ( ) + $ this -> getKey ( $ action ) ) ; } // Chaining API return $ this ; }
Adds an action to the bitmask property when generating a new permissions code.

@param string $action The action that should be allowed.

@author Benjamin Carl <opensource@clickalicious.de>
@return Doozr_Acl_Service The current instance for chaining
@access public
Adds an action to the bitmask property when generating a new permissions code .