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