Exemplo n.º 1
0
 /**
  * getContentStatus
  *
  * @access public
  * @return an array of content_status_id, content_status_names the current
  * user can use on this content.
  *
  * NOTE: pUserMinimum and pUserMaximum are currently NOT inclusive in parent funtion, so these are one beyond the limit we desire
  */
 function getAvailableContentStatuses($pUserMinimum = -6, $pUserMaximum = 51)
 {
     global $gBitUser;
     $ret = LibertyMime::getAvailableContentStatuses($pUserMinimum, $pUserMaximum);
     // this is a little ugly as we manually trim the list to just what we need for blog posts for regular users
     if (!$gBitUser->hasPermission('p_liberty_edit_all_status')) {
         if (array_key_exists(-1, $ret)) {
             unset($ret[-1]);
         }
         if (array_key_exists(50, $ret) && $ret[50] == "Available") {
             $ret[50] = "Public";
         }
     }
     return $ret;
 }
Exemplo n.º 2
0
 function getAvailableContentStatuses($pUserMinimum = -100, $pUserMaximum = 100)
 {
     global $gBitSystem;
     if ($gBitSystem->isFeatureActive('events_moderation')) {
         return LibertyContent::getAvailableContentStatuses(-100, 0);
     }
     return parent::getAvailableContentStatuses();
 }
Exemplo n.º 3
0
 /**
  * getContentStatus
  *
  * @access public
  * @return an array of content_status_id, content_status_names the current
  * user can use on this content.
  */
 function getAvailableContentStatuses($pUserMinimum = -100, $pUserMaximum = 100)
 {
     global $gBitUser;
     $ret = NULL;
     // return NULL for all but admins
     if ($gBitUser->hasPermission('p_liberty_edit_all_status')) {
         $ret = LibertyMime::getAvailableContentStatuses();
     }
     return $ret;
 }