Functional differences between Joomla 1.0 and Joomla 1.5

14.01.2011

Many programmers wonder what functions and constants were replaced in Joomla 1.5, and what they were called in Joomla 1.0. This article summarizes all the functional differences that allow, if not immediately, then after showing ingenuity and perseverance, to transfer your sites to Joomla 1.5 and refuse to use Joomla 1.0 compatibility mode

Constants:

1.0 1.5
_ISO removed, since everywhere is UTF8
_VALID_MOS
_MOS_MAMBO_INCLUDED
_JEXEC
_DATE_FORMAT_LC _DATE_FORMAT_LC
_DATE_FORMAT_LC2 _DATE_FORMAT_LC2
_JLEGACY 1.0 if Legacy mode is enabled

Variables:

1.0 1.5
$_VERSION JVersion::getLongVersion()
$database $database = &JFactory::getDBO()
$my $user = &JFactory::getUser()
$mosConfig_live_site front: JURI::base()
back-end: $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()

Classes:

1.0 1.5
mosMainFrame JApplication
mosDBTable JTable
mosCategory JTableCategory
mosComponent JTableComponent
mosContent JTableContent
mosMambot JTablePlugin
mosMenu JTableMenu
mosModule JTableModule
mosPageNav JPagination
mosSection JTableSection
mosSession JTableSession
mosUser JTableUser
database JDatabase
mosCache &JFactory::getCache()
mosProfiler JProfiler
mosParameters JParameter
mosAbstractTasker JController
mosMambotHandler JEventDispatcher
mosEmpty there is no analogue.
mosHTML JHTML
mosInstaller JInstaller
mosCommonHTML JHTML::_()
mosAdminMenus No
MENU_Default No
mosTabs jPanel
patFactory JTemplate::getInstance()
mosMenuBar JToolBarHelper

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 />
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()
mosRedirect() $mainframe->redirect()
mosMakePath() JFolder::create()
mosArrayToInts() JArrayHelper::toInteger()
mosBackTrace() JError::getBackTrace()
mosChmod()
mosChmodRecursive()
JPath::setPermissions()
mosIsChmodable() JPath::canChmod()
mosShowSource() no analogue
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() no analogue
initEditor() JEditor::init()
getEditorContent() JEditor::save()
editorArea() JEditor::display()
mosMenuCheck() JMenu::authorize()
mosObjectToArray() JArrayHelper::fromObject()
mosFormatDate() JHTML::_('date', ... )
mosCurrentDate() JHTML::_('date', 'now', ... )
mosMakeHtmlSafe() JOutputFilter::objectHTMLSafe()
initGzip()
doGzip()
nested in JDocument
SortArrayObjects() JArrayHelper::sortObjects()
josSpoofCheck() implemented via JSession
josSpoofValue() JUtility::getToken()
loadOverlib() JHTML::_('behavior.tooltip')
mosToolTip() JHTML::_('tooltip', ... )
sefRelToAbs()
ampReplace()
JRoute::_()
mosTreeRecurse() JHTML::_('menu.treerecurse', ... )

Last in our blog

Internet Marketing
04.11.2019