PHP Class 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.
Since: 3.1
Inheritance: extends Prado\Web\UI\TTemplateControl
Afficher le fichier Open project: pradosoft/prado Class Usage Examples

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
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 )

Method Details

clearRecordObject() protected méthode

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

copyFrom() protected méthode

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

getDefaultStyle() public méthode

public getDefaultStyle ( ) : string
Résultat string default scaffold stylesheet name

getEnableDefaultStyle() public méthode

public getEnableDefaultStyle ( ) : boolean
Résultat boolean enable default stylesheet, default is true.

getRecordClass() public méthode

Name of the Active Record class to be viewed or scaffolded.
public getRecordClass ( ) : string
Résultat string Active Record class name.

getRecordFinder() protected méthode

protected getRecordFinder ( ) : TActiveRecord
Résultat Prado\Data\ActiveRecord\TActiveRecord Active Record finder instance

getRecordObject() protected méthode

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
Résultat Prado\Data\ActiveRecord\TActiveRecord record instance

getRecordPkValues() protected méthode

protected getRecordPkValues ( $record ) : array
Résultat array record primary key values.

getRecordPropertyValues() protected méthode

protected getRecordPropertyValues ( $record ) : array
Résultat array record property values

getTableInfo() protected méthode

protected getTableInfo ( ) : TDbMetaData
Résultat TDbMetaData table/view information

onPreRender() public méthode

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

setDefaultStyle() public méthode

public setDefaultStyle ( $value )

setEnableDefaultStyle() public méthode

public setEnableDefaultStyle ( $value )

setRecordClass() public méthode

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

setRecordObject() protected méthode

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