public function __construct($configData = array()) { if (get_class($configData) == 'DOMElement') { $this->repo = $configData->getAttribute('URL'); $list = $configData->getElementsByTagName('Author'); if ($list->length > 0) { $this->authors = array(); for ($pos = 0; $pos < $list->length; $pos++) { $this->authors[] = $list->item($pos)->getAttribute('UserName'); } } } parent::__construct($configData); }
/** Adds readers to list. Readers are not run yet. **/ public function addReader(BaseReadClass $reader) { $reader->setDataManager($this); $this->readers[] = $reader; }