FEATURE #1507: modularize content management
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
namespace App\Enumerations;
|
||||
|
||||
use App\Models\Content;
|
||||
|
||||
class ActiveContentStatuses extends BaseEnumeration
|
||||
{
|
||||
protected static function init()
|
||||
{
|
||||
foreach (ContentStatuses::getWithTranslations() as $key => $value) {
|
||||
if ($key == Content::STATUS_DELETED) {
|
||||
continue;
|
||||
}
|
||||
|
||||
self::push($key, $value);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user