mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Added missing option arrays to abstract function definitions in JsBaseEngineHelper. Fixed test cases accordingly. Fixes #704 .
This commit is contained in:
parent
eda79aefb2
commit
fb9faf10f7
2 changed files with 7 additions and 7 deletions
|
@ -912,7 +912,7 @@ abstract class JsBaseEngineHelper extends AppHelper {
|
|||
* @param array $options Array of options for the sortable. See above.
|
||||
* @return string Completed sortable script.
|
||||
*/
|
||||
abstract public function sortable();
|
||||
abstract public function sortable($options = array());
|
||||
|
||||
/**
|
||||
* Create a slider UI widget. Comprised of a track and knob.
|
||||
|
@ -934,7 +934,7 @@ abstract class JsBaseEngineHelper extends AppHelper {
|
|||
*
|
||||
* @return string Completed slider script
|
||||
*/
|
||||
abstract public function slider();
|
||||
abstract public function slider($options = array());
|
||||
/**
|
||||
* Serialize the form attached to $selector.
|
||||
* Pass `true` for $isForm if the current selection is a form element.
|
||||
|
@ -949,7 +949,7 @@ abstract class JsBaseEngineHelper extends AppHelper {
|
|||
* @param array $options options for serialization generation.
|
||||
* @return string completed form serialization script
|
||||
*/
|
||||
abstract public function serializeForm();
|
||||
abstract public function serializeForm($options = array());
|
||||
|
||||
/**
|
||||
* Parse an options assoc array into an Javascript object literal.
|
||||
|
|
|
@ -52,13 +52,13 @@ class OptionEngineHelper extends JsBaseEngineHelper {
|
|||
function event($type, $callback, $options = array()) {}
|
||||
function domReady($functionBody) {}
|
||||
function each($callback) {}
|
||||
function effect($name, $options) {}
|
||||
function effect($name, $options = array()) {}
|
||||
function request($url, $options = array()) {}
|
||||
function drag($options = array()) {}
|
||||
function drop($options = array()) {}
|
||||
function sortable() {}
|
||||
function slider() {}
|
||||
function serializeForm() {}
|
||||
function sortable($options = array()) {}
|
||||
function slider($options = array()) {}
|
||||
function serializeForm($options = array()) {}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue