Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/lib/alfresco/Service/WebService/WebServiceFactory.php
Go to the documentation of this file.
00001 <?php
00002 
00003 /*
00004  * Copyright (C) 2005 Alfresco, Inc.
00005  *
00006  * This program is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU General Public License
00008  * as published by the Free Software Foundation; either version 2
00009  * of the License, or (at your option) any later version.
00010 
00011  * This program is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015 
00016  * You should have received a copy of the GNU General Public License
00017  * along with this program; if not, write to the Free Software
00018  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
00019 
00020  * As a special exception to the terms and conditions of version 2.0 of 
00021  * the GPL, you may redistribute this Program in connection with Free/Libre 
00022  * and Open Source Software ("FLOSS") applications as described in Alfresco's 
00023  * FLOSS exception.  You should have recieved a copy of the text describing 
00024  * the FLOSS exception, and it is also available here: 
00025  * http://www.alfresco.com/legal/licensing"
00026  */
00027 
00028 // changed by moodle
00029 require_once ($CFG->libdir.'/alfresco/Service/WebService/AlfrescoWebService.php');
00030 
00031 class WebServiceFactory
00032 {
00033    public static function getAuthenticationService($path)
00034    {
00035         $path .= '/AuthenticationService?wsdl';
00036         return new AlfrescoWebService($path, array('location'=>$path));
00037    }
00038 
00039    public static function getRepositoryService($path, $ticket)
00040    {
00041         $path .= '/RepositoryService?wsdl';
00042         return new AlfrescoWebService($path, array('location'=>$path), $ticket);
00043    }
00044    
00045    public static function getContentService($path, $ticket)
00046    {
00047         $path .= '/ContentService?wsdl';
00048         return new AlfrescoWebService($path, array('location'=>$path), $ticket);
00049    }
00050    
00051    public static function getAdministrationService($path, $ticket)
00052    {
00053         $path .= '/AdministrationService?wsdl';
00054         return new AlfrescoWebService($path, array('location'=>$path), $ticket);
00055    }   
00056    
00057    public static function getAuthoringService($path, $ticket)
00058    {
00059         $path .= '/AuthoringService?wsdl';
00060         return new AlfrescoWebService($path, array('location'=>$path), $ticket);
00061    }
00062 }
00063 
00064 ?>
 All Data Structures Namespaces Files Functions Variables Enumerations