[ Index ]
 

Code source de CMS made simple 1.0.5

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/modules/nuSOAP/ -> nuSOAP.module.php (source)

   1  <?php
   2  #-------------------------------------------------------------------------
   3  # Module: nuSOAP - a quick and dirty module to include nuSOAP
   4  # Version: 1.0, calguy1000
   5  #
   6  #-------------------------------------------------------------------------
   7  # CMS - CMS Made Simple is (c) 2005 by Ted Kulp (wishy@cmsmadesimple.org)
   8  # This project's homepage is: http://www.cmsmadesimple.org
   9  #
  10  #-------------------------------------------------------------------------
  11  #
  12  # This program is free software; you can redistribute it and/or modify
  13  # it under the terms of the GNU General Public License as published by
  14  # the Free Software Foundation; either version 2 of the License, or
  15  # (at your option) any later version.
  16  #
  17  # This program is distributed in the hope that it will be useful,
  18  # but WITHOUT ANY WARRANTY; without even the implied warranty of
  19  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  20  # GNU General Public License for more details.
  21  # You should have received a copy of the GNU General Public License
  22  # along with this program; if not, write to the Free Software
  23  # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  24  # Or read it online: http://www.gnu.org/licenses/licenses.html#GPL
  25  #
  26  #-------------------------------------------------------------------------
  27  
  28  
  29  #-------------------------------------------------------------------------
  30  /* Your initial Class declaration. This file's name must
  31     be "[class's name].module.php", or, in this case,
  32     nuSOAP.module.php
  33  */ 
  34  class nuSOAP extends CMSModule
  35  {
  36  
  37    /*---------------------------------------------------------
  38     GetName()
  39     must return the exact class name of the module.
  40     If these do not match, bad things happen.
  41     ---------------------------------------------------------*/
  42    function GetName()
  43    {
  44      return 'nuSOAP';
  45    }
  46  
  47  
  48    /*---------------------------------------------------------
  49     GetFriendlyName()
  50     ---------------------------------------------------------*/
  51    function GetFriendlyName()
  52    {
  53      return $this->Lang('friendlyname');
  54    }
  55  
  56      
  57    /*---------------------------------------------------------
  58     GetVersion()
  59     ---------------------------------------------------------*/
  60    function GetVersion()
  61    {
  62      return '1.0.1';
  63    }
  64  
  65  
  66    /*---------------------------------------------------------
  67     GetHelp()
  68     ---------------------------------------------------------*/
  69    function GetHelp()
  70    {
  71      return $this->Lang('help');
  72    }
  73  
  74  
  75    /*---------------------------------------------------------
  76     GetAuthor()
  77     ---------------------------------------------------------*/
  78    function GetAuthor()
  79    {
  80      return 'calguy1000';
  81    }
  82  
  83  
  84    /*---------------------------------------------------------
  85     GetAuthorEmail()
  86     ---------------------------------------------------------*/
  87    function GetAuthorEmail()
  88    {
  89      return 'calguy1000@hotmail.com';
  90    }
  91  
  92  
  93    /*---------------------------------------------------------
  94     GetChangeLog()
  95     ---------------------------------------------------------*/
  96    function GetChangeLog()
  97    {
  98      return $this->Lang('changelog');
  99    }
 100  
 101  
 102    /*---------------------------------------------------------
 103     IsPluginModule()
 104     ---------------------------------------------------------*/
 105    function IsPluginModule()
 106    {
 107      return false;
 108    }
 109  
 110    /*---------------------------------------------------------
 111     HasAdmin()
 112     ---------------------------------------------------------*/
 113    function HasAdmin()
 114    {
 115      return false;
 116    }
 117  
 118    /*---------------------------------------------------------
 119     GetAdminSection()
 120     ---------------------------------------------------------*/
 121    function GetAdminSection()
 122    {
 123      return 'extensions';
 124    }
 125  
 126  
 127    /*---------------------------------------------------------
 128     GetAdminDescription()
 129     ---------------------------------------------------------*/
 130    function GetAdminDescription()
 131    {
 132      return $this->Lang('moddescription');
 133    }
 134  
 135  
 136    /*---------------------------------------------------------
 137     VisibleToAdminUser()
 138     ---------------------------------------------------------*/
 139    function VisibleToAdminUser()
 140    {
 141      return false;
 142    }
 143  
 144    /*---------------------------------------------------------
 145     GetDependencies()
 146     ---------------------------------------------------------*/
 147    function GetDependencies()
 148    {
 149      return array();
 150    }
 151  
 152  
 153    /*---------------------------------------------------------
 154     Install()
 155     ---------------------------------------------------------*/
 156    function Install()
 157    {
 158      // put mention into the admin log
 159      $this->Audit( 0, $this->Lang('friendlyname'), $this->Lang('installed',$this->GetVersion()));
 160    }
 161  
 162  
 163    /*---------------------------------------------------------
 164     InstallPostMessage()
 165     ---------------------------------------------------------*/
 166    function InstallPostMessage()
 167    {
 168      return $this->Lang('postinstall');
 169    }
 170  
 171  
 172    
 173    /*---------------------------------------------------------
 174     Load()
 175  
 176     Load the nuSOAP classes
 177     ---------------------------------------------------------*/
 178    function Load()
 179    {
 180      require_once(dirname(__FILE__)."/classes/nusoap.php"); 
 181    }
 182  
 183    /*---------------------------------------------------------
 184     UninstallPostMessage()
 185     ---------------------------------------------------------*/
 186    function UninstallPostMessage()
 187    {
 188      return $this->Lang('postuninstall');
 189    }
 190  
 191  
 192    /*---------------------------------------------------------
 193     Upgrade()
 194     ---------------------------------------------------------*/
 195    function Upgrade($oldversion, $newversion)
 196    {
 197      $current_version = $oldversion;
 198      switch($current_version)
 199        {
 200        case "1.0":
 201      break;
 202        case "1.1":
 203      break;
 204        }
 205          
 206      // put mention into the admin log
 207      $this->Audit( 0, $this->Lang('friendlyname'), $this->Lang('upgraded',$this->GetVersion()));
 208    }
 209      
 210      
 211    /*---------------------------------------------------------
 212     Uninstall()
 213     ---------------------------------------------------------*/
 214    function Uninstall()
 215    {
 216      // put mention into the admin log
 217      $this->Audit( 0, $this->Lang('friendlyname'), $this->Lang('uninstalled'));
 218    }
 219  
 220  
 221    /*---------------------------------------------------------
 222     DoAction($action, $id, $params, $return_id)
 223     ---------------------------------------------------------*/
 224    function DoAction($action, $id, $params, $return_id=-1)
 225    {
 226      switch ($action)
 227        {
 228        case 'default':
 229      {
 230        break;
 231      }
 232        case 'defaultadmin':
 233      {
 234        break;
 235      }
 236        }
 237    }
 238  
 239    /*---------------------------------------------------------
 240     DisplayErrorPage($id, $params, $return_id, $message)
 241     NOT PART OF THE MODULE API
 242  
 243     This is an example of a simple method to display
 244     error information on the admin side.
 245     ---------------------------------------------------------*/
 246    function DisplayErrorPage($id, &$params, $returnid, $message='')
 247    {
 248      $this->smarty->assign('title_error', $this->Lang('error'));
 249      if ($message != '')
 250        {
 251      $this->smarty->assign_by_ref('message', $message);
 252        }
 253  
 254      // Display the populated template
 255      echo $this->ProcessTemplate('error.tpl');
 256    }
 257  
 258    // Load 
 259  
 260  } // class
 261  
 262  ?>


Généré le : Tue Apr 3 18:50:37 2007 par Balluche grâce à PHPXref 0.7