invoiceninja/app/DataMapper/DefaultSettings.php

38 lines
638 B
PHP

<?php
namespace App\DataMapper;
use App\Models\Client;
class DefaultSettings
{
public static $per_page = 25;
public static function userSettings() : \stdClass
{
return (object)[
class_basename(Client::class) => self::clientSettings(),
];
}
private static function clientSettings() : \stdClass
{
return (object)[
'datatable' => (object) [
'per_page' => self::$per_page,
'column_visibility' => (object)[
'name' => true,
'contact' => true,
'email' => true,
'client_created_at' => true,
'last_login' => true,
'balance' => true,
]
]
];
}
}