本文整理汇总了PHP中JComponentHelper::getparams方法的典型用法代码示例。如果您正苦于以下问题:PHP JComponentHelper::getparams方法的具体用法?PHP JComponentHelper::getparams怎么用?PHP JComponentHelper::getparams使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JComponentHelper
的用法示例。
在下文中一共展示了JComponentHelper::getparams方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: isAllowedToCreateNewStore
/**
* This public function check no of store for each user and allowed store limit from comp param
* AND return status to create store
*
* @since 2.2
* @return boolean.
*/
public function isAllowedToCreateNewStore()
{
$qtc_params = JComponentHelper::getparams('com_quick2cart');
$storeLimitPerUser = $qtc_params->get('storeLimitPerUser');
$allowToCreateStore = 1;
if (!empty($storeLimitPerUser)) {
$storeHelper = new storeHelper();
$noOfStore = $storeHelper->getUserStoreCount();
if (!empty($noOfStore)) {
if ($noOfStore >= $storeLimitPerUser) {
$allowToCreateStore = 0;
}
}
}
return $allowToCreateStore;
}
示例2: submitAction_store
?>
<script type="text/javascript">
function submitAction_store(action)
{
if (action=="change_store")
{
var store_id=document.getElementById("current_store_id").value;
document.adminForm.change_store.value=store_id;
document.adminForm.submit();
}
}
</script>
<?php
$this->params = JComponentHelper::getparams('com_quick2cart');
$multivendor_enable = 1;
//$this->params->get('multivendor');
if (empty($multivendor_enable)) {
return;
}
$jinput = JFactory::getApplication()->input;
$preview = $jinput->get("preview");
if (!empty($preview)) {
return;
}
?>
<div class="qtc_toolbarDiv">
<?php
if (!$user->guest) {
示例3: qtcshiphelper
echo JText::sprintf('QTC_ALREADY_YOU_HAVE_STORES', $userStoreCount);
?>
</span>
</div>
</div>
</div>
<?php
return false;
}
$store_edit = 0;
$store_vanity = '0';
if (!empty($this->storeinfo[0])) {
$store_edit = 0;
$store_vanity = $this->storeinfo[0]->vanityurl;
}
$qtc_params = JComponentHelper::getparams('com_quick2cart');
$qtcshiphelper = new qtcshiphelper();
?>
<script type="text/javascript">
window.addEvent('domready', function()
{
document.formvalidator.setHandler('qtc_alphanum', function(value)
{
var regex = /^[0-9a-zA-Z\-]+$/;
var status=regex.test(value);
if (!status)
{
alert("<?php
echo JText::_('QTC_ALPHA_NUM_ONLY');