/** * Predicate that evaluates to the logical AND of the parameters * You can add other predicates thanks to the * File_Archive_Predicate_And::addPredicate() function * * @param File_Archive_Predicate (any number of them) * @see File_Archive_Predicate_And */ function predAnd() { require_once dirname(__FILE__) . "/Archive/Predicate/And.php"; $pred = new File_Archive_Predicate_And(); $args = func_get_args(); foreach ($args as $p) { $pred->addPredicate($p); } return $pred; }
/** * Predicate that evaluates to the logical AND of the parameters * You can add other predicates thanks to the * File_Archive_Predicate_And::addPredicate() function * * @param File_Archive_Predicate (any number of them) * @see File_Archive_Predicate_And */ function predAnd() { require_once PEAR_DIR . "File/Archive/Predicate/And.php"; $pred = new File_Archive_Predicate_And(); $args = func_get_args(); foreach ($args as $p) { $pred->addPredicate($p); } return $pred; }