Exemplo n.º 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'));
     }
 }
Exemplo n.º 2
0
 function displayInSearchFormCondition()
 {
     return AppSettings::isEnabled($this->searchable);
 }
Exemplo n.º 3
0
 function customListFilter($v)
 {
     return AppSettings::isEnabled($v->displayedFor);
 }