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

Public Member Functions

 Post ($post, $friends='', $location='', $access='')
 
 initAttributes ()
 
 GetPostByOwner ($owner, $type='user', $count=false)
 
 GetUserPosts ($user, $params=array())
 
 GetPost ($guid)
 
 deletePost ($post)
 
 deleteAllPosts ()
 
 GetPosts (array $params=array())
 
 getFriendsPosts ($params=array())
 
 getPublicPosts ($params=array())
 
 getAllPosts ($params=array())
 
 getPosterPosts ($guid='')
 
 getPhotoURL ()
 
 getPhotoFile ()
 
- Public Member Functions inherited from OssnObject
 __construct ($guid=0)
 
 initAttributes ()
 
 addObject ()
 
 getObjectById (array $options=array())
 
 getObjectId ()
 
 updateObject ($name, $value, $guid)
 
 deleteObject ($object='')
 
 searchObject (array $params=array())
 
 save ()
 
- 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='')
 
 destruct ()
 
- 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)
 

Static Public Member Functions

static getUserGroupPostsGuids ($userguid)
 
- 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

◆ deleteAllPosts()

deleteAllPosts ( )

Delete All Posts

Returns
void;

◆ deletePost()

deletePost (   $post)

Delete post

@params $post: Post guid

Returns
bool;

◆ getAllPosts()

getAllPosts (   $params = array())

Get all user wall posts for admins

Parameters

return array;

◆ getFriendsPosts()

getFriendsPosts (   $params = array())

Get user wall postings for wall mode set to Friends-Only

Parameters

return array;

◆ getPhotoFile()

getPhotoFile ( )

Get wall photo file

Returns
string|object

◆ getPhotoURL()

getPhotoURL ( )

Get wall photo URL

Returns
string|bool

◆ GetPost()

GetPost (   $guid)

Get post by guid

@params $guid: Post guid

Returns
object;

◆ GetPostByOwner()

GetPostByOwner (   $owner,
  $type = 'user',
  $count = false 
)

Get posts by owner

@params $owner: Owner guid $type Owner type

Returns
object;

◆ getPosterPosts()

getPosterPosts (   $guid = '')

Get Posts of user

Parameters
integer$guidA user id
Returns
array;

◆ GetPosts()

GetPosts ( array  $params = array())

Get all site wall posts

Returns
object;

◆ getPublicPosts()

getPublicPosts (   $params = array())

Get user wall postings for wall mode set to All-Site-Posts

Parameters

return array;

◆ getUserGroupPostsGuids()

static getUserGroupPostsGuids (   $userguid)
static

Get user group posts guids

Parameters
integer$userguidGuid of user
Returns
array;

◆ GetUserPosts()

GetUserPosts (   $user,
  $params = array() 
)

Get user posts

@params $user: User guid

Returns
object;

◆ initAttributes()

initAttributes ( )

Initialize the objects.

Returns
void;

Reimplemented from OssnObject.

◆ Post()

Post (   $post,
  $friends = '',
  $location = '',
  $access = '' 
)

Post on wall

@params $post: Post text $friends: Friend guids $location: Post location $access: (OSSN_PUBLIC, OSSN_PRIVATE, OSSN_FRIENDS)

Parameters
string$post
Returns
bool;

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