Prado\Data\ActiveRecord\Scaffold\TScaffoldBase::getRecordClass PHP Method

getRecordClass() public method

Name of the Active Record class to be viewed or scaffolded.
public getRecordClass ( ) : string
return string Active Record class name.
    public function getRecordClass()
    {
        return $this->getViewState('RecordClass');
    }

Usage Example

コード例 #1
0
ファイル: TScaffoldBase.php プロジェクト: pradosoft/prado
 /**
  * Copy the view details from another scaffold view instance.
  * @param TScaffoldBase scaffold view.
  */
 protected function copyFrom(TScaffoldBase $obj)
 {
     $this->_record = $obj->_record;
     $this->setRecordClass($obj->getRecordClass());
     $this->setEnableDefaultStyle($obj->getEnableDefaultStyle());
 }