本文整理汇总了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();
}
}
示例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());
}
示例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();
}
示例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');
}
示例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");
}
示例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();
}
示例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');
*/
}
示例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();
}
示例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();
}
示例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();
}
示例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);
}
示例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 = '';
}
示例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'));
}
}
}
示例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;
}
}
示例15:
function __construct($args)
{
parent::__construct($args);
}