public static function getMemberContentLink($intId)
 {
     if (($objMemberContentArchive = MemberContentArchiveModel::findByPk($intId)) !== null) {
         if (($objTag = MemberContentArchiveTagModel::findByPk($objMemberContentArchive->tag)) !== null && $objTag->jumpTo) {
             if (($objMember = \MemberModel::findByPk($objMemberContentArchive->mid)) !== null) {
                 return Url::generateFrontendUrl($objTag->jumpTo) . '/' . General::getAliasIfAvailable($objMember);
             }
         }
     }
 }
コード例 #2
0
 public function addItemColumns($objItem, &$arrItem)
 {
     global $objPage;
     // details url
     if (($objPageJumpTo = \PageModel::findByPk($this->jumpToDetails)) !== null || ($objPageJumpTo = $objPage)) {
         $arrItem['detailsUrl'] = \Controller::generateFrontendUrl($objPageJumpTo->row(), '/' . General::getAliasIfAvailable($objItem));
     }
     // share url
     $this->addShareColumn($objItem, $arrItem);
     $arrItem['listUrl'] = $this->listUrl;
 }