21 lines
666 B
PHP
21 lines
666 B
PHP
<?php
|
|
namespace App\Enumerations;
|
|
|
|
use App\Models\Content;
|
|
|
|
class ContentStatuses extends BaseEnumeration
|
|
{
|
|
protected static function init()
|
|
{
|
|
$roles = [
|
|
Content::STATUS_DRAFT => 'admin/contents.status_' . Content::STATUS_DRAFT,
|
|
Content::STATUS_DELETED => 'admin/contents.status_' . Content::STATUS_DELETED,
|
|
Content::STATUS_PROTECTED => 'admin/contents.status_' . Content::STATUS_PROTECTED,
|
|
Content::STATUS_PUBLIC => 'admin/contents.status_' . Content::STATUS_PUBLIC
|
|
];
|
|
|
|
foreach ($roles as $role => $translation) {
|
|
self::push($role, $translation);
|
|
}
|
|
}
|
|
} |