diff options
author | Urban Müller | 2011-03-31 17:06:31 +0000 |
---|---|---|
committer | Urban Müller | 2011-03-31 17:06:31 +0000 |
commit | 0b13998a9752b6e488f3caf2cc2556f6a5947a78 (patch) | |
tree | fc3407e5a915a757eed12ec3f121e66fcbd25a28 | |
parent | 827499af71ba1f6fa6e65818768b9317623aeb1d (diff) | |
download | itools-0b13998a9752b6e488f3caf2cc2556f6a5947a78.tar.gz itools-0b13998a9752b6e488f3caf2cc2556f6a5947a78.tar.bz2 itools-0b13998a9752b6e488f3caf2cc2556f6a5947a78.zip |
return lines array
-rw-r--r-- | it_pipe.class | 8 |
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")); |