1 | <?php |
||
13 | class sfWidgetFormSelect2Choice extends sfWidgetFormChoice |
||
14 | { |
||
15 | /** |
||
16 | * Configures the current widget. |
||
17 | * |
||
18 | * Available options: |
||
19 | * |
||
20 | * * url: The URL to call to get the choices to use (required) |
||
21 | * * config: A JavaScript array that configures the JQuery autocompleter widget |
||
22 | * * value_callback: A callback that converts the value before it is displayed |
||
23 | * |
||
24 | * @param array $options An array of options |
||
25 | * @param array $attributes An array of default HTML attributes |
||
26 | * |
||
27 | * @see sfWidgetForm |
||
28 | */ |
||
29 | protected function configure($options = array(), $attributes = array()) |
||
36 | |||
37 | public function getChoices() |
||
47 | |||
48 | /** |
||
49 | * @param string $name The element name |
||
50 | * @param string $value The date displayed in this widget |
||
51 | * @param array $attributes An array of HTML attributes to be merged with the default HTML attributes |
||
52 | * @param array $errors An array of errors for the field |
||
53 | * |
||
54 | * @return string An HTML tag string |
||
55 | * |
||
56 | * @see sfWidgetForm |
||
57 | */ |
||
58 | public function render($name, $value = null, $attributes = array(), $errors = array()) |
||
88 | |||
89 | /** |
||
90 | * Gets the stylesheet paths associated with the widget. |
||
91 | * |
||
92 | * @return array An array of stylesheet paths |
||
93 | */ |
||
94 | public function getStylesheets() |
||
98 | |||
99 | /** |
||
100 | * Gets the JavaScript paths associated with the widget. |
||
101 | * |
||
102 | * @return array An array of JavaScript paths |
||
103 | */ |
||
104 | public function getJavascripts() |
||
108 | } |
||
109 |