Public Member Functions | |
__construct ($params=array()) | |
blur ($element= 'this', $js= '') | |
change ($element= 'this', $js= '') | |
click ($element= 'this', $js= '', $ret_false=TRUE) | |
dblclick ($element= 'this', $js= '') | |
error ($element= 'this', $js= '') | |
focus ($element= 'this', $js= '') | |
hover ($element= 'this', $over, $out) | |
keydown ($element= 'this', $js= '') | |
keyup ($element= 'this', $js= '') | |
load ($element= 'this', $js= '') | |
mousedown ($element= 'this', $js= '') | |
mouseout ($element= 'this', $js= '') | |
mouseover ($element= 'this', $js= '') | |
mouseup ($element= 'this', $js= '') | |
output ($js) | |
ready ($js) | |
resize ($element= 'this', $js= '') | |
scroll ($element= 'this', $js= '') | |
unload ($element= 'this', $js= '') | |
addClass ($element= 'this', $class= '') | |
animate ($element= 'this', $params=array(), $speed= '', $extra= '') | |
fadeIn ($element= 'this', $speed= '', $callback= '') | |
fadeOut ($element= 'this', $speed= '', $callback= '') | |
slideUp ($element= 'this', $speed= '', $callback= '') | |
removeClass ($element= 'this', $class= '') | |
slideDown ($element= 'this', $speed= '', $callback= '') | |
slideToggle ($element= 'this', $speed= '', $callback= '') | |
hide ($element= 'this', $speed= '', $callback= '') | |
toggle ($element= 'this') | |
toggleClass ($element= 'this', $class='') | |
show ($element= 'this', $speed= '', $callback= '') | |
compile ($view_var= 'script_foot', $script_tags=TRUE) | |
clear_compile () | |
external ($external_file= '', $relative=FALSE) | |
inline ($script, $cdata=TRUE) | |
_open_script ($src= '') | |
_close_script ($extra="\n") | |
update ($element= 'this', $speed= '', $callback= '') | |
generate_json ($result=NULL, $match_array_type=FALSE) | |
_is_associative_array ($arr) | |
_prep_args ($result, $is_key=FALSE) | |
Data Fields | |
$_javascript_location = 'js' | |
_close_script | ( | $extra = "\n" ) |
Close Script
Outputs an closing </script>
private
string |
_is_associative_array | ( | $arr) |
Is associative array
Checks for an associative array
public
type |
_open_script | ( | $src = '' ) |
Open Script
Outputs an opening <script>
private
string |
_prep_args | ( | $result, | |
$is_key = FALSE |
|||
) |
Prep Args
Ensures a standard json value and escapes values
public
type |
addClass | ( | $element = 'this' , |
|
$class = '' |
|||
) |
Add Class
Outputs a javascript library addClass event
public
string | - element |
string | - Class to add |
animate | ( | $element = 'this' , |
|
$params = array() , |
|||
$speed = '' , |
|||
$extra = '' |
|||
) |
Animate
Outputs a javascript library animate event
public
string | - element |
string | - One of 'slow', 'normal', 'fast', or time in milliseconds |
string | - Javascript callback function |
blur | ( | $element = 'this' , |
|
$js = '' |
|||
) |
Blur
Outputs a javascript library blur event
public
string | The element to attach the event to |
string | The code to execute |
change | ( | $element = 'this' , |
|
$js = '' |
|||
) |
Change
Outputs a javascript library change event
public
string | The element to attach the event to |
string | The code to execute |
clear_compile | ( | ) |
Clear Compile
Clears any previous javascript collected for output
public
click | ( | $element = 'this' , |
|
$js = '' , |
|||
$ret_false = TRUE |
|||
) |
Click
Outputs a javascript library click event
public
string | The element to attach the event to |
string | The code to execute |
boolean | whether or not to return false |
compile | ( | $view_var = 'script_foot' , |
|
$script_tags = TRUE |
|||
) |
Compile
gather together all script needing to be output
public
string | The element to attach the event to |
dblclick | ( | $element = 'this' , |
|
$js = '' |
|||
) |
Double Click
Outputs a javascript library dblclick event
public
string | The element to attach the event to |
string | The code to execute |
error | ( | $element = 'this' , |
|
$js = '' |
|||
) |
Error
Outputs a javascript library error event
public
string | The element to attach the event to |
string | The code to execute |
external | ( | $external_file = '' , |
|
$relative = FALSE |
|||
) |
External
Outputs a <script> tag with the source as an external js file
public
string | The element to attach the event to |
fadeIn | ( | $element = 'this' , |
|
$speed = '' , |
|||
$callback = '' |
|||
) |
Fade In
Outputs a javascript library hide event
public
string | - element |
string | - One of 'slow', 'normal', 'fast', or time in milliseconds |
string | - Javascript callback function |
fadeOut | ( | $element = 'this' , |
|
$speed = '' , |
|||
$callback = '' |
|||
) |
Fade Out
Outputs a javascript library hide event
public
string | - element |
string | - One of 'slow', 'normal', 'fast', or time in milliseconds |
string | - Javascript callback function |
focus | ( | $element = 'this' , |
|
$js = '' |
|||
) |
Focus
Outputs a javascript library focus event
public
string | The element to attach the event to |
string | The code to execute |
generate_json | ( | $result = NULL , |
|
$match_array_type = FALSE |
|||
) |
Generate JSON
Can be passed a database result or associative array and returns a JSON formatted string
mixed | result set or array |
bool | match array types (defaults to objects) |
hide | ( | $element = 'this' , |
|
$speed = '' , |
|||
$callback = '' |
|||
) |
Hide
Outputs a javascript library hide action
public
string | - element |
string | - One of 'slow', 'normal', 'fast', or time in milliseconds |
string | - Javascript callback function |
hover | ( | $element = 'this' , |
|
$over, | |||
$out | |||
) |
Hover
Outputs a javascript library hover event
public
string | - element |
string | - Javascript code for mouse over |
string | - Javascript code for mouse out |
inline | ( | $script, | |
$cdata = TRUE |
|||
) |
Inline
Outputs a <script> tag
public
string | The element to attach the event to |
boolean | If a CDATA section should be added |
keydown | ( | $element = 'this' , |
|
$js = '' |
|||
) |
Keydown
Outputs a javascript library keydown event
public
string | The element to attach the event to |
string | The code to execute |
keyup | ( | $element = 'this' , |
|
$js = '' |
|||
) |
Keyup
Outputs a javascript library keydown event
public
string | The element to attach the event to |
string | The code to execute |
load | ( | $element = 'this' , |
|
$js = '' |
|||
) |
Load
Outputs a javascript library load event
public
string | The element to attach the event to |
string | The code to execute |
mousedown | ( | $element = 'this' , |
|
$js = '' |
|||
) |
Mousedown
Outputs a javascript library mousedown event
public
string | The element to attach the event to |
string | The code to execute |
mouseout | ( | $element = 'this' , |
|
$js = '' |
|||
) |
Mouse Out
Outputs a javascript library mouseout event
public
string | The element to attach the event to |
string | The code to execute |
mouseover | ( | $element = 'this' , |
|
$js = '' |
|||
) |
Mouse Over
Outputs a javascript library mouseover event
public
string | The element to attach the event to |
string | The code to execute |
mouseup | ( | $element = 'this' , |
|
$js = '' |
|||
) |
Mouseup
Outputs a javascript library mouseup event
public
string | The element to attach the event to |
string | The code to execute |
output | ( | $js) |
Output
Outputs the called javascript to the screen
public
string | The code to output |
ready | ( | $js) |
Ready
Outputs a javascript library mouseup event
public
string | The element to attach the event to |
string | The code to execute |
removeClass | ( | $element = 'this' , |
|
$class = '' |
|||
) |
Remove Class
Outputs a javascript library removeClass event
public
string | - element |
string | - Class to add |
resize | ( | $element = 'this' , |
|
$js = '' |
|||
) |
Resize
Outputs a javascript library resize event
public
string | The element to attach the event to |
string | The code to execute |
scroll | ( | $element = 'this' , |
|
$js = '' |
|||
) |
Scroll
Outputs a javascript library scroll event
public
string | The element to attach the event to |
string | The code to execute |
show | ( | $element = 'this' , |
|
$speed = '' , |
|||
$callback = '' |
|||
) |
Show
Outputs a javascript library show event
public
string | - element |
string | - One of 'slow', 'normal', 'fast', or time in milliseconds |
string | - Javascript callback function |
slideDown | ( | $element = 'this' , |
|
$speed = '' , |
|||
$callback = '' |
|||
) |
Slide Down
Outputs a javascript library slideDown event
public
string | - element |
string | - One of 'slow', 'normal', 'fast', or time in milliseconds |
string | - Javascript callback function |
slideToggle | ( | $element = 'this' , |
|
$speed = '' , |
|||
$callback = '' |
|||
) |
Slide Toggle
Outputs a javascript library slideToggle event
public
string | - element |
string | - One of 'slow', 'normal', 'fast', or time in milliseconds |
string | - Javascript callback function |
slideUp | ( | $element = 'this' , |
|
$speed = '' , |
|||
$callback = '' |
|||
) |
Slide Up
Outputs a javascript library slideUp event
public
string | - element |
string | - One of 'slow', 'normal', 'fast', or time in milliseconds |
string | - Javascript callback function |
toggle | ( | $element = 'this' ) |
Toggle
Outputs a javascript library toggle event
public
string | - element |
toggleClass | ( | $element = 'this' , |
|
$class = '' |
|||
) |
Toggle Class
Outputs a javascript library toggle class event
public
string | - element |
unload | ( | $element = 'this' , |
|
$js = '' |
|||
) |
Unload
Outputs a javascript library unload event
public
string | The element to attach the event to |
string | The code to execute |
update | ( | $element = 'this' , |
|
$speed = '' , |
|||
$callback = '' |
|||
) |
Update
Outputs a javascript library slideDown event
public
string | - element |
string | - One of 'slow', 'normal', 'fast', or time in milliseconds |
string | - Javascript callback function |