Пример #1
0
 public function __construct(WorldEditArt $main, $dir)
 {
     parent::__construct($main);
     $this->dir = $dir;
     if (!is_dir($dir)) {
         mkdir($dir, 0777, true);
     }
     $this->nextId = (int) file_get_contents($dir . "nextId");
     // boolean false will be casted to 0 if file was not created
 }
Пример #2
0
 public function __construct(WorldEditArt $main)
 {
     parent::__construct($main);
 }