PHP Class Inpsyde\MultilingualPress\Widget\Dashboard\UntranslatedPosts\WidgetView

Since: 3.0.0
Inheritance: implements Inpsyde\MultilingualPress\Widget\Dashboard\View
Show file Open project: inpsyde/multilingual-press

Public Methods

Method Description
__construct ( Inpsyde\MultilingualPress\API\SiteRelations $site_relations, Inpsyde\MultilingualPress\Widget\Dashboard\UntranslatedPosts\PostRepository $post_repository ) Constructor. Sets up the properties.
render ( mixed $object, array $instance ) : void Renders the widget's view.

Method Details

__construct() public method

Constructor. Sets up the properties.
Since: 3.0.0
public __construct ( Inpsyde\MultilingualPress\API\SiteRelations $site_relations, Inpsyde\MultilingualPress\Widget\Dashboard\UntranslatedPosts\PostRepository $post_repository )
$site_relations Inpsyde\MultilingualPress\API\SiteRelations Site relations API object.
$post_repository Inpsyde\MultilingualPress\Widget\Dashboard\UntranslatedPosts\PostRepository Untranslated posts repository object.

render() public method

Renders the widget's view.
Since: 3.0.0
public render ( mixed $object, array $instance ) : void
$object mixed Queried object, or other stuff.
$instance array Widget settings.
return void