/** * Sorts the buffer * @return the sorted buffer array */ protected static function _sortBuffer() { if (@static::$_buffer) { foreach (static::$_buffer as $k => $arr) { $type = $arr['type']; //unset($arr['type']); $buffer[$type][] = $arr; } return @(static::$_buffer = $buffer); } }
public static function noBuffer() { static::$_buffer = false; }