38 lines
691 B
PHP
38 lines
691 B
PHP
<?php
|
|
namespace App\CMS\Contracts\Widgets;
|
|
|
|
use App\Http\Requests\Request;
|
|
use App\Models\Widgets\Widget;
|
|
|
|
interface PublicWidget
|
|
{
|
|
/**
|
|
* Name getter
|
|
*
|
|
* @return string
|
|
*/
|
|
public static function getName();
|
|
|
|
/**
|
|
* Getter for description
|
|
*
|
|
* @return string
|
|
*/
|
|
public static function getDescription();
|
|
|
|
/**
|
|
* Getter for presenter/renderer of this widget
|
|
*
|
|
* @return WidgetRenderer
|
|
*/
|
|
public static function getPresenter();
|
|
|
|
/**
|
|
* Get widget settings for saving into database
|
|
*
|
|
* @param Request $request
|
|
*
|
|
* @return array
|
|
*/
|
|
public static function save(Request $request);
|
|
} |