PEAR_REST::retrieveCacheFirst

PEAR_REST::retrieveCacheFirst() – Récupère les données REST, mais récupère toujours le cache local s'il existe

Synopsis

require_once '/REST.php';

string|array PEAR_REST::retrieveCacheFirst ( string $url , array|false $accept = false , boolean $forcestring = false )

Description

Utile pour les éléments qui ne changent jamais, comme les informations d'une version particulière.

Parameter

string $url

URL complète de la ressource

array|FALSE $accept

contenu de l'en-tête accept-encoding

boolean $forcestring

Si TRUE, le XML sera retourné en tant que chaîne de caractères, sinon, le XML sera analysé en utilisant PEAR_XMLParser.

Throws

No exceptions thrown.

Note

This function can not be called statically.