コード例 #1
0
 /**
  * {@inheritDoc}
  */
 public function getLanguage($flagCreate = false)
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'getLanguage', array($flagCreate));
     return parent::getLanguage($flagCreate);
 }
コード例 #2
0
ファイル: Mailer.php プロジェクト: kewaunited/xcart
 /**
  * Send notification about updated profile to the user
  *
  * @param \XLite\Model\Profile $profile  Profile object
  * @param string               $password Profile password OPTIONAL
  *
  * @return void
  */
 public static function sendProfileUpdatedCustomer(\XLite\Model\Profile $profile, $password = null)
 {
     $interface = $profile->isAdmin() ? \XLite::ADMIN_SELF : \XLite::CART_SELF;
     $url = \XLite::getInstance()->getShopURL(\XLite\Core\Converter::buildURL('login', '', array(), $interface));
     static::register(array('profile' => $profile, 'password' => $password, 'url' => $url));
     static::compose(static::TYPE_PROFILE_UPDATED_CUSTOMER, static::getSiteAdministratorMail(), $profile->getLogin(), 'profile_modified', array(), true, \XLite::CUSTOMER_INTERFACE, static::getMailer()->getLanguageCode(\XLite::CUSTOMER_INTERFACE, $profile->getLanguage()));
 }