Exemple #1
0
 /**
  * Return list of the "Button" widgets
  *
  * @return array
  */
 protected function getFormButtons()
 {
     $result = parent::getFormButtons();
     $params = array('text_before' => static::t('Or register with'), 'buttonStyle' => 'icon');
     $result['social-login'] = $this->getWidget($params, 'XLite\\Module\\CDev\\Paypal\\View\\Login\\Widget');
     return $result;
 }
Exemple #2
0
 /**
  * Return fields list by the corresponding schema
  *
  * @return array
  */
 protected function getFormFieldsForSectionMain()
 {
     if ($this->getModelObject()->isSocialProfile()) {
         unset($this->mainSchema['password']);
         unset($this->mainSchema['password_conf']);
     }
     return parent::getFormFieldsForSectionMain();
 }
Exemple #3
0
 /**
  * Populate model object properties by the passed data
  *
  * @param array $data Data to set up
  *
  * @return void
  */
 protected function setModelProperties(array $data)
 {
     parent::setModelProperties($data);
     if (in_array($this->currentAction, array('update', 'create')) && isset($data['drupal_roles']) && is_array($data['drupal_roles'])) {
         $this->getModelObject()->updateDrupalRoles($data['drupal_roles']);
     }
 }
 /**
  * Update profile
  *
  * @return boolean
  */
 protected function performActionUpdate()
 {
     $result = parent::performActionUpdate();
     if ($this->isValid()) {
         \XLite\Core\Session::getInstance()->forceChangePassword = false;
     }
     return $result;
 }