All the require_once are now prefixed by domframework to allow multiple loading of the page (without "Cannot redeclare class output")

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3750 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2017-06-02 09:46:42 +00:00
parent a3ff06eac7
commit 89461c1cb2
8 changed files with 9 additions and 9 deletions

View File

@@ -3,7 +3,7 @@
@package domframework @package domframework
@author Dominique Fournier <dominique@fournier38.fr> */ @author Dominique Fournier <dominique@fournier38.fr> */
require_once ("auth.php"); require_once ("domframework/auth.php");
/** User authentication against SYMPA server /** User authentication against SYMPA server
Sympa is a mailling list server. It can handle authentication with Sympa is a mailling list server. It can handle authentication with
- a username (a email adress) - a username (a email adress)

View File

@@ -3,7 +3,7 @@
@package domframework @package domframework
@author Dominique Fournier <dominique@fournier38.fr> */ @author Dominique Fournier <dominique@fournier38.fr> */
require_once ("output.php"); require_once ("domframework/output.php");
/** Display in CSV the data provided */ /** Display in CSV the data provided */
class outputcsv extends output class outputcsv extends output
{ {

View File

@@ -3,7 +3,7 @@
@package domframework @package domframework
@author Dominique Fournier <dominique@fournier38.fr> */ @author Dominique Fournier <dominique@fournier38.fr> */
require_once ("output.php"); require_once ("domframework/output.php");
/** Display in HTML the data provided, with the layout support */ /** Display in HTML the data provided, with the layout support */
class outputhtml extends output class outputhtml extends output
{ {

View File

@@ -3,7 +3,7 @@
@package domframework @package domframework
@author Dominique Fournier <dominique@fournier38.fr> */ @author Dominique Fournier <dominique@fournier38.fr> */
require_once ("output.php"); require_once ("domframework/output.php");
/** Display in JSON the data provided /** Display in JSON the data provided
* The data must NOT be binary ! * The data must NOT be binary !
*/ */

View File

@@ -3,8 +3,8 @@
@package domframework @package domframework
@author Dominique Fournier <dominique@fournier38.fr> */ @author Dominique Fournier <dominique@fournier38.fr> */
require_once ("output.php"); require_once ("domframework/output.php");
require_once ("rest.php"); require_once ("domframework/rest.php");
/** Display in REST the data provided. /** Display in REST the data provided.
* Allow all the output types : JSON, XML, TXT... * Allow all the output types : JSON, XML, TXT...
*/ */

View File

@@ -3,7 +3,7 @@
@package domframework @package domframework
@author Dominique Fournier <dominique@fournier38.fr> */ @author Dominique Fournier <dominique@fournier38.fr> */
require_once ("output.php"); require_once ("domframework/output.php");
/** Display in Text the data provided */ /** Display in Text the data provided */
class outputtxt extends output class outputtxt extends output
{ {

View File

@@ -3,7 +3,7 @@
@package domframework @package domframework
@author Dominique Fournier <dominique@fournier38.fr> */ @author Dominique Fournier <dominique@fournier38.fr> */
require_once ("output.php"); require_once ("domframework/output.php");
/** Display in XML the data provided */ /** Display in XML the data provided */
class outputxml extends output class outputxml extends output
{ {

View File

@@ -27,7 +27,7 @@ class renderer
$this->output */ $this->output */
public function run () public function run ()
{ {
if (!@require_once ("output$this->output.php")) if (!@require_once ("domframework/output$this->output.php"))
throw new Exception ("Renderer '$this->output' not found", 500); throw new Exception ("Renderer '$this->output' not found", 500);
$class = "output$this->output"; $class = "output$this->output";
$reflection = new ReflectionMethod ($class, "out"); $reflection = new ReflectionMethod ($class, "out");