BlueSpice MediaWiki master
 All Classes Namespaces Files Functions Variables Groups Pages
Avatars Class Reference
Inheritance diagram for Avatars:
Collaboration diagram for Avatars:

Public Member Functions

 generateAvatar ($oUser, $aParams=array(), $bOverwrite=false)
 
- Public Member Functions inherited from BlueSpice\Extension
 jsonSerialize ()
 
 __construct (array $definition,\IContextSource $context,\Config $config)
 
 getInfo ()
 
 getResourcePath ()
 
 getExtensionPath ()
 
 getName ()
 
 getAuthors ()
 
 getStatus ()
 
 getPackage ()
 
 getUrl ()
 
 getVersion ()
 
 getExtensionKey ()
 
- Public Member Functions inherited from BlueSpice\Context
 __construct (\IContextSource $context,\Config $config)
 
 canUseWikiPage ()
 
 exportSession ()
 
 getConfig ()
 
 getLanguage ()
 
 getOutput ()
 
 getRequest ()
 
 getSkin ()
 
 getStats ()
 
 getTiming ()
 
 getTitle ()
 
 getUser ()
 
 getWikiPage ()
 
 msg ($key)
 

Static Public Member Functions

static onRegistration ()
 
static getAvatarFile ($iUserId)
 
static unsetUserImage ($oUser)
 
static onUnitTestsList (array &$paths)
 

Additional Inherited Members

- Protected Attributes inherited from BlueSpice\Extension
 $extPath = ''
 
 $name = ''
 
 $authors = []
 
 $version = ''
 
 $url = ''
 
 $status = ''
 
 $package = ''
 
- Protected Attributes inherited from BlueSpice\Context
 $context = null
 
 $config = null
 

Member Function Documentation

Avatars::generateAvatar (   $oUser,
  $aParams = array(),
  $bOverwrite = false 
)

DEPRECATED - Use new ()->generate() instread Generate an avatar image

Deprecated:
since version 3.0.0
Parameters
User$oUser
Returns
string Relative URL to avatar image
static Avatars::getAvatarFile (   $iUserId)
static

DEPRECATED - Use new ()->getAvatarFile() instread Gets Avatar file from user ID

Deprecated:
since version 3.0.0
Parameters
int$iUserId
Returns
boolean|
static Avatars::onRegistration ( )
static

extension.json callback array $wgForeignFileRepos

static Avatars::onUnitTestsList ( array &  $paths)
static

UnitTestsList allows registration of additional test suites to execute under PHPUnit. Extensions can append paths to files to the $paths array, and since MediaWiki 1.24, can specify paths to directories, which will be scanned recursively for any test case files with the suffix "Test.php".

Parameters
array$paths
static Avatars::unsetUserImage (   $oUser)
static

Clears a user's UserImage setting

Parameters
User$oUser

The documentation for this class was generated from the following file: