Prado\Data\ActiveRecord\Scaffold\TScaffoldBase::getRecordClass PHP Метод

getRecordClass() публичный Метод

Name of the Active Record class to be viewed or scaffolded.
public getRecordClass ( ) : string
Результат string Active Record class name.
    public function getRecordClass()
    {
        return $this->getViewState('RecordClass');
    }

Usage Example

Пример #1
0
 /**
  * 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());
 }