original_string: 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);
      }
code: 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);
      }
code_tokens: 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 ) ; }
docstring: This method will load a new instance to be used in ACL inheritance
docstring_tokens: This method will load a new instance to be used in ACL inheritance