Changeset 2633

Show
Ignore:
Timestamp:
06/20/08 16:38:07 (5 months ago)
Author:
bricef
Message:

Fusion branche et trunk

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/Copix_3_0_X/project/modules/public/stable/tools/wsserver/actiongroups/admin.actiongroup.php

    r605 r2633  
    11<?php 
    22/** 
    3  * @package     wsserver 
     3 * @package     tools 
     4 * @subpackage  wsserver 
    45 * @author      Favre Brice 
    5  * @copyright   2001-2007 CopixTeam 
     6 * @copyright   2001-2008 CopixTeam 
    67 * @link        http://copix.org 
    7  * @license http://www.gnu.org/licenses/lgpl.htmlGNU Leser General Public Licence, see LICENCE file 
     8 * @license        http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public Licence, see LICENCE file 
    89 */ 
    910  
     
    1819     * Vérifie que l'on est bien administrateur 
    1920     */ 
    20     public function beforeAction (){ 
     21    public function beforeAction ($pActionName){ 
    2122        CopixAuth::getCurrentUser ()->assertCredential ('basic:admin'); 
    2223    } 
     
    5455     
    5556    /** 
    56      * Supprime un WebService 
     57     * Supprime un webservice 
     58     * 
     59     * @return CopixActionReturn 
    5760     */ 
    5861    public function processDeleteWsService () { 
  • branches/Copix_3_0_X/project/modules/public/stable/tools/wsserver/actiongroups/default.actiongroup.php

    r2628 r2633  
    44 * @subpackage  wsserver 
    55 * @author      Favre Brice 
    6  * @copyright   CopixTeam 
     6 * @copyright   2001-2008 CopixTeam 
    77 * @link            http://copix.org 
    8  * @licence       http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public Licence, see LICENCE file 
     8 * @license       http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public Licence, see LICENCE file 
    99 */ 
    1010 
     
    1616class ActionGroupDefault extends CopixActionGroup { 
    1717     
     18    /** 
     19     * module exporté 
     20     * 
     21     * @var string 
     22     */ 
    1823    private $_exportModule; 
    19     private $_exportActiongroup; 
     24 
     25    /** 
     26     * Chemin du module exporté 
     27     * 
     28     * @var  string 
     29     */ 
    2030    private $_path; 
    2131    private $_exportClassFilename; 
     
    6878        if ($_SERVER['REQUEST_METHOD'] == 'POST') {  
    6979            $server->handle(); 
    70             $tpl = new CopixTpl(); 
    71             $tpl->assign('MAIN',''); 
    72             return new CopixActionReturn (CopixActionReturn::DISPLAY_IN, $tpl, "wsserver|blank.tpl"); 
     80            return _arNone(); 
    7381        } else { 
    7482            $res = '<strong>' . _i18n('wsserver.handle.title').'</strong>';     
     
    8997    /** 
    9098     * Fonction permettant de générer le fichier WSDL 
     99     * 
     100     * @return CopixActionReturn 
    91101     */ 
    92102    function processWsdl () { 
     
    114124    /** 
    115125     * Récupération des exceptions SOAP  
     126     * 
     127     * @param Exception $e 
     128     * @return SoapFault si c'est une erreur SOAP 
    116129     */ 
    117130    function catchActionExceptions ($e) { 
  • trunk/project/modules/stable/tools/wsserver/actiongroups/default.actiongroup.php

    r1701 r2633  
    141141        $tpl->assign('MAIN',$res); 
    142142 
    143         return new CopixActionReturn (CopixActionReturn::DISPLAY_IN, $tpl, "wsserver|blank.tpl"); 
     143        return _arContent ($res,  array ('content-type'=>'text/xml')); 
    144144    } 
    145145