OEModule\PatientTicketing\components\PatientTicketing_API::getMenuItems PHP Method

getMenuItems() public method

public getMenuItems ( $position = 1 )
    public function getMenuItems($position = 1)
    {
        $result = array();
        $qsc_svc = Yii::app()->service->getService(self::$QUEUESETCATEGORY_SERVICE);
        $user = Yii::app()->user;
        foreach ($qsc_svc->getCategoriesForUser($user->id) as $qsc) {
            $result[] = array('uri' => '/PatientTicketing/default/?cat_id=' . $qsc->id, 'title' => $qsc->name, 'position' => $position++);
        }
        return $result;
    }