Example #1
0
 public function __construct()
 {
     $Check = new CheckoutCond();
     $this->condition = $Check->getCond();
     /*Only those that can be change by the user*/
     $this->checkOption = array("DEFAULT_TIMEOUT", "DEFAULT_CONNECT_TIMEOUT");
     foreach ($this->checkOption as $check) {
         // go throught the checkOption array
         if (!array_key_exists($check, $this->condition)) {
             // if the variable dont exist then take the default
             $this->condition["{$check}"] = self::${$check};
         }
     }
 }