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

Public Member Functions

 __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='')
 

Constructor & Destructor Documentation

◆ __construct()

__construct (   $guid = 0)

Initialize the objects.

Returns
void

Member Function Documentation

◆ addObject()

addObject ( )

requires $object->(owner_guid, type, subtype, title, description)

Returns
boolean

◆ deleteObject()

deleteObject (   $object = '')

Delete object;

Parameters
integer$objectObject guid
Returns
boolean

◆ getObjectById()

getObjectById ( array  $options = array())

Get object by object guid;

Requires : $object->object_guid

Returns
object;

◆ getObjectId()

getObjectId ( )

Get newly created object

Returns
void|integer

◆ initAttributes()

initAttributes ( )

Initialize the attributes

Returns
void

Reimplemented from OssnEntities.

Reimplemented in OssnAds, OssnGroup, and OssnWall.

◆ save()

save ( )

A object save function

Note updateObject does same job but its requires extra parements updateObject may be removed in v5

Returns
boolean

Reimplemented from OssnEntities.

◆ searchObject()

searchObject ( array  $params = array())

Search object by its title, description etc

Parameters
array$paramsA valid options in format: 'search_type' => true(default) to performs matching on a per-character basis false for performs matching on exact value. 'subtype' => Valid object subtype 'type' => Valid object type 'title' => Valid object title 'description' => Valid object description 'owner_guid' => A valid owner guid, which results integer value 'entities_pairs' => A entities pairs options, must be array 'count' => True if you wanted to count search items. 'limit' => Result limit default, Default is 10 values 'order_by'=> To show result in sepcific order. Default is Assending

reutrn array|false;

◆ updateObject()

updateObject (   $name,
  $value,
  $guid 
)

Update Object;

Parameters
array$nameNames
array$valueValues
integer$guidObject guid
Returns
boolean

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