Example #1
0
 /**
  * Обрабтка auto pointcut
  *
  */
 protected function _compileAutoPointcuts()
 {
     // Create Code Parser
     $this->_codeParser = new Miaox_Aop_CodeParser($this->_code);
     $this->_codeParser->setIndex(0);
     // Blank result string
     $result = "";
     // Loop through each PHP token
     while (($tok = $this->_codeParser->currentToken()) !== null) {
         $result .= $this->_analizeAutoToken($tok);
         $this->_codeParser->nextToken();
     }
     // Assigning properties
     $this->_code = $result;
     $this->_codeParser = null;
 }