views.php 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. <?php
  2. /**
  3. * application file.
  4. *
  5. * Description of application file
  6. *
  7. * @author Sergey Malyshev <malyshev.php@gmail.com>
  8. * @version $Id$
  9. * @package
  10. * @since 1.1.7
  11. */
  12. $index = 1;
  13. ?>
  14. <div data-ydtb-panel-data="<?php echo $this->id ?>">
  15. <div>
  16. <div data-ydtb-accordion="<?php echo $this->id?>">
  17. <?php foreach ($data as $id=>$item) : ?>
  18. <div data-ydtb-accordion-group="collapsed">
  19. <div data-ydtb-accordion-heading="">
  20. <i data-ydtb-icon="s"></i>
  21. <span><?php echo YiiDebug::t('Context')?> <?php echo CHtml::encode(get_class($item['context']))?></span>
  22. <?php // echo $this->getFileAlias($item['sourceFile']) ?>
  23. <i data-ydtb-icon="q"></i>
  24. <i data-ydtb-icon="t"></i>
  25. <div class="clear clearfix"></div>
  26. </div>
  27. <div data-ydtb-accordion-body="">
  28. <table data-ydtb-data-table>
  29. <tbody>
  30. <tr>
  31. <th>Context class</th>
  32. <td><?php echo CHtml::encode(get_class($item['context']))?></td>
  33. </tr>
  34. <tr>
  35. <th>Inheritance</th>
  36. <td><?php echo $this->getInheritance($item['reflection'])?></td>
  37. </tr>
  38. <tr>
  39. <th>Defined in file</th>
  40. <td><?php echo $this->getFilePath($item['reflection']->getFileName()) ?></td>
  41. </tr>
  42. <tr>
  43. <th>Context properties</th>
  44. <td>
  45. <ul>
  46. <?php if ($item['contextProperties']) : foreach($item['contextProperties'] as $key=>$value) : ?>
  47. <li>
  48. <label><?php YiiDebug::dump($key, 1) ?></label>
  49. &nbsp;=>&nbsp;
  50. <span><label><?php YiiDebug::dump($value, 0) ?></label></span>
  51. </li>
  52. <?php endforeach; ?>
  53. </ul>
  54. <?php else: ?>
  55. <?php YiiDebug::dump(null) ?>
  56. <?php endif; ?>
  57. </td>
  58. </tr>
  59. <?php if(null!==$item['action']): ?>
  60. <tr>
  61. <th>Route</th>
  62. <td><?php echo $item['route'] ?></td>
  63. </tr>
  64. <tr>
  65. <th>Action</th>
  66. <td><?php echo get_class($item['action']) , '&nbsp;(' , $item['action']->getId() , ')' ?></td>
  67. </tr>
  68. <tr>
  69. <th>Action params</th>
  70. <td>
  71. <ul>
  72. <?php if ($item['actionParams']) : foreach($item['actionParams'] as $key=>$value) : ?>
  73. <li>
  74. <label><?php YiiDebug::dump($key, 1) ?></label>
  75. &nbsp;=>&nbsp;
  76. <span><label><?php YiiDebug::dump($value, 0) ?></label></span>
  77. </li>
  78. <?php endforeach; ?>
  79. </ul>
  80. <?php else: ?>
  81. <?php YiiDebug::dump(null) ?>
  82. <?php endif; ?>
  83. </td>
  84. </tr>
  85. <?php endif; ?>
  86. <tr>
  87. <th>Render method</th><td><?php echo $item['backTrace']['function'] ?></td>
  88. </tr>
  89. <tr>
  90. <th>View file</th>
  91. <td><?php echo $this->getFilePath($item['sourceFile']) ?></td>
  92. </tr>
  93. <?php if(!(1===count($item['data']) && isset($item['data']['content']))): ?>
  94. <tr>
  95. <th>View data</th>
  96. <td>
  97. <ul>
  98. <?php if ($item['data']) : foreach($item['data'] as $key=>$value) : ?>
  99. <li>
  100. <label><?php YiiDebug::dump($key, 1) ?></label>
  101. &nbsp;=>&nbsp;
  102. <span><label><?php YiiDebug::dump($value, 0) ?></label></span>
  103. </li>
  104. <?php endforeach; ?>
  105. </ul>
  106. <?php else: ?>
  107. <?php YiiDebug::dump(null) ?>
  108. <?php endif; ?>
  109. </td>
  110. </tr>
  111. <?php endif; ?>
  112. </tbody>
  113. </table>
  114. </div>
  115. </div>
  116. <?php endforeach; ?>
  117. </div>
  118. </div>
  119. </div>