See a helper implemented in a plugin

  1. <?php
  2. /**
  3.  * World Helper
  4.  *
  5.  * @author Mark Nielsen
  6.  * @package blocks/helloworld
  7.  ***/
  8.  
  9. defined('MOODLE_INTERNAL'or die('Direct access to this script is forbidden.');
  10.  
  11. class blocks_helloworld_helper_world extends mr_helper_abstract {
  12.     /**
  13.      * Direct call to world helper
  14.      *
  15.      * @return string 
  16.      */
  17.     public function direct({
  18.         return 'Hello direct()!';
  19.     }
  20.  
  21.     /**
  22.      * Say Hello
  23.      *
  24.      * @return string 
  25.      */
  26.     public function say_hello({
  27.         return 'Hello World!';
  28.     }
  29. }

Documentation generated on Thu, 28 Jun 2012 16:33:44 -0700 by phpDocumentor 1.4.3