本文整理汇总了PHP中comquick2cartHelper::getVersion方法的典型用法代码示例。如果您正苦于以下问题:PHP comquick2cartHelper::getVersion方法的具体用法?PHP comquick2cartHelper::getVersion怎么用?PHP comquick2cartHelper::getVersion使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类comquick2cartHelper
的用法示例。
在下文中一共展示了comquick2cartHelper::getVersion方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getVersion
function getVersion()
{
if (!class_exists('comquick2cartHelper')) {
$path = JPATH_SITE . DS . 'components' . DS . 'com_quick2cart' . DS . 'helper.php';
JLoader::register('comquick2cartHelper', $path);
JLoader::load('comquick2cartHelper');
}
$helperobj = new comquick2cartHelper();
echo $latestversion = $helperobj->getVersion();
jexit();
}
示例2: taglinMsg
function taglinMsg()
{
echo JText::_("<h4>Thank you for installing Quick2Cart by Techjoomla, the powerful ecommerce component for Joomla! </h4>");
// echo JText::_('<br/><h1>Quick2Cart - Quick, Simple Ecommerce For Joomla</h1> ');
/// version check
$path = JPATH_ROOT . '/administrator/components/com_quick2cart/quick2cart.xml';
$xml = JFactory::getXML($path);
$oldversion = $xml->version;
require_once JPATH_ROOT . '/components/com_quick2cart/helper.php';
$helperobj = new comquick2cartHelper();
$latestversion = $helperobj->getVersion();
if (version_compare($oldversion, $latestversion, 'lt')) {
echo "<span id='NewVersion' style='padding-top: 5px; color: red; font-weight: bold; padding-left: 5px;'>" . JText::_("It seems that you have installed an older version. Latest Version is : ") . $latestversion . "</span>";
}
echo "<br/>";
}