當前位置: 首頁>>代碼示例>>PHP>>正文


PHP JForm::get方法代碼示例

本文整理匯總了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();
 }
開發者ID:grisotto,項目名稱:mod_instagallery,代碼行數:25,代碼來源:helper_old.php

示例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;
 }
開發者ID:ankaau,項目名稱:GathBandhan,代碼行數:19,代碼來源:params.php

示例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;
            }
        }
    }
開發者ID:pawelos076232,項目名稱:com_aicontactsafe_j30_unofficial,代碼行數:65,代碼來源:view.html.php


注:本文中的JForm::get方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。