pht('Requested'), self::STATUS_REJECTED => pht('Rejected'), self::STATUS_ABANDONED => pht('Abandoned'), self::STATUS_PICKED => pht('Pulled'), self::STATUS_REVERTED => pht('Reverted'), self::STATUS_NEEDS_PICK => pht('Needs Pull'), self::STATUS_NEEDS_REVERT => pht('Needs Revert'), ); return idx($descriptions, $status, '??'); } public static function getStatusClassSuffixFor($status) { $description = self::getStatusDescriptionFor($status); $class = str_replace(' ', '-', strtolower($description)); return $class; } }