baserCMS クラスリファレンス

SiteConfigsService
in package
implements SiteConfigsServiceInterface Uses MailerAwareTrait, BcContainerTrait

Class SiteConfigsMockService

Table of Contents

Interfaces

SiteConfigsServiceInterface
Interface SiteConfigsServiceInterface

Properties

$SiteConfigs  : SiteConfigsTable
SiteConfigs Table
$entity  : SiteConfig
キャッシュ用 Entity

Methods

__construct()  : mixed
SiteConfigsService constructor.
clearCache()  : mixed
キャッシュ用 Entity を削除
get()  : array<string|int, mixed>
データを取得する
getModeList()  : array<string|int, mixed>
アプリケーションモードリストを取得
getService()  : array<string|int, mixed>|mixed|object
Get Service
getValue()  : string|null
フィールドの値を取得する
getVersion()  : string
baserCMSのDBのバージョンを取得する
hasService()  : bool
Has Service
isWritableEnv()  : bool
putEnv()  : bool
resetValue()  : SiteConfig
サイト全体の設定値をリセットする
sendTestMail()  : void
テストメールを送信する
setValue()  : SiteConfig
サイト基本設定の設定値を更新する
update()  : SiteConfig|false
データを更新する

Properties

Methods

__construct()

SiteConfigsService constructor.

public __construct() : mixed
Tags
checked
unitTest
noTodo

clearCache()

キャッシュ用 Entity を削除

public clearCache() : mixed
Tags
checked
noTodo
unitTest

get()

データを取得する

public get() : array<string|int, mixed>
Tags
checked
noTodo
unitTest
Return values
array<string|int, mixed>

getModeList()

アプリケーションモードリストを取得

public getModeList() : array<string|int, mixed>
Tags
checked
noTodo
unitTest
Return values
array<string|int, mixed>

getService()

Get Service

public getService( $service) : array<string|int, mixed>|mixed|object
Parameters
$service :
Tags
checked
noTodo
unitTest
Return values
array<string|int, mixed>|mixed|object

getValue()

フィールドの値を取得する

public getValue(string $fieldName) : string|null
Parameters
$fieldName : string
Tags
checked
noTodo
unitTest
Return values
string|null

getVersion()

baserCMSのDBのバージョンを取得する

public getVersion() : string
Tags
checked
noTodo
unitTest
Return values
string

hasService()

Has Service

public hasService( $service) : bool
Parameters
$service :
Tags
checked
noTodo
unitTest
Return values
bool

isWritableEnv()

public isWritableEnv() : bool

.env が書き込み可能かどうか

Tags
checked
noTodo
unitTest
Return values
bool

putEnv()

public putEnv( $key,  $value) : bool

.env に設定値を書き込む

Parameters
$key :
$value :
Tags
checked
noTodo
unitTest
Return values
bool

resetValue()

サイト全体の設定値をリセットする

public resetValue(string $name) : SiteConfig
Parameters
$name : string
Tags
checked
noTodo
unitTest
Return values
SiteConfig

sendTestMail()

テストメールを送信する

public sendTestMail(array<string|int, mixed> $postData, string $email, string $subject, string $body) : void
Parameters
$postData : array<string|int, mixed>
$email : string
$subject : string
$body : string
Tags
throws
Throwable
checked
noTodo

setValue()

サイト基本設定の設定値を更新する

public setValue(string $name, string $value) : SiteConfig
Parameters
$name : string
$value : string
Tags
checked
noTodo
unitTest
Return values
SiteConfig

update()

データを更新する

public update(array<string|int, mixed> $postData) : SiteConfig|false
Parameters
$postData : array<string|int, mixed>
Tags
checked
noTodo
unitTest
Return values
SiteConfig|false

        
On this page

Search results