See a helper implemented in a plugin
<?php
/**
* World Helper
*
* @author Mark Nielsen
* @package blocks/helloworld
***/
defined('MOODLE_INTERNAL') or die('Direct access to this script is forbidden.');
/**
* Direct call to world helper
*
* @return string
*/
public function direct() {
return 'Hello direct()!';
}
/**
* Say Hello
*
* @return string
*/
public function say_hello() {
return 'Hello World!';
}
}
Documentation generated on Thu, 28 Jun 2012 16:33:44 -0700 by phpDocumentor 1.4.3