1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00
invoiceninja/app/DataMapper/DefaultSettings.php
2019-01-27 10:22:57 +11:00

55 lines
929 B
PHP

<?php
namespace App\DataMapper;
use App\Models\Client;
/**
* Class DefaultSettings
* @package App\DataMapper
*/
class DefaultSettings
{
/**
* @var int
*/
public static $per_page = 25;
/**
* @return \stdClass
*/
public static function userSettings() : \stdClass
{
return (object)[
class_basename(Client::class) => self::clientSettings(),
];
}
/**
* @return \stdClass
*/
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,
'custom_value1' => false,
'custom_value2' => true,
'custom_value3' => false,
'custom_value4' => false,
]
]
];
}
}