Squiz Matrix  4.12.2
 All Data Structures Namespaces Functions Variables Pages
asset_status_editing_approval.inc
1 <?php
17 require_once SQ_INCLUDE_PATH.'/asset_status/asset_status_pending_approval.inc';
18 
39 {
40 
41 
48  {
49  $this->Asset_Status_Pending_Approval($owner);
50  $this->status_tag = SQ_STATUS_EDITING_APPROVAL;
51 
52  }//end constructor
53 
54 
62  public static function getDescription()
63  {
64  return translate('status_editing_approval');
65 
66  }//end getDescription()
67 
68 
76  function getAvailableStatii()
77  {
78  $return_statii = Array();
79  $statii = parent::getAvailableStatii();
80 
81  // change some of the status codes to relect that we are safe editing
82  foreach ($statii as $code => $name) {
83  switch ($code) {
84  case SQ_STATUS_APPROVED :
85  $return_statii[SQ_STATUS_EDITING_APPROVED] = $name;
86  break;
87 
88  case SQ_STATUS_PENDING_APPROVAL :
89  $return_statii[SQ_STATUS_EDITING_APPROVAL] = $name;
90  break;
91 
92  case SQ_STATUS_UNDER_CONSTRUCTION :
93  $return_statii[SQ_STATUS_EDITING] = $name;
94  break;
95 
96  default :
97  $return_statii[$code] = $name;
98  }
99  }
100 
101  return $return_statii;
102 
103  }//end getAvailableStatii()
104 
105 
106 }//end class
107 
108 ?>