当前位置: 首页>>代码示例>>PHP>>正文


PHP ThinkUpAuthController::__construct方法代码示例

本文整理汇总了PHP中ThinkUpAuthController::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP ThinkUpAuthController::__construct方法的具体用法?PHP ThinkUpAuthController::__construct怎么用?PHP ThinkUpAuthController::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ThinkUpAuthController的用法示例。


在下文中一共展示了ThinkUpAuthController::__construct方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

 /**
  * Constructor
  * @param bool $session_started
  * @return AccountConfigurationController
  */
 public function __construct($session_started = false)
 {
     parent::__construct($session_started);
     $this->disableCaching();
     $this->setViewTemplate('account.index.tpl');
     $this->setPageTitle('Configure Your Account');
 }
开发者ID:raycornelius,项目名称:ThinkUp,代码行数:12,代码来源:class.AccountConfigurationController.php

示例2: __construct

 public function __construct($session_started = false)
 {
     parent::__construct($session_started);
     if (!isset($_POST['grid_export_data'])) {
         $this->is_missing_param = true;
     }
 }
开发者ID:dgw,项目名称:ThinkUp,代码行数:7,代码来源:class.GridExportController.php

示例3: __construct

 public function __construct($session_started=false) {
     parent::__construct($session_started);
     $this->setViewTemplate('post.export.tpl');
     foreach ($this->REQUIRED_PARAMS as $param) {
         if (!isset($_GET[$param]) || $_GET[$param] == '' ) {
             $this->addInfoMessage('No user to retrieve.');
             $this->is_missing_param = true;
         }
     }
 }
开发者ID:rkabir,项目名称:ThinkUp,代码行数:10,代码来源:class.ExportController.php

示例4: __construct

 public function __construct($session_started = false)
 {
     parent::__construct($session_started);
     $config = Config::getInstance();
     Utils::defineConstants();
     $this->setViewTemplate(THINKUP_WEBAPP_PATH . 'plugins/facebook/view/auth.tpl');
     $this->setPageTitle('Authorizing Your Facebook Account');
     if (!isset($_GET['sessionKey']) || $_GET['sessionKey'] == '') {
         $this->addErrorMessage('No session key specified.');
         $this->is_missing_param = true;
     }
 }
开发者ID:rayyan,项目名称:ThinkUp,代码行数:12,代码来源:class.FacebookAuthController.php

示例5: __construct

 /**
  * Constructor
  * @param bool $session_started
  * @return InlineViewController
  */
 public function __construct($session_started = false)
 {
     parent::__construct($session_started);
     foreach ($this->REQUIRED_PARAMS as $param) {
         if (!isset($_GET[$param]) || $_GET[$param] == '') {
             $this->addInfoMessage('No user data to retrieve.');
             $this->is_missing_param = true;
             $this->setViewTemplate('inline.view.tpl');
         }
     }
     if (!isset($_GET['d'])) {
         $_GET['d'] = "tweets-all";
     }
 }
开发者ID:rayyan,项目名称:ThinkUp,代码行数:19,代码来源:class.GridController.php

示例6: __construct

 public function __construct($session_started=false) {
     parent::__construct($session_started);
     $config = Config::getInstance();
     Utils::defineConstants();
     $this->setViewTemplate(THINKUP_WEBAPP_PATH.'plugins/twitter/view/auth.tpl');
     $this->setPageTitle('Authorizing Your Twitter Account');
     if (!isset($_GET['oauth_token']) || $_GET['oauth_token'] == '' ) {
         $this->addInfoMessage('No OAuth token specified.');
         $this->is_missing_param = true;
     }
     if (!isset($_SESSION['oauth_request_token_secret']) || $_SESSION['oauth_request_token_secret'] == '' ) {
         $this->addInfoMessage('Secret token not set.');
         $this->is_missing_param = true;
     }
 }
开发者ID:rgoncalves,项目名称:ThinkUp,代码行数:15,代码来源:class.TwitterAuthController.php

示例7: __construct

 /**
  * Constructor
  * @param bool $session_started
  * @return UpgradeDatabaseController
  */
 public function __construct($session_started = false)
 {
     if (!getenv('CLI_BACKUP')) {
         parent::__construct($session_started);
     }
 }
开发者ID:randomecho,项目名称:ThinkUp,代码行数:11,代码来源:class.UpgradeDatabaseController.php

示例8: __construct

 public function __construct($owner, $folder_name)
 {
     parent::__construct(true);
     $this->owner = $owner;
     $this->folder_name = $folder_name;
     $this->disableCaching();
     //get option values
     $plugin_option_dao = DAOFactory::getDAO('PluginOptionDAO');
     $this->options_values = $plugin_option_dao->getOptions($this->folder_name);
     if (isset($this->options_values[0])) {
         $this->plugin_id = $this->options_values[0]->plugin_id;
     } else {
         $plugin_dao = DAOFactory::getDAO('PluginDAO');
         $this->plugin_id = $plugin_dao->getPluginId($folder_name);
     }
 }
开发者ID:JWFoxJr,项目名称:ThinkUp,代码行数:16,代码来源:class.PluginConfigurationController.php

示例9: __construct

 public function __construct($session_started = false)
 {
     parent::__construct($session_started);
 }
开发者ID:ngugijames,项目名称:ThinkUp,代码行数:4,代码来源:class.ThinkUpAdminController.php

示例10: __construct

 public function __construct($session_started = false)
 {
     parent::__construct($session_started);
     self::$owner = false;
 }
开发者ID:ngugijames,项目名称:ThinkUp,代码行数:5,代码来源:class.ThinkUpAuthAPIController.php

示例11: __construct

 /**
  * Constructor
  * @param bool $session_started
  * @return UpgradeApplicationController
  */
 public function __construct($session_started = false)
 {
     parent::__construct($session_started);
     $this->setViewTemplate('install.upgrade-application.tpl');
 }
开发者ID:JWFoxJr,项目名称:ThinkUp,代码行数:10,代码来源:class.UpgradeApplicationController.php

示例12: __construct

 public function __construct($owner, $folder_name)
 {
     parent::__construct(true);
     $this->owner = $owner;
     $this->folder_name = $folder_name;
     $this->disableCaching();
     //get option values
     $plugin_option_dao = DAOFactory::getDAO('PluginOptionDAO');
     $this->options_values = $plugin_option_dao->getOptions($this->folder_name);
     if (isset($this->options_values[0])) {
         $this->plugin_id = $this->options_values[0]->plugin_id;
     } else {
         $plugin_dao = DAOFactory::getDAO('PluginDAO');
         $this->plugin_id = $plugin_dao->getPluginId($folder_name);
     }
     if ($owner instanceof Owner && $owner != null && $owner->isProLevel()) {
         // For Pro users, cap instances at 10
         $owner_instance_dao = DAOFactory::getDAO('OwnerInstanceDAO');
         $owner_instances = $owner_instance_dao->getByOwner($this->owner->id);
         $total_instances = sizeof($owner_instances);
         if ($total_instances >= 9) {
             $this->do_show_add_button = false;
         }
         $this->addInfoMessage("As a Pro member, you’ve connected " . $total_instances . " of 10 accounts to ThinkUp.", 'membership_cap');
     }
 }
开发者ID:ngugijames,项目名称:ThinkUp,代码行数:26,代码来源:class.PluginConfigurationController.php

示例13: __construct

 /**
  * Constructor
  * @param boolean $session_started
  */
 public function __construct($session_started = false)
 {
     parent::__construct($session_started);
     $this->post_dao = DAOFactory::getDAO('PostDAO');
     $this->setPageTitle('Post details');
 }
开发者ID:rayyan,项目名称:ThinkUp,代码行数:10,代码来源:class.PostController.php

示例14: __construct

 /**
  * Constructor
  *
  * @param boolean $session_started
  */
 public function __construct($session_started = false)
 {
     parent::__construct($session_started);
     $this->setPageTitle('Private Dashboard');
 }
开发者ID:rayyan,项目名称:ThinkUp,代码行数:10,代码来源:class.PrivateDashboardController.php


注:本文中的ThinkUpAuthController::__construct方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。