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


PHP JApplication::__construct方法代碼示例

本文整理匯總了PHP中JApplication::__construct方法的典型用法代碼示例。如果您正苦於以下問題:PHP JApplication::__construct方法的具體用法?PHP JApplication::__construct怎麽用?PHP JApplication::__construct使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在JApplication的用法示例。


在下文中一共展示了JApplication::__construct方法的12個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: array

 /**
  * Class constructor
  *
  * @access protected
  * @param	array An optional associative array of configuration settings.
  * Recognized key values include 'clientId' (this list is not meant to be comprehensive).
  */
 function __construct($config = array())
 {
     $config['clientId'] = 1;
     parent::__construct($config);
     //Set the root in the URI based on the application name
     JURI::root(null, str_replace('/' . $this->getName(), '', JURI::base(true)));
 }
開發者ID:esumerfd,項目名稱:ssol_joomla,代碼行數:14,代碼來源:application.php

示例2: array

	/**
	* Class constructor
	*
	* @access protected
	* @param	array An optional associative array of configuration settings.
	* Recognized key values include 'clientId' (this list is not meant to be comprehensive).
	*/
	function __construct($config = array())
	{
		$config['clientId']   = 0;
	    $config['multisite']  = true;
	    
		parent::__construct($config);
	}
開發者ID:raeldc,項目名稱:com_learn,代碼行數:14,代碼來源:application.php

示例3: __construct

 /**
  * Class constructor
  *
  * @param	array An optional associative array of configuration settings.
  * Recognized key values include 'clientId' (this list is not meant to be comprehensive).
  */
 public function __construct($config = array())
 {
     $config['clientId'] = 0;
     \Event::listen(function ($event) {
         // This must be done before the session is read, otherwise it will overwrite
         // the existing session with a guest non-https session prior to redirecting to https
         // NOTE: we're including a cli check here because the console currently uses the 'site'
         // application.  This should be remedied in the new framework.
         $app = $event->getArgument('app');
         if ($app->getCfg('force_ssl') == 2 && php_sapi_name() != 'cli') {
             $uri = JURI::getInstance();
             if (strtolower($uri->getScheme()) != 'https') {
                 // We also can't use the Application::redirect method here as
                 // it tries to use JFactory::getDocument, which doesn't work
                 // prior to application initialization
                 $uri->setScheme('https');
                 header('HTTP/1.1 303 See other');
                 header('Location: ' . (string) $uri);
                 header('Content-Type: text/html;');
                 $app->close();
             }
         }
     }, 'application_onBeforeSessionCreate');
     parent::__construct($config);
 }
開發者ID:mined-gatech,項目名稱:hubzero-cms,代碼行數:31,代碼來源:application.php

示例4: array

 /**
  * Class constructor
  *
  * @access protected
  * @param	array An optional associative array of configuration settings.
  * Recognized key values include 'clientId' (this list is not meant to be comprehensive).
  */
 function __construct($config = array())
 {
     $config['clientId'] = 0;
     parent::__construct($config);
     //Set the root in the URI based on the application name
     JURI::root(null, str_replace('/' . JPATH_FORUM_PATH, '', JURI::base(true)));
 }
開發者ID:skyview059,項目名稱:e-learning-website,代碼行數:14,代碼來源:application.php

示例5: __construct

 /**
  * Class constructor
  *
  * @param	array $config	An optional associative array of configuration settings.
  * Recognized key values include 'clientId' (this list is not meant to be comprehensive).
  *
  * @return	void
  */
 public function __construct(array $config = array())
 {
     $config['clientId'] = 2;
     parent::__construct($config);
     $this->_createConfiguration('');
     // Set the root in the URI based on the application name.
     JURI::root(null, str_replace('/' . $this->getName(), '', JURI::base(true)));
 }
開發者ID:brojask,項目名稱:colegio-abogados-joomla,代碼行數:16,代碼來源:application.php

示例6: array

 /**
  * Class constructor
  *
  * @access protected
  * @param	array An optional associative array of configuration settings.
  * Recognized key values include 'clientId' (this list is not meant to be comprehensive).
  */
 function __construct($config = array())
 {
     $config['clientId'] = 2;
     parent::__construct($config);
     JError::setErrorHandling(E_ALL, 'Ignore');
     $this->_createConfiguration();
     //Set the root in the URI based on the application name
     JURI::root(null, str_replace('/' . $this->getName(), '', JURI::base(true)));
 }
開發者ID:kumarsivarajan,項目名稱:jaderp,代碼行數:16,代碼來源:application.php

示例7: array

 /**
  * Class constructor
  *
  * @access protected
  * @param	array An optional associative array of configuration settings.
  * Recognized key values include 'clientId' (this list is not meant to be comprehensive).
  */
 function __construct($config = array())
 {
     $config['clientId'] = 1;
     $config['multisite'] = true;
     $config['session_autostart'] = true;
     //override the configruation settings
     parent::__construct($config);
     //Set the root in the URI based on the application name
     JURI::root(null, str_replace('/' . $this->getName(), '', JURI::base(true)));
 }
開發者ID:JSWebdesign,項目名稱:intranet-platform,代碼行數:17,代碼來源:application.php

示例8: __construct

 /**
  * Class constructor
  *
  * @param	array $config	An optional associative array of configuration settings.
  * Recognized key values include 'clientId' (this list is not meant to be comprehensive).
  *
  * @return	void
  */
 public function __construct(array $config = array())
 {
     $config['clientId'] = 2;
     parent::__construct($config);
     $this->_createConfiguration('');
     // Set the root in the URI one level up.
     $parts = explode('/', JUri::base(true));
     array_pop($parts);
     JUri::root(null, implode('/', $parts));
 }
開發者ID:rafnixg,項目名稱:jokte-cms,代碼行數:18,代碼來源:application.php

示例9: __construct

 /**
  * Class constructor
  *
  * @param   array An optional associative array of configuration settings.
  *                Recognized key values include 'clientId' (this list is not meant to be comprehensive).
  */
 public function __construct($config = array())
 {
     $config['clientId'] = 0;
     parent::__construct($config);
 }
開發者ID:TFToto,項目名稱:playjoom-builds,代碼行數:11,代碼來源:application.php

示例10: __construct

 /**
  * Class constructor.
  *
  * @param   array  $config  A configuration array including optional elements such as session
  * session_name, clientId and others. This is not exhaustive.
  * @return  void
  */
 public function __construct($config = array())
 {
     JLoader::import('joomla.user.user');
     JLoader::register('JText', JPATH_LIBRARIES . DS . 'joomla' . DS . 'methods.php');
     JLoader::import('joomla.filter.filterinput');
     JLoader::import('joomla.environment.uri');
     JLoader::import('Hubzero.Api.Response');
     JLoader::import('Hubzero.Api.Request');
     $config['clientId'] = 4;
     /*$this->unregister_long_arrays();
     		$this->unregister_globals();
     		$this->fix_http_headers();
     
     		$this->request = new \Hubzero\Api\Request();
     		$this->response = new \Hubzero\Api\Response();
     		$this->output = '';*/
     parent::__construct($config);
 }
開發者ID:kevinwojo,項目名稱:hubzero-cms,代碼行數:25,代碼來源:application.php

示例11: mosMainFrame

 /**
  * Class constructor
  * @param database A database connection object
  * @param string The url option [DEPRECATED]
  * @param string The path of the mos directory [DEPRECATED]
  */
 function mosMainFrame(&$db, $option, $basePath = null, $client = 0)
 {
     $config = array();
     $config['clientId'] = $client;
     parent::__construct($config);
 }
開發者ID:Fellah,項目名稱:govnobaki,代碼行數:12,代碼來源:mainframe.php

示例12: __construct

 /**
  * Class constructor
  *
  * @param    array An optional associative array of configuration settings.
  * Recognized key values include 'clientId' (this list is not meant to be comprehensive).
  */
 public function __construct($config = array())
 {
     $config['clientId'] = 0;
     parent::__construct($config);
     $this->_verbose = Commandline::getInstance()->get('V');
 }
開發者ID:janssit,項目名稱:www.rvproductions.be,代碼行數:12,代碼來源:application.php


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