public function listen_TBGNotification_getTarget(TBGEvent $event)
 {
     if ($event->getSubject()->getModuleName() != 'vcs_integration') {
         return;
     }
     $commit = TBGVCSIntegrationCommitsTable::getTable()->selectById($event->getSubject()->getTargetID());
     $event->setReturnValue($commit);
     $event->setProcessed();
 }
 /**
  * Get all commits relating to issues inside a project
  * @param integer $id
  * @param integer $limit
  * @param integer $offset
  *
  * @return array/false
  */
 public static function getByProject($id, $limit = 40, $offset = null)
 {
     $commits = TBGVCSIntegrationCommitsTable::getTable()->getCommitsByProject($id, $limit, $offset);
     return $commits;
 }
Пример #3
0
 public function componentCommitbackdrop()
 {
     $this->commit = TBGVCSIntegrationCommitsTable::getTable()->selectById($this->commit_id);
     $this->projectId = $this->commit->getProject()->getId();
 }