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

Public Member Functions

 addNewAd ($params)
 
 initAttributes ()
 
 getAds (array $params=array(), $random=true)
 
 getAd ($guid)
 
 deleteAd ($ad)
 
 EditAd ($params)
 
 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)
 

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

◆ addNewAd()

addNewAd (   $params)

Add a new ad in system.

Returns
bool;

◆ deleteAd()

deleteAd (   $ad)

Delete ad

Parameters
(int)$ad ad guid
Returns
bool;

◆ EditAd()

EditAd (   $params)

Edit

Parameters
(array)$params Contain title , description and guid of ad
Returns
bool;

◆ getAd()

getAd (   $guid)

Get ad entity

Parameters
(int)$guid ad guid
Returns
object;

◆ getAds()

getAds ( array  $params = array(),
  $random = true 
)

Get site ads.

Parameters
array$paramsoption values
boolean$randomdo you wanted to see ads in ramdom order?
Returns
array|boolean|integer

◆ getPhotoFile()

getPhotoFile ( )

Get ads photo file

Returns
string|object

◆ getPhotoURL()

getPhotoURL ( )

Get ads photo URL

Returns
string|bool

◆ initAttributes()

initAttributes ( )

Initialize the objects.

Returns
void;

Reimplemented from OssnObject.


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