예제 #1
0
 /**
  * {@inheritDoc}
  */
 public function setPassword($password)
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'setPassword', array($password));
     return parent::setPassword($password);
 }
예제 #2
0
 /**
  * Import password
  *
  * @param \XLite\Model\Profile $model Profile
  * @param string               $value Value
  * @param integer              $index Index
  *
  * @return void
  */
 protected function importPasswordColumn(\XLite\Model\Profile $model, $value, $index)
 {
     if (!empty($value)) {
         $model->setPassword(\XLite\Core\Auth::encryptPassword($value));
         // Schedule to delete files after import finished
         $this->importer->getOptions()->clearImportDir = true;
     }
 }