コード例 #1
0
ファイル: Site.php プロジェクト: alexaylwin/alexaylwin.com
 /**
  * Deletes the page from this site as well as the directory and any
  * containers below it.
  * 
  * @return boolean
  */
 public function removeBucket($bucketid)
 {
     if (isset($this->bucketlist[$bucketid])) {
         $path = Constants::GET_PAGES_DIRECTORY() . "/" . $bucketid;
         $io = new FileIO();
         if (!$io->deleteDirectory($path, true)) {
             return false;
         }
         unset($this->bucketlist[$bucketid]);
         return true;
     } else {
         return false;
     }
 }