|
1.0 |
1.5 |
| _ISO |
deprecated (output always forced as utf-8) |
| _VALID_MOS |
_JEXEC |
| _DATE_FORMAT_LC |
DATE_FORMAT_LC |
| _DATE_FORMAT_LC2 |
DATE_FORMAT_LC2 |
| _JLEGACY |
'1.0' (defined if in legacy mode) |
|
1.0 |
1.5 |
| $_VERSION |
JVersion::getLongVersion() |
| $database |
$database = &JFactory::getDBO() |
| $my |
$user = &JFactory::getUser() |
| $mosConfig_live_site |
site: JURI::base() |
| $mosConfig_absolute_path |
JPATH_SITE |
| $acl |
$acl = &JFactory::getACL() |
| $task |
JRequest::getString('task') |
| $_MAMBOTS |
$mainframe->registerEvent() and $mainframe->triggerEvent() |
| $cur_template |
$mainframe->getTemplate() |
|
PATH |
Example |
| JPATH_BASE |
frontend : C:\Apache_2_2\htdocs\JoomlaX backend : C:\Apache_2_2\htdocs\JoomlaX\administrator |
| JPATH_ROOT |
C:\Apache_2_2\htdocs\JoomlaX |
| JPATH_SITE |
C:\Apache_2_2\htdocs\JoomlaX |
| JPATH_CONFIGURATION |
C:\Apache_2_2\htdocs\JoomlaX |
| JPATH_COMPONENT_SITE |
C:\Apache_2_2\htdocs\JoomlaX\components \com_searchlog |
| JPATH_COMPONENT_ADMINISTRATOR |
C:\Apache_2_2\htdocs\JoomlaX\administrator \components\com_searchlog |
|
PATH |
Definition |
| JPATH_XMLRPC |
JPATH_ROOT.DS.'xmlrpc' |
| JPATH_LIBRARIES |
JPATH_ROOT.DS.'libraries' |
| JPATH_PLUGINS |
JPATH_ROOT.DS.'plugins' |
| JPATH_INSTALLATION |
JPATH_ROOT.DS.'installation |
| JPATH_THEMES |
JPATH_BASE.DS.'templates |
| JPATH_CACHE |
JPATH_BASE.DS.'cache' |
|
Class |
Description |
| mosMainFrame |
Legacy class, derive from JApplication instead |
| mosDBTable |
Legacy class, derive from JTable instead |
| mosCategory |
Legacy class, use JTableCategory instead |
| mosComponent |
Legacy class, use JTableComponent instead |
| mosContent |
Legacy class, use JTableContent instead |
| mosMambot |
Legacy class, replaced by JTablePlugin |
| mosMenu |
Legacy class, use JTableMenu instead |
| mosModule |
Legacy class, use JTableModule instead |
| mosPageNav |
Legacy class, use JPagination instead |
| mosSection |
Legacy class, use JTableSection instead |
| mosSession |
Legacy class, use JTableSession instead |
| mosUser |
Legacy class, use JTableUser instead |
| database |
Legacy class, use JDatabase instead |
| mosCache |
Legacy class, use &JFactory::getCache() instead |
| mosProfiler |
Legacy class, use JProfiler instead |
| mosParameters |
Legacy class, use JParameter instead |
| mosAbstractTasker |
Legacy class, replaced by full MVC implementation. See JController |
| mosMambotHandler |
Legacy class, use JEventDispatcher instead |
| mosEmpty |
Legacy class, removed |
| mosHTML |
Legacy class, use JHTML instead |
| mosInstaller |
Legacy class, use JInstaller instead |
| mosCommonHTML |
Legacy class, use JHTML::_() instead |
| mosAdminMenus |
Utility class for drawing admin menu HTML elements |
| MENU_Default |
Legacy class, removed |
| mosTabs |
Legacy class, use JPanel instead |
| patFactory |
Legacy class, use JTemplate::getInstance() instead |
| mosMenuBar |
Legacy
class, use JToolBarHelper instead |
|
1.0 |
1.5 |
| mosCountModules( $position = 'left') |
<jdoc:exists type="modules" condition="{POSITION}" /> |
| mosMainBody() |
<jdoc:include type="component" /> |
| mosLoadModules() |
<jdoc:include type="modules" name="{POSITION}" style="{STYLE}" /> |
| mosLoadModule() |
<jdoc:include type="module" name="{NAME}" style="{STYLE}" /> |
| mosShowHead() |
<jdoc:include type="head" /> |
| mosCountAdminModules() |
<jdoc:exists /> |
| mosCountAdminModules() |
<jdoc:exists /> |
| - |
jimport( $path )[4] equivalent to JLoader::import($path) register example [5] JLoader::register('JTableComponent', JPATH_LIBRARIES.DS.'joomla'.DS.'database'.DS.'table'.DS.'component.php'); |
| mosStripslashes() |
JRequest::getVar() |
| mosBindArrayToObject() |
JObject::bind() |
| mosHash() |
JUtility::getHash() |
| mosNotAuth() |
JError::raiseError( 403, JText::_("ALERTNOTAUTH") ); |
| mosErrorAlert() |
JError (class) |
| mosPathName() |
JPath::clean() |
| mosReadDirectory() |
JFolder::files() and JFolder::folders() |
| mosCreateMail() |
$mail = &JFactory::getMailer() |
| mosMail() |
JUtility::sendMail() |
| mosSendAdminMail() |
JUtility::sendAdminMail() |
| mosMakePassword() |
JUserHelper::genRandomPassword() |
| mosSendAdminMail() |
JUtility::sendAdminMail() |
| mosRedirect() |
$mainframe->redirect() (JController has its own setRedirect() function) |
| mosMakePath() |
JFolder::create() |
| mosArrayToInts() |
JArrayHelper::toInteger() |
| mosBackTrace() |
JError::getBackTrace() |
| mosChmod() |
JPath::setPermissions() |
| mosIsChmodable() |
JPath::canChmod() |
| mosShowSource() |
deprecated |
| mosPathWay() |
<jdoc:include type="module" name="breadcrumb" /> |
| mosGetBrowser() |
$browser = &JBrowser::getInstance() |
| mosGetOS() |
$browser = &JBrowser::getInstance(); $browser-]getPlatform(); |
| mosGetParam() |
JArrayHelper::getValue() |
| mosGetOrderingList() |
JHTML::_('list.genericordering', ... ) |
| mosParseParams() |
JRegistry[1] |
| mosLoadComponent() |
deprecated |
| initEditor() |
JEditor::init() |
| getEditorContents() |
JEditor::save() |
| editorArea() |
JEditor::display() |
| mosMenuCheck() |
JMenu::authorize() |
| mosObjectToArray() |
JArrayHelper::fromObject() |
| mosFormatDate() |
|
| mosCurrentDate() |
JHTML::_('date', 'now', ... ) |
| mosMakeHtmlSafe() |
JFilterOutput::objectHTMLSafe() |
| initGzip() |
deprecated, solution now included in JDocument |
| SortArrayObjects() |
JArrayHelper::sortObjects() |
| josSpoofCheck() |
deprecated, solution now included in JSession |
| josSpoofValue() |
JUtility::getToken() |
| loadOverlib() |
JHTML::_('behavior.tooltip') |
| mosToolTip() |
JHTML::_('tooltip', ... ) |
| sefRelToAbs() |
JRoute::_() |
| mosTreeRecurse() |
JHTML::_('menu.treerecurse', ... ) |
[1] mosParseParams() vs. JRegistry
$params = new JParameter( $menu->params );
JParameter extends JRegistry, so you can also use JRegistry's methods.
[2] example : JHTML::_( 'date', '2006-02-02', '%d/%m' )
[3] JHTML::_ will parse the first parameter given: anything before a '.' is a class name suffix that is added to JHTML, anything after is the method name that is invoked.
So, JHTML::_( 'date' ) will invoke JHTML::date and pass all the other parameters to that method.
In the same way, JHTML::_( 'grid.sort', ... ) will invoke JHTMLGrid::sort().
[4] jimport() function is used for dynamical file loading in Joomla 1.5. All files are loaded relative to the Joomla libraries directory. The ‘.’s are used as directory separators and the last part is the name of the file to load.
[5] applies to Joomla! 1.5RC4 or later using lazy loading of files (autoload feature of PHP5) - see http://forum.joomla.org/viewtopic.php?f=287&t=225224&p=1043577
|
1.0 |
1.5 |
| $_MAMBOTS->registerFunction |
$mainframe->registerEvent($event, $handler) |
| $_MAMBOTS->trigger( 'onPrepareContent', ,) |
$mainframe->triggerEvent( 'onPrepareContent', $args) |
| $_MAMBOTS->trigger( 'onBeforedisplaycontent', ,) |
$mainframe->triggerEvent( 'onBeforeDisplayContent', $args) |
| $_MAMBOTS->trigger( 'onAfterDisplayContent', ,) |
$mainframe->triggerEvent( 'onAfterDisplayContent', $args) |
| $_MAMBOTS->loadBotGroup( 'content' )
|
JPluginHelper::importPlugin($group, null, false); |