OssnUser Class Reference
Inheritance diagram for OssnUser:
OssnEntities OssnDatabase OssnBase

Public Member Functions

 addUser ()
 
 isOssnUsername ()
 
 isOssnEmail ()
 
 initAttributes ()
 
 getUser ()
 
 isPassword ()
 
 isEmail ()
 
 isUsername ()
 
 generateSalt ()
 
 generate_password ($password= '', $salt= '')
 
 Login ()
 
 update_last_login ()
 
 getFriendRequests ($user= '')
 
 isFriend ($usera, $user2)
 
 getFriends ($user= '')
 
 sendRequest ($from, $to)
 
 requestExists ($from, $user)
 
 deleteFriend ($from, $to)
 
 getSiteUsers ($params=array())
 
 update_last_activity ()
 
 online_total ()
 
 getOnline ($intervals= '100')
 
 searchUsers ($q, $limit= '')
 
 SearchSiteUsers ($search, $limit= '')
 
 ValidateRegistration ($code)
 
 iconURL ()
 
 profileURL ($extends= '')
 
 SendResetLogin ()
 
 resetPassword ($password)
 
 deleteResetCode ()
 
 isOnline ($intervals=100)
 
 deleteUser ()
 
 isUserVALIDATED ()
 
 resendValidationEmail ()
 
 getUnvalidatedUSERS ($search= '', $count=false)
 
 getProfilePhoto ()
 
 getProfileCover ()
 
 countByYearMonth ()
 
 genderTypes ()
 
 countByGender ($gender= 'male')
 
 onlineByGender ($gender= 'male', $count=false, $intervals=100)
 
 save ()
 
 canModerate ()
 
 isAdmin ()
 
- Public Member Functions inherited from OssnEntities
 add ()
 
 get_entity ()
 
 save ()
 
 get_entities ()
 
 AddedEntityGuid ()
 
 updateEntity ()
 
 deleteByOwnerGuid ($guid, $type)
 
 deleteEntity ($guid)
 
 searchEntities (array $params=array())
 
 canChange ($user= '')
 
- Public Member Functions inherited from OssnDatabase
 Connect ()
 
 insert ($params)
 
 statement ($query)
 
 execute ()
 
 update ($params=array())
 
 select ($params, $multi= '')
 
 fetch ($data=false)
 
 delete ($params)
 
 getLastEntry ()
 
 constructWheres (array $array, $operator="AND")
 
 generateLimit ($data_limit=false, $page_limit=false, $offset=false)
 
- Public Member Functions inherited from OssnBase
 getGUID ()
 
 getID ()
 
 getParam ($param)
 
 isParam ($param)
 

Static Public Member Functions

static Logout ()
 

Detailed Description

Definition at line 12 of file OssnUser.php.

Member Function Documentation

addUser ( )

Add user to system.

Returns
boolean

Definition at line 18 of file OssnUser.php.

canModerate ( )

Can Moderate Check if user can moderate the requested item or not

Returns
boolean

Definition at line 1005 of file OssnUser.php.

countByGender (   $gender = 'male')

Get total users per month for each year

Returns
object|false public

Definition at line 909 of file OssnUser.php.

countByYearMonth ( )

Get total users per month for each year

Returns
object|false public

Definition at line 867 of file OssnUser.php.

deleteFriend (   $from,
  $to 
)

Delete friend from list

Returns
boolean

Definition at line 429 of file OssnUser.php.

deleteResetCode ( )

Remove user reset code

Returns
boolean

Definition at line 681 of file OssnUser.php.

deleteUser ( )

Delete user from syste,

Returns
boolean

Definition at line 712 of file OssnUser.php.

genderTypes ( )

Gender types

Returns
object|false public

Definition at line 896 of file OssnUser.php.

generate_password (   $password = '',
  $salt = '' 
)

Generate password.

Returns
string

Definition at line 245 of file OssnUser.php.

generateSalt ( )

Generate salt.

Returns
string

Definition at line 236 of file OssnUser.php.

getFriendRequests (   $user = '')

Get user friends requests.

Returns
object

Definition at line 301 of file OssnUser.php.

getFriends (   $user = '')

Get user friends.

Returns
object

Definition at line 363 of file OssnUser.php.

getOnline (   $intervals = '100')

Get online site users.

integer $intervals Seconds

Returns
object

Definition at line 496 of file OssnUser.php.

getProfileCover ( )

Get a user last coverphoto photo

Returns
object|false

Definition at line 838 of file OssnUser.php.

getProfilePhoto ( )

Get a user last profile photo

Returns
object|false

Definition at line 819 of file OssnUser.php.

getSiteUsers (   $params = array())

Get site users.

Returns
object

Definition at line 444 of file OssnUser.php.

getUnvalidatedUSERS (   $search = '',
  $count = false 
)

Get list of unvalidated users

Returns
false|object

Definition at line 786 of file OssnUser.php.

getUser ( )

Get user with its entities.

Returns
object

Definition at line 156 of file OssnUser.php.

iconURL ( )

View user icon url

Returns
string

Definition at line 593 of file OssnUser.php.

initAttributes ( )

Initialize the objects.

Returns
void

Definition at line 142 of file OssnUser.php.

isAdmin ( )

isAdmin Check if user is admin or not

Returns
boolean

Definition at line 1020 of file OssnUser.php.

isEmail ( )

Check if password is > 5 or not.

Returns
boolean

Definition at line 213 of file OssnUser.php.

isFriend (   $usera,
  $user2 
)

Check if the user is friend with other or not.

Returns
boolean

Definition at line 337 of file OssnUser.php.

isOnline (   $intervals = 100)

Check if user is online or not

Returns
boolean

Definition at line 697 of file OssnUser.php.

isOssnEmail ( )

Check if email is exist in database or not.

Returns
boolean

Definition at line 129 of file OssnUser.php.

isOssnUsername ( )

Check if username is exist in database or not.

Returns
boolean

Definition at line 116 of file OssnUser.php.

isPassword ( )

Check if password is > 5 or not.

Returns
boolean

Definition at line 202 of file OssnUser.php.

isUsername ( )

Check if the user is correct or not.

Returns
boolean

Definition at line 224 of file OssnUser.php.

isUserVALIDATED ( )

Check if user is validated or not

Returns
boolean

Definition at line 751 of file OssnUser.php.

Login ( )

Login into site.

Returns
boolean

Definition at line 254 of file OssnUser.php.

static Logout ( )
static

User logout

Returns
void

Definition at line 857 of file OssnUser.php.

online_total ( )

Count Total online site users.

Returns
boolean

Definition at line 485 of file OssnUser.php.

onlineByGender (   $gender = 'male',
  $count = false,
  $intervals = 100 
)

Get online users by gender

Parameters
string$genderGender type
boolean$counttrue or false
integer$intervalsSeconds
Returns
object|false public

Definition at line 937 of file OssnUser.php.

profileURL (   $extends = '')

View user profile url

Returns
string

Definition at line 608 of file OssnUser.php.

requestExists (   $from,
  $user 
)

Check if the request already sent or not.

Returns
boolean

Definition at line 407 of file OssnUser.php.

resendValidationEmail ( )

Resend validation email to user

Returns
boolean

Definition at line 762 of file OssnUser.php.

resetPassword (   $password)

Reset user password

Returns
boolean

Definition at line 653 of file OssnUser.php.

save ( )

Save a user entity

Returns
boolean

Definition at line 984 of file OssnUser.php.

SearchSiteUsers (   $search,
  $limit = '' 
)

Search users without entities.

Returns
object

Definition at line 536 of file OssnUser.php.

searchUsers (   $q,
  $limit = '' 
)

Search site users with its entities

Returns
boolean

Definition at line 517 of file OssnUser.php.

sendRequest (   $from,
  $to 
)

Send request to other user.

Returns
boolean

Definition at line 392 of file OssnUser.php.

SendResetLogin ( )

Send user reset password link

Returns
boolean

Definition at line 618 of file OssnUser.php.

update_last_activity ( )

Update user last activity time

Returns
boolean

Definition at line 459 of file OssnUser.php.

update_last_login ( )

Update user last login time.

Returns
boolean

Definition at line 277 of file OssnUser.php.

ValidateRegistration (   $code)

Validate User Registration

Returns
boolean

Definition at line 567 of file OssnUser.php.


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