1 | <?php |
||
39 | class Block extends Widget |
||
40 | { |
||
41 | /** |
||
42 | * @var bool whether to render the block content in place. Defaults to false, |
||
43 | * meaning the captured block content will not be displayed. |
||
44 | */ |
||
45 | public $renderInPlace = false; |
||
46 | |||
47 | |||
48 | /** |
||
49 | * Starts recording a block. |
||
50 | */ |
||
51 | 2 | public function init() |
|
58 | |||
59 | /** |
||
60 | * Ends recording a block. |
||
61 | * This method stops output buffering and saves the rendering result as a named block in the view. |
||
62 | */ |
||
63 | 1 | public function run() |
|
71 | } |
||
72 |