dmBridge PHP API
DMAbstractSocialEntity Class Reference

Base class from which social data classes inherit. More...

Inheritance diagram for DMAbstractSocialEntity:

Public Member Functions

Protected Attributes


Detailed Description

Base class from which social data classes inherit.

Author:
Alex Dolski <alex.dolski@unlv.edu> http://www.opensource.org/licenses/mit-license.php

Definition at line 15 of file DMAbstractSocialEntity.php.


Constructor & Destructor Documentation

DMAbstractSocialEntity::__construct ( )

If supplied and is a valid comment ID from the data store, automatically populates the entity's properties from the data store.

Otherwise instantiates an empty entity object.

Exceptions:
DMUnavailableModelException
Since:
0.1

Definition at line 36 of file DMAbstractSocialEntity.php.

Referenced by DMRating::__construct().


Member Function Documentation

DMAbstractSocialEntity::__toString ( )
Returns:
string

Reimplemented in DMRating.

Definition at line 43 of file DMAbstractSocialEntity.php.

DMAbstractSocialEntity::getObject ( )
DMAbstractSocialEntity::getTimestamp ( ) [final]
DMAbstractSocialEntity::isApproved ( ) [final]
DMAbstractSocialEntity::setApproved ( bool) [final]
Parameters:
Booleanbool

Definition at line 57 of file DMAbstractSocialEntity.php.

Referenced by DMRating::__construct().

DMAbstractSocialEntity::setID ( id) [final]
Parameters:
intid

Definition at line 71 of file DMAbstractSocialEntity.php.

Referenced by DMPDODataStore::addObjectComment(), and DMPDODataStore::addObjectTag().

DMAbstractSocialEntity::setObject ( DMObject object)

Associates a DMObject with the entity in code only.

To persist the relationship, use DMObject::addComment(), DMObject::addTag(), etc.

Parameters:
DMObjectobject

Definition at line 90 of file DMAbstractSocialEntity.php.

DMAbstractSocialEntity::setTimestamp ( DMDateTime datetime) [final]
Parameters:
dmDateTimedatetime

Definition at line 104 of file DMAbstractSocialEntity.php.

Referenced by __construct().

DMAbstractSocialEntity::setValue ( str)
Parameters:
stringstr
Exceptions:
DMUserInputException

Reimplemented in DMRating, and DMTag.

Definition at line 119 of file DMAbstractSocialEntity.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables