X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FEvent%2FImport%2FParser.php;h=f7c0a6ba22e9e57519a810c40a8276e961fd9a08;hb=22e263ad985b62de5cf7bdaf09555bfb3f0cd322;hp=2055f8646e1fb946eee759248cca2876c7b28d4c;hpb=c52174d854bcc01af1e112d3bb0eee0e201d65e6;p=civicrm-core.git diff --git a/CRM/Event/Import/Parser.php b/CRM/Event/Import/Parser.php index 2055f8646e..f7c0a6ba22 100644 --- a/CRM/Event/Import/Parser.php +++ b/CRM/Event/Import/Parser.php @@ -1,7 +1,7 @@ _activeFieldCount = count($fieldKeys); foreach ($fieldKeys as $key) { if (empty($this->_fields[$key])) { @@ -313,9 +312,8 @@ abstract class CRM_Event_Import_Parser extends CRM_Import_Parser { * Format the field values for input to the api * * @return array (reference ) associative array of name/value pairs - * @access public */ - function &getActiveFieldParams() { + public function &getActiveFieldParams() { $params = array(); for ($i = 0; $i < $this->_activeFieldCount; $i++) { if (isset($this->_activeFields[$i]->_value) @@ -336,7 +334,7 @@ abstract class CRM_Event_Import_Parser extends CRM_Import_Parser { * @param string $headerPattern * @param string $dataPattern */ - function addField($name, $title, $type = CRM_Utils_Type::T_INT, $headerPattern = '//', $dataPattern = '//') { + public function addField($name, $title, $type = CRM_Utils_Type::T_INT, $headerPattern = '//', $dataPattern = '//') { if (empty($name)) { $this->_fields['doNotImport'] = new CRM_Event_Import_Field($name, $title, $type, $headerPattern, $dataPattern); } @@ -363,9 +361,8 @@ abstract class CRM_Event_Import_Parser extends CRM_Import_Parser { * @param int $mode * * @return void - * @access public */ - function set($store, $mode = self::MODE_SUMMARY) { + public function set($store, $mode = self::MODE_SUMMARY) { $store->set('fileSize', $this->_fileSize); $store->set('lineCount', $this->_lineCount); $store->set('seperator', $this->_seperator); @@ -420,9 +417,8 @@ abstract class CRM_Event_Import_Parser extends CRM_Import_Parser { * @param array $data * * @return void - * @access public */ - static function exportCSV($fileName, $header, $data) { + public static function exportCSV($fileName, $header, $data) { $output = array(); $fd = fopen($fileName, 'w'); @@ -453,4 +449,3 @@ abstract class CRM_Event_Import_Parser extends CRM_Import_Parser { } } -