Ejemplo n.º 1
0
 function __construct($steam_object = FALSE)
 {
     self::$PATH = PATH_EXTENSIONS . "units_docpool/";
     self::$DISPLAY_NAME = gettext("Document Pool");
     self::$DISPLAY_DESCRIPTION = gettext("This standard unit type provides a space for exchanging documents. As creator of the unit you can decide who may hav access to the materials and who may be able to post materials. If you choose to support units in your course this unit type will be <b>enabled by default</b>.");
     parent::__construct(PATH_EXTENSIONS . "units_docpool.xml", $steam_object);
 }
Ejemplo n.º 2
0
$content->setVariable("LABEL_NAME", gettext("Name"));
$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."));
if (isset($unit)) {
    $backlink = $unit->get_url();
    $content->setVariable("INFO_ICON", units_docpool::get_big_icon());
    if ($old_unit) {
        $content->setVariable('INFO_TEXT', gettext('This is an old unit that does not fully support the document pool features.<br/><b>If you save any changes, it will be converted into a document pool.</b>'));
        $content->setVariable('LABEL_CREATE', gettext('Save changes and convert into document pool'));
    } else {
        $content->setVariable("LABEL_CREATE", gettext("Save changes"));
    }
} else {
    $backlink = $owner->get_url() . "units/new";
    $content->setVariable("INFO_ICON", units_docpool::get_big_icon());
    $content->setVariable("INFO_TEXT", gettext("You are going to add a new unit."));
    $content->setVariable("LABEL_CREATE", gettext("Create unit"));
}
$content->setVariable("UNIT", "units_docpool");
$content->setVariable("BACKLINK", "<a href=\"{$backlink}\">" . gettext("back") . "</a>");
$content->setVariable("LABEL_BB_BOLD", gettext("B"));
$content->setVariable("HINT_BB_BOLD", gettext("boldface"));
$content->setVariable("LABEL_BB_ITALIC", gettext("I"));
$content->setVariable("HINT_BB_ITALIC", gettext("italic"));
$content->setVariable("LABEL_BB_UNDERLINE", gettext("U"));
$content->setVariable("HINT_BB_UNDERLINE", gettext("underline"));
$content->setVariable("LABEL_BB_STRIKETHROUGH", gettext("S"));
$content->setVariable("HINT_BB_STRIKETHROUGH", gettext("strikethrough"));
$content->setVariable("LABEL_BB_IMAGE", gettext("IMG"));
$content->setVariable("HINT_BB_IMAGE", gettext("image"));