PHP Class MailContent

Author: Carlos Palma ([email protected])
Inheritance: extends BaseMailContent
显示文件 Open project: baserproject/basercms Class Usage Examples

Public Properties

Property Type Description
$actsAs array behaviors
$hasMany array hasMany
$name string クラス名
$validate array validate

Public Methods

Method Description
afterSave ( $created, $options = [] ) : boolean afterSave
alphaNumeric ( string $check ) : boolean 英数チェック
beforeDelete ( $cascade = true ) : boolean beforeDelete
checkSslUrl ( string $check ) : boolean SSL用のURLが設定されているかチェックする
copy ( integer $id, integer $newParentId, string $newTitle, integer $newAuthorId, integer $newSiteId = null ) : mixed メールコンテンツデータをコピーする
createSearchIndex ( array $data ) : array 検索用データを生成する
findAccepting ( string $type = 'first', array $query = [] ) : array | null 公開されたコンテンツを取得する
getConditionAllowAccepting ( ) : array 公開済の conditions を取得
getDefaultValue ( ) : string フォームの初期値を取得する
isAccepting ( string $publishBegin, string $publishEnd ) : boolean フォームが公開中かどうかチェックする

Method Details

afterSave() public method

afterSave
public afterSave ( $created, $options = [] ) : boolean
return boolean

alphaNumeric() public method

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

beforeDelete() public method

beforeDelete
public beforeDelete ( $cascade = true ) : boolean
return boolean

checkSslUrl() public method

SSL用のURLが設定されているかチェックする
public checkSslUrl ( string $check ) : boolean
$check string チェック対象文字列
return boolean

copy() public method

メールコンテンツデータをコピーする
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
return mixed mailContent|false

createSearchIndex() public method

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

findAccepting() public method

公開されたコンテンツを取得する
public findAccepting ( string $type = 'first', array $query = [] ) : array | null
$type string
$query array
return array | null

getConditionAllowAccepting() public method

公開済の conditions を取得
public getConditionAllowAccepting ( ) : array
return array 公開条件(conditions 形式)

getDefaultValue() public method

フォームの初期値を取得する
public getDefaultValue ( ) : string
return string

isAccepting() public method

フォームが公開中かどうかチェックする
public isAccepting ( string $publishBegin, string $publishEnd ) : boolean
$publishBegin string 公開開始日時
$publishEnd string 公開終了日時
return boolean

Property Details

$actsAs public_oe property

behaviors
public array $actsAs
return array

$hasMany public_oe property

hasMany
public array $hasMany
return array

$name public_oe property

クラス名
public string $name
return string

$validate public_oe property

validate
public array $validate
return array