PHP Class BlogContent

Inheritance: extends BlogAppModel
Afficher le fichier Open project: baserproject/basercms Class Usage Examples

Méthodes publiques

Свойство Type Description
$actsAs array behaviors
$hasMany array hasMany
$name string クラス名
$validate array validate

Méthodes publiques

Méthode Description
afterSave ( $created, $options = [] ) : boolean afterSave
alphaNumeric ( string $check ) : boolean 英数チェック
beforeDelete ( $cascade = true ) : boolean beforeDelete
checkEyeCatchSize ( ) : boolean アイキャッチ画像サイズバリデーション
constructEyeCatchSize ( array $data ) : array アイキャッチサイズフィールドの値をフォーム用に変換する
copy ( integer $id, integer $newParentId, string $newTitle, integer $newAuthorId, integer $newSiteId = null ) : mixed ブログコンテンツをコピーする
createSearchIndex ( array $data ) : array 検索用データを生成する
deconstructEyeCatchSize ( array $data ) : array アイキャッチサイズフィールドの値をDB用に変換する
getControlSource ( $field = null, $options = [] ) : array コントロールソースを取得する
getDefaultValue ( ) : void フォームの初期値を取得する

Method Details

afterSave() public méthode

afterSave
public afterSave ( $created, $options = [] ) : boolean
Résultat boolean

alphaNumeric() public méthode

英数チェック
public alphaNumeric ( string $check ) : boolean
$check string チェック対象文字列
Résultat boolean

beforeDelete() public méthode

beforeDelete
public beforeDelete ( $cascade = true ) : boolean
Résultat boolean

checkEyeCatchSize() public méthode

アイキャッチ画像サイズバリデーション
public checkEyeCatchSize ( ) : boolean
Résultat boolean

constructEyeCatchSize() public méthode

アイキャッチサイズフィールドの値をフォーム用に変換する
public constructEyeCatchSize ( array $data ) : array
$data array
Résultat array

copy() public méthode

ブログコンテンツをコピーする
public copy ( integer $id, integer $newParentId, string $newTitle, integer $newAuthorId, integer $newSiteId = null ) : mixed
$id integer ページID
$newParentId integer 新しい親コンテンツID
$newTitle string 新しいタイトル
$newAuthorId integer 新しいユーザーID
$newSiteId integer 新しいサイトID
Résultat mixed blogContent|false

createSearchIndex() public méthode

検索用データを生成する
public createSearchIndex ( array $data ) : array
$data array
Résultat array

deconstructEyeCatchSize() public méthode

アイキャッチサイズフィールドの値をDB用に変換する
public deconstructEyeCatchSize ( array $data ) : array
$data array
Résultat array

getControlSource() public méthode

コントロールソースを取得する
public getControlSource ( $field = null, $options = [] ) : array
Résultat array コントロールソース

getDefaultValue() public méthode

フォームの初期値を取得する
public getDefaultValue ( ) : void
Résultat void

Property Details

$actsAs public_oe property

behaviors
public array $actsAs
Résultat array

$hasMany public_oe property

hasMany
public array $hasMany
Résultat array

$name public_oe property

クラス名
public string $name
Résultat string

$validate public_oe property

validate
public array $validate
Résultat array