function __construct($map = array()) { if (array_key_exists('endpoint', $map)) { $this->endpoint = $map['endpoint']; } else { $this->endpoint = owa_coreAPI::getSetting('base', 'remote_event_queue_endpoint'); } return parent::__construct($map); }
function __construct($map = array()) { parent::__construct($map); // set event file if (!isset($map['path'])) { $this->queue_dir = owa_coreAPI::getSetting('base', 'async_log_dir'); } else { $this->queue_dir = $map['path']; } // set directory where unprocessed, rotated files reside if (!isset($map['unprocessed_path'])) { $this->unprocessed_path = $this->queue_dir . 'unprocessed/'; } else { $this->unprocessed_path = $map['unprocessed_path']; } // test or make dir if (!is_dir($this->unprocessed_path) && !mkdir($this->unprocessed_path, 0755)) { throw new Exception("Cannot make unprocessed directory."); } // set directory where processed files will be archived. if (!isset($map['archive_path'])) { $this->archive_path = $this->queue_dir . 'archive/'; } else { $this->archive_path = $map['archive_path']; } // test or make dir if (!is_dir($this->archive_path) && !mkdir($this->archive_path, 0755)) { throw new Exception("Cannot make archive directory."); } if (!isset($map['date_format'])) { $this->date_format = "Y-m-d-H-is"; } if (!isset($map['rotation_interval'])) { $this->rotation_interval = $map['rotation_interval']; } $this->event_file = $this->queue_dir . 'events.txt'; $this->lock_file = $this->queue_dir . 'lock.txt'; return parent::__construct($map); }
function __construct($map = array()) { return parent::__construct($map); }