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

Public Member Functions

 CreateAlbum ($owner_id, $name, $access=OSSN_PUBLIC, $type='user')
 
 GetAlbumGuid ()
 
 GetAlbums ($owner_id, $params=array())
 
 GetAlbum ($album_id)
 
 deleteAlbum ($guid)
 
- 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)
 

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

◆ CreateAlbum()

CreateAlbum (   $owner_id,
  $name,
  $access = OSSN_PUBLIC,
  $type = 'user' 
)

Create a photo album

Parameters
integer$owner_idUser guid who is creating album
string$nameAlbum name
constant$accessAlbum access
string$typeAlbum type (user, group, page etc)
Returns
boolean

◆ deleteAlbum()

deleteAlbum (   $guid)

Delete Album

Parameters
integer$guidAlbum Guid
Returns
boolean

◆ GetAlbum()

GetAlbum (   $album_id)

Get album by id

Parameters
integer$album_idId of album
Returns
void|object;

◆ GetAlbumGuid()

GetAlbumGuid ( )

Get newly created album guid

Returns
bool;

◆ GetAlbums()

GetAlbums (   $owner_id,
  $params = array() 
)

Get albums by owner id and owner type

Parameters
integer$owner_idUser guid who is creating album
array$paramsExtra options,
Returns
object

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