KumbiaPHP  beta2
Framework PHP
 Todo Estructuras de Datos Namespaces Archivos Funciones Variables Páginas
Métodos públicos estáticos | Métodos protegidos estáticos | Atributos protegidos estáticos
Referencia de la Clase KumbiaView
Diagrama de herencias de KumbiaView
View

Métodos públicos estáticos

static select ($view, $template=FALSE)
 
static template ($template)
 
static response ($response, $template=FALSE)
 
static setPath ($path)
 
static getPath ()
 
static get ($atribute)
 
static cache ($time, $type='view', $group='kumbia.view')
 
static render ($controller)
 
static content ()
 
static partial ($partial, $__time=FALSE, $params=NULL, $group='kumbia.partials')
 
static helpers ($helper)
 
static getVar ($var=NULL)
 

Métodos protegidos estáticos

static getCache ()
 

Atributos protegidos estáticos

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

Descripción detallada

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

Documentación de las funciones miembro

static cache (   $time,
  $type = 'view',
  $group = 'kumbia.view' 
)
static

Asigna cacheo de vistas o template

Parámetros
$timeTiempo de vida de cache
$typeTipo de cache (view, template)
$groupGrupo de pertenencia de cache
Devuelve
boolean En producción y cache de view

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

static content ( )
static

Imprime el contenido del buffer

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

static get (   $atribute)
static

Obtiene un atributo de KumbiaView

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

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

static getCache ( )
staticprotected

Obtiene la cache de view

Devuelve
boolean

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

static getPath ( )
static

Obtiene el path para vista incluyendo la extension .phtml

Devuelve
string

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

static getVar (   $var = NULL)
static

Obtiene el valor de un atributo público o todos del controlador

Parámetros
string$varnombre de variable
Devuelve
mixed valor de la variable

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

static helpers (   $helper)
static

Carga los helpers

Obsoleto:
ahora se cargan automaticamente
Parámetros
string$helper
Excepciones
KumbiaException

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

static partial (   $partial,
  $__time = FALSE,
  $params = NULL,
  $group = 'kumbia.partials' 
)
static

Renderiza una vista parcial

Parámetros
string$partialvista a renderizar
FALSE | string$__timetiempo de cache
array$params
string$groupgrupo de cache
Devuelve
string
Excepciones
KumbiaException

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

static render (   $controller)
static

Renderiza la vista

Parámetros
Controller$controller

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

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$response
string$templateOpcional nombre del template sin .phtml

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

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 83 del archivo kumbia_view.php.

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 131 del archivo kumbia_view.php.

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 98 del archivo kumbia_view.php.

Documentación de los campos

$_cache = array('type' => FALSE, 'time' => FALSE, 'group' => FALSE)
staticprotected

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

$_content
staticprotected

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

$_controller
staticprotected

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

$_path
staticprotected

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

$_response
staticprotected

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

$_template = 'default'
staticprotected

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

$_view
staticprotected

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


La documentación para esta clase fue generada a partir del siguiente fichero: