File: D:/web/itpartnership.net (cms)/modules/nuSOAP/nuSOAP.module.php
<?php
#-------------------------------------------------------------------------
# Module: nuSOAP - a quick and dirty module to include nuSOAP
# Version: 1.0, calguy1000
#
#-------------------------------------------------------------------------
# CMS - CMS Made Simple is (c) 2005 by Ted Kulp (wishy@cmsmadesimple.org)
# This project's homepage is: http://www.cmsmadesimple.org
#
#-------------------------------------------------------------------------
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# Or read it online: http://www.gnu.org/licenses/licenses.html#GPL
#
#-------------------------------------------------------------------------
if( !isset($gCms) ) exit;
#-------------------------------------------------------------------------
/* Your initial Class declaration. This file's name must
be "[class's name].module.php", or, in this case,
nuSOAP.module.php
*/
class nuSOAP extends CMSModule
{
/*---------------------------------------------------------
GetName()
must return the exact class name of the module.
If these do not match, bad things happen.
---------------------------------------------------------*/
function GetName()
{
return 'nuSOAP';
}
/*---------------------------------------------------------
GetFriendlyName()
---------------------------------------------------------*/
function GetFriendlyName()
{
return $this->Lang('friendlyname');
}
/*---------------------------------------------------------
GetVersion()
---------------------------------------------------------*/
function GetVersion()
{
return '1.0.2';
}
/*---------------------------------------------------------
GetHelp()
---------------------------------------------------------*/
function GetHelp()
{
return $this->Lang('help');
}
/*---------------------------------------------------------
GetAuthor()
---------------------------------------------------------*/
function GetAuthor()
{
return 'calguy1000';
}
/*---------------------------------------------------------
GetAuthorEmail()
---------------------------------------------------------*/
function GetAuthorEmail()
{
return 'calguy1000@hotmail.com';
}
/*---------------------------------------------------------
GetChangeLog()
---------------------------------------------------------*/
function GetChangeLog()
{
return $this->Lang('changelog');
}
/*---------------------------------------------------------
IsPluginModule()
---------------------------------------------------------*/
function IsPluginModule()
{
return false;
}
/*---------------------------------------------------------
HasAdmin()
---------------------------------------------------------*/
function HasAdmin()
{
return false;
}
/*---------------------------------------------------------
IsAdminOnly()
---------------------------------------------------------*/
function IsAdminOnly()
{
return true;
}
/*---------------------------------------------------------
GetAdminSection()
---------------------------------------------------------*/
function GetAdminSection()
{
return 'extensions';
}
/*---------------------------------------------------------
GetAdminDescription()
---------------------------------------------------------*/
function GetAdminDescription()
{
return $this->Lang('moddescription');
}
/*---------------------------------------------------------
VisibleToAdminUser()
---------------------------------------------------------*/
function VisibleToAdminUser()
{
return false;
}
/*---------------------------------------------------------
GetDependencies()
---------------------------------------------------------*/
function GetDependencies()
{
return array();
}
/*---------------------------------------------------------
Install()
---------------------------------------------------------*/
function Install()
{
// put mention into the admin log
$this->Audit( 0, $this->Lang('friendlyname'), $this->Lang('installed',$this->GetVersion()));
}
/*---------------------------------------------------------
InstallPostMessage()
---------------------------------------------------------*/
function InstallPostMessage()
{
return $this->Lang('postinstall');
}
/*---------------------------------------------------------
Load()
Load the nuSOAP classes
---------------------------------------------------------*/
function Load()
{
require_once(dirname(__FILE__)."/classes/nusoap.php");
}
/*---------------------------------------------------------
UninstallPostMessage()
---------------------------------------------------------*/
function UninstallPostMessage()
{
return $this->Lang('postuninstall');
}
/*---------------------------------------------------------
Upgrade()
---------------------------------------------------------*/
function Upgrade($oldversion, $newversion)
{
$current_version = $oldversion;
switch($current_version)
{
case "1.0":
break;
case "1.1":
break;
}
// put mention into the admin log
$this->Audit( 0, $this->Lang('friendlyname'), $this->Lang('upgraded',$this->GetVersion()));
}
/*---------------------------------------------------------
Uninstall()
---------------------------------------------------------*/
function Uninstall()
{
// put mention into the admin log
$this->Audit( 0, $this->Lang('friendlyname'), $this->Lang('uninstalled'));
}
/*---------------------------------------------------------
DoAction($action, $id, $params, $return_id)
---------------------------------------------------------*/
function DoAction($action, $id, $params, $return_id=-1)
{
switch ($action)
{
case 'default':
{
break;
}
case 'defaultadmin':
{
break;
}
}
}
/*---------------------------------------------------------
DisplayErrorPage($id, $params, $return_id, $message)
NOT PART OF THE MODULE API
This is an example of a simple method to display
error information on the admin side.
---------------------------------------------------------*/
function DisplayErrorPage($id, &$params, $returnid, $message='')
{
$this->smarty->assign('title_error', $this->Lang('error'));
if ($message != '')
{
$this->smarty->assign_by_ref('message', $message);
}
// Display the populated template
echo $this->ProcessTemplate('error.tpl');
}
// Load
} // class
?>