本文整理汇总了PHP中JForm::get方法的典型用法代码示例。如果您正苦于以下问题:PHP JForm::get方法的具体用法?PHP JForm::get怎么用?PHP JForm::get使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JForm
的用法示例。
在下文中一共展示了JForm::get方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getAuthorizeURL
public static function getAuthorizeURL()
{
$params =& JComponentHelper::getParams('mod_instagallery');
var_dump($params);
exit;
$myvariable = $params->get('client_id');
var_dump($myvariable);
exit;
$app = JFactory::getApplication();
$mycom_params =& $app->getParams('mod_instagallery');
var_dump($mycom_params);
exit;
$module =& JModuleHelper::getModule('instagallery');
$params = new JForm($module->params);
$params->loadString($module->params);
print $clientID = $params->get('client_id');
exit;
$clientSecret = $params->get('client_secret');
$authCode = $params->get('auth_code');
$accessToken = $params->get('access_token');
$redirec_uri = $params->get('redirect_uri');
$config = array('redirectURI' => $redirec_uri);
$instagram = new jInstaClass($clientID, $clientSecret, '', '', $config);
return $instagram->authURL();
}
示例2: get
/**
* overwrite core get function so we can force setting to array if needed
*
* @param string $key key
* @param string $default default
* @param string $group group
* @param string $outputFormat (string or array)
* @param int $counter not used i think
*
* @return mixed - string or array
*/
public function get($key, $default = '', $group = '_default', $outputFormat = 'string', $counter = null)
{
$return = parent::get($key, $default);
if ($outputFormat == 'array') {
$return = $return == '' ? array() : (array) $return;
}
return $return;
}
示例3: writeCaptcha
function writeCaptcha()
{
// if captcha is activated, generate the image
if ($this->profile->use_captcha == 1 || $this->profile->use_captcha == 2 && $this->_user_id == 0) {
switch ($this->profile->captcha_type) {
case 0:
// native plugin
$captcha_info = JText::_('COM_AICONTACTSAFE_PLEASE_ENTER_THE_FOLLOWING_SECURITY_CODE') . ':';
$change_image = JText::_('COM_AICONTACTSAFE_NOT_READABLE_CHANGE_TEXT');
?>
<div id="div_captcha">
<div id="div_captcha_info"><?php
echo $captcha_info;
?>
</div>
<div id="div_captcha_img"><div id="div_captcha_img_<?php
echo $this->profile->id;
?>
" style="width:<?php
echo $this->profile->captcha_width;
?>
px;height:<?php
echo $this->profile->captcha_height;
?>
px;">...</div></div>
<div id="div_captcha_new">
<a href="javascript:void(0);" onclick="changeCaptcha(<?php
echo $this->profile->id;
?>
,1);"
id="change-image"><?php
echo $change_image;
?>
</a>
</div>
<div style="margin-top:5px;" id="div_captcha_code"><input type="text" name="captcha-code" id="captcha-code" /></div>
</div>
<?php
break;
case 1:
// Multiple CAPTCHA Engine
$captchaPlugin = JPluginHelper::getPlugin('content', 'captcha');
$captchaPluginParameters = new JForm($captchaPlugin->params);
if ($captchaPluginParameters->get('captcha_systems') == 'recaptcha') {
?>
<input type="hidden" id="reCaptchaReset" name="reCaptchaReset" value="1" />
<input type="hidden" id="reCaptchaPublicKey" name="reCaptchaPublicKey" value="<?php
echo $captchaPluginParameters->get('captcha_systems-recaptcha-PubKey');
?>
" />
<input type="hidden" id="reCaptchaTheme" name="reCaptchaTheme" value="<?php
echo $captchaPluginParameters->get('captcha_systems-recaptcha-Theme');
?>
" />
<?php
}
JPluginHelper::importPlugin('content', 'captcha');
$dispatcher = JDispatcher::getInstance();
echo '<div id="div_captcha">';
$dispatcher->trigger('onAfterDisplayForm');
echo '</div>';
break;
}
}
}