function __construct($steam_object = FALSE)
 {
     self::$PATH = PATH_EXTENSIONS . "units_routeplaner/";
     self::$DISPLAY_NAME = gettext("Routeplaner");
     self::$DISPLAY_DESCRIPTION = gettext("You can use this unit type for routeplaning a term paper as part of your course. The creation dialog lets you choose a project name, further description of the project and start- and endgateway for the routeplan.");
     parent::__construct(PATH_EXTENSIONS . "units_routeplaner.xml", $steam_object);
     $this->set_action_permissions(PERMISSION_ACTION_EDIT | PERMISSION_ACTION_DELETE);
 }
Esempio n. 2
0
                 $content->setVariable("AP_CHECKED", "checked=\"checked\"");
                 $content->setVariable("AI_CHECKED", "");
                 break;
             case "2":
                 $content->setVariable("AD_CHECKED", "");
                 $content->setVariable("AP_CHECKED", "");
                 $content->setVariable("AI_CHECKED", "checked=\"checked\"");
                 break;
         }
         $content->setVariable("LABEL_CREATE", gettext("Save changes"));
     } else {
         $content->setVariable("LABEL_CREATE", gettext("Create unit"));
     }
 }
 $content->setVariable("AD_CHECKED", "checked=\"checked\"");
 $content->setVariable("UNIT_ICON", units_routeplaner::get_big_icon());
 $content->setVariable("CONFIRMATION_TEXT", gettext("You are going to add a new unit for this course."));
 $content->setVariable("CONFIRMATION_TEXT_LONG", gettext("You are going to add a new routeplaner unit to this course. Please note that a routplaner unit will be processed using the open-sTeam server of the koaLA system. Therefore the routeplaner itself will be adressed using a link to an external system requiring username and password. The required username and password are the same as for koaLA."));
 $content->setVariable("LABEL_NAME", gettext("Name"));
 $content->setVariable("LABEL_DSC", gettext("Description of the unit"));
 $content->setVariable("LABEL_SHORT_DSC", gettext("Description"));
 $content->setVariable("LABEL_DSC", gettext("Long description"));
 $content->setVariable("LABEL_DSC_SHOW_UP", gettext("This description will show up on the units page."));
 $content->setVariable("LABEL_LONG_DSC", gettext("Long description") . ":");
 $content->setVariable("LONG_DSC_SHOW_UP", gettext("This description will show up on the units page."));
 $content->setVariable("LABEL_APPEARANCE", gettext("Please choose how to access the content of the routeplaner"));
 $content->setVariable("LABEL_APPEARANCE_DIRECT", gettext("The link to the routeplaner content will be displayed in the list of units directly"));
 $content->setVariable("LABEL_APPEARANCE_PROXY", gettext("The long Description will be displayed along with a link to the routeplaner content"));
 $content->setVariable("LABEL_APPEARANCE_INLINE", gettext("Inline using an IFrame"));
 $content->setVariable("LABEL_GATES", gettext("Gates information"));
 $content->setVariable("LABEL_STARTGATE_NAME", gettext("Name of the <b>start gate</b>"));