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

Public Member Functions

 AddPhoto ($album, $photo='ossnphoto', $access=OSSN_PUBLIC)
 
 GetPhotos ($album)
 
 GetPhoto ($photo)
 
 deleteProfilePhoto ()
 
 deleteProfileCoverPhoto ()
 
 deleteAlbumPhoto ()
 
 addWall ($itemguid='', array $images_guid=array())
 
 searchPhotos ($params)
 
 getURL ($size='')
 
 GetUserProfilePhotos ($guid, array $params=array())
 
 GetUserCoverPhotos ($guid, array $params=array())
 
- Public Member Functions inherited from OssnFile
 MaxSize ()
 
 getUploadMaxSize ()
 
 setFile ($name)
 
 setPath ($path)
 
 getFileExtension ($file)
 
 allowedFileExtensions ()
 
 getFileUploadError ($code)
 
 showFileUploadError ()
 
 setStore (string $type='local')
 
 getStore ()
 
 setImageDim (int $width, int $height, bool $square=false)
 
 getImageDim ()
 
 writeManifest ($directory, $filename, array $addedToCDN)
 
 addFile ()
 
 getFiles ()
 
 searchFiles (array $params=array())
 
 setExtension (array $extension=array())
 
 setMimeTypes (array $mimtypes=array())
 
 typeAllowed ()
 
 getFile ()
 
 isCDN ()
 
 getManifest ()
 
 getPath ()
 
 isFile ()
 
 deleteFile ()
 
 resetRotation ($filename)
 
 output (string $Mime='')
 
- 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 OssnFile
static DeleteDir ($path)
 
static moveFiles ($from, $to)
 
static mimeTypes ()
 
- 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

◆ AddPhoto()

AddPhoto (   $album,
  $photo = 'ossnphoto',
  $access = OSSN_PUBLIC 
)

Add photo to album

@params = $album Album guid $photo Photo type $access Private or Public ( its actually depend on album privacy)

Returns
bool;

◆ addWall()

addWall (   $itemguid = '',
array  $images_guid = array() 
)

Add images to wall

Parameters
integer$itemguidA album guid
Returns
boolean

◆ deleteAlbumPhoto()

deleteAlbumPhoto ( )

Delete profile photo

@params = $this->photoid Id of photo

Returns
bool;

◆ deleteProfileCoverPhoto()

deleteProfileCoverPhoto ( )

Delete profile cover photo

Returns
bool;

◆ deleteProfilePhoto()

deleteProfilePhoto ( )

Delete profile photo

Returns
bool;

◆ GetPhoto()

GetPhoto (   $photo)

Get photo of album

@params = $photo Photo id

Returns
object;

◆ GetPhotos()

GetPhotos (   $album)

Get photos of album

@params = $album Album guid

Returns
object;

◆ getURL()

getURL (   $size = '')

get photo view URL

Parameters
string$sizealbum or default
Returns
boolean

◆ GetUserCoverPhotos()

GetUserCoverPhotos (   $guid,
array  $params = array() 
)

Get user cover photos album

Parameters
integer$userUser guid
array$paramsOption values
Returns
object

◆ GetUserProfilePhotos()

GetUserProfilePhotos (   $guid,
array  $params = array() 
)

Get user profile photos album

Parameters
integer$guidUser guid
array$paramsOption values
Returns
object

◆ searchPhotos()

searchPhotos (   $params)

Search photos

Parameters
array$paramOption values
Returns
boolean|array

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