/** * Constructor * * @param ObjectConfig $config An optional ObjectConfig object with configuration options */ public function __construct(ObjectConfig $config) { parent::__construct($config); //Create the buffer if we are not using a file cache if (!$this->isCache()) { static::$__buffer = $this->getObject('filesystem.stream.factory')->createStream('kodekit-buffer://temp', 'w+b'); } }
public static function flush_buffer() { static::flush(join("\n", static::$__buffer)); static::$__buffer = array(); static::$__buffer_length = 0; }