KumbiaPHP beta2-dev
Framework PHP en español
Métodos públicos estáticos | Atributos protegidos estáticos | Métodos privados estáticos
Referencia de la Clase KumbiaView
Diagrama de herencias de KumbiaView
Inheritance graph
[significado de colores y flechas]

Métodos públicos estáticos

static select ($view, $template=FALSE)
 Cambia el view y opcionalmente el template.
static template ($template)
 Asigna el template para la vista.
static response ($response, $template=FALSE)
 Indica el tipo de Respuesta dada por el controlador buscando el view con esa extension.
static setPath ($path)
 Asigna el path de la vista.
static get ($atribute)
 Obtiene un atributo de KumbiaView.
static cache ($time, $type='view', $group=FALSE)
 Asigna cacheo de vistas o template.
static render ($controller, $_url)
 Renderiza la vista.
static content ()
 Imprime el contenido del buffer.
static partial ($partial, $__time=FALSE, $params=array())
 Renderiza una vista parcial.
static helpers ($helper)
 Carga los helpers.

Atributos protegidos estáticos

static $_content
static $_view
static $_template = 'default'
static $_response
static $_path
static $_cache = array('type' => FALSE, 'time' => FALSE, 'group'=> FALSE)

Métodos privados estáticos

static getPath ()
 Obtiene el path para vista incluyendo la extension .phtml.

Descripción detallada

Definición en la línea 22 del archivo kumbia_view.php.


Documentación de las funciones miembro

static cache ( time,
type = 'view',
group = FALSE 
) [static]

Asigna cacheo de vistas o template.

Parámetros:
$timeTiempo de vida de cache
$typeTipo de cache (view, template)
$groupGrupo de pertenencia de cache

Definición en la línea 157 del archivo kumbia_view.php.

static content ( ) [static]

Imprime el contenido del buffer.

Definición en la línea 250 del archivo kumbia_view.php.

Hace referencia a $_content.

Referenciado por content().

Gráfico de llamadas a esta función:

static get ( atribute) [static]

Obtiene un atributo de KumbiaView.

Parámetros:
string$attributenombre de atributo (template, response, path, etc)

Definición en la línea 145 del archivo kumbia_view.php.

Referenciado por KumbiaException::handle_exception().

Gráfico de llamadas a esta función:

static getPath ( ) [static, private]

Obtiene el path para vista incluyendo la extension .phtml.

Devuelve:
string

Definición en la línea 132 del archivo kumbia_view.php.

Referenciado por render().

Gráfico de llamadas a esta función:

static helpers ( helper) [static]

Carga los helpers.

Parámetros:
string$helper
Excepciones:
KumbiaException

Definición en la línea 305 del archivo kumbia_view.php.

Hace referencia a Util::smallcase().

Gráfico de llamadas para esta función:

static partial ( partial,
__time = FALSE,
params = array() 
) [static]

Renderiza una vista parcial.

Parámetros:
string$partialvista a renderizar
string$timetiempo de cache
array$params
Devuelve:
string
Excepciones:
KumbiaException

Definición en la línea 268 del archivo kumbia_view.php.

Hace referencia a Cache::driver() y get_params().

Referenciado por render_partial() y tab_tag().

Gráfico de llamadas para esta función:

Gráfico de llamadas a esta función:

static render ( controller,
_url 
) [static]

Renderiza la vista.

Parámetros:
Controller$controller
string$urlurl a renderizar

Definición en la línea 173 del archivo kumbia_view.php.

Hace referencia a $_content, $controller, Cache::driver() y getPath().

Gráfico de llamadas para esta función:

static response ( response,
template = FALSE 
) [static]

Indica el tipo de Respuesta dada por el controlador buscando el view con esa extension.

ej. View::response('xml'); buscara: views/controller/action.xml.phtml

Parámetros:
string$type
string$templateOpcional nombre del template sin .phtml

Definición en la línea 103 del archivo kumbia_view.php.

Referenciado por Rest::init() y ControllerDeprecated::set_response().

Gráfico de llamadas a esta función:

static select ( view,
template = FALSE 
) [static]

Cambia el view y opcionalmente el template.

Parámetros:
string$viewnombre del view a utilizar sin .phtml
string$templateopcional nombre del template a utilizar sin .phtml

Definición en la línea 74 del archivo kumbia_view.php.

Referenciado por ScaffoldController::editar(), Dispatcher::execute(), Rest::init(), Router::redirect(), ControllerDeprecated::render() y PagesController::show().

Gráfico de llamadas a esta función:

static setPath ( path) [static]

Asigna el path de la vista.

Parámetros:
string$pathpath de la vista sin extension .phtml

Definición en la línea 122 del archivo kumbia_view.php.

Referenciado por Dispatcher::execute().

Gráfico de llamadas a esta función:

static template ( template) [static]

Asigna el template para la vista.

Parámetros:
string$templatenombre del template a utilizar sin .phtml

Definición en la línea 89 del archivo kumbia_view.php.

Referenciado por PagesController::before_filter() y ControllerDeprecated::finalize().

Gráfico de llamadas a esta función:


Documentación de los campos

$_cache = array('type' => FALSE, 'time' => FALSE, 'group'=> FALSE) [static, protected]

Definición en la línea 66 del archivo kumbia_view.php.

$_content [static, protected]

Definición en la línea 28 del archivo kumbia_view.php.

Referenciado por content() y render().

$_path [static, protected]

Definición en la línea 56 del archivo kumbia_view.php.

$_response [static, protected]

Definición en la línea 49 del archivo kumbia_view.php.

$_template = 'default' [static, protected]

Definición en la línea 42 del archivo kumbia_view.php.

$_view [static, protected]

Definición en la línea 35 del archivo kumbia_view.php.


La documentación para esta clase fue generada a partir del siguiente fichero:
 Todo Estructuras de Datos Namespaces Archivos Funciones Variables Enumeraciones