Пример #1
0
 /**
  * Initialize path manager
  * @throws epExceptionQueryPath
  */
 public function initialize()
 {
     // instantiate alias manager
     if (!$this->am) {
         if (!($this->am = new epQueryAliasManager())) {
             throw new epExceptionQueryPath('Cannot instantiate alias manager');
         }
     }
     $this->am->reset();
     // reset primary root
     $this->proot = false;
     // array to hold alias to root lookup
     $this->alias2root = array();
     // reset sql parts
     $this->sql_parts = array();
     // reset aliases_primary table
     $this->aliases_primary = array();
     // reset alias_secondary table
     $this->aliases_secondary = array();
     // reset counter for contained aliases
     $this->num_contained_aliases = 0;
 }