/** {@inheritDoc} */ public function initialize() { /** @var mlmsystem $mlmsystem */ $this->MlmSystem = $this->modx->getService('mlmsystem'); $this->MlmSystem->initialize($this->getProperty('context', $this->modx->context->key)); $this->setProperties(array('passwordnotifymethod' => 's', 'blocked' => false, 'active' => true)); return parent::initialize(); }
public function initialize() { $this->setDefaultProperties(array("passwordnotifymethod" => "this", "passwordgenmethod" => "g", "fullname" => '')); $this->setProperties(array("use_captcha" => true, 'active' => false, "auto_auth" => false, "groups" => array(array("usergroup" => 11, "role" => 1)), 'email' => mb_convert_case($this->getProperty('email'), MB_CASE_LOWER, 'utf-8'), "createdon" => time())); $confirmpassword = $this->getProperty('specifiedpassword'); $this->setProperty('confirmpassword', $confirmpassword); return parent::initialize() && !$this->hasErrors(); }
public function initialize() { return parent::initialize(); }