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
コード例 #1
0
ファイル: TScaffoldView.php プロジェクト: pradosoft/prado
 /**
  * Copy basic record details to the list/edit/search controls.
  */
 public function onPreRender($param)
 {
     parent::onPreRender($param);
     $this->getListView()->copyFrom($this);
     $this->getEditView()->copyFrom($this);
     $this->getSearchControl()->copyFrom($this);
 }
コード例 #2
0
ファイル: TScaffoldListView.php プロジェクト: pradosoft/prado
 /**
  * Loads and display the data.
  */
 public function onPreRender($param)
 {
     parent::onPreRender($param);
     if (!$this->getPage()->getIsPostBack() || $this->getViewState('CurrentClass') != $this->getRecordClass()) {
         $this->initializeSort();
         $this->setViewState('CurrentClass', $this->getRecordClass());
     }
     $this->loadRecordData();
 }
コード例 #3
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());
 }