src/ACL/ACL.php
public function loadByACLID($id)
    {
        $parts = explode("#", $id);
        if (count($parts) !== 2)
            throw new Exception("Invalid DAO ID: {$id}");
    
        if (!isset($this->classes[$parts[0]]))
            throw new Exception("Invalid DAO type: {$parts[0]}");
    
        $classname = $this->classes[$parts[0]];
        $pkey_values = explode("-", $parts[1]);

        $db = DB::getInstance();
        $dao = $db->getDAO($classname);
    
        return call_user_func(array($dao, "get"), $pkey_values);
    }
public function loadByACLID($id)
    {
        $parts = explode("#", $id);
        if (count($parts) !== 2)
            throw new Exception("Invalid DAO ID: {$id}");
    
        if (!isset($this->classes[$parts[0]]))
            throw new Exception("Invalid DAO type: {$parts[0]}");
    
        $classname = $this->classes[$parts[0]];
        $pkey_values = explode("-", $parts[1]);

        $db = DB::getInstance();
        $dao = $db->getDAO($classname);
    
        return call_user_func(array($dao, "get"), $pkey_values);
    }
public function loadByACLID ( $ id ) { $ parts = explode ( "#" , $ id ) ; if ( count ( $ parts ) !== 2 ) throw new Exception ( "Invalid DAO ID: {$id}" ) ; if ( ! isset ( $ this -> classes [ $ parts [ 0 ] ] ) ) throw new Exception ( "Invalid DAO type: {$parts[0]}" ) ; $ classname = $ this -> classes [ $ parts [ 0 ] ] ; $ pkey_values = explode ( "-" , $ parts [ 1 ] ) ; $ db = DB :: getInstance ( ) ; $ dao = $ db -> getDAO ( $ classname ) ; return call_user_func ( array ( $ dao , "get" ) , $ pkey_values ) ; }
This method will load a new instance to be used in ACL inheritance
This method will load a new instance to be used in ACL inheritance