Projet

Général

Profil

Révision e3ac9269

Ajouté par Jocelyn Delande il y a plus de 10 ans

modified site_point to allow empty panoramas (when just instanciated)

Voir les différences:

class/site_point.class.php
8 8
}
9 9

  
10 10
class site_point {
11
	/** Defines a point, with a panorama
12
	 */
13
	private $base_dir;        // dir of tiles for that panorama
11
  /** Defines a point, with a panorama
12
  */
13
  private $base_dir;        // dir of tiles for that panorama
14 14
  private $name = false;
15 15
  private $prefix = false;
16 16
  private $params = false;
17 17
  private $zooms;
18 18

  
19 19
  public function __construct($dir) {
20
    // si $dir n'est pas un répertoire il ne s'agit pas d'un panorama.
21
	  // if (!is_dir($dir)) {
22
	  // 	  throw new PanoramaFormatException("$dir does not contain a panorama");
23
	  // }
24 20
    $this->base_dir = $dir;
25 21
    $this->prefix = basename($dir);
26 22
  }

Formats disponibles : Unified diff