Task Class Reference

Inheritance diagram for Task:
MashableActivity Activity MashableActivityInterface OwnedSecurableItem SecurableItem Item CustomFieldsModel RedBeanModel BeanModel ObservableComponent

Public Member Functions

 __toString ()
 __set ($attributeName, $value)

Static Public Member Functions

static getModuleClassName ()
static canSaveMetadata ()
static getDefaultMetadata ()
static isTypeDeletable ()
static getMashableActivityRulesType ()
static hasReadPermissionsOptimization ()
static getGamificationRulesType ()
static getStatusDropDownArray ()
static getStatusDisplayName ($status)
static hasReadPermissionsSubscriptionOptimization ()

Data Fields

const STATUS_NEW = 1
const STATUS_IN_PROGRESS = 2
const STATUS_AWAITING_ACCEPTANCE = 3
const STATUS_REJECTED = 4
const STATUS_COMPLETED = 5

Protected Member Functions

 constructDerived ($bean, $setDefaults)
 beforeSave ()
 afterSave ()
 resolveAndSetDefaultSubscribers ()
 resolveStatusAndSetCompletedFields ()

Static Protected Member Functions

static translatedAttributeLabels ($language)

Detailed Description

Definition at line 37 of file Task.php.


Member Function Documentation

__toString (  ) 
Returns:
string

Reimplemented from RedBeanModel.

Definition at line 55 of file Task.php.

static getModuleClassName (  )  [static]

Gets module class name

Returns:
string

Reimplemented from Activity.

Definition at line 75 of file Task.php.

static canSaveMetadata (  )  [static]
Returns:
bool

Reimplemented from Activity.

Definition at line 83 of file Task.php.

static getDefaultMetadata (  )  [static]
Returns:
array

Reimplemented from Activity.

Definition at line 91 of file Task.php.

constructDerived ( bean,
setDefaults 
) [protected]
Parameters:
RedBean_OODBBean $bean
bool $setDefaults
Exceptions:
NoCurrentUserSecurityException 

Reimplemented from OwnedSecurableItem.

Definition at line 151 of file Task.php.

static translatedAttributeLabels ( language  )  [static, protected]
Parameters:
$language 
Returns:
array

Reimplemented from Activity.

Definition at line 176 of file Task.php.

static isTypeDeletable (  )  [static]
Returns:
bool

Reimplemented from Activity.

Definition at line 195 of file Task.php.

static getMashableActivityRulesType (  )  [static]
Returns:
string

Reimplemented from MashableActivity.

Definition at line 203 of file Task.php.

beforeSave (  )  [protected]
Returns:
bool

Reimplemented from Item.

Definition at line 211 of file Task.php.

__set ( attributeName,
value 
)

Sets the members and relations of the model as if they were actual attributes of the model. For example, if Account extends RedBeanModel and its attributeNames() returns that one it has a member 'name' and a relation 'owner' they are simply accessed as:

   $account = new Account();
   $account->name = 'International Corp';
   $account->owner = User::getByUsername('bill');
   $account->save();
Parameters:
$attributeName A non-empty string that is the name of a member or relation of the model.
$value A value or model of the type specified as valid for the member or relation by the meta data supplied by the extending class's getMetadata() method.

Reimplemented from OwnedSecurableItem.

Definition at line 224 of file Task.php.

static hasReadPermissionsOptimization (  )  [static]
Returns:
bool

Reimplemented from SecurableItem.

Definition at line 236 of file Task.php.

static getGamificationRulesType (  )  [static]
Returns:
string

Reimplemented from Item.

Definition at line 244 of file Task.php.

static getStatusDropDownArray (  )  [static]
Returns:
array of status values and labels

Definition at line 252 of file Task.php.

static getStatusDisplayName ( status  )  [static]

Gets the display name for the status

Parameters:
int $status

Definition at line 267 of file Task.php.

static hasReadPermissionsSubscriptionOptimization (  )  [static]
Returns:
bool

Reimplemented from OwnedSecurableItem.

Definition at line 280 of file Task.php.

afterSave (  )  [protected]

Handle Permitable Attachment/Detachment after model has been saved.

Reimplemented from OwnedSecurableItem.

Definition at line 285 of file Task.php.

resolveAndSetDefaultSubscribers (  )  [protected]

Resolve and set default subscribers

Definition at line 352 of file Task.php.

resolveStatusAndSetCompletedFields (  )  [protected]

Resolve status and set completed fields

Definition at line 365 of file Task.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Tue Oct 15 07:11:18 2019