OgpHelper
extends BaseHelper
in package
Table of Contents
Properties
- $bids : array<string|int, int>
- $cids : array<string|int, int>
- $eids : array<string|int, int>
- $uids : array<string|int, int>
- $bid : int
- $blogAxis : string
- $categoryAxis : string
- $cid : int|null
- $config : mixed
- $countQuery : SQL_Select
- $eid : int|null
- $end : string|null
- $Field : Field_Search|null
- $glue : string
- 連結文字列
- $keyword : string|null
- $order : string
- $page : int
- $sortFields : array<string|int, mixed>
- $start : string|null
- $tags : array<string|int, string>
- $uid : int|null
Methods
- __construct() : mixed
- コンストラクタ
- getDescription() : bool|string
- og:description を取得 優先度: EntryField -> EntrySummary -> CategoryField -> BlogField
- getImage() : false|array{type: "image"|"media", width: int, height: int, path: string}
- og:image を取得 優先度: EntryField -> EntryMainImage -> CategoryField -> BlogField
- getKeywords() : bool|string
- keywords を取得 優先度: EntryField -> CategoryField -> BlogField
- getTitle() : string
- og:title を取得します
- getType() : string
- タイプを取得
- setGlue() : void
- 連結文字列を設定
- setProperty() : void
- プロパティの設定
- get404Title() : bool|string
- getAdminTitle() : bool|string
- getBlogDescription() : bool|string
- getBlogImage() : false|array{type: "image"|"media", width: int, height: int, path: string}
- getBlogKeywords() : bool|string
- getBlogTitle() : bool|string
- getCategoryDescription() : bool|string
- getCategoryImage() : false|array{type: "image"|"media", width: int, height: int, path: string}
- getCategoryKeywords() : bool|string
- getCategoryTitle() : bool|string
- getDateTitle() : bool|false|string
- getEntryDescription() : bool|string
- getEntryImage() : false|array{type: "image"|"media", width: int, height: int, path: string}
- getEntryKeywords() : bool|string
- getEntryTitle() : bool|string
- getKeywordTitle() : bool|null|string
- getPageTitle() : bool|string
- getRootBlogTitle() : bool|string
- getSize() : mixed
- getTagTitle() : bool|string
Properties
$bids
public
array<string|int, int>
$bids
= []
$cids
public
array<string|int, int>
$cids
= []
$eids
public
array<string|int, int>
$eids
= []
$uids
public
array<string|int, int>
$uids
= []
$bid
protected
int
$bid
= null
$blogAxis
protected
string
$blogAxis
= 'self'
$categoryAxis
protected
string
$categoryAxis
= 'self'
$cid
protected
int|null
$cid
= null
$config
protected
mixed
$config
$countQuery
protected
SQL_Select
$countQuery
$eid
protected
int|null
$eid
= null
$end
protected
string|null
$end
= null
$Field
protected
Field_Search|null
$Field
= null
$glue
連結文字列
protected
string
$glue
= ' | '
$keyword
protected
string|null
$keyword
= null
$order
protected
string
$order
= 'desc'
$page
protected
int
$page
= 1
$sortFields
protected
array<string|int, mixed>
$sortFields
= []
$start
protected
string|null
$start
= null
$tags
protected
array<string|int, string>
$tags
= []
$uid
protected
int|null
$uid
= null
Methods
__construct()
コンストラクタ
public
__construct(array<string|int, mixed> $params) : mixed
Parameters
- $params : array<string|int, mixed>
getDescription()
og:description を取得 優先度: EntryField -> EntrySummary -> CategoryField -> BlogField
public
getDescription() : bool|string
Return values
bool|stringgetImage()
og:image を取得 優先度: EntryField -> EntryMainImage -> CategoryField -> BlogField
public
getImage() : false|array{type: "image"|"media", width: int, height: int, path: string}
Return values
false|array{type: "image"|"media", width: int, height: int, path: string}getKeywords()
keywords を取得 優先度: EntryField -> CategoryField -> BlogField
public
getKeywords() : bool|string
Return values
bool|stringgetTitle()
og:title を取得します
public
getTitle() : string
Return values
stringgetType()
タイプを取得
public
getType() : string
Return values
stringsetGlue()
連結文字列を設定
public
setGlue(string $glue) : void
Parameters
- $glue : string
setProperty()
プロパティの設定
public
setProperty(string $name, mixed $value) : void
Parameters
- $name : string
- $value : mixed
get404Title()
protected
get404Title() : bool|string
Return values
bool|stringgetAdminTitle()
protected
getAdminTitle() : bool|string
Return values
bool|stringgetBlogDescription()
protected
getBlogDescription([int $bid = BID ]) : bool|string
Parameters
- $bid : int = BID
Return values
bool|stringgetBlogImage()
protected
getBlogImage([int $bid = BID ]) : false|array{type: "image"|"media", width: int, height: int, path: string}
Parameters
- $bid : int = BID
Return values
false|array{type: "image"|"media", width: int, height: int, path: string}getBlogKeywords()
protected
getBlogKeywords([int $bid = BID ]) : bool|string
Parameters
- $bid : int = BID
Return values
bool|stringgetBlogTitle()
protected
getBlogTitle([int|null $bid = BID ]) : bool|string
Parameters
- $bid : int|null = BID
Return values
bool|stringgetCategoryDescription()
protected
getCategoryDescription() : bool|string
Return values
bool|stringgetCategoryImage()
protected
getCategoryImage() : false|array{type: "image"|"media", width: int, height: int, path: string}
Return values
false|array{type: "image"|"media", width: int, height: int, path: string}getCategoryKeywords()
protected
getCategoryKeywords() : bool|string
Return values
bool|stringgetCategoryTitle()
protected
getCategoryTitle() : bool|string
Return values
bool|stringgetDateTitle()
protected
getDateTitle() : bool|false|string
Return values
bool|false|stringgetEntryDescription()
protected
getEntryDescription([bool $hide = false ]) : bool|string
Parameters
- $hide : bool = false
Return values
bool|stringgetEntryImage()
protected
getEntryImage() : false|array{type: "image"|"media", width: int, height: int, path: string}
Return values
false|array{type: "image"|"media", width: int, height: int, path: string}getEntryKeywords()
protected
getEntryKeywords() : bool|string
Return values
bool|stringgetEntryTitle()
protected
getEntryTitle() : bool|string
Return values
bool|stringgetKeywordTitle()
protected
getKeywordTitle() : bool|null|string
Return values
bool|null|stringgetPageTitle()
protected
getPageTitle() : bool|string
Return values
bool|stringgetRootBlogTitle()
protected
getRootBlogTitle() : bool|string
Return values
bool|stringgetSize()
protected
getSize(mixed $str[, mixed $type = 'width' ]) : mixed
Parameters
- $str : mixed
- $type : mixed = 'width'
getTagTitle()
protected
getTagTitle() : bool|string