Add all the phpdocs to the domframework
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1246 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
@@ -1,11 +1,23 @@
|
||||
<?php
|
||||
/** DomFramework
|
||||
@package domframework
|
||||
@author Dominique Fournier <dominique@fournier38.fr> */
|
||||
|
||||
require_once ("output.php");
|
||||
/** Display in CSV the datas provided */
|
||||
class outputcsv extends output
|
||||
{
|
||||
public function out ($data)
|
||||
/** Don't allow to output in CSV if the functions are not available in PHP */
|
||||
function __construct ()
|
||||
{
|
||||
if (!function_exists ("fputcsv"))
|
||||
throw new Exception ("CSV support not available in PHP !", 500);
|
||||
}
|
||||
|
||||
/** Display in CSV the datas provided
|
||||
@param mixed $data The data to be displayed */
|
||||
public function out ($data)
|
||||
{
|
||||
if (!is_array ($data))
|
||||
$data = array ($data);
|
||||
@header("Cache-Control: no-store, no-cache, must-revalidate");
|
||||
|
||||
Reference in New Issue
Block a user