コード例 #1
0
ファイル: Bucket.php プロジェクト: alexaylwin/alexaylwin.com
 /**
  * This method checks to see if this bucket already exists in the directory or not.
  */
 private function bucketExists()
 {
     $path = Constants::GET_PAGES_DIRECTORY() . "/" . $this->getBucketId() . "/.bucket";
     $io = new FileIO();
     return $io->fileExists($path);
 }
コード例 #2
0
 private function adminExists()
 {
     $io = new FileIO();
     $path = Constants::GET_USERS_DIRECTORY() . '/' . 'admin.usr';
     if ($io->fileExists($path)) {
         return true;
     } else {
         return false;
     }
 }