Project

General

Profile

« Previous | Next » 

Revision e3ac9269

IDe3ac9269b45d58a1eadfd57ad816aecf1e44ee34
Parent 3d3b31ae
Child e68abb6a

Added by Jocelyn Delande about 9 years ago

modified site_point to allow empty panoramas (when just instanciated)

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences

Changesets

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
  }