From f28848f9922745445cf3fe8d51b4f3351f2c2d5c Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Thu, 8 Sep 2011 17:17:52 +0000 Subject: document __call --- it_pipe.class | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/it_pipe.class b/it_pipe.class index 3dbf313..bed5537 100644 --- a/it_pipe.class +++ b/it_pipe.class @@ -21,9 +21,9 @@ function __construct($p = array()) $this->lines = array_merge((array)$this->lines, file($fn, FILE_IGNORE_NEW_LINES)); } -# -# Magic functions -# +/** + * Apply any php function to every line in pipe. Pass line as first arg except with some functions (e.g. explode) + */ function __call($name, $params) { list($parampos) = self::$lastargfunc[$name] ? array(count($params)) : array(0, array_unshift($params, "")); -- cgit v1.2.3