Esempio n. 1
0
 /**
  * Performs a captured place of an element to use with buffer placing
  *
  * @param array $match  A regex match from ::placeBuffered()
  * @return string  The output of placing the element
  */
 private function placeBufferedCallback($match)
 {
     fBuffer::startCapture();
     $this->placeElement($match[1], $match[2]);
     return fBuffer::stopCapture();
 }
 public function tearDown()
 {
     if ($this->started_capture) {
         fBuffer::stopCapture();
         $this->started_capture = FALSE;
     }
     if ($this->started_buffer) {
         ob_clean();
         fBuffer::stop();
         $this->started_buffer = FALSE;
     }
 }