[ Index ]
 

Code source de Typo3 4.1.3

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/t3lib/ -> class.t3lib_extobjbase.php (sommaire)

Contains the base class for 'Extension Objects' in backend modules. $Id: class.t3lib_extobjbase.php 593 2005-04-01 14:37:15Z typo3 $ Revised for TYPO3 3.6 July/2003 by Kasper Skaarhoj

Author: Kasper Skaarhoj <kasperYYYY@typo3.com>
Poids: 283 lignes (11 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

t3lib_extobjbase:: (6 méthodes):
  init()
  handleExternalFunctionValue()
  incLocalLang()
  checkExtObj()
  extObjContent()
  modMenu()


Classe: t3lib_extobjbase  - X-Ref

Parent class for 'Extension Objects' in backend modules.
Used for 'submodules' to other modules. Also called 'Function menu modules' in t3lib_extMgm. And now its even called 'Extension Objects'. Or 'Module functions'. Wish we had just one name. Or a name at all...(?) Thank God its not so advanced when it works...
In other words this class is used for backend modules which is not true backend modules appearing in the menu but rather adds themselves as a new entry in the function menu which typically exists for a backend module (like Web>Functions, Web>Info or Tools etc...)
The magic that binds this together is stored in the global variable $TBE_MODULES_EXT where extensions wanting to connect a module based on this class to an existing backend module store configuration which consists of the classname, script-path and a label (title/name)
For more information about this, please see the large example comment for the class t3lib_SCbase. This will show the principle of a 'level-1' connection.
The more advanced example - having two layers as it is done by the 'func_wizards' extension with the 'web_info' module - can be seen in the comment above.

init(&$pObj,$conf)   X-Ref
Initialize the object

param: object        A reference to the parent (calling) object (which is probably an instance of an extension class to t3lib_SCbase)
param: array        The configuration set for this module - from global array TBE_MODULES_EXT
return: void

handleExternalFunctionValue()   X-Ref
If $this->function_key is set (which means there are two levels of object connectivity) then $this->extClassConf is loaded with the TBE_MODULES_EXT configuration for that sub-sub-module

return: void

incLocalLang()   X-Ref
Including any locallang file configured and merging its content over the current global LOCAL_LANG array (which is EXPECTED to exist!!!)

return: void

checkExtObj()   X-Ref
Same as t3lib_SCbase::checkExtObj()

return: void

extObjContent()   X-Ref
Calls the main function inside ANOTHER sub-submodule which might exist.

return: void

modMenu()   X-Ref
Dummy function - but is used to set up additional menu items for this submodule.
For an example see the extension 'cms' where the 'web_info' submodule is defined in cms/web_info/class.tx_cms_webinfo.php, tx_cms_webinfo_page::modMenu()

return: array        A MOD_MENU array which will be merged together with the one from the parent object



Généré le : Sun Nov 25 17:13:16 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics