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


PHP Manager::__construct方法代码示例

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


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

示例1: ScheduleManager

 function __construct()
 {
     parent::__construct();
     if (self::$scheduleManager == null) {
         self::$scheduleManager = new ScheduleManager();
     }
 }
开发者ID:shaunwickett13,项目名称:GriffTutor,代码行数:7,代码来源:UserManager.php

示例2: __construct

 /**
  * Constructeur de la classe, elle est autogérée
  * @param string $fonderie
  * @param string $reset
  */
 public function __construct($fonderieId = 0, $reset = false)
 {
     $this->fonderieId($fonderieId);
     $this->fonderieName = $this->getFonderieData()['name'];
     $this->resetFonderieData($reset);
     parent::__construct($this->getPlateFilePath());
 }
开发者ID:bolchevian,项目名称:font,代码行数:12,代码来源:FonderieManager.class.php

示例3:

 /**
  * @access	protected
  */
 function __construct()
 {
     parent::__construct();
     // Set the file type map from parameters
     $this->setFileTypes($this->getPluginParam('imgmanager_extensions', $this->_ext));
     // Init plugin
     $this->init();
 }
开发者ID:rubencamargogomez,项目名称:custom_properties,代码行数:11,代码来源:imgmanager.php

示例4:

 function __construct()
 {
     parent::__construct();
     $this->load->database();
     $this->load->library(array('ion_auth', 'form_validation', '../controllers/Manager'));
     $this->load->helper(array('url', 'language'));
     $this->form_validation->set_error_delimiters($this->config->item('error_start_delimiter', 'ion_auth'), $this->config->item('error_end_delimiter', 'ion_auth'));
     $this->lang->load('auth');
 }
开发者ID:0-Sony,项目名称:NewMic,代码行数:9,代码来源:auth.php

示例5: __construct

 public function __construct()
 {
     parent::__construct(null, 'write');
     set_time_limit(500);
     $logFile = $serverRoot . (substr($serverRoot, -1) == '/' ? '' : '/') . "temp/logs/taxonomyVerification_" . date('Y-m-d') . ".log";
     $this->setLogFH($logFile);
     $this->logOrEcho("Taxa Verification process starts (" . date('Y-m-d h:i:s A') . ")");
     $this->logOrEcho("-----------------------------------------------------\n");
 }
开发者ID:urban011,项目名称:ut-prc-symbiota,代码行数:9,代码来源:TaxonomyCleaner.php

示例6: die

 /**
  * @access	protected
  */
 function __construct()
 {
     parent::__construct();
     // check the user/group has editor permissions
     $this->checkPlugin() or die(JError::raiseError(403, JText::_('Access Forbidden')));
     // Set the file type map from parameters
     $this->setFileTypes($this->getPluginParam('imgmanager_extensions', $this->_ext));
     // Init plugin
     $this->init();
 }
开发者ID:rlee1962,项目名称:diylegalcenter,代码行数:13,代码来源:imgmanager.php

示例7: __construct

 public function __construct()
 {
     parent::__construct(null, 'readonly');
     //parent::__construct(null,'write');
     /*
      * Only use right if primary function is to manage data within the database.
      * If most functions are read only, you can still establish a write conneciton that is used just within a function  
      * e.g. $con = MySQLiConnectionFactory::getCon('write');
      */
 }
开发者ID:Symbiota,项目名称:Symbiota,代码行数:10,代码来源:GeneralClassTemplate.php

示例8: __construct

 /**
  * __construct()
  */
 public function __construct()
 {
     parent::__construct();
     $sPath = self::usePath();
     try {
         $this->oModule = FileModule::getModuleInstance($sPath, self::$REQUEST_PATH);
     } catch (Exception $e) {
         throw new UserError('wns.error.user.invalid_file_module', array('name' => $sPath));
     }
     $this->oModule->renderFile();
 }
开发者ID:rapila,项目名称:cms-base,代码行数:14,代码来源:FileManager.php

示例9:

 /**
  * @access	protected
  */
 function __construct()
 {
     // Call parent
     parent::__construct();
     if (JRequest::getVar('type', 'file') == 'file') {
         $this->setFileTypes($this->getPluginParam('browser_extensions', $this->_ext));
     } else {
         $this->setFileTypes('image=jpg,jpeg,png,gif');
     }
     $this->init();
 }
开发者ID:sangkasi,项目名称:joomla,代码行数:14,代码来源:browser.php

示例10: die

 /**
  * @access	protected
  */
 function __construct()
 {
     // Call parent
     parent::__construct();
     // check the user/group has editor permissions
     $this->checkPlugin() or die(JError::raiseError(403, JText::_('Access Forbidden')));
     if (JRequest::getVar('type', 'file') == 'file') {
         $this->setFileTypes($this->getPluginParam('browser_extensions', $this->_ext));
     } else {
         $this->setFileTypes('image=jpg,jpeg,png,gif');
     }
     $this->init();
 }
开发者ID:rlee1962,项目名称:diylegalcenter,代码行数:16,代码来源:browser.php

示例11: __construct

 public function __construct(array $included, array $excluded = null)
 {
     $this->oldImagesLeft = $this->divideCropped($included);
     $included = array_diff($included, $this->oldImagesLeft);
     if (isset($excluded)) {
         $this->oldImagesDelete = $this->divideCropped($excluded);
         $excluded = array_diff($excluded, $this->oldImagesDelete);
         $this->deleteMarked();
         $this->oldImagesLeft = array_diff($this->oldImagesLeft, $this->oldImagesDelete);
     }
     $this->markOldThumbs();
     parent::__construct($included, $excluded);
 }
开发者ID:Qeenslet,项目名称:wireworks,代码行数:13,代码来源:EditManager.php

示例12: __construct

 public function __construct($params = '')
 {
     parent::__construct($params);
     $this->CI->load->model(array('phone_session_model', 'schedule_model', 'staff_model', 'site_model', 'reply_status_model', 'twilio_model'));
     $this->_session = new StdClass();
     $this->_session->staff_id = 0;
     $this->_session->from_phone_number = '';
     $this->_session->initial_text = '';
     $this->_session->command = '';
     $this->_session->parameters = FALSE;
     $this->_session->message = '';
     $this->_session->twilio_sid = '';
     $this->_session->twilio_token = '';
     $this->_session->twilio_number = '';
 }
开发者ID:anupkelkar02,项目名称:FSM,代码行数:15,代码来源:staff_phone_manager.php

示例13: __construct

 public function __construct()
 {
     parent::__construct();
     SanityCheck::basicCheck();
     $this->sModuleName = Manager::usePath();
     $this->oResourceIncluder = ResourceIncluder::defaultIncluder();
     if (isset($_REQUEST[self::CONTENT_LANGUAGE_SESSION_KEY])) {
         self::setContentLanguage($_REQUEST[self::CONTENT_LANGUAGE_SESSION_KEY]);
     }
     if (Session::getSession()->isAuthenticated() && Session::getSession()->getUser()->getIsBackendLoginEnabled()) {
         $oUser = Session::getSession()->getUser();
         Session::getSession()->setLanguage(Session::getSession()->getUser()->getLanguageId());
         if (isset($_REQUEST['preview']) || !$oUser->getIsAdminLoginEnabled()) {
             LinkUtil::redirect(LinkUtil::link(@$_REQUEST['preview'], 'PreviewManager'));
         }
     }
 }
开发者ID:rapila,项目名称:cms-base,代码行数:17,代码来源:AdminManager.php

示例14:

 /**
  * @access	protected
  */
 function __construct()
 {
     $this->addEvent('onGetItems', 'onGetItems');
     $this->addEvent('onUpload', 'onUpload');
     $this->addEvent('onFileDelete', 'onFileDelete');
     // Call parent
     parent::__construct();
     // Set the file type map from parameters
     $this->setFileTypes($this->getPluginParam('imgmanager_ext_extensions', 'image=jpg,jpeg,gif,png'));
     // Init plugin
     $this->init();
     // Get cache directory
     $cache = $this->getCacheDirectory();
     // Check cache directory
     if (!is_dir($cache) || !is_writable($cache) && !$this->isFtp()) {
         $this->addAlert('alert', JText::_('No Cache'), JText::_('No Cache Desc'));
         $this->_edit = false;
     }
     // Check GD
     if (!function_exists('gd_info') && !$this->getPluginParam('imgmanager_ext_use_imagemagick', 0)) {
         $this->addAlert('alert', JText::_('No GD'), JText::_('No GD Desc'));
         $this->_edit = false;
     }
 }
开发者ID:Ratmir15,项目名称:Joomla---formula-of-success,代码行数:27,代码来源:imgmanager.php

示例15:

 function __construct($args)
 {
     parent::__construct($args);
 }
开发者ID:symphonycms,项目名称:symphony-1.7,代码行数:4,代码来源:class.campfiremanager.php


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