HCE Project DC service web UI  0.2
Hierarchical Cluster Engine DC service web UI
 All Classes Namespaces Files Functions Variables Pages
Yii2DebugViewRenderer.php
Go to the documentation of this file.
1 <?php
2 
10 class Yii2DebugViewRenderer extends CViewRenderer
11 {
15  public $instance;
19  private $_stack = array();
20 
21  public function getStack()
22  {
23  return $this->_stack;
24  }
25 
33  public function renderFile($context, $sourceFile, $data, $return)
34  {
35  $this->_stack[] = array(
36  'view' => $sourceFile,
37  'data' => $data,
38  );
39  if ($this->instance) {
40  return $this->instance->renderFile($context, $sourceFile, $data, $return);
41  }
42  return $context->renderInternal($sourceFile, $data, $return);
43  }
44 
49  public function generateViewFile($sourceFile, $viewFile)
50  {
51  if ($this->instance) {
52  return $this->instance->generateViewFile($sourceFile, $viewFile);
53  }
54  return null;
55  }
56 }