OPEN SOURCE SOCIAL NETWORK 6.6
Loading...
Searching...
No Matches
OssnProfile Class Reference
Inheritance diagram for OssnProfile:
OssnDatabase OssnBase OssnSession

Public Member Functions

 repositionCOVER ($guid, $top, $left)
 
 ResetCoverPostition ($guid)
 
 coverParameters ($guid)
 
 addPhotoWallPost ($ownerguid, $itemguid, $type='profile:photo')
 
 deletePhotoWallPost ($fileguid)
 
 getCoverURL ($user='')
 
- Public Member Functions inherited from OssnDatabase
 __construct ()
 
 Connect ()
 
 insert ($params)
 
 statement ($query)
 
 execute ($values=array())
 
 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)
 
 clearVars ()
 
 __destruct ()
 
- Public Member Functions inherited from OssnBase
 getGUID ()
 
 getID ()
 
 getParam ($param)
 
 isParam ($param)
 
 __call ($method, $args)
 

Additional Inherited Members

- Static Public Member Functions inherited from OssnSession
static start ()
 
static assign ($name='', $value='')
 
static unassign ($name='')
 
static isSession ($name='')
 
static getSession ($name='')
 

Member Function Documentation

◆ addPhotoWallPost()

addPhotoWallPost (   $ownerguid,
  $itemguid,
  $type = 'profile:photo' 
)

Add a wall post for new profile/cover picture

Parameters
int$ownerguid= Guid of owner
int$itemguidphoto guid
string$typeprofile photo/cover
Returns
bool;

◆ coverParameters()

coverParameters (   $guid)

Get cover parameters

@params $guid: User guid

Returns
array;

◆ deletePhotoWallPost()

deletePhotoWallPost (   $fileguid)

Delete profile photo/cover wall post

Parameters
int$fileguidProfile/Cover file id
Returns
bool

◆ getCoverURL()

getCoverURL (   $user = '')

Get cover URL

Parameters
object$userOssnUser object
Returns
string|boolean

◆ repositionCOVER()

repositionCOVER (   $guid,
  $top,
  $left 
)

Reposition cover

@params $guid: User guid $top : Position from top $left: Position from left

Returns
bool;

◆ ResetCoverPostition()

ResetCoverPostition (   $guid)

Reset cover back to it original position

@params $guid: User guid

Returns
bool;

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