|
From: <gem...@li...> - 2012-06-15 11:47:44
|
Revision: 769
http://gemstracker.svn.sourceforge.net/gemstracker/?rev=769&view=rev
Author: mennodekker
Date: 2012-06-15 11:47:36 +0000 (Fri, 15 Jun 2012)
Log Message:
-----------
Add 'Snippet' to the names
Modified Paths:
--------------
trunk/library/classes/Gems/Default/RespondentExportAction.php
Added Paths:
-----------
trunk/library/classes/Gems/Snippets/Export/ReportFooterSnippet.php
trunk/library/classes/Gems/Snippets/Export/ReportHeaderSnippet.php
Removed Paths:
-------------
trunk/library/classes/Gems/Snippets/Export/ReportFooter.php
trunk/library/classes/Gems/Snippets/Export/ReportHeader.php
Modified: trunk/library/classes/Gems/Default/RespondentExportAction.php
===================================================================
--- trunk/library/classes/Gems/Default/RespondentExportAction.php 2012-06-15 11:42:19 UTC (rev 768)
+++ trunk/library/classes/Gems/Default/RespondentExportAction.php 2012-06-15 11:47:36 UTC (rev 769)
@@ -48,8 +48,8 @@
protected $_wkhtmltopdfLocation = "";
- protected $_reportFooter = 'Export_ReportFooter';
- protected $_reportHeader = 'Export_ReportHeader';
+ protected $_reportFooter = 'Export_ReportFooterSnippet';
+ protected $_reportHeader = 'Export_ReportHeaderSnippet';
protected $_respondentSnippet = 'Export_RespondentSnippet';
protected $_groupedSurveySnippet = 'TrackAnswersModelSnippet';
Deleted: trunk/library/classes/Gems/Snippets/Export/ReportFooter.php
===================================================================
--- trunk/library/classes/Gems/Snippets/Export/ReportFooter.php 2012-06-15 11:42:19 UTC (rev 768)
+++ trunk/library/classes/Gems/Snippets/Export/ReportFooter.php 2012-06-15 11:47:36 UTC (rev 769)
@@ -1,60 +0,0 @@
-<?php
-/**
- * Copyright (c) 2011, Erasmus MC
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * * Neither the name of Erasmus MC nor the
- * names of its contributors may be used to endorse or promote products
- * derived from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY
- * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- * @package Gems
- * @subpackage Snippets
- * @copyright Copyright (c) 2011 Erasmus MC
- * @license New BSD License
- * @version $Id: Sample.php 215 2011-07-12 08:52:54Z michiel $
- */
-
-/**
- * Footer for html/pdf export of a respondent
- *
- * @package Gems
- * @subpackage Snippets
- * @copyright Copyright (c) 2011 Erasmus MC
- * @license New BSD License
- * @since Class available since version 1.5.5
- */
-class Gems_Snippets_Export_ReportFooter extends MUtil_Snippets_SnippetAbstract
-{
- /**
- * @var Gems_Loader
- */
- public $loader;
-
- public function getHtmlOutput(Zend_View_Abstract $view)
- {
- $html = $this->getHtmlSequence();
-
- $html->div($this->_('Report generation finished.'), array('class'=> 'centerAlign'));
- $html->hr();
-
- return $html;
- }
-}
\ No newline at end of file
Copied: trunk/library/classes/Gems/Snippets/Export/ReportFooterSnippet.php (from rev 768, trunk/library/classes/Gems/Snippets/Export/ReportFooter.php)
===================================================================
--- trunk/library/classes/Gems/Snippets/Export/ReportFooterSnippet.php (rev 0)
+++ trunk/library/classes/Gems/Snippets/Export/ReportFooterSnippet.php 2012-06-15 11:47:36 UTC (rev 769)
@@ -0,0 +1,60 @@
+<?php
+/**
+ * Copyright (c) 2011, Erasmus MC
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ * * Neither the name of Erasmus MC nor the
+ * names of its contributors may be used to endorse or promote products
+ * derived from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ * @package Gems
+ * @subpackage Snippets
+ * @copyright Copyright (c) 2011 Erasmus MC
+ * @license New BSD License
+ * @version $Id: Sample.php 215 2011-07-12 08:52:54Z michiel $
+ */
+
+/**
+ * Footer for html/pdf export of a respondent
+ *
+ * @package Gems
+ * @subpackage Snippets
+ * @copyright Copyright (c) 2011 Erasmus MC
+ * @license New BSD License
+ * @since Class available since version 1.5.5
+ */
+class Gems_Snippets_Export_ReportFooterSnippet extends MUtil_Snippets_SnippetAbstract
+{
+ /**
+ * @var Gems_Loader
+ */
+ public $loader;
+
+ public function getHtmlOutput(Zend_View_Abstract $view)
+ {
+ $html = $this->getHtmlSequence();
+
+ $html->div($this->_('Report generation finished.'), array('class'=> 'centerAlign'));
+ $html->hr();
+
+ return $html;
+ }
+}
\ No newline at end of file
Deleted: trunk/library/classes/Gems/Snippets/Export/ReportHeader.php
===================================================================
--- trunk/library/classes/Gems/Snippets/Export/ReportHeader.php 2012-06-15 11:42:19 UTC (rev 768)
+++ trunk/library/classes/Gems/Snippets/Export/ReportHeader.php 2012-06-15 11:47:36 UTC (rev 769)
@@ -1,70 +0,0 @@
-<?php
-/**
- * Copyright (c) 2011, Erasmus MC
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * * Neither the name of Erasmus MC nor the
- * names of its contributors may be used to endorse or promote products
- * derived from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY
- * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- * @package Gems
- * @subpackage Snippets
- * @copyright Copyright (c) 2011 Erasmus MC
- * @license New BSD License
- * @version $Id: Sample.php 215 2011-07-12 08:52:54Z michiel $
- */
-
-/**
- * Header for html/pdf export of a respondent
- *
- * @package Gems
- * @subpackage Snippets
- * @copyright Copyright (c) 2011 Erasmus MC
- * @license New BSD License
- * @since Class available since version 1.5.5
- */
-class Gems_Snippets_Export_ReportHeader extends MUtil_Snippets_SnippetAbstract
-{
- /**
- * @var Gems_Loader
- */
- public $loader;
-
- public function getHtmlOutput(Zend_View_Abstract $view)
- {
- $html = $this->getHtmlSequence();
- $html->h1($this->_('Respondent report'));
-
- $table = $html->table(array('class' => 'browser'));
-
- $table->th($this->_('Report information'), array('colspan' => 2));
- $table->tr()->th($this->_('Generated by'))
- ->td($this->loader->getCurrentUser()->getFullName());
- $table->tr()->th($this->_('Generated on'))
- ->td(new Zend_Date());
- $table->tr()->th($this->_('Organization'))
- ->td($this->loader->getCurrentUser()->getCurrentOrganization()->getName());
-
- $html->br();
-
- return $html;
- }
-}
\ No newline at end of file
Copied: trunk/library/classes/Gems/Snippets/Export/ReportHeaderSnippet.php (from rev 768, trunk/library/classes/Gems/Snippets/Export/ReportHeader.php)
===================================================================
--- trunk/library/classes/Gems/Snippets/Export/ReportHeaderSnippet.php (rev 0)
+++ trunk/library/classes/Gems/Snippets/Export/ReportHeaderSnippet.php 2012-06-15 11:47:36 UTC (rev 769)
@@ -0,0 +1,70 @@
+<?php
+/**
+ * Copyright (c) 2011, Erasmus MC
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ * * Neither the name of Erasmus MC nor the
+ * names of its contributors may be used to endorse or promote products
+ * derived from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ * @package Gems
+ * @subpackage Snippets
+ * @copyright Copyright (c) 2011 Erasmus MC
+ * @license New BSD License
+ * @version $Id: Sample.php 215 2011-07-12 08:52:54Z michiel $
+ */
+
+/**
+ * Header for html/pdf export of a respondent
+ *
+ * @package Gems
+ * @subpackage Snippets
+ * @copyright Copyright (c) 2011 Erasmus MC
+ * @license New BSD License
+ * @since Class available since version 1.5.5
+ */
+class Gems_Snippets_Export_ReportHeaderSnippet extends MUtil_Snippets_SnippetAbstract
+{
+ /**
+ * @var Gems_Loader
+ */
+ public $loader;
+
+ public function getHtmlOutput(Zend_View_Abstract $view)
+ {
+ $html = $this->getHtmlSequence();
+ $html->h1($this->_('Respondent report'));
+
+ $table = $html->table(array('class' => 'browser'));
+
+ $table->th($this->_('Report information'), array('colspan' => 2));
+ $table->tr()->th($this->_('Generated by'))
+ ->td($this->loader->getCurrentUser()->getFullName());
+ $table->tr()->th($this->_('Generated on'))
+ ->td(new Zend_Date());
+ $table->tr()->th($this->_('Organization'))
+ ->td($this->loader->getCurrentUser()->getCurrentOrganization()->getName());
+
+ $html->br();
+
+ return $html;
+ }
+}
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|