コード例 #1
0
 /**
  * @param MMUsers $user
  */
 public static function setCurrentUserObject( MMUsers $user )
 {
     SessionTool::setSession( self::SESSION_USER_KEY, $user->attribute('uuid') );
     self::$_currentUser = $user;
     self::$_currentUserId = $user->attribute('uuid');
 }
コード例 #2
0
 /**
  * Gets proper country Id for my certificates webservice calls
  *
  * @param MMUsers $user
  * @return string - proper countryId for certificates webserwice calls
  */
 public static function getProperCountryId( $user )
 {
     $countryId = SolrSafeOperatorHelper::feature('MyCertificates', 'MyCertificatesCountryId');
     if ( !$countryId )
     {
         $countryId = $user->attribute('country');
     }
     return $countryId;
 }