Пример #1
0
 /**
  * Constructor for JapsSynchronise
  * 
  * $serverPath - path to mumies cocoon directory
  * $url - path to the synchronisation method
  * $logFilename - Name of the logfile, not necessary
  * $dbValue - the array with the values to synchronise
  * 
  */
 public function JapsSynchronise()
 {
     global $CFG;
     // calling the super classes constructor
     $logFilename = $CFG->syncLogfile;
     parent::__construct($CFG->syncServer, $logFilename);
     $this->setAccount($CFG->syncUser);
     for ($i = 0; $i < strlen($CFG->syncPassword); $i++) {
         $password[] = substr($CFG->syncPassword, $i, 1);
     }
     $this->setPassword($password);
 }
 public function NonInteractiveJapsClient()
 {
     $numargs = func_num_args();
     if ($numargs == 1) {
         $urlPrefix = func_get_arg(0);
         parent::__construct($urlPrefix);
     }
     if ($numargs == 2) {
         $urlPrefix = func_get_arg(0);
         $logFilename = func_get_arg(1);
         parent::__construct($urlPrefix, $logFilename);
     }
 }