RowAction.php 503 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. namespace UCore\DcatAdmin;
  3. use Dcat\Admin\Grid\RowAction as BaseRowAction;
  4. /**
  5. * 行操作,列表页面,覆盖渲染
  6. *
  7. */
  8. class RowAction extends BaseRowAction
  9. {
  10. /**
  11. * @var AdminController
  12. */
  13. public $controller;
  14. final public function render()
  15. {
  16. if (!$this->allowed()) {
  17. return '';
  18. }
  19. return $this->render2();
  20. }
  21. public function setController($c)
  22. {
  23. $this->controller = $c;
  24. return $this;
  25. }
  26. }