Beispiel #1
0
 function showEmailLinks()
 {
     global $lll;
     list($displayFriendmailLink, $displayResponseLink) = G::getAttr($this->cid, "appcategory", "displayFriendmailLink", "displayResponseLink");
     if (AppSettings::isEnabled($displayResponseLink)) {
         $ctrl =& new AppController("response/create_form/{$this->id}");
         View::assign("responseLink", $ctrl->generAnchor($lll["new_resp"], '', '_blank'));
     }
     if (AppSettings::isEnabled($displayFriendmailLink)) {
         $ctrl =& new AppController("friendmail/create_form/{$this->id}");
         View::assign("friendmailLink", $ctrl->generAnchor($lll["new_frie"], '', '_blank'));
     }
 }
Beispiel #2
0
 function displayInSearchFormCondition()
 {
     return AppSettings::isEnabled($this->searchable);
 }
Beispiel #3
0
 function customListFilter($v)
 {
     return AppSettings::isEnabled($v->displayedFor);
 }