PHP 클래스 Prado\Data\ActiveRecord\Scaffold\TScaffoldBase

Provides common properties for all scaffold views (such as, TScaffoldListView, TScaffoldEditView, TScaffoldListView and TScaffoldView). During the OnPrRender stage the default css style file (filename style.css) is published and registered. To override the default style, provide your own stylesheet file explicitly.
부터: 3.1
상속: extends Prado\Web\UI\TTemplateControl
파일 보기 프로젝트 열기: pradosoft/prado 1 사용 예제들

공개 메소드들

메소드 설명
getDefaultStyle ( ) : string
getEnableDefaultStyle ( ) : boolean
getRecordClass ( ) : string Name of the Active Record class to be viewed or scaffolded.
onPreRender ( $param ) Publish the default stylesheet file.
setDefaultStyle ( $value )
setEnableDefaultStyle ( $value )
setRecordClass ( $value ) Name of the Active Record class to be viewed or scaffolded.

보호된 메소드들

메소드 설명
clearRecordObject ( ) Unset the current record instance and table information.
copyFrom ( TScaffoldBase $obj ) Copy the view details from another scaffold view instance.
getRecordFinder ( ) : TActiveRecord
getRecordObject ( $pk = null ) : TActiveRecord Gets the current Active Record instance. Creates new instance if the primary key value is null otherwise the record is fetched from the db.
getRecordPkValues ( $record ) : array
getRecordPropertyValues ( $record ) : array
getTableInfo ( ) : TDbMetaData
setRecordObject ( TActiveRecord $value )

메소드 상세

clearRecordObject() 보호된 메소드

Unset the current record instance and table information.
protected clearRecordObject ( )

copyFrom() 보호된 메소드

Copy the view details from another scaffold view instance.
protected copyFrom ( TScaffoldBase $obj )
$obj TScaffoldBase

getDefaultStyle() 공개 메소드

public getDefaultStyle ( ) : string
리턴 string default scaffold stylesheet name

getEnableDefaultStyle() 공개 메소드

public getEnableDefaultStyle ( ) : boolean
리턴 boolean enable default stylesheet, default is true.

getRecordClass() 공개 메소드

Name of the Active Record class to be viewed or scaffolded.
public getRecordClass ( ) : string
리턴 string Active Record class name.

getRecordFinder() 보호된 메소드

protected getRecordFinder ( ) : TActiveRecord
리턴 Prado\Data\ActiveRecord\TActiveRecord Active Record finder instance

getRecordObject() 보호된 메소드

Gets the current Active Record instance. Creates new instance if the primary key value is null otherwise the record is fetched from the db.
protected getRecordObject ( $pk = null ) : TActiveRecord
리턴 Prado\Data\ActiveRecord\TActiveRecord record instance

getRecordPkValues() 보호된 메소드

protected getRecordPkValues ( $record ) : array
리턴 array record primary key values.

getRecordPropertyValues() 보호된 메소드

protected getRecordPropertyValues ( $record ) : array
리턴 array record property values

getTableInfo() 보호된 메소드

protected getTableInfo ( ) : TDbMetaData
리턴 TDbMetaData table/view information

onPreRender() 공개 메소드

Publish the default stylesheet file.
public onPreRender ( $param )

setDefaultStyle() 공개 메소드

public setDefaultStyle ( $value )

setEnableDefaultStyle() 공개 메소드

public setEnableDefaultStyle ( $value )

setRecordClass() 공개 메소드

Name of the Active Record class to be viewed or scaffolded.
public setRecordClass ( $value )

setRecordObject() 보호된 메소드

protected setRecordObject ( TActiveRecord $value )
$value Prado\Data\ActiveRecord\TActiveRecord