A class for creating and verifying software licenses.

This license model is based on TRUST under the commercial open source model. It is trivial to work around this license model.

category OSS
package OSS_License
copyright Copyright (c) 2007 - 2012, Open Source Solutions Limited, Dublin, Ireland
license New BSD License

 Methods

__construct()

__construct($license) 
Inherited
inherited_from \OSS_License_Abstract::__construct()

Parameters

$license

Generate the INI license

generate() : string

Returns

stringThe license

Get a license parameter

getParam(string $p) : string
Inherited
inherited_from \OSS_License_Abstract::getParam()

Parameters

$p

string

The parameter name (INI compatible value)

Returns

stringThe parameter value (or null)

Get all license parameters as an array

getParams() : array
Inherited
inherited_from \OSS_License_Abstract::getParams()

Returns

arrayThe license parameters

Set a license parameter

setParam(string $p, string $v) : \OSS_License_Abstract
Inherited
inherited_from \OSS_License_Abstract::setParam()

Parameters

$p

string

The parameter name (INI compatible value)

$v

string

The parameter value (INI compatible value)

Returns

\OSS_License_AbstractInstance of the license for fluent interfaces

Verify that the license is valid and in date

verify() : boolean

Exceptions

\OSS_License_Exception

Returns

booleanTrue if valid, else an exception is thrown

Create a single string of all license parameters for key verification / generation

_amalgamate() : string
Inherited
inherited_from \OSS_License_Abstract::_amalgamate()

Returns

string

Create an INI format of the license

_createIni() : string
Inherited
inherited_from \OSS_License_Abstract::_createIni()

Returns

string

 Properties

 

<p>The licnese key value pairs</p>

$_license : array
Inherited
inherited_from \OSS_License_Abstract::$$_license