From 4639fa1701635aaf0e3f2190339bd8c3c4f008f4 Mon Sep 17 00:00:00 2001 From: William Knauss Date: Wed, 5 Feb 2014 19:12:16 -0500 Subject: [PATCH] Output documentation --- parsecsv.lib.php | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/parsecsv.lib.php b/parsecsv.lib.php index 84f4c8e..033777f 100644 --- a/parsecsv.lib.php +++ b/parsecsv.lib.php @@ -270,14 +270,17 @@ class parseCSV { } /** - * Generate CSV based string for output - * @param filename if specified, headers and data will be output directly to browser as a downloable file - * @param data 2D array with data - * @param fields field names - * @param delimiter delimiter used to separate data - * @return CSV data using delimiter of choice, or default + * Output + * Generate a CSV based string for output. + * + * @access public + * @param [string] $filename If specified, headers and data will be output directly to browser as a downloable file + * @param [array] $data 2D array with data + * @param [array] $fields Field names + * @param [type] $delimiter delimiter used to separate data + * @return [string] */ - function output ($filename = null, $data = array(), $fields = array(), $delimiter = null) { + public function output ($filename = null, $data = array(), $fields = array(), $delimiter = null) { if (empty($filename)) { $filename = $this->output_filename; }