| 1 | <?php |
||
| 7 | class RecentTasks extends AbstractWidget |
||
| 8 | { |
||
| 9 | public function __construct() |
||
| 13 | |||
| 14 | /** |
||
| 15 | * The configuration array. |
||
| 16 | * |
||
| 17 | * @var array |
||
| 18 | */ |
||
| 19 | protected $config = [ |
||
| 20 | 'count' => 10, |
||
| 21 | ]; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * The number of seconds before each reload. |
||
| 25 | * |
||
| 26 | * @var int|float |
||
| 27 | */ |
||
| 28 | public $reloadTimeout; |
||
| 29 | |||
| 30 | |||
| 31 | /** |
||
| 32 | * The number of minutes before cache expires. |
||
| 33 | * False means no caching at all. |
||
| 34 | * |
||
| 35 | * @var int|float|bool |
||
| 36 | */ |
||
| 37 | public $cacheTime = false; |
||
| 38 | |||
| 39 | |||
| 40 | public function placeholder() |
||
| 44 | |||
| 45 | /** |
||
| 46 | * Treat this method as a controller action. |
||
| 47 | * Return view() or other content to display. |
||
| 48 | */ |
||
| 49 | public function run() |
||
| 55 | |||
| 56 | |||
| 57 | } |