Standards  1.0
iForumSystem_Post Interface Reference

Public Member Functions

 setForum ($forumId)
 
 getForum ()
 
 isHost ()
 
 setBody ($body)
 
 getBody ()
 
 setTitle ($title)
 
 getTitle ()
 
 getUser ()
 
 setLocked ($locked=true)
 
 isLocked ()
 
 when ()
 
 lastEdit ()
 

Static Public Member Functions

static getRawView ($injections, $level=1)
 

Data Fields

const iType = "Post"
 
const iShort = "p"
 
const iParent = "iForumSystem"
 

Member Function Documentation

getForum ( )

Returns an entity of the forum this post/thread is in.

static getRawView (   $injections,
  $level = 1 
)
static
Returns
View object with the $injections injected.

Levels:

  • 1 normal:
    • Rows:
      • "title": The post title if any.
      • "body": The post body.
      • "created": The post create date.
      • "lastEdit": When the post was last edited.
      • "locked": If the post is locked.
      • "user": The id of the user who created this post.
    • Injections:
      • "action": An area for actions(buttons) to go.

Example:

static protected function getRawView($inj, $level = 1) {
$view = new MyView($inj, $level); //This will create our new view and override the injections with $inj.
return $view;
}
getUser ( )

Returns a UserSystem::User entity instance of the user who created this post/thread

isHost ( )

If this post is the thread starter.

lastEdit ( )

Returns a string containing the date this was last edited in mysql timestamp format.

when ( )

Returns a string containing the date this was created in mysql timestamp format.


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