Squiz Matrix  4.12.2
 All Data Structures Namespaces Functions Variables Pages
Asset_Status Class Reference
Inheritance diagram for Asset_Status:
MySource_Object Asset_Status_Approved Asset_Status_Archived Asset_Status_Bundle_Approved Asset_Status_Bundle_Live Asset_Status_Bundle_Pending_Approval Asset_Status_Bundle_Under_Construction Asset_Status_Editing Asset_Status_Live Asset_Status_Live_Approval Asset_Status_Pending_Approval Asset_Status_Under_Construction

Public Member Functions

 Asset_Status ($owner)
 
 getAvailableStatii ()
 
 getStatusChangeMessage ()
 
 processStatusChange ($new_status, $update_parent=true)
 
- Public Member Functions inherited from MySource_Object
 MySource_Object ()
 
 __sleep ()
 
 __wakeup ()
 

Static Public Member Functions

static getDescription ()
 

Data Fields

 $status_tag = 0
 
 $owner = null
 
- Data Fields inherited from MySource_Object
 $_tmp
 

Detailed Description

Definition at line 28 of file asset_status.inc.

Member Function Documentation

Asset_Status (   $owner)

Constructor

Parameters
objectAsset $owner the asset that this status belongs to

Definition at line 49 of file asset_status.inc.

getAvailableStatii ( )

Returns an array of statii that the current user can set for this asset Value returned is a key => value array for a drop down

Returns
array public

Definition at line 78 of file asset_status.inc.

static getDescription ( )
static

Returns a string used to describe this status

Returns
string public

Definition at line 64 of file asset_status.inc.

getStatusChangeMessage ( )

Get a message about status change options

Returns
string public

Definition at line 91 of file asset_status.inc.

processStatusChange (   $new_status,
  $update_parent = true 
)

Processes the changes required when a new status is set Does not change the status of the owner asset or this object

Parameters
int$new_statusthe new status to set for this asset
boolean$update_parentSpecify if we want to update the parent as well
Returns
boolean public

Definition at line 108 of file asset_status.inc.


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