public function setAllow($allow)
    {
        if (!is_array($allow)) {
            $allow = array($allow);
        }

        // Update ACL properties
        foreach ($allow as $verb) {
            $this->getAcl()->addPermission(
                $this->verbToOperation($verb)
            );
        }

        $this->allow = $allow;
    }
public function setAllow($allow)
    {
        if (!is_array($allow)) {
            $allow = array($allow);
        }

        // Update ACL properties
        foreach ($allow as $verb) {
            $this->getAcl()->addPermission(
                $this->verbToOperation($verb)
            );
        }

        $this->allow = $allow;
    }
public function setAllow ( $ allow ) { if ( ! is_array ( $ allow ) ) { $ allow = array ( $ allow ) ; } // Update ACL properties foreach ( $ allow as $ verb ) { $ this -> getAcl ( ) -> addPermission ( $ this -> verbToOperation ( $ verb ) ) ; } $ this -> allow = $ allow ; }
Setter for allowed HTTP verbs

@param string|array $allow A single HTTP verb or a collection of multiple entries

@author Benjamin Carl <opensource@clickalicious.de>
@return void
@access public
Setter for allowed HTTP verbs