Exemple #1
0
 function showModTool($rights)
 {
     global $lll, $gorumuser;
     $_S =& new AppSettings();
     hasAdminRights($isAdm);
     $tools = array();
     if ($isAdm && !$this->status) {
         $ctrl =& new AppController("item/approve/{$this->id}");
         $tools[] = $ctrl->generAnchor($lll["approve"]);
     }
     if (($isAdm || $_S->allowModify) && ($modTool = parent::showModTool($rights))) {
         $tools[] = $modTool;
     }
     if ($isAdm) {
         $ctrl =& new AppController("item/move_form/{$this->id}");
         $tools[] = $ctrl->generAnchor($lll["move"]);
     }
     if ($this->status && $_S->favoritiesEnabled()) {
         $tools[] = $gorumuser->showFavoritiesTool($this->id);
     }
     return implode(" | ", $tools);
 }