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

Class: Ajax

Source Location: /lib/class/ajax.class.php

Class Overview


Ajax class


Methods



Class Details

[line 27]
Ajax class

This class is specifically for setuping/printing out ajax related elements onto a page it takes care of the observing and all that raz-a-ma-taz




[ Top ]


Class Methods


static method action [line 72]

static void action( $action, $source, [ $post = ''])

action

This takes the action, the source and the post (if passed) and generated the full ajax link




Tags:

access:  public


Parameters:

   $action  
   $source  
   $post  

[ Top ]

static method button [line 101]

static void button( $action, $icon, $alt, [ $source = ''], [ $post = ''], [ $class = ''])

button

This prints out an img of the specified icon with the specified alt text and then sets up the required ajax for it




Tags:

access:  public


Parameters:

   $action  
   $icon  
   $alt  
   $source  
   $post  
   $class  

[ Top ]

static method end_container [line 177]

static void end_container( )

end_container

This ends the container if we're not doing the AJAX thing




Tags:

access:  public


[ Top ]

static method observe [line 43]

static void observe( $source, $method, $action, [ $post = ''])

observe

This returns a string with the correct and full ajax 'observe' stuff from prototype




Tags:

access:  public


Parameters:

   $source  
   $method  
   $action  
   $post  

[ Top ]

static method run [line 152]

static void run( $action)

run

This runs the specified action no questions asked




Tags:

access:  public


Parameters:

   $action  

[ Top ]

static method start_container [line 165]

static void start_container( $name)

start_container

This checks to see if we're AJAX'in if we aren't then it echos out the html needed to start a container that can be replaced by Ajax




Tags:

access:  public


Parameters:

   $name  

[ Top ]

static method text [line 129]

static void text( $action, $text, $source, [ $post = ''], [ $class = ''])

text

This prints out the specified text as a link and setups the required ajax for the link so it works correctly




Tags:

access:  public


Parameters:

   $action  
   $text  
   $source  
   $post  
   $class  

[ Top ]

constructor __construct [line 33]

Ajax __construct( )

constructor

This is what is called when the class is loaded




Tags:

access:  public


[ Top ]


Documentation generated on Thu, 12 Feb 2009 07:59:48 +0900 by phpDocumentor 1.4.2