public function exec()
    {
        $args = func_get_args();
        for ($i = 0; $i < count($args); $i++) {
            if (is_array($args[$i]) && !method_exists($args[$i][0], $args[$i][1])) {
                throw new pakeException('Method ' . $args[$i][1] . ' does not exist for object ' . $args[$i][0]);
            } else {
                if (!is_array($args[$i]) && !function_exists($args[$i])) {
                    throw new pakeException('Function ' . $args[$i] . ' does not exist.');
                }
            }

            $this->execs[] = $args[$i];
        }

        return $this;
    }
public function exec()
    {
        $args = func_get_args();
        for ($i = 0; $i < count($args); $i++) {
            if (is_array($args[$i]) && !method_exists($args[$i][0], $args[$i][1])) {
                throw new pakeException('Method ' . $args[$i][1] . ' does not exist for object ' . $args[$i][0]);
            } else {
                if (!is_array($args[$i]) && !function_exists($args[$i])) {
                    throw new pakeException('Function ' . $args[$i] . ' does not exist.');
                }
            }

            $this->execs[] = $args[$i];
        }

        return $this;
    }
public function exec ( ) { $ args = func_get_args ( ) ; for ( $ i = 0 ; $ i < count ( $ args ) ; $ i ++ ) { if ( is_array ( $ args [ $ i ] ) && ! method_exists ( $ args [ $ i ] [ 0 ] , $ args [ $ i ] [ 1 ] ) ) { throw new pakeException ( 'Method ' . $ args [ $ i ] [ 1 ] . ' does not exist for object ' . $ args [ $ i ] [ 0 ] ) ; } else { if ( ! is_array ( $ args [ $ i ] ) && ! function_exists ( $ args [ $ i ] ) ) { throw new pakeException ( 'Function ' . $ args [ $ i ] . ' does not exist.' ) ; } } $ this -> execs [ ] = $ args [ $ i ] ; } return $ this ; }
Executes function or method for each element.

Element match if functino or method returns true.

$finder->exec('myfunction');
$finder->exec(array($object, 'mymethod'));

@return pakeFinder
Executes function or method for each element .