Пример #1
0
 function setValueForKey($v, $k)
 {
     try {
         return parent::setValueForKey($v, $k);
     } catch (WFUndefinedKeyException $e) {
         return $this->decoratedObject->setValueForKey($v, $k);
     }
 }
Пример #2
0
 function __construct()
 {
     parent::__construct();
     $this->content = NULL;
     $this->decorators = NULL;
     $this->class = 'WFDictionary';
     $this->automaticallyPreparesContent = true;
 }
Пример #3
0
 public function destroy($vars = array())
 {
     parent::destroy(array('module', 'template', 'delegate', 'instances'));
 }
Пример #4
0
 public function valueForKeyPath($keyPath)
 {
     return WFObject::valueForTargetAndKeyPath($keyPath, $this);
 }
Пример #5
0
 public function destroy($vars = array())
 {
     parent::destroy(array('invocation', 'requestPage', 'responsePage'));
     $this->__sharedInstances = NULL;
 }
Пример #6
0
 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;
 }
Пример #7
0
 public function __construct($opts = array())
 {
     parent::__construct();
     $this->options = array_merge(array(self::OPT_MODEL_ADAPTER => 'Propel'), $opts);
 }
Пример #8
0
 function valueForUndefinedKey($key)
 {
     if ($this->hasVirtualColumn($key)) {
         return $this->getVirtualColumn($key);
     }
     // default implementation will throw
     parent::valueForUndefinedKey($key);
 }
Пример #9
0
 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");
 }
Пример #10
0
 function __construct($errorMessage = NULL, $errorCode = NULL)
 {
     parent::__construct();
     $this->errorCode = $errorCode;
     $this->errorMessage = $errorMessage;
 }
Пример #11
0
 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();
         }
     }
 }
Пример #12
0
 function __construct()
 {
     parent::__construct();
     $this->reversible = false;
 }
Пример #13
0
 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;
 }
Пример #14
0
 public static function exposedProperties()
 {
     $items = parent::exposedProperties();
     return array_merge($items, array('enabled'));
 }