FEATURE: prepare class structure for menu widget.

This commit is contained in:
Michal Kváček
2016-03-15 15:02:36 +01:00
parent 12f05586ed
commit 6c7122b494
7 changed files with 170 additions and 0 deletions
+47
View File
@@ -0,0 +1,47 @@
<?php
namespace App\Widgets\Menu\Presenters;
use App\Models\Widget;
use App\Models\WidgetType;
use App\Widgets\Contracts\WidgetRenderer;
class Menu implements WidgetRenderer
{
/**
* Method used for displaying widget.
*
* This method renders some HTML code for displaying.
*
* @param object $settings
*
* @return mixed
*/
public static function render($settings)
{
// TODO: Implement render() method.
}
/**
* Display form for creating new instance of widget
*
* @param WidgetType $type
*
* @return mixed
*/
public static function renderAddForm(WidgetType $type)
{
// TODO: Implement renderAddForm() method.
}
/**
* Display form for editing already existing widget
*
* @param Widget $widget
*
* @return mixed
*/
public static function renderEditForm(Widget $widget)
{
// TODO: Implement renderEditForm() method.
}
}