123 Commits

Author SHA1 Message Date
defacer
3ef642d96a Implemented discussion from bug 2547:
* Block authors no longer need to set $this->content_type
* If you want to make a "list" block, just derive from block_list
  instead of block_base
* All switch() statements gone from library code
* Overloaded method is_empty() added to block classes for convenience
2005-03-02 19:22:26 +00:00
mjollnir_
873bf8758f Initial checkin for import course content functionality (uses backup/restore). Probably needs wording changes and new icon! Please test me *thoroughly*! 2005-01-27 02:35:10 +00:00
mjollnir_
5f37b628ae Update for meta courses. New table renamed from meta_course to course_meta (and upgrade script provided in mysql.php and postgres7.php) and new field in course table renamed from meta_course to metacourse. Associated changes in code. Please test me! 2005-01-25 04:33:02 +00:00
mjollnir_
b61efafba5 Initial checkin for new meta courses feature. Please test!
See http://moodle.org/mod/forum/discuss.php?d=17269 for description.
2005-01-24 22:21:28 +00:00
defacer
04280e857e Renamed set_user_sesskey() to just sesskey(). SC#74 2005-01-23 22:07:13 +00:00
defacer
1a33f699b2 Merging fix for bug 2264 & improvements from MOODLE_14_STABLE 2005-01-12 11:40:46 +00:00
moodler
1376ebb1c1 Undoing the "login as student" link that chooses a student at random. 2004-12-27 02:29:46 +00:00
gustav_delius
48d3eadabc I have put a "Login as Student" link into the admin block. 2004-12-26 20:18:24 +00:00
defacer
e89d741af3 New naming conventions for class names to bring them in line with the
rest of Moodle. The convention for blocks is now:

class block_something extends block_base { ... }

HOWTO updated accordingly, plus some more minor polishing. More to come.
2004-11-23 18:53:34 +00:00
defacer
9b4b78fd6a Da monster-commit of blocks version 2!
Code based on the work of Daryl Hawes for the blog module. Thanks, Daryl!

Please test the hell out of it as it's sure to have issues that need to be
ironed out.
2004-10-19 21:04:28 +00:00
stronk7
d99ceac20f course/index.php is using sesskey.
Merged form MOODLE_14_STABLE
2004-10-09 13:22:59 +00:00
stronk7
7777f4fc97 More use of SITEID
Merged from MOODLE_14_STABLE
2004-09-29 15:20:32 +00:00
moodler
857e46c39a Changes for XHTML and accessibility compliances 2004-09-28 09:02:33 +00:00
stronk7
4894189c0c Added backup & restore to SITE page.
Some changes from hardcoded '1' to SITEID.

See Bug 1928
(http://moodle.org/bugs/bug.php?op=show&bugid=1928)

Merged from MOODLE_14_STABLE
2004-09-25 11:37:10 +00:00
gustav_delius
98ea2a6e02 closed some image tags 2004-09-12 21:55:34 +00:00
defacer
2b0d60ec78 Fix for bug 1662:
Changed the way applicable formats for blocks are handled. The changes are
short codewise, but to grasp all the implications read the forum discussion
at the relevant URL.
2004-08-22 16:54:48 +00:00
moodler
9fb216e8b6 Fixed some version numbers on three blocks 2004-08-12 04:44:14 +00:00
selliott
a1931e61d5 Changed ($course) to ($this->course) in if condition to allow course to be checked 2004-08-11 11:19:09 +00:00
moodler
675dbdd9f5 FIxed some notices when installing Moodle fresh 2004-08-11 09:00:53 +00:00
gustav_delius
9cb883d53d small bug fix: $USER was not laoded in course admin block 2004-06-09 22:00:51 +00:00
defacer
89adb17442 Merging the changes from 1.4 dev branch (site index blocks + various bugfixes) 2004-05-28 10:53:54 +00:00
defacer
381b379798 Removed obsolete function from pre-OO days. 2004-04-26 09:03:40 +00:00
stronk7
0f3fe4b6ad First Official realease of the "Blocks System".
Integrated with Moodle:
    - Install automatically.
    - Update course->blockinfo for each course at installation time.
    - Modified course creation to insert into blockinfo field.
    - Modified restore to insert into blockinfo field.
    - Admin options (hide, show, delete, config) from admin page.
    - Lang strings inserted (en only).
    - Database support to mysql and postgresql (not tested!!).
Moodle, backup and block versions updated to 2004041800.
Tested with mysql: Install fresh and upgrade from previous.
section_activities block renamed to social_activities and created
its own lang file to support name "Social Activities". This can
be changed at any time.

TODO:
=====
Support it really in backup/restore.
????

Enjoy!! Ciao :-)
2004-04-18 23:20:53 +00:00