Exemplo n.º 1
0
 /**
  * Destructor function.
  * 
  * Closes the file and the log.
  */
 public function __destruct()
 {
     if (is_resource($this->fp)) {
         fclose($this->fp);
     }
     if ($this->log instanceof Log) {
         $this->log->close();
     }
 }
Exemplo n.º 2
0
 /**
  * Remove characters from the buffer.
  * 
  * @access public
  * @return void
  */
 public function new_word()
 {
     if (defined("DEBUG")) {
         echo "New word<br>";
         $this->log->log("", PEAR_LOG_INFO);
         $this->log->log("Buffer: " . $this->_column_buffer->__toString(), PEAR_LOG_DEBUG);
         $this->log->log("New word (State: " . $this->statedbg[$this->_state] . ")", PEAR_LOG_NOTICE);
         $this->log->log("", PEAR_LOG_INFO);
     }
     $this->_column_buffer->delete(0, $this->_column_buffer->length());
 }