Пример #1
0
function _getLinkedAds($params)
{
    $paramSearch = $params->getParam(0);
    $search = $paramSearch->scalarval();
    $response = new XML_RPC_Value(serialize(OA_Dal_Delivery_getLinkedAds($search)), 'base64');
    return new XML_RPC_Response($response);
}
Пример #2
0
function MAX_cacheGetLinkedAds($search, $campaignid, $laspart, $cached = true)
{
    $sName = OA_Delivery_Cache_getName(__FUNCTION__, $search, $campaignid, $laspart);
    if (!$cached || ($aAds = OA_Delivery_Cache_fetch($sName)) === false) {
        MAX_Dal_Delivery_Include();
        $aAds = OA_Dal_Delivery_getLinkedAds($search, $campaignid, $laspart);
        $aAds = OA_Delivery_Cache_store_return($sName, $aAds);
    }
    return $aAds;
}