/** * Constructor. * * Sets up the smarty object for this module. */ function __construct($id, $page) { parent::__construct(); if (is_null($id)) { throw new Exception("id required for new " . get_class($this) . '.'); } if (!$page instanceof WFPage) { throw new Exception("page must be a WFPage."); } // warn about invalid ID's switch ($id) { case 'new': case 'delete': WFLog::log("The id '{$id}' is dangerous to use because it is a reserved word in some browsers Javascript engines. For best compatibility, use a different ID.", WFLog::WARN_LOG); break; } $this->id = $id; $this->enabled = true; $this->children = array(); $this->parent = NULL; $this->page = $page; $this->setId($id); $this->jsActions = array(); $this->jsEvents = array(); $this->originalOnEvent = NULL; // js/css import infrastructure $this->importInHead = false; $this->jsImports = array(); $this->cssImports = array(); }
function __construct($decoratedObject) { parent::__construct(); if (!$decoratedObject instanceof WFObject) { throw new WFException("WFDecorator needs a WFObject subclass."); } $this->decoratedObject = $decoratedObject; }
function __construct() { parent::__construct(); $this->content = NULL; $this->decorators = NULL; $this->class = 'WFDictionary'; $this->automaticallyPreparesContent = true; }
function __construct(WFModule $module) { parent::__construct(); $this->module = $module; $this->pageName = NULL; $this->template = NULL; $this->instances = array(); $this->errors = array(); $this->parameters = array(); $this->delegate = NULL; $this->ignoreErrors = false; WFLog::log("instantiating a page", WFLog::TRACE_LOG, PEAR_LOG_DEBUG); }
/** * Constructor. * * @param string The relative path to this module. */ function __construct($invocation) { parent::__construct(); if (!$invocation instanceof WFModuleInvocation) { throw new WFException("Modules must be instantiated with a WFModuleInvocation."); } $this->invocation = $invocation; $this->requestPage = NULL; $this->responsePage = NULL; }
function __construct() { parent::__construct(); $this->bindToObject = NULL; $this->bindToKeyPath = NULL; $this->valueTransformer = NULL; $this->placeholders = array(); $this->options = array(); $this->bindingSetup = NULL; $this->bindLocalProperty = NULL; }
public function __construct($opts = array()) { parent::__construct(); $this->options = array_merge(array(self::OPT_MODEL_ADAPTER => 'Propel'), $opts); }
function __construct() { parent::__construct(); $this->dieselSearch = NULL; $this->widgets = array(); $this->effectiveDQL = NULL; $this->restrictDQL = NULL; $this->simpleQueryString = NULL; $this->simpleQueryMode = "any"; $this->attributeQueries = array(); $this->attributeQueryLogicalOperators = array(); $this->showAllOnBlankQuery = true; $this->showAllDPQL = 'doctype=xml'; $this->loadTheseColumnsFromIndex = array("item_id"); }
function __construct($errorMessage = NULL, $errorCode = NULL) { parent::__construct(); $this->errorCode = $errorCode; $this->errorMessage = $errorMessage; }
function __construct() { parent::__construct(); $this->authorizationInfoClass = WFWebApplication::sharedWebApplication()->authorizationInfoClass(); $this->authorizationInfo = NULL; $this->authorizationDelegate = NULL; // is session authorization info initialized? if (empty($_SESSION[WFAuthorizationManager::SESSION_NAMESPACE][WFAuthorizationManager::SESSION_KEY_VERSION]) or $_SESSION[WFAuthorizationManager::SESSION_NAMESPACE][WFAuthorizationManager::SESSION_KEY_VERSION] < WFAuthorizationManager::VERSION) { // SESSION authorization info doesn't exist; initialize to least-privileged state // initialize $this->init(); } else { // SESSION authorization does exist; restore from session $this->authorizationInfo = $_SESSION[WFAuthorizationManager::SESSION_NAMESPACE][WFAuthorizationManager::SESSION_KEY_AUTHORIZATION_INFO]; // update recent-auth time if it's within the window if (time() - $_SESSION[WFAuthorizationManager::SESSION_NAMESPACE][WFAuthorizationManager::SESSION_KEY_RECENT_LOGIN_TIME] < WFAuthorizationManager::RECENT_LOGIN_SECS) { $_SESSION[WFAuthorizationManager::SESSION_NAMESPACE][WFAuthorizationManager::SESSION_KEY_RECENT_LOGIN_TIME] = time(); } } }
function __construct() { parent::__construct(); $this->reversible = false; }
function __construct() { parent::__construct(); $this->itemCount = NULL; $this->currentItems = NULL; $this->currentPage = WFPaginator::PAGINATOR_FIRST_PAGE; $this->pageSize = WFPaginator::PAGINATOR_PAGESIZE_ALL; $this->dataDelegate = NULL; $this->itemPhraseSingular = "Item"; $this->itemPhrasePlural = "Items"; $this->sortOptions = array(); $this->sortKeys = array(); $this->defaultSortKeys = array(); $this->mode = WFPaginator::MODE_URL; $this->paginatorStateParameterID = 'paginatorState'; $this->hasReadParameterStateFromParams = false; $this->alternativeParams = array(); $this->submitID = NULL; }