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
string
The 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
string
The parameter value (or null)
Get all license parameters as an array
getParams() : array
Inherited
inherited_from |
\OSS_License_Abstract::getParams() |
Returns
array
The 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
Verify that the license is valid and in date
verify() : boolean
Exceptions
Returns
boolean
True 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 |