symfony API

ObjectHelper Functions

« Back to API menu

action

addon

autoload

cache

command

config

controller

creole

database

debug

exception

filter

form

generator

helper

i18n

log

plugin

propel

request

response

routing

storage

task

test

user

util

validator

view

widget

You are currently browsing the symfony API for the 1.1 version. Switch to:

ObjectHelper.

Function Summary

  • _convert_method_to_name($method, [[[amp]]]$options)
  • string object_checkbox_tag($object, $method, $options = array(), $default_value = null)
    Returns a checkbox html tag.
  • string object_input_tag($object, $method, $options = array(), $default_value = null)
    Returns a input html tag.
  • object_select_language_tag($object, $method, $options = array(), $default_value = null)
  • object_select_country_tag($object, $method, $options = array(), $default_value = null)
  • _get_options_from_objects($objects, $text_method = null, $key_method = 'getPrimaryKey')
  • _get_object_value($object, $method, $default_value = null, $param = null)
  • string _get_class_decorated($object)
    Returns the name of the class of an decorated object
  • string object_input_date_tag($object, $method, $options = array(), $default_value = null)
    Returns a html date control.
  • string object_textarea_tag($object, $method, $options = array(), $default_value = null)
    Returns a textarea html tag.
  • string object_input_hidden_tag($object, $method, $options = array(), $default_value = null)
    Returns a hidden input html tag.
  • string object_select_tag($object, $method, $options = array(), $default_value = null)
    Returns a list html tag.
  • objects_for_select($options, $value_method, $text_method = null, $selected = null, $html_options = array())
    Accepts a container of objects, the method name to use for the value, and the method name to use for the display.

Function Details

  • _convert_method_to_name ($method, [[[amp]]]$options)

  • (string) object_checkbox_tag ($object, $method, $options = array(), $default_value = null)

    $object An object.
    $method An object column.
    $options Checkbox options.
    $default_value Checkbox value.

    Returns a checkbox html tag.

    returns An html string which represents a checkbox tag.

  • (string) object_input_tag ($object, $method, $options = array(), $default_value = null)

    $object An object.
    $method An object column.
    $options Input options.
    $default_value Input default value.

    Returns a input html tag.

    returns An html string which represents an input tag.

  • object_select_language_tag ($object, $method, $options = array(), $default_value = null)

  • object_select_country_tag ($object, $method, $options = array(), $default_value = null)

  • _get_options_from_objects ($objects, $text_method = null, $key_method = 'getPrimaryKey')

  • _get_object_value ($object, $method, $default_value = null, $param = null)

  • (string) _get_class_decorated ($object)

    $object An object that might be wrapped in an sfOutputEscaperObjectDecorator(-derivative)

    Returns the name of the class of an decorated object

    returns The name of the class of the object being decorated for escaping, or the class of the object if it isn't decorated

  • (string) object_input_date_tag ($object, $method, $options = array(), $default_value = null)

    $object An object.
    $method An object column.
    $options Date options.
    $default_value Date default value.

    Returns a html date control.

    returns An html string which represents a date control.

  • (string) object_textarea_tag ($object, $method, $options = array(), $default_value = null)

    $object An object.
    $method An object column.
    $options Textarea options.
    $default_value Textarea default value.

    Returns a textarea html tag.

    returns An html string which represents a textarea tag.

  • (string) object_input_hidden_tag ($object, $method, $options = array(), $default_value = null)

    $object An object.
    $method An object column.
    $options Input options.
    $default_value Input default value.

    Returns a hidden input html tag.

    returns An html string which represents a hidden input tag.

  • (string) object_select_tag ($object, $method, $options = array(), $default_value = null)

    $object An object or the selected value
    $method An object column.
    $options Input options (related_class option is mandatory).
    $default_value Input default value.

    Returns a list html tag.

    returns A list string which represents an input tag.

  • objects_for_select ($options, $value_method, $text_method = null, $selected = null, $html_options = array())

    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.