function _before() { parent::_before(); $mod = new \firegit\app\mod\user\User(); $users = $mod->getUsers(); $this->setData('tusers', $users); }
function _before() { parent::_before(); $this->gitGroup = $this->getData('gitGroup'); $this->gitName = $this->getData('gitName'); $this->repo = new Reposite($this->gitGroup, $this->gitName); $rmod = new \firegit\app\mod\git\Reposite(); $this->role = $rmod->getUser($this->gitGroup, $this->gitName, $this->user); $this->response->set(array('git' => array('group' => $this->gitGroup, 'name' => $this->gitName, 'url' => 'http://' . $this->getData('user') . '@' . $this->request->host . '/' . $this->gitGroup . '/' . $this->gitName . '.git'), 'prefix' => '/' . $this->gitGroup . '/' . $this->gitName . '/', 'role' => $this->role)); }