Redaxscript\Installer::init PHP Method

init() public method

init the class
Since: 2.6.0
public init ( string $directory = 'database' )
$directory string name of the directory
    public function init($directory = 'database')
    {
        $this->_directory = $directory;
    }

Usage Example

Example #1
0
 /**
  * install the database
  *
  * @since 3.0.0
  *
  * @return boolean
  */
 protected function _database()
 {
     $installer = new Installer($this->_config);
     $installer->init();
     $installer->rawDrop();
     return Db::getStatus() === 1;
 }
All Usage Examples Of Redaxscript\Installer::init