Example #1
0
 /**
  * @param \model\Author $a
  * @param Navigation $n
  * @param $sha
  */
 public function __construct(\model\Author $a, \view\Navigation $n, $sha)
 {
     $this->m_author = $a;
     $this->m_nav = $n;
     $this->m_sha = $sha;
     $this->m_formId = 'view::webhookauthor' . $this->m_sha;
     $this->m_visible = $n->IsVisibilityTrueOrFalse($this->m_formId);
     $this->getHTML();
 }
Example #2
0
 /**
  * @param \model\Commits $committs
  * @param Navigation $n
  * @param string $previewCode
  */
 public function __construct(\model\Commits $committs, \view\Navigation $n, $previewCode = '')
 {
     $this->m_commits = $committs;
     $this->m_nav = $n;
     $this->m_sha = $this->m_commits->getId();
     $this->m_formId = 'view::webhookadded' . $this->m_commits->getId();
     $this->m_visible = $n->IsVisibilityTrueOrFalse($this->m_formId);
     $this->m_previewCode = $previewCode;
     $this->getHTML();
 }
 /**
  * @return string
  * @throws \Exception
  */
 public function DoViewCode()
 {
     $viewCode = new \model\ViewCode($this->m_webhook, $this->m_nav->ReadValueFromKeyInGET($this->m_nav->GetFilesKey()), $this->m_nav->ReadValueFromKeyInGET($this->m_nav->GetFileNameKey()));
     return htmlentities($viewCode->GetContentInFile());
 }
 public function DoRepublish()
 {
     new \model\ViewCode($this->m_webhook, $this->m_nav->ReadValueFromKeyInGET($this->m_nav->GetFilesKey()), $this->m_nav->ReadValueFromKeyInGET($this->m_nav->GetFileNameKey()));
 }