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;
    }
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;
    }
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 ; }
Parses out affiliate information from the GWS XHTML. Successful queries will also be added to the Group object.

@param string $data
@return array affiliate information
Parses out affiliate information from the GWS XHTML . Successful queries will also be added to the Group object .