1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 21:22:58 +01:00
invoiceninja/app/Utils/Traits/UserSettings.php

17 lines
316 B
PHP
Raw Normal View History

<?php
namespace App\Utils\Traits;
trait UserSettings
{
public function getEntity(string $entity) : \stdClass
{
return $this->settings()->{$entity};
}
public function getColumnVisibility(string $entity) : \stdClass
{
return $this->settings()->{class_basename($entity)}->datatable->column_visibility;
}
}