PHP Class Tool

Show file Open project: baserproject/basercms Class Usage Examples

Public Properties

Property Type Description
$name string クラス名
$useTable string テーブル

Public Methods

Method Description
getControlSource ( $field ) : array コントロールソースを取得する
getListModels ( $type = 'core' ) : array データソースを指定してモデルリストを取得する
loadSchemaFile ( array $data, string $tmpPath ) : boolean スキーマファイルを読み込む
writeSchema ( array $data, string $path ) : boolean スキーマを書き出す

Protected Methods

Method Description
_writeSchema ( string $field, array $values, string $path ) : boolean スキーマを書き出す

Method Details

_writeSchema() protected method

スキーマを書き出す
protected _writeSchema ( string $field, array $values, string $path ) : boolean
$field string
$values array
$path string スキーマファイルの生成場所
return boolean

getControlSource() public method

コントロールソースを取得する
public getControlSource ( $field ) : array
return array コントロールソース

getListModels() public method

データソースを指定してモデルリストを取得する
public getListModels ( $type = 'core' ) : array
return array

loadSchemaFile() public method

スキーマファイルを読み込む
public loadSchemaFile ( array $data, string $tmpPath ) : boolean
$data array
$tmpPath string
return boolean

writeSchema() public method

スキーマを書き出す
public writeSchema ( array $data, string $path ) : boolean
$data array
$path string スキーマファイルの生成場所
return boolean

Property Details

$name public property

クラス名
public string $name
return string

$useTable public property

テーブル
public string $useTable
return string