Classes/Service/AssociationsApiService.php
public function getAnnouncementsFromAssociation($aid, $apiServiceFilterContext = null)
    {
        $apiServiceFilterContext = $this->checkApiServiceFilterContext($apiServiceFilterContext, $aid);

        $url = $this->getBaseApiUrl() . '/associations/' . $aid . '/announcements';

        $params = null;

        $xml = $this->queryXml($url, $apiServiceFilterContext);

        $this->checkValidContext($xml->list[self::CO_XML_ATTRIBUT_VALID_CONTEXT]);

        return $xml->list;
    }
public function getAnnouncementsFromAssociation($aid, $apiServiceFilterContext = null)
    {
        $apiServiceFilterContext = $this->checkApiServiceFilterContext($apiServiceFilterContext, $aid);

        $url = $this->getBaseApiUrl() . '/associations/' . $aid . '/announcements';

        $params = null;

        $xml = $this->queryXml($url, $apiServiceFilterContext);

        $this->checkValidContext($xml->list[self::CO_XML_ATTRIBUT_VALID_CONTEXT]);

        return $xml->list;
    }
public function getAnnouncementsFromAssociation ( $ aid , $ apiServiceFilterContext = null ) { $ apiServiceFilterContext = $ this -> checkApiServiceFilterContext ( $ apiServiceFilterContext , $ aid ) ; $ url = $ this -> getBaseApiUrl ( ) . '/associations/' . $ aid . '/announcements' ; $ params = null ; $ xml = $ this -> queryXml ( $ url , $ apiServiceFilterContext ) ; $ this -> checkValidContext ( $ xml -> list [ self :: CO_XML_ATTRIBUT_VALID_CONTEXT ] ) ; return $ xml -> list ; }
return a list of announcements from a association

@param string association id
@param \RGU\Dvoconnector\Service\ApiServiceFilterContext $apiServiceFilterContext

@return \SimpleXMLElement XML data
return a list of announcements from a association