/** * Constructor * * @param integer $max_age */ private function __construct($max_age = 86400) { // initialize services map $this->services = new ICE_Map(); // add google always (for now) $this->add_google(); // set up export $this->export = new ICE_Export('webfont', 'json', array($this, 'update')); // try to refresh $this->export->refresh(time() - $max_age); }