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:
@@ -3,7 +3,7 @@
|
||||
@package domframework
|
||||
@author Dominique Fournier <dominique@fournier38.fr> */
|
||||
|
||||
require_once ("auth.php");
|
||||
require_once ("domframework/auth.php");
|
||||
/** User authentication against SYMPA server
|
||||
Sympa is a mailling list server. It can handle authentication with
|
||||
- a username (a email adress)
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
@package domframework
|
||||
@author Dominique Fournier <dominique@fournier38.fr> */
|
||||
|
||||
require_once ("output.php");
|
||||
require_once ("domframework/output.php");
|
||||
/** Display in CSV the data provided */
|
||||
class outputcsv extends output
|
||||
{
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
@package domframework
|
||||
@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 */
|
||||
class outputhtml extends output
|
||||
{
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
@package domframework
|
||||
@author Dominique Fournier <dominique@fournier38.fr> */
|
||||
|
||||
require_once ("output.php");
|
||||
require_once ("domframework/output.php");
|
||||
/** Display in JSON the data provided
|
||||
* The data must NOT be binary !
|
||||
*/
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
@package domframework
|
||||
@author Dominique Fournier <dominique@fournier38.fr> */
|
||||
|
||||
require_once ("output.php");
|
||||
require_once ("rest.php");
|
||||
require_once ("domframework/output.php");
|
||||
require_once ("domframework/rest.php");
|
||||
/** Display in REST the data provided.
|
||||
* Allow all the output types : JSON, XML, TXT...
|
||||
*/
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
@package domframework
|
||||
@author Dominique Fournier <dominique@fournier38.fr> */
|
||||
|
||||
require_once ("output.php");
|
||||
require_once ("domframework/output.php");
|
||||
/** Display in Text the data provided */
|
||||
class outputtxt extends output
|
||||
{
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
@package domframework
|
||||
@author Dominique Fournier <dominique@fournier38.fr> */
|
||||
|
||||
require_once ("output.php");
|
||||
require_once ("domframework/output.php");
|
||||
/** Display in XML the data provided */
|
||||
class outputxml extends output
|
||||
{
|
||||
|
||||
@@ -27,7 +27,7 @@ class renderer
|
||||
$this->output */
|
||||
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);
|
||||
$class = "output$this->output";
|
||||
$reflection = new ReflectionMethod ($class, "out");
|
||||
|
||||
Reference in New Issue
Block a user