|
Joomla 1.5 Migration Table |
|
|
|
To migrate from joomla 1.0 to joomla 1.5 you will need this important table
Constants
|
1.0 |
1.5 |
| _ISO |
deprecated (output always forced as utf-8) |
| _VALID_MOS
_MOS_MAMBO_INCLUDED |
_JEXEC |
| _DATE_FORMAT_LC |
DATE_FORMAT_LC |
| _DATE_FORMAT_LC2 |
DATE_FORMAT_LC2 |
| _JLEGACY |
'1.0' (defined if in legacy mode) |
Variables
|
1.0 |
1.5 |
| $_VERSION |
JVersion::getLongVersion() |
| $database |
$database = &JFactory::getDBO() |
| $my |
$user = &JFactory::getUser() |
| $mosConfig_live_site |
site: JURI::base()
admin: $mainframe->getSiteURL() |
| $mosConfig_absolute_path |
JPATH_SITE |
| $acl |
$acl = &JFactory::getACL() |
| $task |
JRequest::getString('task') |
| $_MAMBOTS |
$mainframe->registerEvent() and $mainframe->triggerEvent() |
| $cur_template |
$mainframe->getTemplate() |
PATH examples (for component named 'searchlog')
|
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 |
Other PATH definitions
|
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' |
Classes
|
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 |
Functions
|
1.0 |
1.5 |
| mosCountModules( $position = 'left') |
<jdoc:exists type="modules" condition="{POSITION}"
/> |
| mosMainBody()
mosMainBody_Admin() |
<jdoc:include type="component" /> |
| mosLoadModules()
mosLoadAdminModules() |
<jdoc:include type="modules" name="{POSITION}"
style="{STYLE}" /> |
| mosLoadModule()
mosLoadAdminModule() |
<jdoc:include type="module" name="{NAME}"
style="{STYLE}" /> |
| mosShowHead()
mosShowHead_Admin() |
<jdoc:include type="head" /> |
| mosCountAdminModules() |
<jdoc:exists /> |
| mosCountAdminModules() |
<jdoc:exists /> |
| - |
jimport( $path )
equivalent to JLoader::import($path)
register
example 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()
mosChmodRecursive() |
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 |
| mosLoadComponent() |
deprecated |
| initEditor() |
JEditor::init() |
| getEditorContents() |
JEditor::save() |
| editorArea() |
JEditor::display() |
| mosMenuCheck() |
JMenu::authorize() |
| mosObjectToArray() |
JArrayHelper::fromObject() |
| mosFormatDate() |
JHTML::_('date', ... ) |
| mosCurrentDate() |
JHTML::_('date', 'now', ... ) |
| mosMakeHtmlSafe() |
JFilterOutput::objectHTMLSafe() |
| initGzip()
doGzip() |
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()
ampReplace() |
JRoute::_() |
| mosTreeRecurse() |
JHTML::_('menu.treerecurse', ... ) |
Mambots
|
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); |
|
|
|