PHPonTrax
[ class tree: PHPonTrax ] [ index: PHPonTrax ] [ all elements ]

Class: JavaScriptHelper

Source Location: /vendor/trax/action_view/helpers/javascript_helper.php

Class Overview

Helpers
   |
   --JavaScriptHelper



Author(s):

Methods


Inherited Variables

Inherited Methods

Class: Helpers

Helpers::__construct()
Construct a Helpers object
Helpers::boolean_attribute()
Convert an attribute to proper XML boolean form
Helpers::cdata_section()
Wrap CDATA begin and end tags around argument
Helpers::content_tag()
Generate an open/close pair of tags with optional attributes and content between
Helpers::convert_options()
Convert selected attributes to proper XML boolean form
Helpers::error_wrapping()
If this tag has an error, wrap it with a visual indicator
Helpers::object()
Given the name of an ActiveRecord subclass, find an instance
Helpers::tag()
Generate an HTML or XML tag with optional attributes and self-ending
Helpers::tag_options()
Convert array of tag attribute names and values to string
Helpers::to_content_tag()
Helpers::value()
Get value of current attribute in the current ActiveRecord object

Class Details

[line 35]


Tags:

todo:  Document this class


[ Top ]


Class Methods


constructor __construct [line 41]

JavaScriptHelper __construct( )



Overrides Helpers::__construct() (Construct a Helpers object)

[ Top ]

method array_or_string_for_javascript [line 58]

void array_or_string_for_javascript( $option)



Tags:

access:  private


Parameters:

   $option  

[ Top ]

method build_callbacks [line 109]

void build_callbacks( $options)



Tags:

access:  private


Parameters:

   $options  

[ Top ]

method build_observer [line 92]

void build_observer( $klass, $name, [ $options = array()])



Tags:

access:  private


Parameters:

   $klass  
   $name  
   $options  

[ Top ]

method define_javascript_functions [line 412]

void define_javascript_functions( )



[ Top ]

method draggable_element [line 546]

void draggable_element( $element_id, [ $options = array()])



Parameters:

   $element_id  
   $options  

[ Top ]

method drop_receiving_element [line 562]

void drop_receiving_element( $element_id, [ $options = array()])



Parameters:

   $element_id  
   $options  

[ Top ]

method escape_javascript [line 580]

void escape_javascript( $javascript)



Parameters:

   $javascript  

[ Top ]

method evaluate_remote_response [line 353]

void evaluate_remote_response( )



[ Top ]

method form_remote_tag [line 255]

void form_remote_tag( [ $options = array()])



Parameters:

   $options  

[ Top ]

method javascript_cdata_section [line 600]

void javascript_cdata_section( $content)



Parameters:

   $content  

[ Top ]

method javascript_tag [line 596]

void javascript_tag( $content)



Parameters:

   $content  

[ Top ]

method link_to_function [line 141]

void link_to_function( $name, $function, [ $html_options = array()])



Parameters:

   $name  
   $function  
   $html_options  

[ Top ]

method link_to_remote [line 231]

void link_to_remote( $name, [ $options = array()], [ $html_options = array()])



Parameters:

   $name  
   $options  
   $html_options  

[ Top ]

method method_option_to_s [line 88]

void method_option_to_s( $method)



Tags:

access:  private


Parameters:

   $method  

[ Top ]

method observe_field [line 450]

void observe_field( $field_id, [ $options = array()])



Parameters:

   $field_id  
   $options  

[ Top ]

method observe_form [line 462]

void observe_form( $form_id, [ $options = array()])



Parameters:

   $form_id  
   $options  

[ Top ]

method options_for_ajax [line 67]

void options_for_ajax( $options)



Tags:

access:  private


Parameters:

   $options  

[ Top ]

method options_for_javascript [line 49]

void options_for_javascript( $options)



Tags:

access:  protected


Parameters:

   $options  

[ Top ]

method periodically_call_remote [line 238]

void periodically_call_remote( [ $options = array()])



Parameters:

   $options  

[ Top ]

method remote_function [line 368]

void remote_function( $options)



Parameters:

   $options  

[ Top ]

method remove_ajax_options [line 120]

void remove_ajax_options( $options)



Tags:

access:  private


Parameters:

   $options  

[ Top ]

method sortable_element [line 514]

void sortable_element( $element_id, [ $options = array()])



Parameters:

   $element_id  
   $options  

[ Top ]

method submit_to_remote [line 274]

void submit_to_remote( $name, $value, [ $options = array()])



Parameters:

   $name  
   $value  
   $options  

[ Top ]

method update_element_function [line 325]

void update_element_function( $element_id, [ $options = array()], [ $block = null])



Parameters:

   $element_id  
   $options  
   $block  

[ Top ]

method visual_effect [line 490]

void visual_effect( $name, [ $element_id = false], [ $js_options = array()])



Parameters:

   $name  
   $element_id  
   $js_options  

[ Top ]


Documentation generated on Mon, 21 May 2007 22:28:43 -0600 by phpDocumentor 1.3.2