public function __construct(array $options = array()) { $defaults = array('create' => false, 'initialise' => false, 'filepath' => nZEDb_ROOT); $options += $defaults; parent::__construct($options['filepath'], $options['create'], $options['initialise']); $this->branch = parent::active_branch(); }
public function __construct($name) { $basepath = dirname(__FILE__) . '/../'; $this->_repo_name = $name; $this->_repo_path = $basepath . $this->_repo_name; parent::__construct($this->_repo_path); }