getParam('altiphp'); if ($params['source'] == 'srtmtiles' and isset($params['cache'])) { $cachedir = $params['cache']; if (!is_dir($cachedir)) { if (@mkdir($cachedir, 0755, true) === false) { throw new Zend_Exception(); } } } self::$_service = new alti\Alti($params); } return self::$_service; } }