This repository has been archived on 2026-10-23. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
aktiv-web/wp-content/plugins/google-calendar-events/includes/abstracts/widget.php
T
2015-12-27 15:42:06 +01:00

69 lines
1.3 KiB
PHP

<?php
/**
* Widget
*
* @package SimpleCalendar/Admin
*/
namespace SimpleCalendar\Abstracts;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* The Widget.
*
* Basic widget interface.
*
* @since 3.0.0
*/
interface Widget {
/**
* Constructor.
*
* @since 3.0.0
*/
public function __construct();
/**
* Print the widget content.
*
* @since 3.0.0
*
* @param array $args Display arguments.
* @param array $instance The settings for the particular instance of the widget.
*
* @return void
*/
public function widget( $args, $instance );
/**
* Update a particular instance of the widget.
*
* This function should check that $new_instance is set correctly.
* The newly-calculated value of `$instance` should be returned.
* If false is returned, the instance won't be saved/updated.
*
* @since 3.0.0
*
* @param array $new_instance New settings for this instance as input by the user via
* @param array $old_instance Old settings for this instance.
*
* @return array Settings to save or bool false to cancel saving.
*/
public function update( $new_instance, $old_instance );
/**
* Print the settings update form.
*
* @since 3.0.0
*
* @param array $instance Current settings.
*
* @return string
*/
public function form( $instance );
}