mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -06:00
20 lines
522 B
PHP
20 lines
522 B
PHP
<?php namespace Visiosoft\AdvsModule\Status;
|
|
|
|
use Visiosoft\AdvsModule\Status\Contract\StatusRepositoryInterface;
|
|
use Anomaly\Streams\Platform\Entry\EntryRepository;
|
|
|
|
class StatusRepository extends EntryRepository implements StatusRepositoryInterface
|
|
{
|
|
protected $model;
|
|
|
|
public function __construct(StatusModel $model)
|
|
{
|
|
$this->model = $model;
|
|
}
|
|
|
|
public function getUserAccessibleStatuses()
|
|
{
|
|
return $this->newQuery()->where(['is_system' => 0, 'user_access' => 1])->get();
|
|
}
|
|
}
|