Example #1
0
 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);
 }