protected function parseAffiliate($data)
    {
        $html = HtmlDomParser::str_get_html($data);
        $affiliate['group_identifier']  = (empty($html->find('span.identifier', 0)) === false)
                                            ? ($html->find('span.identifier', 0)->innertext)
                                            : ('');
        $affiliate['affiliate_name']    = (empty($html->find('span.affiliate', 0)) === false)
                                            ? ($html->find('span.affiliate', 0)->name)
                                            : ('');
        $affiliate['affiliate_status']  = (empty($html->find('span.affiliate', 0)) === false)
                                            ? ($html->find('span.affiliate', 0)->status)
                                            : ('');
        $affiliate['error']             = (empty($html->find('span.error', 0)) === false)
                                            ? ($html->find('span.error', 0)->innertext)
                                            : ('');

        if ($html->find('span.error', 0) === true) {
        } else {
            $this->affiliates[$affiliate['affiliate_name']] = $affiliate;
        }

        return $affiliate;
    }