PHP Class Lassi\Lassi

Author: Jabran Rafique ([email protected])
Datei anzeigen Open project: jabranr/lassi Class Usage Examples

Protected Properties

Property Type Description
$app Slim\Slim
$eloquent Lassi\App\Database
$instance

Public Methods

Method Description
__construct ( Slim\Slim $app = null ) Default constructor
bootstrap ( ) : void Bootstrap the framework
getApp ( ) : Slim\Slim Get app instance
getEloquent ( ) : Database Get eloquent database instance
getInstance ( ) Get a singleton based Database object
setApp ( Slim\Slim $app = null, array $args = [] ) Set app instance
setEloquent ( ) Set eloquent database

Private Methods

Method Description
loadRoutes ( ) : void Load framework app routes

Method Details

__construct() public method

Default constructor
public __construct ( Slim\Slim $app = null )
$app Slim\Slim

bootstrap() public static method

Bootstrap the framework
public static bootstrap ( ) : void
return void

getApp() public method

Get app instance
public getApp ( ) : Slim\Slim
return Slim\Slim

getEloquent() public method

Get eloquent database instance
public getEloquent ( ) : Database
return Lassi\App\Database

getInstance() public static method

Get a singleton based Database object
public static getInstance ( )

setApp() public method

Set app instance
public setApp ( Slim\Slim $app = null, array $args = [] )
$app Slim\Slim
$args array

setEloquent() public method

Set eloquent database
public setEloquent ( )

Property Details

$app protected_oe property

protected Slim,Slim $app
return Slim\Slim

$eloquent protected_oe property

protected Database,Lassi\App $eloquent
return Lassi\App\Database

$instance protected_oe static_oe property

protected static $instance