/**
* Class constructor
*/
- function __construct() {
+ public function __construct() {
if ( !isset( self::$_template ) ) {
self::$_template = CRM_Core_Smarty::singleton();
}
*
* @return mixed
*/
- function export($exportParams) {
+ public function export($exportParams) {
$this->_exportParams = $exportParams;
return $exportParams;
}
/**
* @param null $fileName
*/
- function output($fileName = NULL) {
+ public function output($fileName = NULL) {
switch ($this->getFileExtension()) {
case 'csv':
self::createActivityExport($this->_batchIds, $fileName);
/**
* @return string
*/
- function getMimeType() {
+ public function getMimeType() {
return 'text/plain';
}
/**
* @return string
*/
- function getFileExtension() {
+ public function getFileExtension() {
return 'txt';
}
/**
* @return null
*/
- function getTemplateFileName() {
+ public function getTemplateFileName() {
return null;
}
/**
* @return object
*/
- static function &getTemplate() {
+ public static function &getTemplate() {
return self::$_template;
}
* @param $var
* @param null $value
*/
- function assign($var, $value = NULL) {
+ public function assign($var, $value = NULL) {
self::$_template->assign($var, $value);
}
*
* @return null
*/
- static function format($s, $type = 'string') {
+ public static function format($s, $type = 'string') {
if (!empty($s)) {
return $s;
}
}
}
- function initiateDownload() {
+ public function initiateDownload() {
$config = CRM_Core_Config::singleton();
//zip files if more than one.
if (count($this->_downloadFile)>1) {
*
* @throws CRM_Core_Exception
*/
- static function createActivityExport($batchIds, $fileName) {
+ public static function createActivityExport($batchIds, $fileName) {
$session = CRM_Core_Session::singleton();
$values = array();
$params = array('id' => $batchIds);
*
* @return bool
*/
- function createZip($files = array(), $destination = NULL, $overwrite = FALSE) {
+ public function createZip($files = array(), $destination = NULL, $overwrite = FALSE) {
//if the zip file already exists and overwrite is false, return false
if (file_exists($destination) && !$overwrite) {
return FALSE;