function __construct() { parent::__construct(); if (self::$scheduleManager == null) { self::$scheduleManager = new ScheduleManager(); } }
/** * 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()); }
/** * @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(); }
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'); }
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"); }
/** * @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(); }
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'); */ }
/** * __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(); }
/** * @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(); }
/** * @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(); }
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); }
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 = ''; }
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')); } } }
/** * @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; } }
function __construct($args) { parent::__construct($args); }
public function __construct() { parent::__construct(MODEL_GLOBAL_CONFIG); }
public function __construct($id = null, $conType = 'readonly') { parent::__construct(null, 'write'); }
function __construct($parent) { parent::__construct($parent); $this->_pageDatasources = array(); }
public function __construct($type = 'write') { parent::__construct(null, $type); }
/** * @brief Constructeur par défaut. Appelle le constructeur de Manager * @return Void */ protected function __construct() { parent::__construct(); }
public function __construct($Db) { parent::__construct($Db); }
/** * @param ReaderInterface $reader * @param WriterHSInterface $writer * @param string $database */ public function __construct(ReaderInterface $reader = null, WriterHSInterface $writer = null, $database) { $this->database = $database; parent::__construct($reader, $writer); }
function __construct($parent) { parent::__construct($parent); }
public function __construct($id, $name, $salary, $department, $budget) { parent::__construct($id, $name, $salary, $department); $this->budget = $budget; }
function __construct($name, $fname, $age, $salary, $categorySales, $countManagers, $subordinate) { parent::__construct($name, $fname, $age, $salary, $passwd, $categorySales); $this->countManagers = $countManagers; $this->subordinates[] = $subordinate; }
public function __construct($familyData, $fonderiePath) { $this->fonderiePath = $fonderiePath; $this->familyData = $familyData; parent::__construct($this->getFamilyPath()); }
public function __construct() { parent::__construct(null, 'write'); }
/** * Redirects to a page with the given id */ public function __construct() { parent::__construct(); $oPage = PageQuery::create()->findPk(Manager::usePath()); LinkUtil::redirectToManager($oPage->getFullPathArray(), 'FrontendManager'); }
public function __construct() { parent::__construct(); }
/** * __construct() */ public function __construct() { parent::__construct(); $this->aPathRequestParams = array(); $this->bIsNotFound = false; $this->initLanguage(); // Find requested page $oRootPage = PagePeer::getRootPage(); if ($oRootPage === null) { throw new Exception("No root node exists in the database. Use the admin tool to create one."); } $this->oRootNavigationItem = PageNavigationItem::navigationItemForPage($oRootPage); $oMatchingNavigationItem = $this->oRootNavigationItem; while (self::hasNextPathItem()) { $oNextNavigationItem = $oMatchingNavigationItem->namedChild(self::usePath(), Session::language(), false, true); if ($oNextNavigationItem !== null) { $oMatchingNavigationItem = $oNextNavigationItem; } else { self::unusePath(); break; } } self::$CURRENT_NAVIGATION_ITEM = $oMatchingNavigationItem; $oParent = $oMatchingNavigationItem; while (!$oParent instanceof PageNavigationItem) { $oParent = $oParent->getParent(); } if ($oParent !== $oMatchingNavigationItem) { $oParent->setCurrent(false); } self::$CURRENT_PAGE = $oParent->getMe(); // See if the filter(s) changed anything FilterModule::getFilters()->handleNavigationPathFound($this->oRootNavigationItem, $oMatchingNavigationItem); // There may now be new, virtual navigation items. Follow them. while (self::hasNextPathItem()) { $oNextNavigationItem = $oMatchingNavigationItem->namedChild(self::usePath(), Session::language(), false, true); if ($oNextNavigationItem !== null) { $oMatchingNavigationItem = $oNextNavigationItem; } else { self::unusePath(); break; } } // See if anything has changed if (self::$CURRENT_NAVIGATION_ITEM !== $oMatchingNavigationItem && self::$CURRENT_NAVIGATION_ITEM instanceof PageNavigationItem) { self::$CURRENT_NAVIGATION_ITEM->setCurrent(false); //It is, however, still active } self::$CURRENT_NAVIGATION_ITEM = $oMatchingNavigationItem; $iTimesUsed = 0; while (self::hasNextPathItem()) { $sKey = self::usePath(); $iTimesUsed++; $sValue = null; if (self::hasNextPathItem()) { $sValue = self::usePath(); $iTimesUsed++; } $this->aPathRequestParams[] = $sKey; if (!isset($_REQUEST[$sKey]) && $sValue !== null) { $_REQUEST[$sKey] = $sValue; } } for ($i = 1; $i <= $iTimesUsed; $i++) { self::unusePath(); } if ($oMatchingNavigationItem->isFolder()) { $oFirstChild = $oMatchingNavigationItem->getFirstChild(Session::language(), false, true); if ($oFirstChild !== null) { $aAdditionalPathItems = array(); $aRequestParams = LinkUtil::getRequestedParameters(); foreach (self::getRequestPath() as $iKey => $sPathItem) { if ($iKey % 2 === 0 && isset($aRequestParams[$sPathItem])) { unset($aRequestParams[$sPathItem]); } $aAdditionalPathItems[] = $sPathItem; } LinkUtil::redirectToManager(array_merge($oFirstChild->getLink(), $aAdditionalPathItems), null, $aRequestParams); } else { $this->bIsNotFound = true; } } if ($oMatchingNavigationItem->isProtected()) { if (!$oMatchingNavigationItem->isAccessible()) { $oLoginPage = self::$CURRENT_PAGE->getLoginPage(); if ($oLoginPage !== self::$CURRENT_PAGE) { Session::getSession()->setAttribute('login_referrer_page', self::$CURRENT_PAGE); Session::getSession()->setAttribute('login_referrer', LinkUtil::link($oMatchingNavigationItem->getLink(), "FrontendManager")); } if ($oLoginPage === null) { LinkUtil::redirect(LinkUtil::link('', "LoginManager")); } self::$CURRENT_PAGE = $oLoginPage; } } FilterModule::getFilters()->handlePageHasBeenSet(self::$CURRENT_PAGE, $this->bIsNotFound, self::$CURRENT_NAVIGATION_ITEM); }