Exemplo n.º 1
0
Arquivo: Git.php Projeto: Jay204/nZEDb
 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();
 }
Exemplo n.º 2
0
 public function __construct($name)
 {
     $basepath = dirname(__FILE__) . '/../';
     $this->_repo_name = $name;
     $this->_repo_path = $basepath . $this->_repo_name;
     parent::__construct($this->_repo_path);
 }