ACMS_AT_SIGN_TARGET
public
mixed
ACMS_AT_SIGN_TARGET
= '/@(section|endsection|extend|extends|include|parent|verbatim|endverbatim)/'
public
mixed
ACMS_AT_SIGN_TARGET
= '/@(section|endsection|extend|extends|include|parent|verbatim|endverbatim)/'
public
mixed
ACMS_AT_SIGN_TOKEN
= 'acms-at-sign-' . \md5(\uniqid(\rand(), \true))
public
mixed
ACMS_LOGIN_SESSION_ORGINAL_UID
= 'acms-login-uid-original'
public
mixed
ACMS_LOGIN_SESSION_UID
= 'acms-login-uid'
public
mixed
ACMS_POST_VALID
= $this->Post->isValidAll() ? 'true' : 'false'
public
mixed
ACMS_SID
= \null
public
mixed
ADMIN
= ''
public
mixed
ADMIN_RESET_PASSWORD_AUTH_SEGMENT
= 'admin-reset-password-auth'
public
mixed
ADMIN_RESET_PASSWORD_SEGMENT
= 'admin-reset-password'
public
mixed
ADMIN_TFA_RECOVERY_SEGMENT
= 'admin-tfa-recovery'
public
mixed
AID
= \null
public
mixed
BID
= 1
public
mixed
CACHE_TPL_ENTRY
= '1'
public
mixed
CID
= \null
public
mixed
CMID
= \null
public
mixed
CURL_SSLVERSION_TLSv1_2
= 6
public
mixed
CURL_SSLVERSION_TLSv1_2
= 6
public
mixed
DATE
= \null
public
mixed
EID
= \null
public
mixed
EMAIL_UPDATE_SEGMENT
= 'mypage/update-email'
public
mixed
END
= ''
public
mixed
FIELD
= ''
public
mixed
IS_API_BUILD
= true
public
mixed
IS_API_BUILD
= true
public
mixed
IS_AUTH_SYSTEM_PAGE
= 0
public
mixed
IS_DEVELOPMENT
= \null
public
mixed
IS_REVISION_PREVIEW_PAGE
= $queryParameter->get('tpl') === 'ajax/revision/preview.html' ? 1 : 0
public
mixed
IS_SYSTEM_ADMIN_RESET_PASSWORD_AUTH_PAGE
= (int) $queryParameter->get('admin-reset-password-auth')
public
mixed
IS_SYSTEM_ADMIN_RESET_PASSWORD_PAGE
= (int) $queryParameter->get('admin-reset-password')
public
mixed
IS_SYSTEM_ADMIN_TFA_RECOVERY_PAGE
= (int) $queryParameter->get('admin-tfa-recovery')
public
mixed
IS_SYSTEM_LOGIN_PAGE
= (int) $queryParameter->get('login')
public
mixed
IS_SYSTEM_RESET_PASSWORD_AUTH_PAGE
= (int) $queryParameter->get('reset-password-auth')
public
mixed
IS_SYSTEM_RESET_PASSWORD_PAGE
= (int) $queryParameter->get('reset-password')
public
mixed
IS_SYSTEM_SIGNIN_PAGE
= (int) $queryParameter->get('signin')
public
mixed
IS_SYSTEM_SIGNUP_PAGE
= (int) $queryParameter->get('signup')
public
mixed
IS_SYSTEM_TFA_RECOVERY_PAGE
= (int) $queryParameter->get('tfa-recovery')
public
mixed
IS_UNREGISTERED_DOMAIN
= true
public
mixed
IS_UPDATE_EMAIL_PAGE
= (int) $queryParameter->get('update-email')
public
mixed
IS_UPDATE_PASSWORD_PAGE
= (int) $queryParameter->get('update-password')
public
mixed
IS_UPDATE_PROFILE_PAGE
= (int) $queryParameter->get('update-profile')
public
mixed
IS_UPDATE_TFA_PAGE
= (int) $queryParameter->get('update-tfa')
public
mixed
IS_WITHDRAWAL_PAGE
= (int) $queryParameter->get('withdrawal')
public
mixed
KEYWORD
= ''
public
mixed
LICENSE_OPTION_OEM
= \null
public
mixed
LOGIN_SEGMENT
= 'login'
public
mixed
MIME_TYPE
= 'text/html'
public
mixed
ONLY_BUILD_LAYOUT
= 'acms_only_build_layout'
public
mixed
ORDER
= ''
public
mixed
PAGE
= 1
public
mixed
PASSWORD_UPDATE_SEGMENT
= 'mypage/update-password'
public
mixed
PROFILE_UPDATE_SEGMENT
= 'mypage/update-profile'
public
mixed
RBID
= \null
public
mixed
REGEX_EXCEPTION_UA
= '@(publish\_ablogcms|acms-include|ablogcms|' . \ONLY_BUILD_LAYOUT . ')@'
public
mixed
REGEX_INVALID_TAG_NAME
= '/^[^#,\/]*$/u'
public
mixed
REGEX_SEPARATER
= '@(,|\s| |/)+@u'
public
mixed
REGEX_VALID_ID
= '@^[a-zA-Z0-9_-]+$@'
public
mixed
REGEX_VALID_IPV4_ADDR
= '@^(([1-9]?[0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([1-9]?[0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$@'
public
mixed
REGEX_VALID_MAIL
= '/^(?:[^(\040)<>@,;:".\\\\\\[\]\000-\037\x80-\xff]+(?![^(\040)<>@,;:".\\\\\\[\]\000-\037\x80-\xff])|"[^\\\\\\x80-\xff\n\015"]*(?:\\\\[^\x80-\xff][^\\\\\\x80-\xff\n\015"]*)*")(?:\.(?:[^(\040)<>@,;:".\\\\\\[\]\000-\037\x80-\xff]+(?![^(\040)<>@,;:".\\\\\\[\]\000-\037\x80-\xff])|"[^\\\\\\x80-\xff\n\015"]*(?:\\\\[^\x80-\xff][^\\\\\\x80-\xff\n\015"]*)*"))*@(?:[^(\040)<>@,;:".\\\\\\[\]\000-\037\x80-\xff]+(?![^(\040)<>@,;:".\\\\\\[\]\000-\037\x80-\xff])|\[(?:[^\\\\\\x80-\xff\n\015\[\]]|\\\\[^\x80-\xff])*\])(?:\.(?:[^(\040)<>@,;:".\\\\\\[\]\000-\037\x80-\xff]+(?![^(\040)<>@,;:".\\\\\\[\]\000-\037\x80-\xff])|\[(?:[^\\\\\\x80-\xff\n\015\[\]]|\\\\[^\x80-\xff])*\]))*$/'
public
mixed
REGEX_VALID_PASSWD
= '@^[!-~]+$@'
public
mixed
REGEX_VALID_URL
= '@^(https?|ftp)(:\/\/[-_.!~*\'()a-zA-Z0-9;\/?:\@&=+\$,%#]+)$@u'
public
mixed
REGEXP_SEPARATER
= \REGEX_SEPARATER
public
mixed
REGEXP_VALID_DATE
= '@^\d{4}-(1[0-2]|0[1-9])-([12][0-9]|3[01]|0[1-9])$@'
public
mixed
REGEXP_VALID_DATETIME
= '@^\d{4}-(1[0-2]|0[1-9])-([12][0-9]|3[01]|0[1-9]) (2[0-3]|[0-1]\d):([0-5]\d):([0-5]\d)$@'
public
mixed
REGEXP_VALID_TIME
= '@^(2[0-3]|[0-1]\d):([0-5]\d):([0-5]\d)$@'
public
mixed
REQUEST_TIME
= \time()
public
mixed
RESET_PASSWORD_AUTH_SEGMENT
= 'reset-password-auth'
public
mixed
RESET_PASSWORD_SEGMENT
= 'reset-password'
public
mixed
RID
= \null
public
mixed
RVID
= \null
public
mixed
SBID
= \null
public
mixed
SEARCH_ENGINE_KEYWORD
= \null
public
mixed
SESSION_NEXT_ID
= \null
public
mixed
SESSION_USE_COOKIE
= \null
public
mixed
SIGNIN_SEGMENT
= 'signin'
public
mixed
SIGNUP_SEGMENT
= 'signup'
public
mixed
START
= ''
public
mixed
START_TIME
= \microtime(\true)
public
mixed
SUID
= \null
public
mixed
SYSTEM_GENERATED_DATETIME
= \null
public
mixed
TAG
= ''
public
mixed
TAG_SEPARATER
= '@(,|/|\n)@'
public
mixed
TFA_RECOVERY_SEGMENT
= 'tfa-recovery'
public
mixed
TFA_UPDATE_SEGMENT
= 'mypage/update-tfa'
public
mixed
UID
= \null
public
mixed
UTID
= \null
public
mixed
VIEW
= \null
public
mixed
WITHDRAWAL_SEGMENT
= 'mypage/withdrawal'
タイムスタンプをRFC2068形式にフォーマットした文字列を取得
getRFC2068Time(int $timestamp) : string
リクエスト日時を取得 タイムマシンモードの場合はタイムマシンモードを考慮した日時を返す
requestTime() : int
タイムマシーンモードを利用可能な権限をもつユーザーかどうかを判定
timemachineAuth() : bool
タイムマシンモードかどうかを取得 第2引数がtrueの場合はタイムマシンモードを有効化する
timemachineMode([bool $set = false ]) : bool
リダイレクト
redirect(string $url[, bool $is301 = false ]) : never
マルチバイト対応のpreg_match
multiBytePregMatch(string $pattern, string $subject) : bool
配列の中に指定した値が含まれているかどうかを判定
array_in_array(array<string|int, mixed> $needles, array<string|int, mixed> $haystack) : bool
メール設定の取得
未使用のため非推奨
mailConfig() : mixed
文字エンコーディングを検出する
detectEncode(string $str) : string|false
指定したIPアドレスがCIDR 表記法を使用したサブネット(例: 192.168.100.0/24)に含まれるかどうかを判定する
in_ipband(string $ip, string $ipband) : bool|null
IPアドレス
CIDR 表記法を使用したサブネット
プライベートIPアドレスかどうかを判定する
is_private_ip([string $ip = '' ]) : bool
convert_bytes(mixed $val, mixed $unit[, mixed $pos = 2 ]) : mixed
return_bytes(mixed $val) : mixed
未使用のため非推奨
isBufferable(mixed $bytes) : mixed
503エラーをページに出力
die500([string $message = '' ]) : mixed
503エラーをページに出力
die503([string $message = '' ]) : mixed
403エラーをページに出力
die400([string $message = '' ]) : never
403エラーをページに出力
die403([string $message = '' ]) : never
404エラーを出力する
page404() : never
未使用のため非推奨
arrayPath(mixed $ary, mixed $path[, mixed $key = null ][, mixed $isObject = false ]) : mixed
ite
ite([array<string|int, mixed> $ary = [] ][, string|int|null $key = null ][, string $defaultValue = '' ][, bool $exist = false ][, string $opt = '' ]) : int|string
文字列を0以上の整数に変換 古い関数のため、新しいコードでは使わないことを推奨
idval(string $id) : int
セキュリティ的に安全なシリアライズ
acmsSerialize(mixed $Obj) : string
安全なクラスのみ許可したデシリアライズ
unserializeAllowedClasses(string $data) : mixed
セキュリティ的に安全なデシリアライズ
acmsUnserialize(string $signedData) : mixed
セキュリティ的に危険なデシリアライズ 互換性のためあるだけで非推奨です。新しいコードでは使わないことを推奨
acmsDangerUnserialize(string $signedData) : mixed
セキュリティ的に安全なハッシュ
acmsHash(string $txt[, bool $previous = false ]) : string
未使用のため非推奨
stripExternalLink(string $html) : string
ファイルをコピー
copyFile(string $from, string $to, bool $isPublic) : bool
ファイルを削除
deleteFile(string $path, bool $isPublic) : bool
この値は、ユーザーの入力値など信頼されない値を指定しない
未使用のため非推奨
deleteDirectory(string $path) : void
この値は、ユーザーの入力値など信頼されない値を指定しない
未使用のため非推奨
strcount(mixed $haystack, mixed $needle) : mixed
文字列をキャメルケースに変換
camelize(string $str[, string $glue = '_' ]) : string
decamelize(string $str[, string $glue = '_' ]) : string
未使用のため非推奨
virtualImageSize(mixed $xy, mixed $max) : mixed
未使用のため非推奨
maskImageSize(mixed $xy, mixed $size) : mixed
ngram(string $txt, int $n) : array<string|int, string>
N-gram検索で使用するNの値
ロールによる権限チェックを使用するかチェック
roleAvailableUser([int $suid = SUID ]) : bool
ロールによる権限チェックを使用するかチェック
_roleAvailableUser(int $suid) : bool
承認フローに所属するユーザかチェック
approvalAvailableUser([int $suid = SUID ]) : bool
ロールによるエントリー権限チェック
roleEntryAuthorization([int $bid = BID ][, array{entry_id?: int, entry_user_id?: int, entry_status?: string, entry_start_datetime?: string, entry_end_datetime?: string} $entry = [] ][, bool $status = true ]) : bool
未使用の引数
ロールを含んだエントリーの編集権限チェック
roleEntryUpdateAuthorization([int|null $bid = BID ][, array{entry_id?: int, entry_user_id?: int} $entry = [] ]) : bool
各ロールの権限があるかチェック
roleAuthorization([string $action = '' ][, int|null $bid = BID ][, int|null $eid = 0 ]) : bool
ライセンスがスタンダード以上か
editionWithStandard() : bool
ライセンスがプロフェッショナル以上か
editionWithProfessional() : bool
ライセンスがスタンダードか
editionIsStandard() : bool
ライセンスがプロフェッショナルか
editionIsProfessional() : bool
ライセンスがエンタープライズか
editionIsEnterprise() : bool
対象のブログでバージョン管理が有効か調べる
enableRevision() : bool
対象のブログで承認機能が有効か調べる
enableApproval([int $bid = BID ][, int|null $cid = CID ]) : bool
対象のブログで並列承認機能が有効か調べる
enableParallelApproval([int $bid = BID ][, int|null $cid = CID ]) : bool
アクセス中のユーザーが読者かをチェックする
isSessionSubscriber() : bool
アクセス中のユーザーが投稿者かをチェックする
isSessionContributor() : bool
アクセス中のユーザーが編集者かをチェックする
isSessionEditor() : bool
アクセス中のユーザーが管理者かをチェックする
isSessionAdministrator() : bool
アクセス中のユーザーが,指定されたブログにおいて読者以上の権限をもっているかをチェックする
sessionWithSubscription([int $bid = BID ][, bool|array{cache?: bool, considerTimemachineMode?: bool} $options = [] ]) : bool
アクセス中のユーザーが,指定されたブログにおいて投稿者以上の権限をもっているかをチェックする
sessionWithContribution([int $bid = BID ][, bool|array{cache?: bool, considerTimemachineMode?: bool} $options = [] ]) : bool
アクセス中のユーザーが,指定されたブログにおいて編集者以上の権限をもっているかをチェックする
sessionWithCompilation([int $bid = BID ][, bool|array{cache?: bool, considerTimemachineMode?: bool} $options = [] ]) : bool
アクセス中のユーザーが,指定されたブログにおいて管理者以上の権限をもっているかをチェックする
sessionWithAdministration([int $bid = BID ][, bool|array{cache?: bool, considerTimemachineMode?: bool} $options = [] ]) : bool
アクセス中のユーザーが,ルートブログにおいてエンタープライズ管理操作の権限をもっているかをチェックする
sessionWithEnterpriseAdministration() : bool
アクセス中のユーザーが,ルートブログにおいてプロフェッショナル管理操作の権限をもっているかをチェックする
sessionWithProfessionalAdministration() : bool
アクセス中のユーザーが,指定されたブログにおいて、フォームの管理権限があるかチェックする
sessionWithFormAdministration([int $bid = BID ][, bool|array{cache?: bool, considerTimemachineMode?: bool} $options = [] ]) : bool
アクセス中のユーザーが,指定されたブログにおいて、スケジュールの管理権限があるかチェックする
sessionWithScheduleAdministration([int $bid = BID ][, int|null $scid = null ]) : bool
アクセス中のユーザーの承認ポイントを返す
approvalUserPoint([int $bid = BID ][, int|null $cid = CID ]) : int
リビジョンの現在承認ポイントを返す
approvalRevisionPublicPoint([int $eid = EID ][, int $rvid = RVID ][, int $bid = BID ]) : int
リビジョンの現在承認却下ポイントを返す
approvalRevisionRejectPoint([int $eid = EID ][, int $rvid = RVID ][, int $bid = BID ]) : int
承認フローの最終承認ポイントを返す
approvalWorkflowPublicPoint([int $bid = BID ][, int|null $cid = CID ]) : int
$point
承認フローの最終承認却下ポイントを返す
approvalWorkflowRejectPoint([int $bid = BID ][, int $cid = CID ]) : int
$point
ユーザーが所属するユーザーグループを取得
getUserGroupIds(int $uid) : array<string|int, int>
アクセス中のユーザーが対象のリビジョンにおいて承認プレビューができるか
sessionWithApprovalPreview(int $bid, int $eid, int|null $cid, int $rvid, int $suid) : bool
アクセス中のユーザーが対象のリビジョンにおいて承認依頼が出来るか
sessionWithApprovalRequest([int $bid = BID ][, int|null $cid = CID ][, int|null $eid = null ][, int|null $rvid = null ]) : bool
アクセス中のユーザーが対象のリビジョンにおいて承認却下依頼が出来るか
sessionWithApprovalRejectRequest([int $bid = BID ][, int|null $cid = CID ][, int|null $eid = null ][, int|null $rvid = null ]) : bool
アクセス中のユーザーが対象のリビジョンにおいて取り下げ(リジェクト)が出来るか
sessionWithApprovalReject([int $bid = BID ][, int|null $cid = CID ]) : bool
アクセス中のユーザーが対象のリビジョンにおいて最終承認が出来るか
sessionWithApprovalPublic([int $bid = BID ][, int|null $cid = CID ]) : bool
アクセス中のユーザーが対象のブログにおいて最終承認が出来るか、またはルートの管理者か
sessionWithApprovalAdministrator([int $bid = BID ][, int|null $cid = CID ]) : bool
指定されたユーザーが対象のブログにおいてSNSログイン権限があるか
snsLoginAuth([int $uid = SUID ][, int $bid = BID ]) : bool
未使用のため非推奨
is404([bool $bool = true ]) : bool
HTTPステータスコードを取得または設定する
httpStatusCode([null|string $hsc = null ]) : string
指定した場合はHTTPステータスコードを設定する
現在のHTTPステータスコードがエラーかどうかを判定する
isErrorHttpStatus() : bool
エラーログを出力する AcmsLogger::error() のエイリアス
userErrorLog(string $mess) : void
テーマのtemplate.yamlを考慮したのコンフィグを取得する
tplConfig(string $key) : string
コンフィグのkey
現在のコンテキストにおける,指定されたキーのコンフィグを返す モジュール内で使用した場合は,モジュールIDで設定されたコンフィグを返す
config(T $key[, string|int|null $default = null ][, int $i = 0 ]) : T is string ? string : false)
現在のコンテキストにおける,指定されたキーのコンフィグを配列で返す モジュール内で使用した場合は,モジュールIDで設定されたコンフィグを返す
configArray(string $key[, bool $strict = false ]) : array<string|int, mixed>
現在のコンテキストにおける,指定されたキーのコンフィグを一時的に書き換える
setConfig(string $key[, null|mixed $val = null ]) : mixed
CSVをパースして配列に変換する
parseCsv(string $csv) : array<string|int, array<string|int, string>>
データベースのDSNを取得する
dsn([array{host?: string, user?: string, pass?: string, name?: string, charset?: string, prefix?: string, type?: string, port?: int|null, debug?: bool} $dsn = [] ]) : Dsn
ルーティングに使用するセグメントを取得する
getRoutingSegments() : array<string, string>
予約語と衝突していないかを検査する
isReserved(string $word[, bool $extension = true ]) : bool
文字列が正しいか検査する
isValidCode(string $word) : bool
JSモジュールでフロントエンドに渡す変数を設定または取得する 引数なしで呼び出すと全ての変数を連想配列で取得する
jsModule([T $key = null ][, U $value = null ]) : T is null ? array : mixed) : bool)
ファイルの拡張子からアイコンのパスを取得する
pathIcon(string $ext) : string
サイズ違いの画像パスを取得する
otherSizeImagePath(string $path, "large"|"tiny"|"square" $type) : string
画像のパスから正規サイズの画像パスを取得する
normalSizeImagePath(string $path) : string
altrim(string $str, string $trim) : string
テーマを考慮したテンプレートファイルを検索する
findTemplate(string $tpl) : string|false
テンプレートファイルのパス
表示可能なテンプレートかどうかを判定する
allowViewTemplate(string $path) : bool
テンプレートファイルのパス
未使用のため非推奨
array_last(array<string|int, mixed> $array) : mixed
未使用のため非推奨
getTplContents(mixed $path) : mixed
拡張子からMIMEタイプを取得する
getMimetype([string $ext = '' ]) : string
未使用のため非推奨
parseDatetime(mixed $datetime) : mixed
エントリータイトルにプレフィックスを追加する
addPrefixEntryTitle(string $title, "close"|"draft"|"trash"|"open" $status, string $stime, string $etime[, "none"|"pre_approval" $approval = 'none' ]) : string
'close' | 'draft' | 'trash'
開始日時
終了日時
承認ステータス
config.sytem.yamlに記録されているデフォルトのコンフィグを連想配列で返す
loadDefaultConfig() : array<string|int, mixed>
ブログID, ルールID, モジュールIDによって指定されたコンテキストのコンフィグをFieldで返す
loadConfig([null|int $bid = null ][, null|int $rid = null ][, null|int $mid = null ]) : Field
指定されたidに該当するブログのコンフィグをFieldで返す
loadBlogConfig(null|int $bid) : Field
指定されたidに該当するルールのコンフィグをFieldで返す
loadRuleConfig(int $rid[, null|int $setid = null ]) : Field
指定されたidに該当するモジュールIDのコンフィグをFieldで返す
loadModuleConfig(null|int $mid[, mixed $rid = null ]) : Field
ルールのモジュールコンフィグが存在するかチェック
isExistsRuleModuleConfig() : bool
ブログID, カテゴリーID, エントリーID,ユーザーIDの いずれか指定されたカスタムフィールドをFieldオブジェクトで返す
loadField([null|int $bid = null ][, null|int $uid = null ][, null|int $cid = null ][, null|int $mid = null ][, null|int $eid = null ][, null|string $unitId = null ][, null|int $rvid = null ][, bool $rewrite = false ]) : Field
指定されたidに該当するブログのカスタムフィールドをFieldオブジェクトで返す
loadBlogField(int $bid) : Field
指定されたidに該当するユーザーのカスタムフィールドをFieldオブジェクトで返す
loadUserField(int $uid) : Field
指定されたidに該当するカテゴリーのカスタムフィールドをFieldオブジェクトで返す
loadCategoryField(int $cid) : Field
指定されたidに該当するモジュールIDのカスタムフィールドをFieldオブジェクトで返す
loadModuleField(int $mid) : Field
指定されたidに該当するエントリーのカスタムフィールドをFieldオブジェクトで返す
loadEntryField(int $eid[, mixed $rvid = null ][, mixed $rewrite = false ]) : Field
指定されたidに該当するユニットのカスタムフィールドをFieldオブジェクトで返す
loadUnitField(string $unitId[, int|null $rvid = null ][, bool $rewrite = false ]) : Field
ToDo: deplicated mehod Ver. 3.2
eagerLoadEntry(array<string|int, int> $ids) : array<int, array<string|int, mixed>>
ToDo: deplicated mehod Ver. 3.2
eagerLoadField(array<string|int, string>|array<string|int, int> $ids, "eid"|"uid"|"bid"|"cid"|"mid"|"unit_id" $type[, int|null $rvid = null ]) : Field>)
ToDo: deplicated mehod Ver. 3.2
eagerLoadSubCategories(array<string|int, int> $eidArray) : array<string|int, array<int, array<string, mixed>>>
指定されたidに該当するGeometryをFieldオブジェクトで返す
loadGeometry(string $type, int $id[, int|null $rvid = null ][, int $bid = BID ]) : Field
エントリーIDに紐づくカラムを取得する ToDo: レガシーな方法なため非推奨。互換性のため残している。
loadColumn(int $eid[, int|null $range = null ][, int|null $rvid = null ]) : array<string|int, array<string, mixed>>
フォームユニットをデータベースから取得する
loadFormUnit(int $eid) : array<string|int, array{id: string, type: "text"|"textarea"|"radio"|"select"|"checkbox", align: string, sort: int, group: string, attr: string, size: string, label: string, caption: string, validatorSet: string, values?: string}>
フルテキスト用のユニットデータを整形する
fulltextUnitData(string $text) : string
loadSubCategories(int $eid[, int|null $rvid = null ]) : array{id: int[], label: string[]}
loadSubCategoriesAll(int $eid[, int|null $rvid = null ]) : array<string|int, array<string, mixed>>
loadRelatedEntries(int $eid[, int|null $rvid = null ][, string $type = 'default' ]) : array<string|int, int>
指定されたidに該当するブログのレコードをFieldオブジェクトで返す
loadBlog(int $bid) : Field_Validation
指定されたidに該当するブログのレコードをFieldオブジェクトで返す
loadAlias(int $aid) : Field_Validation
指定したコンフィグセットIDに該当するコンフィグセットのレコードをFieldオブジェクトで返す
loadConfigSet(int $setid) : Field_Validation
指定されたidに該当するユーザーのレコードをFieldオブジェクトで返す
loadUser(int $uid[, mixed $deprecated = null ]) : Field_Validation
この引数は廃止されました
ロールによる権限チェッックを行うユーザーか
isRoleAvailableUser([int $uid = SUID ]) : bool
指定したユーザーのロールを考慮した権限を取得
getAuthConsideringRole([int|null $uid = SUID ]) : false|string
指定されたidに該当するユーザーの画像パスを取得する
loadUserIcon(int $uid) : string|false
指定されたidに該当するユーザーの拡大画像パスを取得する
loadUserLargeIcon(int $uid) : string|false
指定されたidに該当するユーザーの画像パスを取得する
loadUserOriginalIcon(int $uid) : string|false
指定されたbidにカテゴリーが存在するか調べる
categoryExists([int $bid = BID ]) : bool
指定されたcidの階層を調べる
categoryLevel([int $cid = CID ]) : int
指定されたidに該当するカテゴリーのレコードをFieldオブジェクトで返す
loadCategory(int $cid) : Field_Validation
指定されたidに該当するルールのレコードをFieldオブジェクトで返す
loadRule(int $rid) : Field_Validation
指定されたidに該当するモジュールIDのレコードをFieldオブジェクトで返す
loadModule(int $mid) : Field_Validation
指定されたidに該当するWebhookのレコードをFieldオブジェクトで返す
loadWebhook(int $id) : Field_Validation
指定されたidに該当するロールのレコードをFieldオブジェクトで返す
loadRole(int $rid) : Field_Validation
指定されたidに該当するユーザグループのレコードをFieldオブジェクトで返す
loadUsergroup(int $ugid) : Field_Validation
指定されたブログに該当するワークフローのレコードをFieldオブジェクトで返す
loadWorkflow([int $bid = BID ][, int|null $cid = null ][, bool $status = true ]) : Field_Validation
指定されたワークフローを削除する
deleteWorkflow([int $bid = BID ][, int|null $cid = null ]) : mixed
指定されたidに該当するメディアのレコードをFieldオブジェクトで返す
loadMedia(int $mid) : Field_Validation
css, jsの読み込みをCache Busting対応
cacheBusting(string $path, string $real_path) : string
JSONの文字列を修正するための正規表現 例: "key": "value" -> "key": "value" エスケープされたダブルクォートを考慮して、非エスケープのダブルクォートを検出する ただし、JSONの形式に従っていることが前提
repairFlatJson(string $json) : string
i18n : ユーザーロケールを決定 config.server.phpでGETTEXT_TYPEが"auto"の場合有効 return : language_REGION (ja_JP, en_US)
getLangAndRegion() : string
i18n : テンプレートの国際化 <!-- T -->おはよう<!-- /T --> <!-- TRANS -->おはよう<!-- /TRANS -->
i18n([string $txt = null ]) : string|false
空文字が渡された場合はfalseを返す
xi18n : テンプレートの国際化をするための元となるテンプレート このファイルから各言語用poファイル生成する <!-- T -->おはよう<!-- /T --> <!-- TRANS -->おはよう<!-- /TRANS -->
xi18n([string|null $root = null ][, string $pot = 'lang/message.pot' ]) : bool
fileFilter(string $file) : bool
gettextFile(resource $fp[, string|null $file = null ][, array<string|int, mixed> &$exists = [] ]) : bool
ディレクトリ内のファイルリストを取得
getFileList(string $dir[, array<string|int, string> $extAry = [] ]) : array<string|int, string>
テンプレート文字列の解決
build(string $txt, Field_Validation &$Post[, bool $noBuildIF = false ]) : string
テンプレート文字列
IFブロックを解決するかどうか
解決されたテンプレート文字列
テンプレート文字列のGETモジュールを解決
mainBuild(string $txt, Field_Validation &$Post) : string
テンプレート文字列
解決されたテンプレート文字列
verbatim ブロックを解決
verbatim(string $txt[, bool $escape = true ]) : string
変数ブロックの変数をグローバル変数($template_vars)に保存する
setBlockVars(["Template"|"Rendered" $block = 'Rendered' ][, string $txt = null ]) : string
テンプレート文字列
テンプレート文字列
変数ブロックを解決
buildVarBlocks(string $txt[, bool $before = false ]) : string
テンプレート文字列
trueの場合、SetTemplate, GetTemplateブロックを解決。falseの場合、SetRenderd, GetRenderdブロックを解決
IFブロックを解決
buildIF(string $txt) : string
テンプレート文字列
逆ポーランド記法での論理式の計算
reversePolishNotationBool(string $string) : bool|string
IFブロックの式を解決
resolveFormula(array<string|int, string> $formula) : bool
GETモジュールを解決
boot(string $name, string $inner, string $opt, Field_Validation &$Post[, Field|null $_Config = null ][, array<string|int, mixed>|null $eagerLoadModule = null ]) : string
モジュール名 例) Entry_Summary, Touch_Entry etc...
解決するテンプレート文字列
オプション 例) id="module_id" ctx="bid/1/cid/2" など
GETモジュール解決後にグローバルに適用するコンフィグ
モジュールIDがアクセス可能なIDか判定
checkModuleEntry(int $eid[, int|null $bid = null ][, int|null $mbid = null ]) : bool
loadAncestorCategory("parent"|"root" $scope[, string $fd = 'id' ]) : string|int|false
loadAncestorBlog("parent"|"root" $scope[, string $fd = 'id' ]) : string|int|false
isTemplateCacheEnabled() : bool
テンプレートキャッシュキーを取得
getTemplateCacheKey(string $path, string $theme[, bool $entry = false ]) : string
インクルード文の中だけ、一部のグローバル変数を解決して返す
setGlobalVarsForInclude(string $txt) : string
配列を文字列に再帰的に結合
recursiveJoin(mixed $vals[, string $separator = '/' ]) : string
グローバル変数の連想配列
globalVarsList() : array<string, mixed>
与えられた文字列中の,グローバル変数(%{GLOBAL_VAR})を解決して返す
setGlobalVars(string $txt) : string
プレビューURLのフォーマット
previewUrlFormat(string $uri) : string
acmsパスを解析したFieldオブジェクトを返す
parseAcmsPath(string $path) : Field
クエリ文字列を解析して返す
parseQuery(string $query) : array<string, string|array<string|int, string>>
現在のURLコンテキストを継承する
inheritAcmsQuery(Field &$Q) : true
指定されたブログ、エイリアスのドメインを割り出して返す
blogDomain([int|null $bid = null ][, int|null $aid = null ]) : string
連想配列で指定されたURLコンテキストからURLを割り出して返す
acmsLink([Field|Field} $Q = [] ][, bool|AcmsLinkOptions $inheritOrOptions = true ][, bool $isDeep = false ][, bool $baseId = false ][, bool $explicitTpl = false ]) : false|string
第2引数でオプションを指定できます。
inherit - 現在のURLコンテキストを引き継ぐかどうかを指定します。(デフォルト: true) trueの場合、現在のページの状態(bid,eid等)を維持したままリンクを生成します。
isDeep - 第一引数のFieldオブジェクトのディープコピーを行うかどうかを指定します。(デフォルト: false)
baseId - ID指定によるのパス(bid/1/cid/1/)を生成するかどうかを指定します。(デフォルト: false)
explicitTpl - URLコンテキストのTPLを必ず生成するかどうかを指定します。(デフォルト: false) trueの場合、URLコンテキストのTPLを必ず生成します。 falseの場合、tplが指定されている場合でも、不要な場合は生成しません。
ignoreTplIfAjax - Ajaxリクエスト時にtplパラメータを無視するかどうかを指定します。(デフォルト: true) trueの場合、Ajaxリクエスト時にtplパラメータを無視します。
非推奨の引数
非推奨の引数
非推奨の引数
acmsLink()でpageを出すようにする
acmsLink_page([Field|Field} $Q = [] ][, AcmsLinkOptions $options = [] ]) : bool|string
オプション
連想配列で指定されたURLコンテキストからパスを割り出して返す
acmsPath([Field|array{bid?: int|null, cid?: int|null, eid?: int|null, sid?: int|null, aid?: int|null, uid?: int|null, cmid?: int|null, utid?: string|null, keyword?: string|null, tag?: string|string[]|null, field?: string|null, order?: string|null, tpl?: string|null, page?: int|null, proxy?: string|null, span?: bool, admin?: string|null, api?: string|null, login?: bool, admin-reset-password?: bool, admin-reset-password-auth?: bool, admin-tfa-recovery?: bool, signin?: bool, signup?: bool, reset-password?: bool, reset-password-auth?: bool, tfa-recovery?: bool, update-profile?: bool, update-password?: bool, update-email?: bool, update-tfa?: bool, withdrawal?: bool, limit?: int|null, domain?: string|null, fragment?: string|null, start?: string|null, end?: string|null, date?: string|int[]|string[]|null, protocol?: string|null, port?: int|null} $Q = null ][, bool $isAdmin = false ][, bool $baseId = false ][, bool $explicitTpl = false ]) : string
管理画面用のパス(bid/1/cid/1/)を生成するかどうか
ID指定によるのパス(bid/1/cid/1/)を生成するかどうか
URLコンテキストのTPLを必ず生成するかどうかを指定します
ブログが子ブログを持っているかどうか
isBlogGlobal(int $bid) : bool
指定したブログが指定した親ブログの子ブログ可どうか判定
isBlogAncestor(int $bid, int $pid[, bool $self = false ]) : bool
自分自身を含めるかどうか
開発モードの場合、アラートを表示するためのJavaScriptを返す 開発モードでない場合はfalseを返す
checkDevelopment() : string|false
デバックモードかどうか判定
isDebugMode() : bool
監査ログの出力モードが本番モードかどうか判定
isProductionModeForLogger() : bool
ベンチマークモードかどうか判定
isBenchMarkMode() : bool
ベンチマークデータをスナップショット化する
acmsBenchmarkSnapshot() : array{modules: array, slow_queries: array, global_vars: array, templates: array, memory: array{limit: string, usage: int, peak: int}, query_count: int, totals: array{boot: float, build: float, rewrite: float, module_total: float, process_total: string}}
Server-Timing ヘッダー値を構築する(サマリのみ)
acmsBenchmarkBuildServerTiming(array{modules?: array, slow_queries?: array, memory?: array{limit?: string, usage?: int, peak?: int}, query_count?: int, totals?: array{boot?: float, build?: float, rewrite?: float, module_total?: float, process_total?: string}} $snapshot) : string
Server-Timing ヘッダーを付与する
acmsBenchmarkEmitHeaders() : void
テンプレートがHTMLかどうか判定
isHtmlTemplate() : bool
クッキーを送信する
acmsSetCookie(string $name, string|null $value[, int $expires = 0 ][, string $path = '/' ]) : void
登録されていないドメインのアクセスの場合、フラグを設定
setUnregisteredDomain() : void
登録されていないドメインのアクセスか判定
isUnregisteredDomain() : bool
旧ライセンスかどうか判定
isOldLicense() : bool
トライアルモードかどうか判定
isTrial() : bool
トライアルモードを設定
setTrial([bool $reset = false ]) : void
クローラーによるアクセスか判定
isClawler() : bool
コンテンツを出力する
printContents(string $contents) : void
シャットダウン処理
shutdown() : true
特定指定子を除外した、一般名のユニット種別
detectUnitTypeSpecifier(string $type) : string
何もしないため非推奨
fixEncodingAssoc(mixed &$val) : true
HTML内のコメントを削除する
removeComments(string $html) : string
HTML内の空白を削除する
removeBlank(string $html) : string
アーカイブ画像パスのドメインを書き換える
useArchivesServer(string $html) : string
acmsUserPasswordHash ユーザーパスワードのハッシュを生成
acmsUserPasswordHash(string $password) : string
パスワードの照合
acmsUserPasswordVerify(string $password, string $hash, int $generation) : bool
ユーザーが入力したパスワード
ハッシュ化されたパスワード
ハッシュ化されたパスワードを生成 セキュリティ的に危険なため非推奨(互換性のために残してあります)
passwordHashGeneration1(string $password) : string
ハッシュ化されたパスワードを生成 セキュリティ的に危険なため非推奨(互換性のために残してあります)
passwordHashGeneration2(string $password) : string
ハッシュ化されたパスワードを生成
passwordHashGeneration3(string $password) : string|false
パスワード生成の方法を取得
getPasswordGeneration(array{user_pass: string, user_pass_generation: int} $user) : int
uniqueString 指定した文字数のランダム文字列生成
uniqueString([int $length = 32 ]) : string
uuidv4
uuidv4([string|null $data = null ]) : non-empty-string
set cookie ( localstorage delete flag )
setCookieDelFlag() : true
DB DBインスタンスの省力化
DB([callable $func = null ]) : DB
未使用のため非推奨 Dababase Facade を利用してください。
DB テーブルの存在確認
dbTableExists(string $tb) : bool
DB テーブルの作成
dbCreateTables(string $tb, array<string|int, mixed> $data[, array<string|int, mixed>|null $idx = null ]) : void
DB テーブルの削除
dbDropTables(array<string|int, mixed> $tbs) : void
AAPP 拡張アプリが有効かどうか
appStatus(string $app) : bool
未使用のため非推奨
array_clean http://d.hatena.ne.jp/H6K/20090601/p1
array_clean(array<string|int, mixed> $array) : array<string|int, mixed>
すべてのサブ配列の要素を指定した深さで再帰的に結合した新しい配列を生成する
array_flatten(array<string|int, mixed> $array[, int $depth = 1 ]) : array<string|int, mixed>
フラットにする深さ。デフォルトは1。PHP_INT_MAXで、すべてのレベルをフラットにする
is_hash http://d.hatena.ne.jp/fbis/20091112/1258002754
is_hash(array<string|int, mixed> &$array) : bool
未使用のため非推奨
is_ajax
is_ajax() : bool
byteConvert
byteConvert(int $size) : string
stripWhitespace
stripWhitespace(string $txt) : string
acmsDump
acmsDump(mixed $obj[, bool $die = false ]) : mixed
権限ごとのIPチェック
authorityRestriction([int|null $uid = SUID ][, int|null $bid = BID ]) : void|never
ログアウト
logout([int|null $uid = SUID ]) : void
isCSRF
isCSRF() : bool
roleUserLoginCheck
roleUserLoginAuth(array{user_id: int, user_blog_id: int, user_login_anywhere: "on"|"off"} $user) : bool
get cookie host.
getCookieHost() : string|false
localhostの場合はfalseを返す
generateSession
generateSession(int $uid[, mixed $persistent = 'on' ]) : string
sid
DBに保存されているセッションIDを取得 同時ログイン禁止のために使用
getSessionIdFromDB(int $uid, string $host[, bool $address = false ]) : string
ロール権限でログインできる権限をもつか判定
loginRoleCheck(int $uid) : bool
未使用のため非推奨
arrayColumn(mixed $input, mixed $key) : mixed
isStreamLike 指定された値がストリームのようなものかどうかを判定
isStreamLike(mixed $value) : bool
例外のスタックトレースを文字列で取得
getExceptionTraceAsString(Throwable $exception) : string
指定色(Hex指定 例: #FFFFFF)に載せる文字色として、コントラストが高くなるように、黒系、白系のカラーを返す
contrastColor(string $hex[, string $black = '#000000' ][, string $white = '#ffffff' ]) : string
ユーザー切り替えが可能なユーザーかどうか判定
canSwitchUser(int $uid) : bool
承認メール送信元のアドレスを取得
getApprovalFrom(int $uid) : string
APIビルドかどうか判定
isApiBuild() : bool
APIビルドか、V2モジュールである場合はtrueを返す
isApiBuildOrV2Module() : mixed
PHP8.1との互換性を持たせるためのfputcsv関数
acmsFputcsv(resource $stream, array<string|int, mixed> $fields[, string $separator = "," ][, string $enclosure = "\"" ][, string $escape = "\\" ][, string $eol = "\n" ]) : int|false
連想配列を制限をかけたJSON文字列に変換
limitedJsonEncode(array<string|int, mixed> $data[, int $length = 100 ][, mixed $strLength = 1024 ][, int $depth = 5 ]) : string|false
環境変数の取得
env(string $key[, string $default = '' ]) : string
acmsStandAloneRun(mixed $exec) : mixed
acmsStdMessage(mixed $message) : mixed