Commit 34a17ad0 authored by Benoit Mortier's avatar Benoit Mortier
Browse files

Fixes: #981 Improve the FusionDirectory API

Showing with 24 additions and 3 deletions
+24 -3
...@@ -20,13 +20,29 @@ ...@@ -20,13 +20,29 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
*/ */
/*! \brief This class contains all the functions needed for cvs export /*!
* * \file class_cvsExporter.inc
* Source code for class cvsExporter
*/
/*!
* \brief This class contains all the functions needed for cvs export
*/ */
class csvExporter class csvExporter
{ {
var $result; var $result;
/*!
* \brief Create a cvsExporter
*
* \param array $headline
*
* \param array $header
*
* \param array $entries
*
* \param array $columns
*/
function csvExporter($headline, $header, $entries, $columns= array()) { function csvExporter($headline, $header, $entries, $columns= array()) {
// If no preset, render all columns // If no preset, render all columns
if (!count($columns)) { if (!count($columns)) {
...@@ -59,13 +75,18 @@ class csvExporter ...@@ -59,13 +75,18 @@ class csvExporter
} }
} }
/*!
* \brief Get the result
*/
function query() function query()
{ {
return $this->result; return $this->result;
} }
/*!
* \brief Get Informations
*/
static function getInfo() static function getInfo()
{ {
return array("exportCVS" => array( "label" => _("CSV"), "image" => "images/lists/csv.png", "class"=> "csvExporter", "mime" => "text/x-csv", "filename" => "export.csv" )); return array("exportCVS" => array( "label" => _("CSV"), "image" => "images/lists/csv.png", "class"=> "csvExporter", "mime" => "text/x-csv", "filename" => "export.csv" ));
......
  • bmortier @bmortier

    mentioned in issue #370 (closed)

    By sabaku on 2017-09-02T14:45:12 (imported from GitLab)

    ·

    mentioned in issue #370 (closed)

    By sabaku on 2017-09-02T14:45:12 (imported from GitLab)

    Toggle commit list
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment