diff options
author | Urban Müller | 2013-01-31 14:46:56 +0000 |
---|---|---|
committer | Urban Müller | 2013-01-31 14:46:56 +0000 |
commit | 1786f3c08e42c33e52673544138941d0c71fd283 (patch) | |
tree | 2b523b3caedc2eb9e66c25b5675bb1cdb979b99f /it.class | |
parent | ba94571f2f87243699c3294050186e13c529fc62 (diff) | |
download | itools-1786f3c08e42c33e52673544138941d0c71fd283.tar.gz itools-1786f3c08e42c33e52673544138941d0c71fd283.tar.bz2 itools-1786f3c08e42c33e52673544138941d0c71fd283.zip |
add missing statics
Diffstat (limited to 'it.class')
-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)); } |