Метод | Описание | |
---|---|---|
__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 ) |
Метод | Описание | |
---|---|---|
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 |
Результат | string |
public getAuthor ( ) : MetaAuthor | ||
Результат | MetaAuthor |
protected getCountry ( ) : string | ||
Результат | string |
protected getPostsCount ( ) : integer | ||
Результат | integer |
protected getSubscriptions ( ) : MetaSubscription | ||
Результат | MetaSubscription |
public hasAttribute ( string $attribute ) : boolean | ||
$attribute | string | User attribute |
Результат | boolean |
public has_permission ( string $permission ) : boolean | ||
$permission | string | |
Результат | boolean |
protected isBlockedFromComments ( ) : boolean | ||
Результат | boolean |
protected isLoggedIn ( ) : boolean | ||
Результат | boolean |