BitmaskedComment.php 586 B

1234567891011121314151617181920212223242526
  1. <?php
  2. namespace TestApp\Model\Entity;
  3. use Tools\Model\Entity\Entity;
  4. class BitmaskedComment extends Entity {
  5. public static function statuses($value = null) {
  6. $options = [
  7. static::STATUS_ACTIVE => __d('tools', 'Active'),
  8. static::STATUS_PUBLISHED => __d('tools', 'Published'),
  9. static::STATUS_APPROVED => __d('tools', 'Approved'),
  10. static::STATUS_FLAGGED => __d('tools', 'Flagged'),
  11. ];
  12. return parent::enum($value, $options);
  13. }
  14. const STATUS_NONE = 0;
  15. const STATUS_ACTIVE = 1;
  16. const STATUS_PUBLISHED = 2;
  17. const STATUS_APPROVED = 4;
  18. const STATUS_FLAGGED = 8;
  19. }