wanted: PHP and Moodle programming for starters?

wanted: PHP and Moodle programming for starters?

Hans B0s -
回帖数:8

Hi,

Within Moodle I find al kind of things that can be used in programming with PHP. Things like: filteruploadedfiles, filtermatchoneperpage etc, etc, etc.

But I have no idea how to use this in a PHP program.

Could do with an simple example explaining how to use this?

Hans.

回复Hans B0s

本讨论区帖子已移除

本讨论区帖子的内容已移除,无法再访问。
回复删除的用户

Re: wanted: PHP and Moodle programming for starters?

Howard Miller -
Core developers的头像 Documentation writers的头像 Particularly helpful Moodlers的头像 Peer reviewers的头像 Plugin developers的头像
I'm not sure there is an easy way...

My $0.02... read and inwardly digest this:

http://docs.moodle.org/en/Developer_documentation#Guidelines

Then have a go at writing a simple plugin. My recommendation is a block (the block API is maybe the easiest to understand). It doesn't have to do much - hello world would do. The docs are here:

http://docs.moodle.org/en/Development:Blocks

...feel free to ask questions if you get stuck 微笑
回复Howard Miller

本讨论区帖子已移除

本讨论区帖子的内容已移除,无法再访问。
回复Howard Miller

Re: wanted: PHP and Moodle programming for starters?

Hans B0s -

Thanks Howard,

I will try to dig my way through this.

Think I start with the "Blocks" thing.

Hans.

回复Howard Miller

Re: wanted: PHP and Moodle programming for starters?

Matt Gibson -
Making a block is definitely a good way to go. Also useful is finding a simple existing block and taking it to pieces in parallel, so you can see how things are put together.

PHPXREF is also a brilliant tool to help find out where all the functions come from and to see how they are invoked in other places. Saves hours!
回复删除的用户

Re: wanted: PHP and Moodle programming for starters?

Howard Miller -
Core developers的头像 Documentation writers的头像 Particularly helpful Moodlers的头像 Peer reviewers的头像 Plugin developers的头像
回复Howard Miller

Re: wanted: PHP and Moodle programming for starters?

David Horat -
There is also a project called Moodle IDE which could be the start point for any new Moodle Developer. It solves most of common newbies problems. Maybe in this Google Summer of Code we will see a first stable version.