function __construct($params) { $this->type = 'widget'; //$this->setRequiredCapability('view_reports'); //print_r($params); return parent::__construct($params); }
function __construct($params) { parent::__construct($params); $v0 = owa_coreAPI::validationFactory('userName'); $v0->setValues($this->getParam('user_id')); $v0->setConfig('stopOnError', true); $this->setValidation('user_id', $v0); }
function __construct($params) { // needed just in case a re-install happens and updates are also needed. // tells the controller to skip the updates redirect if (!defined('OWA_INSTALLING')) { define('OWA_INSTALLING', true); } //$this->c->setSetting('base', 'cache_objects', false); return parent::__construct($params); }
function __construct($params) { parent::__construct($params); $v1 = owa_coreAPI::validationFactory('entityExists'); $v1->setConfig('entity', 'base.user'); $v1->setConfig('column', 'email_address'); $v1->setValues(trim($this->getParam('email_address'))); $v1->setErrorMessage($this->getMsg(3010)); $this->setValidation('email_address', $v1); }
function __construct($params) { if (array_key_exists('event', $params) && !empty($params['event'])) { $this->event = $params['event']; } else { owa_coreAPI::debug("No event object was passed to controller."); $this->event = owa_coreAPI::supportClassFactory('base', 'event'); } $this->eq = owa_coreAPI::getEventDispatch(); return parent::__construct($params); }
function __construct($params) { parent::__construct($params); // Add validations to the run $v1 = owa_coreAPI::validationFactory('stringMatch'); $v1->setValues(array($this->getParam('password'), $this->getParam('password2'))); $v1->setErrorMessage("Your passwords must match."); $this->setValidation('password_match', $v1); $v2 = owa_coreAPI::validationFactory('stringLength'); $v2->setValues($this->getParam('password')); $v2->setConfig('operator', '>='); $v2->setConfig('length', 6); $v2->setErrorMessage("Your password must be at least 6 characters in length."); $this->setValidation('password_length', $v2); return; }
function __construct($params) { return parent::__construct($params); }
function __construct($params) { $this->setRequiredCapability('edit_users'); return parent::__construct($params); }