a-blog cms PHP API Reference

Validator
in package

Table of Contents

Methods

webhookScheme()  : bool
URLのスキーマが http or https か確認する
webhookWhitelist()  : bool
URLのホストがホワイトリストに含まれるか確認

Methods

webhookScheme()

URLのスキーマが http or https か確認する

public webhookScheme(string|null $val, string|null $arg) : bool
Parameters
$val : string|null
  • その変数の値
$arg : string|null
Return values
bool
  • 入力が正しい場合は "ture" そうでない場合は "false" を返す

webhookWhitelist()

URLのホストがホワイトリストに含まれるか確認

public webhookWhitelist(string|null $val, string|null $arg) : bool
Parameters
$val : string|null
  • その変数の値
$arg : string|null
Return values
bool
  • 入力が正しい場合は "ture" そうでない場合は "false" を返す

        
On this page

Search results