Esempio n. 1
0
 public function __construct($page)
 {
     global $cycle, $maxage;
     $this->page = $page;
     // バックアップの頻度
     //$this->cycle = 0;
     $this->cycle = !empty($cycle) ? 60 * 60 * $cycle : self::BACKUP_INTERVAL;
     // バックアップの上限個数
     $this->maxage = $maxage;
     // 以下はSplFileInfoの派生クラス
     $this->wiki = FileFactory::Wiki($this->page);
     $this->backup = FileFactory::Backup($this->page);
     // バックアップの世代間の区切りの正規表現
     $this->splitter_reglex = '/^(' . preg_quote(self::SPLITTER) . '\\s\\d+(\\s(\\d+)|))$/';
 }