Squiz Matrix  4.12.2
 All Data Structures Namespaces Functions Variables Pages
asset_status_bundle_live.inc
1 <?php
17 require_once SQ_INCLUDE_PATH.'/asset_status/asset_status.inc';
18 
36 {
37 
38 
44  function Asset_Status_Bundle_Live($owner)
45  {
46  assert_is_a($owner, 'Workflow_Bundle');
47  $this->Asset_Status($owner);
48  $this->status_tag = SQ_STATUS_LIVE;
49 
50  }//end constructor
51 
52 
60  public static function getDescription()
61  {
62  return translate('status_live');
63 
64  }//end getDescription()
65 
66 
74  function getAvailableStatii()
75  {
76  $available_statuses = Array();
77 
78  if ($this->owner->writeAccess() === TRUE) {
79  $available_statuses[SQ_STATUS_UNDER_CONSTRUCTION] = translate('core_workflow_bundle_start_editing');
80  }
81 
82  return $available_statuses;
83 
84  }//end getAvailableStatii()
85 
86 
87 }//end class
88 
89 ?>