Changeset 2633
- Timestamp:
- 06/20/08 16:38:07 (5 months ago)
- Files:
-
- branches/Copix_3_0_X/project/modules/public/stable/tools/wsserver/actiongroups/admin.actiongroup.php (modified) (3 diffs)
- branches/Copix_3_0_X/project/modules/public/stable/tools/wsserver/actiongroups/default.actiongroup.php (modified) (5 diffs)
- trunk/project/modules/stable/tools/wsserver/actiongroups/default.actiongroup.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/Copix_3_0_X/project/modules/public/stable/tools/wsserver/actiongroups/admin.actiongroup.php
r605 r2633 1 1 <?php 2 2 /** 3 * @package wsserver 3 * @package tools 4 * @subpackage wsserver 4 5 * @author Favre Brice 5 * @copyright 2001-200 7CopixTeam6 * @copyright 2001-2008 CopixTeam 6 7 * @link http://copix.org 7 * @license http://www.gnu.org/licenses/lgpl.htmlGNU Leser General Public Licence, see LICENCE file8 * @license http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public Licence, see LICENCE file 8 9 */ 9 10 … … 18 19 * Vérifie que l'on est bien administrateur 19 20 */ 20 public function beforeAction ( ){21 public function beforeAction ($pActionName){ 21 22 CopixAuth::getCurrentUser ()->assertCredential ('basic:admin'); 22 23 } … … 54 55 55 56 /** 56 * Supprime un WebService 57 * Supprime un webservice 58 * 59 * @return CopixActionReturn 57 60 */ 58 61 public function processDeleteWsService () { branches/Copix_3_0_X/project/modules/public/stable/tools/wsserver/actiongroups/default.actiongroup.php
r2628 r2633 4 4 * @subpackage wsserver 5 5 * @author Favre Brice 6 * @copyright CopixTeam6 * @copyright 2001-2008 CopixTeam 7 7 * @link http://copix.org 8 * @licen ce http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public Licence, see LICENCE file8 * @license http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public Licence, see LICENCE file 9 9 */ 10 10 … … 16 16 class ActionGroupDefault extends CopixActionGroup { 17 17 18 /** 19 * module exporté 20 * 21 * @var string 22 */ 18 23 private $_exportModule; 19 private $_exportActiongroup; 24 25 /** 26 * Chemin du module exporté 27 * 28 * @var string 29 */ 20 30 private $_path; 21 31 private $_exportClassFilename; … … 68 78 if ($_SERVER['REQUEST_METHOD'] == 'POST') { 69 79 $server->handle(); 70 $tpl = new CopixTpl(); 71 $tpl->assign('MAIN',''); 72 return new CopixActionReturn (CopixActionReturn::DISPLAY_IN, $tpl, "wsserver|blank.tpl"); 80 return _arNone(); 73 81 } else { 74 82 $res = '<strong>' . _i18n('wsserver.handle.title').'</strong>'; … … 89 97 /** 90 98 * Fonction permettant de générer le fichier WSDL 99 * 100 * @return CopixActionReturn 91 101 */ 92 102 function processWsdl () { … … 114 124 /** 115 125 * Récupération des exceptions SOAP 126 * 127 * @param Exception $e 128 * @return SoapFault si c'est une erreur SOAP 116 129 */ 117 130 function catchActionExceptions ($e) { trunk/project/modules/stable/tools/wsserver/actiongroups/default.actiongroup.php
r1701 r2633 141 141 $tpl->assign('MAIN',$res); 142 142 143 return new CopixActionReturn (CopixActionReturn::DISPLAY_IN, $tpl, "wsserver|blank.tpl");143 return _arContent ($res, array ('content-type'=>'text/xml')); 144 144 } 145 145
