Reminder::getTabNameForItem PHP Method

getTabNameForItem() public method

See also: CommonGLPI::getTabNameForItem()
public getTabNameForItem ( CommonGLPI $item, $withtemplate )
$item CommonGLPI
    function getTabNameForItem(CommonGLPI $item, $withtemplate = 0)
    {
        if (self::canView()) {
            $nb = 0;
            switch ($item->getType()) {
                case 'Reminder':
                    if ($item->canUpdate()) {
                        if ($_SESSION['glpishow_count_on_tabs']) {
                            $nb = $item->countVisibilities();
                        }
                        return array(1 => self::createTabEntry(_n('Target', 'Targets', Session::getPluralNumber()), $nb));
                    }
            }
        }
        return '';
    }