From 0b13998a9752b6e488f3caf2cc2556f6a5947a78 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Thu, 31 Mar 2011 17:06:31 +0000 Subject: return lines array --- it_pipe.class | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/it_pipe.class b/it_pipe.class index 0567ec3..722b7c0 100644 --- a/it_pipe.class +++ b/it_pipe.class @@ -109,6 +109,14 @@ function csv() return $records; } +/** + * Return contents of pipe as array of lines + */ +function lines() +{ + return $this->lines; +} + function pipe($cmd) { $descriptors = array(0 => array("pipe", "r"), 1 => array("pipe", "w")); -- cgit v1.2.3