summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorIgnace Nyamagana Butera <nyamsprod@gmail.com>2015-02-11 14:25:03 +0100
committerIgnace Nyamagana Butera <nyamsprod@gmail.com>2015-02-11 14:25:03 +0100
commit450ff0ad3bfd79ff93a235bba990d508b04cd05b (patch)
treeb02d025be9eb1f9e45ae589d63410dbe01a3528f /src
parentc8a4abc0d9b04ef5db83068a8ba834a61af7e01e (diff)
downloadcsv-450ff0ad3bfd79ff93a235bba990d508b04cd05b.zip
csv-450ff0ad3bfd79ff93a235bba990d508b04cd05b.tar.gz
csv-450ff0ad3bfd79ff93a235bba990d508b04cd05b.tar.bz2
output methods improved
Diffstat (limited to 'src')
-rw-r--r--src/Config/Output.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/Config/Output.php b/src/Config/Output.php
index 9a2dd16..89761b7 100644
--- a/src/Config/Output.php
+++ b/src/Config/Output.php
@@ -154,6 +154,8 @@ trait Output
*
* @param string $filename CSV downloaded name if present adds extra headers
*
+ * @return int Returns the number of characters read from the handle
+ * and passed through to the output.
*/
public function output($filename = null)
{
@@ -164,14 +166,15 @@ trait Output
header("Content-Transfer-Encoding: binary");
header("Content-Disposition: attachment; filename=\"$filename\"");
}
- $this->fpassthru();
+
+ return $this->fpassthru();
}
/**
* Output all data from the CSV
*
* @return int Returns the number of characters read from the handle
- * and passed through to the output.
+ * and passed through to the output.
*/
protected function fpassthru()
{