Example #1
0
 public function removeBlock($blockid)
 {
     if (isset($this->blocklist[$blockid])) {
         //delete this block
         $path = Constants::GET_PAGES_DIRECTORY() . "/" . $this->getBucketId() . "/" . $blockid . ".incl";
         $io = new FileIO();
         if (!$io->deleteFile($path)) {
             return false;
         }
         unset($this->blocklist[$blockid]);
         return true;
     } else {
         return false;
     }
 }