public function getActionsByResource($resource)
    {
        if (!isset($this->resources[$resource])) {
            return null; // no resource found
        }

        $actions = array();
        foreach ($this->resources[$resource] as $action => $path) {
            $actions[] = $action;
        }

        return $actions;
    }
public function getActionsByResource($resource)
    {
        if (!isset($this->resources[$resource])) {
            return null; // no resource found
        }

        $actions = array();
        foreach ($this->resources[$resource] as $action => $path) {
            $actions[] = $action;
        }

        return $actions;
    }
public function getActionsByResource ( $ resource ) { if ( ! isset ( $ this -> resources [ $ resource ] ) ) { return null ; // no resource found } $ actions = array ( ) ; foreach ( $ this -> resources [ $ resource ] as $ action => $ path ) { $ actions [ ] = $ action ; } return $ actions ; }
Retrieve actions of a resource
@param  string $resource Resource name
@return array|null
Retrieve actions of a resource