[ Index ]
 

Code source de Symfony 1.0.0

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/lib/helper/ -> ObjectHelper.php (sommaire)

ObjectHelper.

Author: Fabien Potencier <fabien.potencier@symfony-project.com>
Version: SVN: $Id: ObjectHelper.php 3294 2007-01-16 06:53:15Z fabien $
Poids: 324 lignes (9 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 13 fonctions

  object_input_date_tag()
  object_textarea_tag()
  objects_for_select()
  object_select_tag()
  _get_options_from_objects()
  object_select_country_tag()
  object_select_language_tag()
  object_input_hidden_tag()
  object_input_tag()
  object_checkbox_tag()
  _convert_method_to_name()
  _get_object_value()
  _get_class_decorated()

Fonctions
Fonctions qui ne font pas partie d'une Classe:

object_input_date_tag($object, $method, $options = array()   X-Ref
Returns a html date control.

param: object An object.
param: string An object column.
param: array Date options.
param: bool Date default value.
return: string An html string which represents a date control.

object_textarea_tag($object, $method, $options = array()   X-Ref
Returns a textarea html tag.

param: object An object.
param: string An object column.
param: array Textarea options.
param: bool Textarea default value.
return: string An html string which represents a textarea tag.

objects_for_select($options = array()   X-Ref
Accepts a container of objects, the method name to use for the value,
and the method name to use for the display.
It returns a string of option tags.

NOTE: Only the option tags are returned, you have to wrap this call in a regular HTML select tag.

object_select_tag($object, $method, $options = array()   X-Ref
Returns a list html tag.

param: object An object or the selected value
param: string An object column.
param: array Input options (related_class option is mandatory).
param: bool Input default value.
return: string A list string which represents an input tag.

_get_options_from_objects($objects, $text_method = null)   X-Ref
Pas de description

object_select_country_tag($object, $method, $options = array()   X-Ref
Pas de description

object_select_language_tag($object, $method, $options = array()   X-Ref
Pas de description

object_input_hidden_tag($object, $method, $options = array()   X-Ref
Returns a hidden input html tag.

param: object An object.
param: string An object column.
param: array Input options.
param: bool Input default value.
return: string An html string which represents a hidden input tag.

object_input_tag($object, $method, $options = array()   X-Ref
Returns a input html tag.

param: object An object.
param: string An object column.
param: array Input options.
param: bool Input default value.
return: string An html string which represents an input tag.

object_checkbox_tag($object, $method, $options = array()   X-Ref
Returns a checkbox html tag.

param: object An object.
param: string An object column.
param: array Checkbox options.
param: bool Checkbox value.
return: string An html string which represents a checkbox tag.

_convert_method_to_name($method, &$options)   X-Ref
Pas de description

_get_object_value($object, $method, $default_value = null, $param = null)   X-Ref
Pas de description

_get_class_decorated($object)   X-Ref
Returns the name of the class of an decorated object

param: object An object that might be wrapped in an sfOutputEscaperObjectDecorator(-derivative)
return: string The name of the class of the object being decorated for escaping, or the class of the object if it isn't decorated



Généré le : Fri Mar 16 22:42:14 2007 par Balluche grâce à PHPXref 0.7