diff options
-rw-r--r-- | it.class | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -411,7 +411,7 @@ static function grep($pattern, $array, $p = array()) * @param $errmsg Error message to output if anything needed to be done * @return Same string in utf-8 encoding */ -function any2utf8($value, $errmsg = "") +static function any2utf8($value, $errmsg = "") { if (is_array($value)) { @@ -892,7 +892,7 @@ static function file_put($filename, $data, $p = array()) * Create an it_pipe from a file * @param $fn filename to read. if omitted, stdin is used. */ -function cat($fn = null) +static function cat($fn = null) { return new it_pipe(array('fn' => $fn)); } @@ -902,7 +902,7 @@ function cat($fn = null) * @param $cmd command to execute, or if it is an array, the lines to use * @param $args named arguments to fill into cmd. see it::exec for usage */ -function pipe($cmd, $args = array()) +static function pipe($cmd, $args = array()) { return new it_pipe(is_string($cmd) ? array('cmd' => $cmd, 'args' => $args) : array('data' => $cmd)); } |