Class Socialveo\Core\models\User

InheritanceSocialveo\Core\models\User » Socialveo\Core\models\SocialveoModel » Phalcon\Mvc\Model
Uses TraitsSocialveo\Core\Translatable, Socialveo\Core\models\traits\JsonProperties

Class User

Public Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$about string Socialveo\Core\models\User
$active integer Socialveo\Core\models\User
$availability string Socialveo\Core\models\User
$badges string Socialveo\Core\models\User
$birthdate string Socialveo\Core\models\User
$created integer Socialveo\Core\models\User
$data string Socialveo\Core\models\User
$email string Socialveo\Core\models\User
$firstname string Socialveo\Core\models\User
$gender string Socialveo\Core\models\User
$id integer Socialveo\Core\models\User
$image string Socialveo\Core\models\User
$interests string Socialveo\Core\models\User
$karma integer Socialveo\Core\models\User
$language_code string Socialveo\Core\models\User
$last_login integer Socialveo\Core\models\User
$last_payment integer Socialveo\Core\models\User
$lastname string Socialveo\Core\models\User
$location_id integer Socialveo\Core\models\User
$location_uuid string Socialveo\Core\models\User
$mobile string Socialveo\Core\models\User
$network_id integer Socialveo\Core\models\User
$network_uuid string Socialveo\Core\models\User
$notifications string Socialveo\Core\models\User
$pass string Socialveo\Core\models\User
$payment_id integer Socialveo\Core\models\User
$payment_uuid integer Socialveo\Core\models\User
$properties stdClass Socialveo\Core\models\User
$search_string string Socialveo\Core\models\User
$social string Socialveo\Core\models\User
$spam string|array Socialveo\Core\models\User
$status integer Socialveo\Core\models\User
$title string Socialveo\Core\models\User
$updated integer Socialveo\Core\models\User
$user_parent_id integer Socialveo\Core\models\User
$user_parent_uuid string Socialveo\Core\models\User
$user_type string Socialveo\Core\models\User
$uuid string Socialveo\Core\models\User

Public Methods

Hide inherited methods

MethodDescriptionDefined By
__get() Magic method to get related records using the relation alias as a property or getters defined by setGetter() Socialveo\Core\models\SocialveoModel
__isset() Magic method to check if a property is a valid relation Socialveo\Core\models\SocialveoModel
__set() Magic method to set related records using the relation alias as a property or setters defined by setSetter() Socialveo\Core\models\SocialveoModel
_t() Gets translations Socialveo\Core\Translatable
activate() Activate user account Socialveo\Core\models\User
afterCreate() After create Socialveo\Core\models\User
afterSave() After save hook Socialveo\Core\models\User
autocompleteSuggestions() Returns a list of autocomplete suggestions, based on given string Socialveo\Core\models\User
beforeSave() Before save hook Socialveo\Core\models\User
behaviors() Get behaviors Socialveo\Core\models\SocialveoModel
behaviorsNotify() Behavior notify Socialveo\Core\models\SocialveoModel
block() Block user account Socialveo\Core\models\User
cachedFind() Returns query results from cache (if set and not expired) or database Socialveo\Core\models\SocialveoModel
change() Changes object attributes based on passed-in payload data, saves object and returns it Socialveo\Core\models\SocialveoModel
changeEmail() Sets a new email to the user Socialveo\Core\models\User
changePassword() Changes user account password Socialveo\Core\models\User
confirmEmail() Confirm email Socialveo\Core\models\User
createObject() Creates an object using passed-in payload data Socialveo\Core\models\SocialveoModel
createPasswordRecoveryUuid() Returns a Password Recovery Uuid Socialveo\Core\models\User
decrementProperty() Increment property Socialveo\Core\models\traits\JsonProperties
deleteObject() Deletes an object (soft-delete) Socialveo\Core\models\SocialveoModel
deleteTargetIndex() Delete target index Socialveo\Core\models\SocialveoModel
displayInterests() Display users interests Socialveo\Core\models\User
emailExist() Check if a given email already exist in database Socialveo\Core\models\User
fetchObjects() Fetches the provided objects and returns them in an array Socialveo\Core\models\SocialveoModel
filteredFind() Returns query results filtered by GET user-parameters, optionaly cached Socialveo\Core\models\SocialveoModel
findByUserName() Socialveo\Core\models\User
findFirstByEmail() Socialveo\Core\models\User
findFirstByUsername() Socialveo\Core\models\User
findFirstByUuid() Socialveo\Core\models\User
findFirstConnectUser() Returns connect with a user Socialveo\Core\models\User
fire() Fire event Socialveo\Core\models\SocialveoModel
forUpdate() Socialveo\Core\models\SocialveoModel
generateHash() Socialveo\Core\models\User
getActivationCode() Creates an 8-character activation code for SMS account activation Socialveo\Core\models\User
getActiveDeleted() Returns whether model is deleted Socialveo\Core\models\SocialveoModel
getActiveOk() Socialveo\Core\models\SocialveoModel
getActivePaymentProcess() Socialveo\Core\models\SocialveoModel
getAdmins() Get all admin users Socialveo\Core\models\User
getAllNetworksConnected() Returns all network and network users who follow, join, added as friends Socialveo\Core\models\User
getAttributes() Get model meta data attributes Socialveo\Core\models\SocialveoModel
getAttributesStatic() Get models metadata attributes Socialveo\Core\models\SocialveoModel
getAvailability() Socialveo\Core\models\User
getAvailabilityStatus() Socialveo\Core\models\User
getAvatar() User avatar Socialveo\Core\models\User
getBlackListingUsers() Return ids users lock Socialveo\Core\models\User
getChangedFields() Returns a list of changed values Socialveo\Core\models\SocialveoModel
getConnectedUsers() Get connected users Socialveo\Core\models\User
getConnectedUsersByNetwork() Get connected users by network Socialveo\Core\models\User
getConnections() Returns the user's connections. Socialveo\Core\models\User
getCountConnections() Returns the number connections Socialveo\Core\models\User
getCountFollowers() The number of users who have joined me Socialveo\Core\models\User
getCountFollowings() The number of users who have joined me Socialveo\Core\models\User
getCountJoinedNetworks() The number of networks user joined Socialveo\Core\models\User
getCountNetworks() The number of networks user created Socialveo\Core\models\User
getCountPosts() Returns the number posts Socialveo\Core\models\User
getCountSharedPhotos() Returns the number shared photos Socialveo\Core\models\User
getCover() User cover Socialveo\Core\models\User
getEventsManagerInstance() Returns models Events Manager Socialveo\Core\models\SocialveoModel
getFollowers() Returns all who follow user Socialveo\Core\models\User
getFollowings() Returns users which user follow Socialveo\Core\models\User
getFullName() User fullname Socialveo\Core\models\User
getFullNameReverse() User fullname in reverse order Socialveo\Core\models\User
getGenders() Socialveo\Core\models\User
getGetters() Return getters Socialveo\Core\models\SocialveoModel
getIsAdmin() Returns whether user is admin Socialveo\Core\models\User
getIsBlocked() Returns whatever user is blocked Socialveo\Core\models\User
getIsBusiness() Socialveo\Core\models\User
getIsEmailVerify() Verification whether the email Socialveo\Core\models\User
getIsInvisible() Returns whatever user is invisible Socialveo\Core\models\User
getIsMobileVerify() Verification whether the mobile Socialveo\Core\models\User
getIsNetwork() Is network Socialveo\Core\models\User
getIsOwner() Check if user is owner of resource Socialveo\Core\models\SocialveoModel
getIsPremium() Whether user is premium Socialveo\Core\models\User
getIsPremiumAvailable() Returns true if premium service available Socialveo\Core\models\User
getIsPublic() Socialveo\Core\models\User
getIsRequiredPassword() Installed password do I have to drive Socialveo\Core\models\User
getIsUser() Is user Socialveo\Core\models\User
getJoinGroups() Returns the groups which user is joined. Socialveo\Core\models\User
getJoinNetworks() Returns the networks which user is joined. Socialveo\Core\models\User
getJoinNetworksPublic() Returns the list of the public joined networks. Socialveo\Core\models\User
getJoinUsers() Socialveo\Core\models\User
getLanguages() Socialveo\Core\models\User
getLastQueryFullCount() Socialveo\Core\models\SocialveoModel
getLocation() Get network location Socialveo\Core\models\User
getLocationAddress() Location address depending on current request Socialveo\Core\models\User
getLocationPlaceId() Location google place id Socialveo\Core\models\User
getMessagesDialogs() Socialveo\Core\models\User
getModel() Get model Socialveo\Core\models\SocialveoModel
getMostConnectedUsers() Returns the ID's and count of posts of users with most posts which are not connected with the $user. Socialveo\Core\models\User
getMostPostedUsers() Returns the ID's and count of posts of users with most posts which are not connected with the $user. Socialveo\Core\models\User
getNearUsersIds() Returns the ID's of users which are located in $radius with selected $user. Socialveo\Core\models\User
getNetworks() Socialveo\Core\models\User
getObjectByParam() Fetches an object based on passed array Socialveo\Core\models\SocialveoModel
getObjectTypeByParam() Returns an resource type based on request URI Socialveo\Core\models\SocialveoModel
getPaymentHistory() Get payment history Socialveo\Core\models\User
getPaymentIsOk() Returns true if is payment ok Socialveo\Core\models\SocialveoModel
getProfilePrivacy() Socialveo\Core\models\User
getProfileUrl() Returns user url profile Socialveo\Core\models\User
getProperties() Returns properties Socialveo\Core\models\traits\JsonProperties
getProperty() Returns property Socialveo\Core\models\traits\JsonProperties
getPropertyAsArray() Returns property as array Socialveo\Core\models\traits\JsonProperties
getRealOwner() Return real owner Socialveo\Core\models\SocialveoModel
getResourceType() Returns a string resource name of the Object (singular form) Socialveo\Core\models\SocialveoModel
getScenario() Socialveo\Core\models\SocialveoModel
getSetters() Return setters Socialveo\Core\models\SocialveoModel
getShortFullName() User short full fullname Socialveo\Core\models\User
getShortName() User shortname Socialveo\Core\models\User
getSource() Define table mapping Socialveo\Core\models\User
getSourceTable() Returns the source table Socialveo\Core\models\SocialveoModel
getStatusesAvailability() Socialveo\Core\models\User
getTarget() Returns target object Socialveo\Core\models\SocialveoModel
getTargetObject() Returns the target object by target_id and target_type Socialveo\Core\models\SocialveoModel
getTargetObjectFromArray() Fetches an object based on passed array Socialveo\Core\models\SocialveoModel
getTargetType() Returns target type Socialveo\Core\models\SocialveoModel
getUrlConfirmEmail() Return secret link confirm email Socialveo\Core\models\User
getUserNetworks() Socialveo\Core\models\User
getUserPublicNetworks() Socialveo\Core\models\User
getUserTypes() Socialveo\Core\models\User
getUsername() Returns user username (url). Socialveo\Core\models\User
getUsersAll() Returns a list of all active users Socialveo\Core\models\User
getUuidsObjects() Fetch objects passed in array Socialveo\Core\models\SocialveoModel
getViewUrl() Returns user url profile Socialveo\Core\models\User
getWallet() Returns or create user wallet Socialveo\Core\models\User
getWalletHistory() Get wallet history Socialveo\Core\models\User
hasChanged() Check if a specific attribute has changed This only works if the model is keeping data snapshots Socialveo\Core\models\SocialveoModel
hasConnect() Returns connect with a user Socialveo\Core\models\User
hasFollow() Socialveo\Core\models\User
hasLock() Socialveo\Core\models\User
incrementProperty() Increment property Socialveo\Core\models\traits\JsonProperties
initBehaviors() Init behaviors Socialveo\Core\models\User
initialize() Initialize method for model. Socialveo\Core\models\User
invisible() Make user account invisible to non-friends, hide from search Socialveo\Core\models\User
isAdmin() Returns true if user is admin or false if is not Socialveo\Core\models\User
isFollowerOf() Whether user is follower Socialveo\Core\models\User
isFollowingOf() Whether user is follower Socialveo\Core\models\User
isFriend() Whether user is friend Socialveo\Core\models\User
isFriendNetwork() Socialveo\Core\models\User
isModel() Check if called class and the model name is the same Socialveo\Core\models\SocialveoModel
isNew() Checks whether model is new Socialveo\Core\models\SocialveoModel
isNewRecord() Checks whether model is new Socialveo\Core\models\SocialveoModel
isSkipValidation() Is skip validation Socialveo\Core\models\SocialveoModel
newPassword() Sets a new password to the user Socialveo\Core\models\User
onConstruct() OnConstruct event model Socialveo\Core\models\SocialveoModel
pluralize() Transforms words from singular to plural Socialveo\Core\models\SocialveoModel
readAttribute() Read attribute from getter Socialveo\Core\models\SocialveoModel
register() Add a user account Socialveo\Core\models\User
resourceToModel() Transforms a resource name string to a Model name (if such model exists) Socialveo\Core\models\SocialveoModel
resultsetToJson() Returns an array of typed arrays, ready to be json_encoded Socialveo\Core\models\SocialveoModel
retrieve() Returns object from cache (if set and not expired) or database Socialveo\Core\models\SocialveoModel
setGetter() Set getter Socialveo\Core\models\SocialveoModel
setLocationPlaceId() Set network location Socialveo\Core\models\User
setProperty() Set property Socialveo\Core\models\traits\JsonProperties
setScenario() Socialveo\Core\models\SocialveoModel
setSetter() Set setter Socialveo\Core\models\SocialveoModel
setTargetObject() Set target_id and target_type Socialveo\Core\models\SocialveoModel
setUsername() Set username Socialveo\Core\models\User
singularize() Transforms words from plural to singular Socialveo\Core\models\SocialveoModel
t() Gets translations Socialveo\Core\Translatable
toArray() Socialveo\Core\models\User
toJson() Override default toJson() returns a typed array ready to be json_encoded includes user Profile Network in the body of the User resource Socialveo\Core\models\User
unblock() Unblock user account Socialveo\Core\models\User
updateFields() Update only custom fields Socialveo\Core\models\SocialveoModel
userHasAccess() Returns true if user has access to user resource, otherwise false Socialveo\Core\models\User
usernameExist() Check if a given username already exist in database Socialveo\Core\models\User
validation() Validations Socialveo\Core\models\User
writeAttribute() Write attribute using setter Socialveo\Core\models\SocialveoModel

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
_postSaveRelatedRecords() Override default method for turn off auto-updating related records Socialveo\Core\models\SocialveoModel
_preSaveRelatedRecords() Override default method for turn off auto-updating related records Socialveo\Core\models\SocialveoModel
afterFetch() After fetch hook Socialveo\Core\models\SocialveoModel
afterUpdate() After update hook Socialveo\Core\models\SocialveoModel
beforeCreate() Before create hook Socialveo\Core\models\SocialveoModel
beforeDelete() Before delete hook Socialveo\Core\models\SocialveoModel
beforeUpdate() Before update hook Socialveo\Core\models\SocialveoModel
getUser() Returns user model of the currently logged in (or passed-in) user Socialveo\Core\models\SocialveoModel

Constants

Hide inherited constants

ConstantValueDescriptionDefined By
ACTIVE_DELETE 0 Delete Socialveo\Core\models\SocialveoModel
ACTIVE_OK 1 Active Socialveo\Core\models\SocialveoModel
ACTIVE_PROCESS_PAYMENT 2 Payment process Socialveo\Core\models\SocialveoModel
SCENARIO_DEFAULT 'default' Socialveo\Core\models\SocialveoModel
SCENARIO_DELETE 'delete' Socialveo\Core\models\SocialveoModel
SCENARIO_PAYMENT 'payment' Socialveo\Core\models\SocialveoModel
SCENARIO_SAVE_USER 'save_user' Socialveo\Core\models\SocialveoModel
SCENARIO_SKIP_VALIDATION 'skip_validation' Socialveo\Core\models\SocialveoModel
STATUS_ACTIVE 1 User account activated Socialveo\Core\models\User
STATUS_BLOCKED 2 User account blocked Socialveo\Core\models\User
STATUS_INACTIVE 0 User account not activated Socialveo\Core\models\User
STATUS_INVISIBLE 3 User account hidden from search results Socialveo\Core\models\User
STATUS_PROTECTED 4 Make your profile visible only by your connections Socialveo\Core\models\User
USER_TYPE_PREMIUM 'premium' Premium user type Socialveo\Core\models\User
USER_TYPE_USER 'user' Default user type Socialveo\Core\models\User

Property Details

$_wallet protected property
$about public property (available since version 1.0)
public string $about null
$active public property (available since version 1.0)
public integer $active null
$availability public property (available since version 1.0)
public string $availability null
$badges public property (available since version 1.0)
public string $badges null
$birthdate public property (available since version 1.0)
public string $birthdate null
$created public property (available since version 1.0)
public integer $created null
$data public property (available since version 1.0)
public string $data null
$email public property (available since version 1.0)
public string $email null
$firstname public property (available since version 1.0)
public string $firstname null
$gender public property (available since version 1.0)
public string $gender null
$id public property (available since version 1.0)
public integer $id null
$image public property (available since version 1.0)
public string $image null
$interests public property (available since version 1.0)
public string $interests null
$karma public property (available since version 1.0)
public integer $karma null
$language_code public property (available since version 1.0)
public string $language_code null
$last_login public property (available since version 1.0)
public integer $last_login null
$last_payment public property (available since version 1.0)
public integer $last_payment null
$lastname public property (available since version 1.0)
public string $lastname null
$location_id public property
public integer $location_id null
$location_uuid public property
public string $location_uuid null
$mobile public property (available since version 1.0)
public string $mobile null
$network_id public property (available since version 1.0)
public integer $network_id null
$network_uuid public property (available since version 1.0)
public string $network_uuid null
$notifications public property (available since version 1.0)
public string $notifications null
$pass public property (available since version 1.0)
public string $pass null
$payment_id public property (available since version 1.0)
public integer $payment_id null
$payment_uuid public property (available since version 1.0)
public integer $payment_uuid null
$properties public property (available since version 1.0)
public stdClass $properties null
$search_string public property (available since version 1.0)
public string $search_string null
$social public property (available since version 1.0)
public string $social null
$spam public property (available since version 1.0)
public string|array $spam null
$status public property (available since version 1.0)
public integer $status null
$title public property (available since version 1.0)
public string $title null
$updated public property (available since version 1.0)
public integer $updated null
$user_parent_id public property (available since version 1.0)
public integer $user_parent_id null
$user_parent_uuid public property (available since version 1.0)
public string $user_parent_uuid null
$user_type public property (available since version 1.0)
public string $user_type null
$uuid public property (available since version 1.0)
public string $uuid null

Method Details

activate() public static method (available since version 1.0)

Activate user account

public static Socialveo\Core\models\User activate ( $user_uuid, $payload = [] )
$user_uuid string
$payload array
return Socialveo\Core\models\User

$user

throws Exception

User account cannot be activated

afterCreate() public method

After create

public void afterCreate ( )
afterSave() public method (available since version 1.0)

After save hook

public void afterSave ( )
autocompleteSuggestions() public static method (available since version 1.0)

Returns a list of autocomplete suggestions, based on given string

public static Phalcon\Mvc\Model\Resultset\Simple|boolean autocompleteSuggestions ( $string, $number 10 )
$string string
$number integer
beforeSave() public method (available since version 1.0)

Before save hook

public void beforeSave ( )
block() public static method (available since version 1.0)

Block user account

public static boolean block ( $user_uuid )
$user_uuid string
changeEmail() public method

Sets a new email to the user

public boolean changeEmail ( $email )
$email string
throws Exception
changePassword() public static method (available since version 1.0)

Changes user account password

public static boolean changePassword ( $user_uuid, $current_pass, $new_pass )
$user_uuid string
$current_pass string
$new_pass string
return boolean

Provided password does not match current password

throws Exception

Password has to be at least $config->security->minPasswordLength characters long

confirmEmail() public method

Confirm email

public void confirmEmail ( )
createPasswordRecoveryUuid() public static method (available since version 1.0)

Returns a Password Recovery Uuid

public static boolean|string createPasswordRecoveryUuid ( $user_uuid )
$user_uuid string
return boolean|string

User not found

throws Exception

User not found

displayInterests() public method

Display users interests

public mixed displayInterests ( )
emailExist() public static method (available since version 1.0)

Check if a given email already exist in database

public static boolean emailExist ( $email )
$email string

Email to check if exist

findByUserName() public static method

public static Socialveo\Core\models\User findByUserName ( $username )
$username string
findFirstByEmail() public static method

public static Socialveo\Core\models\User findFirstByEmail ( $email )
$email string
findFirstByUsername() public static method

public static Socialveo\Core\models\User findFirstByUsername ( $username )
$username string
findFirstByUuid() public static method

public static Socialveo\Core\models\User findFirstByUuid ( $uuid )
$uuid string
findFirstConnectUser() public method

Returns connect with a user

public Phalcon\Mvc\Model findFirstConnectUser ( $user )
$user Socialveo\Core\models\User
generateHash() public method

public string generateHash ( $key null )
$key null|string
getActivationCode() public method (available since version 1.0)

Creates an 8-character activation code for SMS account activation

public string getActivationCode ( )
return string

$activationCode

getAdmins() public static method

Get all admin users

public static Socialveo\Core\models\User[] getAdmins ( )
getAllNetworksConnected() public method

Returns all network and network users who follow, join, added as friends

public array getAllNetworksConnected ( )
getAvailability() public method

public string getAvailability ( )
getAvailabilityStatus() public method

public string|null getAvailabilityStatus ( )
getAvatar() public method

User avatar

public string getAvatar ( )
getBlackListingUsers() public method

Return ids users lock

public array getBlackListingUsers ( )
getConnectedUsers() public static method (available since version 1.0)

Get connected users

Returns a list of users connected to given user

public static Phalcon\Mvc\Model\Resultset\Simple|string getConnectedUsers ( $user_uuid, $params = [] )
$user_uuid string
$params array
getConnectedUsersByNetwork() public static method (available since version 1.0)

Get connected users by network

Returns a list of users connected to given network

public static Phalcon\Mvc\Model\Resultset\Simple|string getConnectedUsersByNetwork ( $network_uuid, $params )
$network_uuid string
$params array
getConnections() public method

Returns the user's connections.

public Socialveo\Core\models\Connection[] getConnections ( )
getCountConnections() public method

Returns the number connections

public integer getCountConnections ( )
getCountFollowers() public method

The number of users who have joined me

public integer getCountFollowers ( $type = \Socialveo\Core\models\Connection::NETWORK_TYPE_PROFILE, $flags 0 )
$type string

[optional]

$flags integer

[optional]

getCountFollowings() public method

The number of users who have joined me

public integer getCountFollowings ( $type = \Socialveo\Core\models\Connection::NETWORK_TYPE_PROFILE, $flags 0 )
$type string

[optional]

$flags integer

[optional]

getCountJoinedNetworks() public method

The number of networks user joined

public integer getCountJoinedNetworks ( )
getCountNetworks() public method

The number of networks user created

public integer getCountNetworks ( )
getCountPosts() public method

Returns the number posts

public integer getCountPosts ( )
getCountSharedPhotos() public method

Returns the number shared photos

public integer getCountSharedPhotos ( )
getCover() public method

User cover

public string getCover ( )
getFollowers() public method

Returns all who follow user

public Socialveo\Core\models\User[] getFollowers ( $type = \Socialveo\Core\models\Connection::NETWORK_TYPE_PROFILE, $flags 0 )
$type string

[optional]

$flags integer

[optional]

getFollowings() public method

Returns users which user follow

public Socialveo\Core\models\User[] getFollowings ( $type = \Socialveo\Core\models\Connection::NETWORK_TYPE_PROFILE, $flags 0 )
$type string

[optional]

$flags integer

[optional]

getFullName() public method

User fullname

public string getFullName ( )
getFullNameReverse() public method

User fullname in reverse order

public string getFullNameReverse ( )
getGenders() public static method

public static array getGenders ( )
getIsAdmin() public method

Returns whether user is admin

public boolean getIsAdmin ( )
getIsBlocked() public method

Returns whatever user is blocked

public boolean getIsBlocked ( )
getIsBusiness() public method

public boolean getIsBusiness ( )
getIsEmailVerify() public method

Verification whether the email

public boolean getIsEmailVerify ( )
getIsInvisible() public method

Returns whatever user is invisible

public boolean getIsInvisible ( )
getIsMobileVerify() public method

Verification whether the mobile

public boolean getIsMobileVerify ( )
getIsNetwork() public method

Is network

public boolean getIsNetwork ( )
getIsPremium() public method

Whether user is premium

public boolean getIsPremium ( )
getIsPremiumAvailable() public method

Returns true if premium service available

public boolean getIsPremiumAvailable ( )
getIsPublic() public method

public boolean getIsPublic ( )
getIsRequiredPassword() public method

Installed password do I have to drive

public boolean getIsRequiredPassword ( )
getIsUser() public method

Is user

public boolean getIsUser ( )
getJoinGroups() public method

Returns the groups which user is joined.

public Socialveo\Core\models\Network[] getJoinGroups ( )
getJoinNetworks() public method

Returns the networks which user is joined.

public Phalcon\Mvc\Model\ResultsetInterface|Socialveo\Core\models\Network[] getJoinNetworks ( )
getJoinNetworksPublic() public method

Returns the list of the public joined networks.

public mixed getJoinNetworksPublic ( )
getJoinUsers() public method

public Phalcon\Mvc\Model\Resultset|Phalcon\Mvc\Model\ResultsetInterface|Socialveo\Core\models\Network[] getJoinUsers ( )
getLanguages() public static method

public static array getLanguages ( )
getLocation() public method

Get network location

public Socialveo\Core\models\Location getLocation ( )
getLocationAddress() public method (available since version 1.0)

Location address depending on current request

public string getLocationAddress ( )
getLocationPlaceId() public method (available since version 1.0)

Location google place id

public string getLocationPlaceId ( )
getMessagesDialogs() public method

public Socialveo\Core\models\MessagesDialogs[] getMessagesDialogs ( )
getMostConnectedUsers() public static method

Returns the ID's and count of posts of users with most posts which are not connected with the $user.

public static Phalcon\Mvc\Model\ResultsetInterface getMostConnectedUsers ( $user, $limit )
$user Socialveo\Core\models\User

The user instance.

$limit integer

The count of users to return.

getMostPostedUsers() public static method

Returns the ID's and count of posts of users with most posts which are not connected with the $user.

public static array getMostPostedUsers ( $user, $limit )
$user Socialveo\Core\models\User

The user instance.

$limit integer

The count of users to return.

getNearUsersIds() public static method

Returns the ID's of users which are located in $radius with selected $user.

public static array getNearUsersIds ( $user, $radius )
$user Socialveo\Core\models\User
$radius integer
getNetworks() public method

public Phalcon\Mvc\Model\ResultsetInterface getNetworks ( $parameters null )
$parameters mixed
getPaymentHistory() public method

Get payment history

public Socialveo\Core\models\PaymentHistory[] getPaymentHistory ( )
getProfilePrivacy() public static method

public static array getProfilePrivacy ( )
getProfileUrl() public method

Returns user url profile

public string getProfileUrl ( )
getShortFullName() public method

User short full fullname

public string getShortFullName ( )
getShortName() public method

User shortname

public string getShortName ( )
getSource() public method (available since version 1.0)

Define table mapping

public string getSource ( )
return string

Table prefix + table name

getStatusesAvailability() public static method

public static array getStatusesAvailability ( )
getUrlConfirmEmail() public method

Return secret link confirm email

public string getUrlConfirmEmail ( )
getUserNetworks() public method

public Socialveo\Core\models\Network[] getUserNetworks ( )
getUserPublicNetworks() public method

public Socialveo\Core\models\Network[] getUserPublicNetworks ( )
getUserTypes() public static method

public static array getUserTypes ( )
getUsername() public method

Returns user username (url).

public string getUsername ( )
getUsersAll() public static method (available since version 1.0)

Returns a list of all active users

public static Phalcon\Mvc\Model\Resultset\Simple getUsersAll ( $params )
$params array
getViewUrl() public method

Returns user url profile

public string getViewUrl ( )
getWallet() public method

Returns or create user wallet

public Socialveo\Core\models\Wallet getWallet ( )
getWalletHistory() public method

Get wallet history

public Socialveo\Core\models\WalletHistory[] getWalletHistory ( )
hasConnect() public method

Returns connect with a user

public boolean hasConnect ( $user )
$user Socialveo\Core\models\User
hasFollow() public method

public boolean hasFollow ( $user )
$user Socialveo\Core\models\User
hasLock() public method

public boolean hasLock ( $user )
$user Socialveo\Core\models\User
initBehaviors() public method (available since version 1.0)

Init behaviors

Notice. Important to use initBehaviors() instead of behaviors() for avoiding the creating new behaviors each time when behaviors are called for memory performance, especially for CustomFieldsBehavior what work only singular.

public array initBehaviors ( )
initialize() public method (available since version 1.0)

Initialize method for model.

public void initialize ( )
invisible() public static method (available since version 1.0)

Make user account invisible to non-friends, hide from search

public static boolean invisible ( $user_uuid )
$user_uuid string
isAdmin() public method

Returns true if user is admin or false if is not

public boolean isAdmin ( )
return boolean

Is admin or not

isFollowerOf() public method

Whether user is follower

public boolean isFollowerOf ( $user )
$user Socialveo\Core\models\User
isFollowingOf() public method

Whether user is follower

public boolean isFollowingOf ( $user )
$user Socialveo\Core\models\User
isFriend() public method

Whether user is friend

public boolean isFriend ( $user )
$user Socialveo\Core\models\User
isFriendNetwork() public method
Deprecated much better to use $user->isFriend($network->user)

public boolean isFriendNetwork ( Socialveo\Core\models\Network $network )
$network Socialveo\Core\models\Network
newPassword() public method

Sets a new password to the user

public boolean newPassword ( $newPass )
$newPass string
register() public static method (available since version 1.0)

Add a user account

public static boolean|Socialveo\Core\models\User register ( $userData )
$userData array
throws Exception
setLocationPlaceId() public method

Set network location

public void setLocationPlaceId ( $value )
$value
setUsername() public method

Set username

public void setUsername ( $username )
$username string
toArray() public method

public array toArray ( $columns null )
$columns array|null
toJson() public method (available since version 1.0)

Override default toJson() returns a typed array ready to be json_encoded includes user Profile Network in the body of the User resource

public array toJson ( $embed = [], $extraFields = [] )
$embed array
$extraFields array
return array

Could not retrieve user profile network of current user

throws Exception

Could not retrieve user profile network of current user

unblock() public static method (available since version 1.0)

Unblock user account

public static boolean unblock ( $user_uuid )
$user_uuid string
userHasAccess() public method (available since version 1.0)

Returns true if user has access to user resource, otherwise false

public boolean userHasAccess ( $user null )
$user mixed

Object, UUID, or null

throws Phalcon\Exception

Resource access check failed. User undefined.

usernameExist() public static method (available since version 1.0)

Check if a given username already exist in database

public static boolean usernameExist ( $username )
$username string

Username to check if exist

validation() public method (available since version 1.0)

Validations

public boolean|void validation ( )
throws Exception