コード例 #1
0
ファイル: AbstractService.php プロジェクト: jwdeitch/spiral
 /**
  * {@inheritdoc}
  */
 public function render($mode = FilesInterface::READONLY, $ensureDirectory = true)
 {
     $this->renderDependencies();
     return parent::render($mode, $ensureDirectory);
 }
コード例 #2
0
ファイル: AbstractEntity.php プロジェクト: jwdeitch/spiral
 /**
  * {@inheritdoc}
  */
 public function render($mode = FilesInterface::READONLY, $ensureDirectory = true)
 {
     if (!$this->showFillable) {
         $this->class->removeProperty('fillable');
     }
     if (!$this->showHidden) {
         $this->class->removeProperty('hidden');
     }
     if (!$this->showDefaults) {
         $this->class->removeProperty('defaults');
     }
     if (!$this->showIndexes) {
         $this->class->removeProperty('indexes');
     }
     return parent::render($mode, $ensureDirectory);
 }