public static function through($data, $through) { if (is_array($through)) { foreach ($through as $pipe) { $data = pipe::through($data, $pipe); } return $data; } $pipe_function = getPipe($through); return $pipe_function($data); }
public static function render_and_pipe($through) { $output = self::render(); return pipe::through($data, $through); }