KumbiaPHP beta2-dev
Framework PHP en español
|
Métodos públicos estáticos | |
static | getFieldValue ($field) |
Obtiene el valor del campo por autocarga de valores. | |
static | input ($attrs=NULL, $content=NULL) |
Crea campo input. | |
static | open ($action=NULL, $method= 'post', $attrs=NULL) |
Crea una etiqueta de formulario. | |
static | openMultipart ($action=NULL, $attrs=NULL) |
Crea una etiqueta de formulario multipart. | |
static | close () |
Etiqueta para cerrar un formulario. | |
static | submit ($text, $attrs=NULL) |
Crea un boton de submit para el formulario actual. | |
static | reset ($text, $attrs=NULL) |
Crea un boton reset. | |
static | button ($text, $attrs=NULL) |
Crea un boton. | |
static | label ($text, $field, $attrs=NULL) |
Crea un label. | |
static | text ($field, $attrs=NULL, $value=NULL) |
Campo text. | |
static | select ($field, $data, $attrs=NULL, $value=NULL) |
Campo Select. | |
static | check ($field, $checkValue, $attrs=NULL, $checked=NULL) |
Campo checkbox. | |
static | radio ($field, $radioValue, $attrs=NULL, $checked=NULL) |
Campo radio button. | |
static | submitImage ($img, $attrs=NULL) |
Crea un boton de tipo imagen. | |
static | hidden ($field, $attrs=NULL, $value=NULL) |
Campo hidden. | |
static | pass ($field, $attrs=NULL, $value=NULL) |
Campo Password. | |
static | dbSelect ($field, $show=NULL, $data=NULL, $blank= 'Seleccione', $attrs=NULL, $value=NULL) |
Campo Select que toma los valores de un array de objetos. | |
static | file ($field, $attrs=NULL) |
Campo File. | |
static | textarea ($field, $attrs=NULL, $value=NULL) |
Campo textarea. | |
static | date ($field, $class=NULL, $attrs=NULL, $value=NULL) |
Campo fecha. | |
Métodos protegidos estáticos | |
static | _getFieldData ($field, $autoload=TRUE) |
Obtiene el valor de un componente tomado del mismo valor del nombre del campo y formulario que corresponda a un atributo del mismo nombre que sea un string, objeto o array. | |
Atributos protegidos estáticos | |
static | $_radios = array() |
static | $_multipart = FALSE |
static _getFieldData | ( | $ | field, |
$ | autoload = TRUE |
||
) | [static, protected] |
Obtiene el valor de un componente tomado del mismo valor del nombre del campo y formulario que corresponda a un atributo del mismo nombre que sea un string, objeto o array.
string | $field | |
boolean | $autoload | autocarga de valores |
Definición en la línea 50 del archivo form.php.
Hace referencia a $controller y Dispatcher::get_controller().
static button | ( | $ | text, |
$ | attrs = NULL |
||
) | [static] |
Crea un boton.
string | $text | |
array | $attrs |
Definición en la línea 267 del archivo form.php.
Hace referencia a Tag::getAttrs().
static check | ( | $ | field, |
$ | checkValue, | ||
$ | attrs = NULL , |
||
$ | checked = NULL |
||
) | [static] |
Campo checkbox.
string | $field | nombre de campo |
string | $checkValue | valor en el checkbox |
string | array | $attrs | atributos de campo |
string | $checked | indica si se marca el campo |
Definición en la línea 351 del archivo form.php.
Hace referencia a Tag::getAttrs().
static close | ( | ) | [static] |
static date | ( | $ | field, |
$ | class = NULL , |
||
$ | attrs = NULL , |
||
$ | value = NULL |
||
) | [static] |
Campo fecha.
string | $field | nombre de campo |
string | $class | clase de estilo |
string | array | $attrs | atributos de campo |
string | $value |
Definición en la línea 579 del archivo form.php.
Hace referencia a Tag::getAttrs().
static dbSelect | ( | $ | field, |
$ | show = NULL , |
||
$ | data = NULL , |
||
$ | blank = 'Seleccione' , |
||
$ | attrs = NULL , |
||
$ | value = NULL |
||
) | [static] |
Campo Select que toma los valores de un array de objetos.
string | $field | nombre de campo |
string | $show | campo que se mostrara (opcional) |
array | $data | array('modelo','metodo','param') (opcional) |
string | $blank | campo en blanco (opcional) |
string | array | $attrs | atributos de campo (opcional) |
string | $value | (opcional) |
Definición en la línea 465 del archivo form.php.
Hace referencia a Tag::getAttrs() y Load::model().
Referenciado por ModelForm::create().
static file | ( | $ | field, |
$ | attrs = NULL |
||
) | [static] |
Campo File.
string | $field | nombre de campo |
string | array | $attrs | atributos de campo |
Definición en la línea 533 del archivo form.php.
Hace referencia a Flash::error() y Tag::getAttrs().
static getFieldValue | ( | $ | field | ) | [static] |
Obtiene el valor del campo por autocarga de valores.
string | $field | nombre de campo |
Definición en la línea 118 del archivo form.php.
Hace referencia a $controller y Dispatcher::get_controller().
static hidden | ( | $ | field, |
$ | attrs = NULL , |
||
$ | value = NULL |
||
) | [static] |
Campo hidden.
string | $field | nombre de campo |
string | array | $attrs | atributos de campo |
string | $value |
Definición en la línea 423 del archivo form.php.
Hace referencia a Tag::getAttrs().
static input | ( | $ | attrs = NULL , |
$ | content = NULL |
||
) | [static] |
Crea campo input.
string | $attrs | atributos para el tag |
string | $content | contenido interno |
Definición en la línea 166 del archivo form.php.
Hace referencia a Tag::getAttrs().
static label | ( | $ | text, |
$ | field, | ||
$ | attrs = NULL |
||
) | [static] |
Crea un label.
string | $text | texto a mostrar |
string | $field | campo al que hace referencia |
string|array | atributos opcionales |
Definición en la línea 283 del archivo form.php.
Hace referencia a Tag::getAttrs().
static open | ( | $ | action = NULL , |
$ | method = 'post' , |
||
$ | attrs = NULL |
||
) | [static] |
Crea una etiqueta de formulario.
string | $action | |
string | $method | |
array | $attrs |
Definición en la línea 185 del archivo form.php.
Hace referencia a Router::get() y Tag::getAttrs().
static openMultipart | ( | $ | action = NULL , |
$ | attrs = NULL |
||
) | [static] |
Crea una etiqueta de formulario multipart.
string | $action | |
array | $attrs |
Definición en la línea 205 del archivo form.php.
Hace referencia a Router::get() y Tag::getAttrs().
static pass | ( | $ | field, |
$ | attrs = NULL , |
||
$ | value = NULL |
||
) | [static] |
Campo Password.
string | $field | nombre de campo |
string | array | $attrs | atributos de campo |
string | $value |
Definición en la línea 442 del archivo form.php.
Hace referencia a Tag::getAttrs().
static radio | ( | $ | field, |
$ | radioValue, | ||
$ | attrs = NULL , |
||
$ | checked = NULL |
||
) | [static] |
Campo radio button.
string | $field | nombre de campo |
string | $radioValue | valor en el radio |
string | array | $attrs | atributos de campo |
string | $checked | indica si se marca el campo |
Definición en la línea 376 del archivo form.php.
Hace referencia a Tag::getAttrs().
static reset | ( | $ | text, |
$ | attrs = NULL |
||
) | [static] |
Crea un boton reset.
string | $text | |
array | $attrs |
Definición en la línea 252 del archivo form.php.
Hace referencia a Tag::getAttrs().
static select | ( | $ | field, |
$ | data, | ||
$ | attrs = NULL , |
||
$ | value = NULL |
||
) | [static] |
Campo Select.
string | $field | nombre de campo |
string | $data | array de valores para la lista desplegable |
string | array | $attrs | atributos de campo |
string | $value |
Definición en la línea 320 del archivo form.php.
Hace referencia a Tag::getAttrs().
static submit | ( | $ | text, |
$ | attrs = NULL |
||
) | [static] |
Crea un boton de submit para el formulario actual.
string | $text | |
array | $attrs |
Definición en la línea 237 del archivo form.php.
Hace referencia a Tag::getAttrs().
static submitImage | ( | $ | img, |
$ | attrs = NULL |
||
) | [static] |
Crea un boton de tipo imagen.
string | $img | |
array | $attrs |
Definición en la línea 407 del archivo form.php.
Hace referencia a Tag::getAttrs().
static text | ( | $ | field, |
$ | attrs = NULL , |
||
$ | value = NULL |
||
) | [static] |
Campo text.
string | $field | nombre de campo |
string | array | $attrs | atributos de campo |
string | $value |
Definición en la línea 299 del archivo form.php.
Hace referencia a Tag::getAttrs().
static textarea | ( | $ | field, |
$ | attrs = NULL , |
||
$ | value = NULL |
||
) | [static] |
Campo textarea.
string | $field | nombre de campo |
string | array | $attrs | atributos de campo |
string | $value |
Definición en la línea 558 del archivo form.php.
Hace referencia a Tag::getAttrs().