setDBO(VoxelCareDB::getDatabase()); global $mainframe,$option; } function getFilePath() { return JPATH_BASE. '/components/com_vxc/holidays_'.SiteOptionsHelper::getFranchiseName().'.txt'; } function storeAsText(&$holidays) { $filePath = $this->getFilePath(); $fic=@fopen($filePath,"wb"); if ($fic) { @chmod($filePath,0666); @fputs($fic,$holidays); @fclose($fic); } } function getHolidaysAsText() { $filePath = $this->getFilePath(); $contents = @file_get_contents($filePath); if ($contents===FALSE) return ""; else return $contents; } }// class