Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-16387

provide boilerplate template for new source files

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • 2.0
    • 2.0
    • General
    • None
    • MOODLE_20_STABLE
    • MOODLE_20_STABLE

      provide two templates in examples/ directory or something to use to create new sourcefiles. libtemplate and scripttemplate. libtemplate just contains:

      • gpl header
      • appropriate phpdocs

      scripttemplate contains the same as libtemplate, but additionally has example require_once(dirname(_FILE_)) . '/config.php); and require_login and require_caps or whatever with comments above them describing which ones to leave and which to comment out.

      assigning to eloy since petr says he was tweaking headers recently.

            stronk7 Eloy Lafuente (stronk7)
            mjollnir Penny Leach (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.