OPEN SOURCE SOCIAL NETWORK 6.6
|
Public Member Functions | |
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='') |
add | ( | ) |
Add new entity.
Requires object $this->type => entity type; (this usually is user, object, annotation, site) $this->subtype => entity subtype; $this->entity_permission => OSSN_ACCESS $this->active = is entity is active or not $this->value = data you want to insert $this->owner_guid = entity owner guid
AddedEntityGuid | ( | ) |
Get newly added entity guid.
canChange | ( | $user = '' | ) |
Can change Check if user can change the requested item or not
object | $user | User |
Reimplemented in OssnAnnotation.
deleteByOwnerGuid | ( | $guid, | |
$type | |||
) |
Delete all entities related to owner guid.
integer | $guid | Entity guid in database |
string | $type | Entity type |
deleteEntity | ( | $guid = '' | ) |
Delete entity.
integer | $guid | Entity guid in database |
destruct | ( | ) |
Manual self destruct
get_entities | ( | ) |
Get entities.
Requires object $this->type => entity type; $this->subtype => entity subtype; $this->owner_guid => guid of entity owner $this->order_by = to sort the data in a recordset
get_entity | ( | ) |
Get Entity.
Requires object $this->entity_guid Entity guid in database;
save | ( | ) |
Update Entity in database.
Requires $object->data
Reimplemented in OssnAnnotation, OssnObject, OssnUser, and OssnMessages.
searchEntities | ( | array | $params = array() | ) |
Search entities
array | $params | A 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 entity subtype 'type' => Valid entity type 'value' => Value which you want to search 'owner_guid' => A valid owner guid, which results integer value 'limit' => Result limit default, Default is 20 values 'order_by' => To show result in sepcific order. There is no default order. |
reutrn array|false;
updateEntity | ( | ) |
Update entity metadata only.