Beispiel #1
0
 public static function blockEnd()
 {
     // see if we are being called with an open style output buffer
     if (empty(self::$blockOptions['inBlock'])) {
         return;
     }
     // get the scrip out of the buffer
     $script = @ob_get_contents();
     // clean and restart the buffer
     @ob_end_clean();
     ob_start();
     echo self::$outputBuffer;
     // null our temporary storage
     self::$outputBuffer = NULL;
     // get the options
     $options = self::$blockOptions;
     self::$blockOptions = array();
     // if we didnt recieve anything then move on
     if (empty($script)) {
         return;
     }
     // process what we got in the style buffer
     echo self::codeBlock($script, $options);
 }