Plugin_Factory

Factory to create/return the shared plugin instance.

Tags
author

Barn2 Plugins support@barn2.co.uk

license

GPL-3.0

copyright

Barn2 Media Ltd

Table of Contents

$plugin  : mixed
create()  : Plugin
Create/return the shared plugin instance.

Properties

Methods

create()

Create/return the shared plugin instance.

public static create(string $file[, string $version = '1.0' ]) : Plugin
Parameters
$file : string

The main plugin file.

$version : string = '1.0'

The current version.

Return values
Plugin

The plugin instance.

Search results