PHP Class CI_Javascript, TastyIgniter

Deprecation: 3.0.0 This was never a good idea in the first place.
Author: EllisLab Dev Team
ファイルを表示 Open project: tastyigniter/tastyigniter Class Usage Examples

Protected Properties

Property Type Description
$_javascript_location string JavaScript location

Public Methods

Method Description
__construct ( array $params = [] ) : void Constructor
addClass ( $element = 'this', $class = '' ) : string Add Class
animate ( string $element = 'this', array $params = [], mixed $speed = '', string $extra = '' ) : string Animate
blur ( $element = 'this', $js = '' ) : string Blur
change ( $element = 'this', $js = '' ) : string Change
clear_compile ( ) : void Clear Compile
click ( $element = 'this', $js = '', $ret_false = TRUE ) : string Click
compile ( string $view_var = 'script_foot', boolean $script_tags = TRUE ) : string Compile
dblclick ( $element = 'this', $js = '' ) : string Double Click
error ( $element = 'this', $js = '' ) : string Error
external ( string $external_file = '', boolean $relative = FALSE ) : string External
fadeIn ( $element = 'this', $speed = '', $callback = '' ) : string Fade In
fadeOut ( $element = 'this', $speed = '', $callback = '' ) : string Fade Out
focus ( $element = 'this', $js = '' ) : string Focus
generate_json ( $result = NULL, $match_array_type = FALSE ) : string Generate JSON
hide ( $element = 'this', $speed = '', $callback = '' ) : string Hide
hover ( $element = 'this', $over = '', $out = '' ) : string Hover
inline ( $script, $cdata = TRUE ) : string Inline
keydown ( $element = 'this', $js = '' ) : string Keydown
keyup ( $element = 'this', $js = '' ) : string Keyup
load ( $element = 'this', $js = '' ) : string Load
mousedown ( $element = 'this', $js = '' ) : string Mousedown
mouseout ( $element = 'this', $js = '' ) : string Mouse Out
mouseover ( $element = 'this', $js = '' ) : string Mouse Over
mouseup ( $element = 'this', $js = '' ) : string Mouseup
output ( $js ) : string Output
ready ( string $js ) : string Ready
removeClass ( $element = 'this', $class = '' ) : string Remove Class
resize ( $element = 'this', $js = '' ) : string Resize
scroll ( $element = 'this', $js = '' ) : string Scroll
show ( $element = 'this', $speed = '', $callback = '' ) : string Show
slideDown ( $element = 'this', $speed = '', $callback = '' ) : string Slide Down
slideToggle ( $element = 'this', $speed = '', $callback = '' ) : string Slide Toggle
slideUp ( $element = 'this', $speed = '', $callback = '' ) : string Slide Up
toggle ( $element = 'this' ) : string Toggle
toggleClass ( string $element = 'this', string $class = '' ) : string Toggle Class
unload ( $element = 'this', $js = '' ) : string Unload
update ( $element = 'this', $speed = '', $callback = '' ) : string Update

Protected Methods

Method Description
_close_script ( $extra = " " ) : string Close Script
_is_associative_array ( $arr ) : boolean Is associative array
_open_script ( $src = '' ) : string Open Script
_prep_args ( mixed $result, boolean $is_key = FALSE ) : string Prep Args

Method Details

__construct() public method

Constructor
public __construct ( array $params = [] ) : void
$params array
return void

_close_script() protected method

Outputs an closing
protected _close_script ( $extra = " " ) : string
return string

_is_associative_array() protected method

Checks for an associative array
protected _is_associative_array ( $arr ) : boolean
return boolean

_open_script() protected method

Outputs an opening