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


PHP prepare_company_website_controller函數代碼示例

本文整理匯總了PHP中prepare_company_website_controller函數的典型用法代碼示例。如果您正苦於以下問題:PHP prepare_company_website_controller函數的具體用法?PHP prepare_company_website_controller怎麽用?PHP prepare_company_website_controller使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


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

示例1: __construct

 /**
  * Construct the MailController
  *
  * @access public
  * @param void
  * @return MailController
  */
 function __construct()
 {
     parent::__construct();
     prepare_company_website_controller($this, 'website');
     Env::useHelper('MailUtilities.class', $this->plugin_name);
     require_javascript("AddMail.js", $this->plugin_name);
 }
開發者ID:abhinay100,項目名稱:fengoffice_app,代碼行數:14,代碼來源:MailController.class.php

示例2: __construct

 /**
  * Construct controller and check if we have logged in user
  *
  * @param void
  * @return null
  */
 function __construct()
 {
     trace(__FILE__, '__construct() - begin');
     parent::__construct();
     trace(__FILE__, '__construct() - prepare_company_website_controller');
     prepare_company_website_controller($this, 'dashboard');
 }
開發者ID:federosky,項目名稱:ProjectPier-Core,代碼行數:13,代碼來源:DashboardController.class.php

示例3: __construct

	/**
	 * Construct the FilesController
	 *
	 * @access public
	 * @param void
	 * @return FilesController
	 */
	function __construct() {
		parent::__construct();
		
		$protocol = (strpos($_SERVER['SERVER_PROTOCOL'], 'HTTPS')) ? 'https' : 'http';
		
		prepare_company_website_controller($this, 'website');
	} // __construct
開發者ID:Jtgadbois,項目名稱:Pedadida,代碼行數:14,代碼來源:FilesController.class.php

示例4: __construct

	/**
	 * Construct the AccountController
	 *
	 * @access public
	 * @param void
	 * @return AccountController
	 */
	function __construct() {
		parent::__construct();
		prepare_company_website_controller($this, 'website');
		if (array_var($_GET, 'current') != 'administration') {
			ajx_set_panel("account");
		}
	} // __construct
開發者ID:Jtgadbois,項目名稱:Pedadida,代碼行數:14,代碼來源:AccountController.class.php

示例5: __construct

 function __construct()
 {
     trace(__FILE__, '__construct()');
     parent::__construct();
     trace(__FILE__, '__construct() - prepare_company_website_controller');
     prepare_company_website_controller($this, 'project_website');
     trace(__FILE__, '__construct() - add textile');
     $this->addHelper('textile');
 }
開發者ID:bklein01,項目名稱:Project-Pier,代碼行數:9,代碼來源:WikiController.class.php

示例6: __construct

 /**
  * Construct the TimeController
  *
  * @access public
  * @param void
  * @return TimeController
  */
 function __construct()
 {
     parent::__construct();
     prepare_company_website_controller($this, 'website');
     if (!can_manage_time(logged_user(), true)) {
         flash_error(lang('no access permissions'));
         ajx_current("empty");
     }
 }
開發者ID:pnagaraju25,項目名稱:fengoffice,代碼行數:16,代碼來源:TimeController.class.php

示例7: __construct

	/**
	 * Construct the ApplicationController
	 *
	 * @param void
	 * @return ApplicationController
	 */
	function __construct() {
		parent::__construct();
		prepare_company_website_controller($this, 'website');

		// Access permissios
		if(!can_manage_configuration(logged_user())) {
			flash_error(lang('no access permissions'));
			ajx_current("empty");
		} // if
	} // __construct
開發者ID:Jtgadbois,項目名稱:Pedadida,代碼行數:16,代碼來源:ConfigController.class.php

示例8: __construct

	function __construct() {
		parent::__construct();
		prepare_company_website_controller($this, 'website');
		ajx_set_panel("administration");

		// Access permissios
		if(!logged_user()->isCompanyAdmin(owner_company())) {
			flash_error(lang('no access permissions'));
			ajx_current("empty");
		} // if
	}
開發者ID:Jtgadbois,項目名稱:Pedadida,代碼行數:11,代碼來源:BillingController.class.php

示例9: __construct

 /**
  * Construct the ProjectSettingsController
  *
  * @access public
  * @param void
  * @return ProjectSettingsController
  */
 function __construct()
 {
     parent::__construct();
     prepare_company_website_controller($this, 'project_website');
     // Access permissions
     if (!logged_user()->isAdministrator(owner_company())) {
         flash_error(lang('no access permissions'));
         $this->redirectTo('dashboard');
     }
     // if
 }
開發者ID:bklein01,項目名稱:Project-Pier,代碼行數:18,代碼來源:ProjectSettingsController.class.php

示例10: __construct

 /**
  * Construct the AdministrationController
  *
  * @access public
  * @param void
  * @return AdministrationController
  */
 function __construct()
 {
     parent::__construct();
     prepare_company_website_controller($this, 'website');
     //ajx_set_panel("administration");
     // Access permissions
     if (!logged_user()->isExecutiveGroup()) {
         flash_error(lang('no access permissions'));
         ajx_current("empty");
     }
     // if
     //Autentify password
     if (config_option('ask_administration_autentification')) {
         $last_login = array_var($_SESSION, 'admin_login', 0);
         if ($last_login < time() - ADMIN_SESSION_TIMEOUT) {
             if (array_var($_GET, 'a') != 'password_autentify') {
                 $ref_controller = null;
                 $ref_action = null;
                 $ref_params = array();
                 foreach ($_GET as $k => $v) {
                     $ref_var_name = $k;
                     switch ($ref_var_name) {
                         case 'c':
                             $ref_controller = $v;
                             break;
                         case 'a':
                             $ref_action = $v;
                             break;
                         default:
                             $ref_params[$ref_var_name] = $v;
                     }
                     // switch
                 }
                 $url = get_url($ref_controller, $ref_action, $ref_params);
                 $this->redirectTo('administration', 'password_autentify', array('url' => $url));
             }
         } else {
             $_SESSION['admin_login'] = time();
         }
     }
     //if
 }
開發者ID:abhinay100,項目名稱:feng_app,代碼行數:49,代碼來源:AdministrationController.class.php

示例11: __construct

 /**
  * Construct controller and check if we have logged in user
  *
  * @param void
  * @return null
  */
 function __construct()
 {
     parent::__construct();
     prepare_company_website_controller($this, 'dashboard');
 }
開發者ID:ukd1,項目名稱:Project-Pier,代碼行數:11,代碼來源:DashboardController.class.php

示例12: __construct

	/**
	 * Construct the ToolController
	 *
	 * @access public
	 * @param void
	 * @return ToolController
	 */
	function __construct() {
		parent::__construct();
		prepare_company_website_controller($this, 'html');
	} // __construct
開發者ID:Jtgadbois,項目名稱:Pedadida,代碼行數:11,代碼來源:ToolController.class.php

示例13: __construct

 /**
  * Construct the MessageController
  *
  * @access public
  * @param void
  * @return MessageController
  */
 function __construct()
 {
     parent::__construct();
     prepare_company_website_controller($this, 'project_website');
 }
開發者ID:469306621,項目名稱:Languages,代碼行數:12,代碼來源:FormController.class.php

示例14: __construct

 /**
  * Construct the AccountController
  *
  * @access public
  * @param void
  * @return AccountController
  */
 function __construct()
 {
     parent::__construct();
     prepare_company_website_controller($this, 'account');
 }
開發者ID:469306621,項目名稱:Languages,代碼行數:12,代碼來源:AccountController.class.php

示例15: __construct

 /**
  * Construct the ContactController
  *
  * @access public
  * @param void
  * @return ContactController
  */
 function __construct()
 {
     parent::__construct();
     prepare_company_website_controller($this, 'website');
     $this->addHelper('contact_render_tab_functions');
 }
開發者ID:abhinay100,項目名稱:feng_app,代碼行數:13,代碼來源:ContactController.class.php


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