summaryrefslogtreecommitdiff
path: root/it_pipe.class
diff options
context:
space:
mode:
Diffstat (limited to 'it_pipe.class')
-rw-r--r--it_pipe.class8
1 files changed, 8 insertions, 0 deletions
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"));