Overview

Packages

  • View
    • Helper

Classes

  • Horde_View
  • Horde_View_Base
  • Horde_View_Json

Interfaces

  • Horde_View_Interface

Exceptions

  • Horde_View_Exception
  • Overview
  • Package
  • Class
  • Tree
 1: <?php
 2: /**
 3:  * @category Horde
 4:  * @package View
 5:  */
 6: 
 7: /**
 8:  * Concrete class for handling views.
 9:  *
10:  * @category Horde
11:  * @package View
12:  */
13: class Horde_View extends Horde_View_Base
14: {
15:     /**
16:      * Includes the template in a scope with only public variables.
17:      *
18:      * @param string  The template to execute. Not declared in the function
19:      *                signature so it stays out of the view's public scope.
20:      * @param array   Any local variables to declare.
21:      */
22:     protected function _run()
23:     {
24:         // Set local variables.
25:         if (is_array(func_get_arg(1))) {
26:             foreach (func_get_arg(1) as $key => $value) {
27:                 ${$key} = $value;
28:             }
29:         }
30: 
31:         include func_get_arg(0);
32:     }
33: }
34: 
API documentation generated by ApiGen