| 123456789101112131415161718192021222324252627282930 |
- <?php
- namespace TestApp\Model\Entity;
- use Tools\Model\Entity\Entity;
- class BitmaskedComment extends Entity {
- /**
- * @param mixed|null $value
- * @return mixed
- */
- public static function statuses($value = null) {
- $options = [
- static::STATUS_ACTIVE => __d('tools', 'Active'),
- static::STATUS_PUBLISHED => __d('tools', 'Published'),
- static::STATUS_APPROVED => __d('tools', 'Approved'),
- static::STATUS_FLAGGED => __d('tools', 'Flagged'),
- ];
- return parent::enum($value, $options);
- }
- const STATUS_NONE = 0;
- const STATUS_ACTIVE = 1;
- const STATUS_PUBLISHED = 2;
- const STATUS_APPROVED = 4;
- const STATUS_FLAGGED = 8;
- }
|