/** * Set defaults, etc. */ public function __construct() { global $db; $this->db = $db; $this->dirBook = '../' . DIR_BOOK; $this->getArgs(func_get_args()); if (!$this->bookID && !$this->infoXML) { echo 'No bookID'; } if ($this->archiveNew) { $this->loadOptions(); parent::__construct(); $this->updateArchive(); $this->saveOptions(); } if ($this->infoXML) { // load up the info/guide xml file $args['filepath'] = $this->dirBook . 'book.xml'; parent::__construct($args); $this->loadInfo(); } else { $this->loadOptions(); parent::__construct(); $this->parseArchive(); } }
/** * Set defaults, etc. */ public function __construct() { $this->getArgs(func_get_args()); parent::__construct(); }