-
Notifications
You must be signed in to change notification settings - Fork 0
CI_Javascript
Javascript Class
- Class name: CI_Javascript
- Namespace:
- Warning: this class is deprecated. This means that this class will likely be removed in a future version.
protected string $_javascript_location = 'js'
JavaScript location
- Visibility: protected
- Warning: this property is deprecated. This means that this property will likely be removed in a future version.
void CI_Javascript::__construct(array $params)
Constructor
- Visibility: public
- Warning: this method is deprecated. This means that this method will likely be removed in a future version.
- $params array
string CI_Javascript::blur($element, $js)
Blur
Outputs a javascript library blur event
- Visibility: public
- Warning: this method is deprecated. This means that this method will likely be removed in a future version.
- $element mixed
- $js mixed
string CI_Javascript::change($element, $js)
Change
Outputs a javascript library change event
- Visibility: public
- Warning: this method is deprecated. This means that this method will likely be removed in a future version.
- $element mixed
- $js mixed
string CI_Javascript::click($element, $js, $ret_false)
Click
Outputs a javascript library click event
- Visibility: public
- Warning: this method is deprecated. This means that this method will likely be removed in a future version.
- $element mixed
- $js mixed
- $ret_false mixed
string CI_Javascript::dblclick($element, $js)
Double Click
Outputs a javascript library dblclick event
- Visibility: public
- Warning: this method is deprecated. This means that this method will likely be removed in a future version.
- $element mixed
- $js mixed
string CI_Javascript::error($element, $js)
Error
Outputs a javascript library error event
- Visibility: public
- Warning: this method is deprecated. This means that this method will likely be removed in a future version.
- $element mixed
- $js mixed
string CI_Javascript::focus($element, $js)
Focus
Outputs a javascript library focus event
- Visibility: public
- Warning: this method is deprecated. This means that this method will likely be removed in a future version.
- $element mixed
- $js mixed
string CI_Javascript::hover($element, $over, $out)
Hover
Outputs a javascript library hover event
- Visibility: public
- Warning: this method is deprecated. This means that this method will likely be removed in a future version.
- $element mixed
- $over mixed
- $out mixed
string CI_Javascript::keydown($element, $js)
Keydown
Outputs a javascript library keydown event
- Visibility: public
- Warning: this method is deprecated. This means that this method will likely be removed in a future version.
- $element mixed
- $js mixed
string CI_Javascript::keyup($element, $js)
Keyup
Outputs a javascript library keydown event
- Visibility: public
- Warning: this method is deprecated. This means that this method will likely be removed in a future version.
- $element mixed
- $js mixed
string CI_Javascript::load($element, $js)
Load
Outputs a javascript library load event
- Visibility: public
- Warning: this method is deprecated. This means that this method will likely be removed in a future version.
- $element mixed
- $js mixed
string CI_Javascript::mousedown($element, $js)
Mousedown
Outputs a javascript library mousedown event
- Visibility: public
- Warning: this method is deprecated. This means that this method will likely be removed in a future version.
- $element mixed
- $js mixed
string CI_Javascript::mouseout($element, $js)
Mouse Out
Outputs a javascript library mouseout event
- Visibility: public
- Warning: this method is deprecated. This means that this method will likely be removed in a future version.
- $element mixed
- $js mixed
string CI_Javascript::mouseover($element, $js)
Mouse Over
Outputs a javascript library mouseover event
- Visibility: public
- Warning: this method is deprecated. This means that this method will likely be removed in a future version.
- $element mixed
- $js mixed
string CI_Javascript::mouseup($element, $js)
Mouseup
Outputs a javascript library mouseup event
- Visibility: public
- Warning: this method is deprecated. This means that this method will likely be removed in a future version.
- $element mixed
- $js mixed
string CI_Javascript::output($js)
Output
Outputs the called javascript to the screen
- Visibility: public
- Warning: this method is deprecated. This means that this method will likely be removed in a future version.
- $js mixed
string CI_Javascript::ready(string $js)
Ready
Outputs a javascript library mouseup event
- Visibility: public
- Warning: this method is deprecated. This means that this method will likely be removed in a future version.
- $js string - <p>Code to execute</p>
string CI_Javascript::resize($element, $js)
Resize
Outputs a javascript library resize event
- Visibility: public
- Warning: this method is deprecated. This means that this method will likely be removed in a future version.
- $element mixed
- $js mixed
string CI_Javascript::scroll($element, $js)
Scroll
Outputs a javascript library scroll event
- Visibility: public
- Warning: this method is deprecated. This means that this method will likely be removed in a future version.
- $element mixed
- $js mixed
string CI_Javascript::unload($element, $js)
Unload
Outputs a javascript library unload event
- Visibility: public
- Warning: this method is deprecated. This means that this method will likely be removed in a future version.
- $element mixed
- $js mixed
string CI_Javascript::addClass($element, $class)
Add Class
Outputs a javascript library addClass event
- Visibility: public
- Warning: this method is deprecated. This means that this method will likely be removed in a future version.
- $element mixed
- $class mixed
string CI_Javascript::animate(string $element, array $params, mixed $speed, string $extra)
Animate
Outputs a javascript library animate event
- Visibility: public
- Warning: this method is deprecated. This means that this method will likely be removed in a future version.
- $element string - <p>= 'this'</p>
- $params array - <p>= array()</p>
- $speed mixed - <p>'slow', 'normal', 'fast', or time in milliseconds</p>
- $extra string
string CI_Javascript::fadeIn($element, $speed, $callback)
Fade In
Outputs a javascript library hide event
- Visibility: public
- Warning: this method is deprecated. This means that this method will likely be removed in a future version.
- $element mixed
- $speed mixed
- $callback mixed
string CI_Javascript::fadeOut($element, $speed, $callback)
Fade Out
Outputs a javascript library hide event
- Visibility: public
- Warning: this method is deprecated. This means that this method will likely be removed in a future version.
- $element mixed
- $speed mixed
- $callback mixed
string CI_Javascript::slideUp($element, $speed, $callback)
Slide Up
Outputs a javascript library slideUp event
- Visibility: public
- Warning: this method is deprecated. This means that this method will likely be removed in a future version.
- $element mixed
- $speed mixed
- $callback mixed
string CI_Javascript::removeClass($element, $class)
Remove Class
Outputs a javascript library removeClass event
- Visibility: public
- Warning: this method is deprecated. This means that this method will likely be removed in a future version.
- $element mixed
- $class mixed
string CI_Javascript::slideDown($element, $speed, $callback)
Slide Down
Outputs a javascript library slideDown event
- Visibility: public
- Warning: this method is deprecated. This means that this method will likely be removed in a future version.
- $element mixed
- $speed mixed
- $callback mixed
string CI_Javascript::slideToggle($element, $speed, $callback)
Slide Toggle
Outputs a javascript library slideToggle event
- Visibility: public
- Warning: this method is deprecated. This means that this method will likely be removed in a future version.
- $element mixed
- $speed mixed
- $callback mixed
string CI_Javascript::hide($element, $speed, $callback)
Hide
Outputs a javascript library hide action
- Visibility: public
- Warning: this method is deprecated. This means that this method will likely be removed in a future version.
- $element mixed
- $speed mixed
- $callback mixed
string CI_Javascript::toggle($element)
Toggle
Outputs a javascript library toggle event
- Visibility: public
- Warning: this method is deprecated. This means that this method will likely be removed in a future version.
- $element mixed
string CI_Javascript::toggleClass(string $element, string $class)
Toggle Class
Outputs a javascript library toggle class event
- Visibility: public
- Warning: this method is deprecated. This means that this method will likely be removed in a future version.
- $element string - <p>= 'this'</p>
- $class string - <p>= ''</p>
string CI_Javascript::show($element, $speed, $callback)
Show
Outputs a javascript library show event
- Visibility: public
- Warning: this method is deprecated. This means that this method will likely be removed in a future version.
- $element mixed
- $speed mixed
- $callback mixed
string CI_Javascript::compile(string $view_var, boolean $script_tags)
Compile
gather together all script needing to be output
- Visibility: public
- Warning: this method is deprecated. This means that this method will likely be removed in a future version.
- $view_var string
- $script_tags boolean
void CI_Javascript::clear_compile()
Clear Compile
Clears any previous javascript collected for output
- Visibility: public
- Warning: this method is deprecated. This means that this method will likely be removed in a future version.
string CI_Javascript::external(string $external_file, boolean $relative)
External
Outputs a <script> tag with the source as an external js file
- Visibility: public
- Warning: this method is deprecated. This means that this method will likely be removed in a future version.
- $external_file string
- $relative boolean
string CI_Javascript::inline($script, $cdata)
Inline
Outputs a <script> tag
- Visibility: public
- Warning: this method is deprecated. This means that this method will likely be removed in a future version.
- $script mixed
- $cdata mixed
string CI_Javascript::_open_script($src)
Open Script
Outputs an opening <script>
- Visibility: protected
- Warning: this method is deprecated. This means that this method will likely be removed in a future version.
- $src mixed
string CI_Javascript::_close_script($extra)
Close Script
Outputs an closing </script>
- Visibility: protected
- Warning: this method is deprecated. This means that this method will likely be removed in a future version.
- $extra mixed
string CI_Javascript::update($element, $speed, $callback)
Update
Outputs a javascript library slideDown event
- Visibility: public
- Warning: this method is deprecated. This means that this method will likely be removed in a future version.
- $element mixed
- $speed mixed
- $callback mixed
string CI_Javascript::generate_json($result, $match_array_type)
Generate JSON
Can be passed a database result or associative array and returns a JSON formatted string
- Visibility: public
- Warning: this method is deprecated. This means that this method will likely be removed in a future version.
- $result mixed
- $match_array_type mixed
boolean CI_Javascript::_is_associative_array($arr)
Is associative array
Checks for an associative array
- Visibility: protected
- Warning: this method is deprecated. This means that this method will likely be removed in a future version.
- $arr mixed
string CI_Javascript::_prep_args(mixed $result, boolean $is_key)
Prep Args
Ensures a standard json value and escapes values
- Visibility: protected
- Warning: this method is deprecated. This means that this method will likely be removed in a future version.
- $result mixed
- $is_key boolean - <p>= FALSE</p>