Lines Matching refs:options

129  * @param array $options Array of options for method
133 protected function _methodTemplate($method, $template, $options, $extraSafeKeys = array()) { argument
134 $options = $this->_mapOptions($method, $options);
135 $options = $this->_prepareCallbacks($method, $options);
140 $options = $this->_parseOptions($options, $callbacks);
141 return sprintf($template, $this->selection, $options);
169 * @param array $options Options for the event.
172 public function event($type, $callback, $options = array()) { argument
174 $options += $defaults;
177 if ($options['wrap'] && $options['stop']) {
180 if ($options['wrap']) {
215 * @param array $options Array of options for the effect.
219 public function effect($name, $options = array()) { argument
221 if (isset($options['speed']) && in_array($options['speed'], array('fast', 'slow'))) {
222 $speed = $this->value($options['speed']);
247 * @param array $options See JsHelper::request() for options.
251 public function request($url, $options = array()) { argument
253 $options = $this->_mapOptions('request', $options);
254 if (isset($options['data']) && is_array($options['data'])) {
255 $options['data'] = $this->_toQuerystring($options['data']);
257 $options['url'] = $url;
258 if (isset($options['update'])) {
259 $wrapCallbacks = isset($options['wrapCallbacks']) ? $options['wrapCallbacks'] : true;
261 if (isset($options['success']) && !empty($options['success'])) {
262 $success .= $options['success'];
264 $success .= $this->jQueryObject . '("' . $options['update'] . '").html(data);';
268 $options['dataType'] = 'html';
269 $options['success'] = $success;
270 unset($options['update']);
273 if (!empty($options['dataExpression'])) {
275 unset($options['dataExpression']);
277 $options = $this->_prepareCallbacks('request', $options);
278 $options = $this->_parseOptions($options, $callbacks);
279 return $this->jQueryObject . '.ajax({' . $options . '});';
287 * @param array $options Array of options for the sortable.
291 public function sortable($options = array()) { argument
293 return $this->_methodTemplate('sortable', $template, $options);
301 * @param array $options Array of options for the draggable element.
305 public function drag($options = array()) { argument
307 return $this->_methodTemplate('drag', $template, $options);
315 * @param array $options Array of options for the droppable element.
319 public function drop($options = array()) { argument
321 return $this->_methodTemplate('drop', $template, $options);
329 * @param array $options Array of options for the droppable element.
333 public function slider($options = array()) { argument
336 return $this->_methodTemplate('slider', $template, $options, $callbacks);
343 * @param array $options Options for the serialization
347 public function serializeForm($options = array()) { argument
348 $options += array('isForm' => false, 'inline' => false);
350 if (!$options['isForm']) {
354 if (!$options['inline']) {