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

Class: PhpExt_Element

Source Location: /PhpExt/Element.php

Class PhpExt_Element

Class Overview

Base class for all Ext components. All subclasses of Component can automatically participate in the standard Ext component lifecycle of creation, rendering and destruction. They also have automatic support for basic hide/show and enable/disable behavior. All visual widgets that require rendering into a layout should subclass PhpExt_Component (or BoxComponent if managed box model handling is required).

Every component has a specific xtype. This is the list of all valid xtypes:

 xtype            Class
 -------------    ------------------
 box              BoxComponent
 button           Button
 colorpalette     ColorPalette
 component        Component
 container        Container
 cycle            CycleButton
 dataview         DataView
 datepicker       DatePicker
 editor           Editor
 editorgrid       EditorGridPanel
 grid             GridPanel
 paging           PagingToolbar
 panel            Panel
 progress         ProgressBar
 splitbutton      SplitButton
 tabpanel         TabPanel
 treepanel        TreePanel
 viewport         ViewPort
 window           Window

 Toolbar components
 ---------------------------------------
 toolbar          Toolbar

 Form components
 ---------------------------------------
 checkbox         Checkbox
 combo            ComboBox
 datefield        DateField
 field            Field
 fieldset         FieldSet
 form             FormPanel
 hidden           Hidden
 htmleditor       HtmlEditor
 numberfield      NumberField
 radio            Radio
 textarea         TextArea
 textfield        TextField
 timefield        TimeField

Located in /PhpExt/Element.php [line 78]

PhpExt_Object
   |
   --PhpExt_Observable
      |
      --PhpExt_Element

Methods

[ Top ]
Method Summary
static PhpExt_Element   getByDOM()   Static method to retrieve Ext.Element objects.
static PhpExt_Element   getById()   Static method to retrieve Ext.Element objects.
PhpExt_Element   __construct()   ** Overrides ***
void   on()  
void   render()  

[ Top ]
Methods
static method getByDOM  [line 117]

  static PhpExt_Element getByDOM( $domNode, string $id  )

Static method to retrieve Ext.Element objects.

Uses simple caching to consistently return the same object. Automatically fixes if an object was recreated with the same id via AJAX or DOM. To retrieve an element by Id use PhpExt_Element::getById

Parameters:
string   $id:  The DOM node to retrieve
   $domNode: 

API Tags:
Access:  public


[ Top ]
static method getById  [line 101]

  static PhpExt_Element getById( string $id  )

Static method to retrieve Ext.Element objects.

Uses simple caching to consistently return the same object. Automatically fixes if an object was recreated with the same id via AJAX or DOM. To retrieve an element by DOM Node use PhpExt_Element::getByDOM

Parameters:
string   $id:  The id of the node to retrieve

API Tags:
Access:  public


[ Top ]
Constructor __construct  [line 143]

  PhpExt_Element __construct( )

** Overrides ***


API Tags:
Access:  public


Redefinition of:
PhpExt_Observable::__construct()

[ Top ]
on  [line 129]

  void on( $eventName, $handler, [ $scope = null], [ $options = null]  )

Parameters:
   $eventName: 
   $handler: 
   $scope: 
   $options: 

API Tags:
Access:  public


[ Top ]
render  [line 135]

  void render( )


API Tags:
Access:  public


[ Top ]

Documentation generated on Fri, 08 Aug 2008 15:53:12 -0500 by phpDocumentor 1.4.0