Jarves\ACL::getItem PHP Method

getItem() public method

Returns the acl infos for the specified id
public getItem ( string $object, integer $code ) : array
$object string
$code integer
return array
    public function &getItem($object, $code)
    {
        self::normalizeCode($code);
        $acls = self::getRules($object);
        foreach ($acls as $item) {
            $code2 = str_replace('%', '', $item['code']);
            $t = explode('[', $code2);
            $code2 = $t[0];
            self::normalizeCode($code2);
            if ($code2 === $code) {
                return $item;
            }
        }
        return false;
    }