ActivityLog\Module::install PHP Method

install() public method

Install module
public install ( ) : boolean
return boolean
    public function install()
    {
        $pdoResource = $this->getAdapter()->getDriver()->getConnection()->getResource();
        $pdoResource->exec(file_get_contents(__DIR__ . sprintf('/data/sql/install-%s.sql', str_replace('pdo_', '', $this->getDriverName()))));
        return true;
    }

Usage Example

Example #1
0
 /**
  * Sets up the fixture, for example, opens a network connection.
  * This method is called before a test is executed.
  *
  * @return void
  */
 protected function setUp()
 {
     $this->boostrap = new Module();
     $this->boostrap->install();
     $this->object = new Template();
 }