SproutCMS

This is the code documentation for the SproutCMS project

class View

Loads and displays Kohana view files.

Extending this class

<?php
/**
* New class description goes here
* 
* @author Your Name, 2026-08-16
**/
class NewClassName extends View {
    
    /**
    * Magically converts view object to string.
    **/
    public function __toString () {
        // Method code goes here
    }
    
    /**
    * Renders a view.
    **/
    public function render (boolean $print, callback $renderer) {
        // Method code goes here
    }
    
    /**
    * Shorthand load and render a view.
    **/
    public function string (string $name, array $data) {
        // Method code goes here
    }
    
    /**
    * Create a view as appropriate for the 'sprout.skin_view_types' config.
    **/
    public function create (string $name, array $data) {
        // Method code goes here
    }
    
    /**
    * Sets a bound variable by reference.
    **/
    public function bind (string $name, mixed $var) {
        // Method code goes here
    }
    
    /**
    * Sets a view global variable.
    **/
    public function setGlobal (string|array $name, mixed $value) {
        // Method code goes here
    }
    
    /**
    * Magically sets a view variable.
    **/
    public function __set (string $key, string $value) {
        // Method code goes here
    }
    
    /**
    * Magically gets a view variable.
    **/
    public function __get (string $key) {
        // Method code goes here
    }
    
    /**
    * Attempts to load a view and pre-load view data.
    **/
    public function __construct (string $name, array $data) {
        // Method code goes here
    }
    
    /**
    * Magic method access to test for view property
    **/
    public function __isset (string $key) {
        // Method code goes here
    }
    
    /**
    * Sets the view filename.
    **/
    public function setFilename (string $name) {
        // Method code goes here
    }
    
    /**
    * Sets a view variable.
    **/
    public function set (string|array $name, mixed $value) {
        // Method code goes here
    }
    
    /**
    * Checks for a property existence in the view locally or globally. Unlike the built in __isset(),
    * this method can take an array of properties to test simultaneously.
    **/
    public function isPropertySet (string $key) {
        // Method code goes here
    }
    
}
?>