Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 public static function render_and_pipe($through)
 {
     $output = self::render();
     return pipe::through($data, $through);
 }