コード例 #1
0
ファイル: mailing.php プロジェクト: nrueckmann/yeager
 /**
  * Gets the URL of this Mailing
  *
  * @return string URL of this Mailing
  */
 function getUrl()
 {
     $mailingID = $this->_id;
     if ($this->permissions->checkInternal($this->_uid, $mailingID, "RREAD")) {
         $mailingMgr = new MailingMgr();
         $pnames = $mailingMgr->getParents($mailingID);
         $pi = count($pnames);
         while ($pi > 0) {
             $url .= $pnames[$pi - 1][0]["PNAME"] . "/";
             $pi--;
         }
         $pinfo = $this->get();
         return sApp()->webroot . $url . $tree[$xt]["PNAME"] . $pinfo["PNAME"] . "/";
     } else {
         return false;
     }
 }