示例#1
0
 /**
  * (non-PHPdoc)
  * @see \MB\DashboardBundle\Model\Connector\BaseConnector::fillGroup()
  */
 public function fillGroup(SourceGroupInterface $group, \stdClass $data)
 {
     $group->setSourceId($data->owner->id);
     $group->setSourceConnectorIdentifier($this->getName());
     $group->setTitle($data->owner->login);
     $group->setUrl($data->owner->html_url);
     $group->setPath($data->owner->login);
     return $group;
 }
示例#2
0
 /**
  * (non-PHPdoc)
  * @see \MB\DashboardBundle\Model\Connector\BaseConnector::fillGroup()
  */
 public function fillGroup(SourceGroupInterface $group, \stdClass $data)
 {
     $group->setSourceId($data->namespace->id);
     $group->setSourceConnectorIdentifier($this->getName());
     $group->setTitle($data->namespace->name);
     $group->setUrl($this->host . '/' . $data->namespace->path);
     $group->setPath($data->namespace->path);
     return $group;
 }