Method | Description | |
---|---|---|
__construct ( |
||
getAttribute ( string $attribute ) : string | Gets user attribute | |
getAuthor ( ) : MetaAuthor | Get user related author | |
hasAttribute ( string $attribute ) : boolean | Checks user attribute | |
has_permission ( string $permission ) : boolean | Test if user has permission | |
image ( integer $width = 80, integer $height = 80, string $specs = 'fit', string $imagePath = null ) : string | Get image src | |
is ( $name ) : boolean | Test if user is a given type | |
isActive ( ) : boolean | Test if user is active | |
isAdmin ( ) : boolean | Test if user is admin | |
isAuthor ( ) : boolean | Test if user is author | |
isBlogger ( ) : boolean | Test if user is blogger | |
offsetExists ( $offset ) | ||
offsetGet ( $offset ) | ||
offsetSet ( $offset, $value ) | ||
offsetUnset ( $offset ) |
Method | Description | |
---|---|---|
getCountry ( ) : string | Get the name of the country of the registered user | |
getCreated ( ) | ||
getDisplayName ( ) : string | ||
getEmail ( ) | ||
getFirstName ( ) | ||
getId ( ) : integer | Get user id | |
getLastName ( ) | ||
getPostsCount ( ) : integer | Get posts count | |
getSubscriber ( ) | ||
getSubscriptions ( ) : MetaSubscription | Get subscription | |
getTopics ( ) : array | Get topics | |
getUsername ( ) | ||
isBlockedFromComments ( ) : boolean | Test if user is blocked from commenting | |
isDefined ( ) | ||
isLoggedIn ( ) : boolean | Test if user is logged in |
public getAttribute ( string $attribute ) : string | ||
$attribute | string | User attribute |
return | string |
public getAuthor ( ) : MetaAuthor | ||
return | MetaAuthor |
protected getCountry ( ) : string | ||
return | string |
protected getPostsCount ( ) : integer | ||
return | integer |
protected getSubscriptions ( ) : MetaSubscription | ||
return | MetaSubscription |
public hasAttribute ( string $attribute ) : boolean | ||
$attribute | string | User attribute |
return | boolean |
public has_permission ( string $permission ) : boolean | ||
$permission | string | |
return | boolean |
protected isBlockedFromComments ( ) : boolean | ||
return | boolean |
protected isLoggedIn ( ) : boolean | ||
return | boolean |