PHP Class Redaxscript\Installer

Since: 2.4.0
Author: Henry Ruhs
Show file Open project: redaxmedia/redaxscript Class Usage Examples

Protected Properties

Property Type Description
$_config object instance of the config class
$_directory string name of the directory
$_prefixPlaceholder string placeholder for the prefix

Public Methods

Method Description
__construct ( Config $config ) constructor of the class
init ( string $directory = 'database' ) init the class
insertData ( array $optionArray = null ) insert the data
rawCreate ( ) create from sql
rawDrop ( ) drop from sql

Protected Methods

Method Description
_rawExecute ( string $action = null, string $type = 'mysql' ) execute from sql

Method Details

__construct() public method

constructor of the class
Since: 2.6.0
public __construct ( Config $config )
$config Config instance of the config class

_rawExecute() protected method

execute from sql
Since: 2.4.0
protected _rawExecute ( string $action = null, string $type = 'mysql' )
$action string action to process
$type string type of the database

init() public method

init the class
Since: 2.6.0
public init ( string $directory = 'database' )
$directory string name of the directory

insertData() public method

insert the data
Since: 2.4.0
public insertData ( array $optionArray = null )
$optionArray array options of the installation

rawCreate() public method

create from sql
Since: 2.4.0
public rawCreate ( )

rawDrop() public method

drop from sql
Since: 2.4.0
public rawDrop ( )

Property Details

$_config protected property

instance of the config class
protected object $_config
return object

$_directory protected property

name of the directory
protected string $_directory
return string

$_prefixPlaceholder protected property

placeholder for the prefix
protected string $_prefixPlaceholder
return string