Activity Class Reference

List of all members.

Public Member Functions

 newFromId ($id)
 newFromName ($name, $projectId="")
 Activity ($data)
 getId ()
 getName ()
 getProject ()
 getOrder ()
 isDeleted ()

Public Attributes

 $id
 $name
 $project
 $order
 $deleted

Static Public Attributes

static $activityCache = array()

Member Function Documentation

Activity::Activity ( data  ) 

Constructs a new Activity from the given DB resultset

Parameters:
array $data the DB resultset
Activity::getId (  ) 

Returns the id of this Activity

Returns:
integer The id of this Activity
Activity::getName (  ) 

Returns the name of this Activity

Returns:
string The name of this Activity
Activity::getOrder (  ) 

Returns the order of this Activity

Returns:
integer The order of this Activity
Activity::getProject (  ) 

Returns the Project that this Activity belongs to

Returns:
Project The Project that this Activity belongs to
Activity::isDeleted (  ) 

Returns whether this Activity is deleted

Returns:
boolean Whether this Activity is deleted
Activity::newFromId ( id  ) 

Returns the Activity with the given id

Parameters:
integer $id The id of the Activity
Returns:
Activity The Activity with the given id
Activity::newFromName ( name,
projectId = "" 
)

Returns the Activity with the given name NOTE: The names need not be unique(although usually will be), so this may not return the desired row

Parameters:
string $id The name of the Activity
Returns:
Activity The Activity with the given name

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

Generated on 9 Jan 2025 for The Forum by  doxygen 1.6.1