Class WFYAHOO_widget_PhocoaDialog

Description

A PHOCOA-custom YUI container for doing AJAX forms via WFModuleView.

The YUI "Dialog" container is not suitable for use with existing forms (having their own buttons) or content that contains multiple forms. It also hides the panel as soon as the form is submitted.

This Container widget works like so:

  • Any forms inside the widget will automatically be submitted via XHR
  • If your callback determines that the result is an error, simply set "isError" and the container will automatically be updated with the result as HTML.
  • PhocoaDialog also inherently supports the use of a WFModuleView as the source for the block. Simply add a WFModuleView as a child.
PHOCOA Builder Setup:

Required:

Optional:
deferModuleViewLoading - boolean - True to defer loading of the WFModuleView content until the module is shown, false to load immediately. Default true. cacheModuleView - boolean - True to locally cache the result of the WFModuleView, false to re-load it every time the module is shown. Default false.

Located in /framework/widgets/yahoo/WFYAHOO_widget_PhocoaDialog.php (line 31)

WFObject
   |
   --WFView
      |
      --WFWidget
         |
         --WFYAHOO
            |
            --WFYAHOO_widget_Module
               |
               --WFYAHOO_widget_Overlay
                  |
                  --WFYAHOO_widget_Panel
                     |
                     --WFYAHOO_widget_PhocoaDialog
Variable Summary
Method Summary
static void exposedProperties ()
WFYAHOO_widget_PhocoaDialog __construct ( $id,  $page)
void addChild (WFView $view)
void initJS ( $blockContent)
void render ([ $blockContent = NULL])
void setCacheModuleView ( $b)
Variables
Methods
static method exposedProperties (line 60)
  • access: public
static void exposedProperties ()

Redefinition of:
WFYAHOO_widget_Panel::exposedProperties()
Constructor __construct (line 40)

Constructor.

WFYAHOO_widget_PhocoaDialog __construct ( $id,  $page)
  • $id
  • $page

Redefinition of:
WFYAHOO_widget_Panel::__construct()
Constructor.
addChild (line 84)

To implement our automatic WFModuleView support, we need to detect when a child object of type WFModuleView is added.

void addChild (WFView $view)

Redefinition of:
WFView::addChild()
Add a child view to this view.
canPushValueBinding (line 137)
void canPushValueBinding ()

Redefinition of:
WFYAHOO_widget_Panel::canPushValueBinding()
initJS (line 116)
void initJS ( $blockContent)
  • $blockContent

Redefinition of:
WFYAHOO_widget_Panel::initJS()
render (line 97)
void render ([ $blockContent = NULL])
  • $blockContent

Redefinition of:
WFYAHOO_widget_Panel::render()
setCacheModuleView (line 69)
  • access: public
void setCacheModuleView ( $b)
  • $b
setDeferModuleViewLoading (line 74)
  • access: public
void setDeferModuleViewLoading ( $b)
  • $b

Inherited Methods

Inherited From WFYAHOO_widget_Panel

WFYAHOO_widget_Panel::__construct()
WFYAHOO_widget_Panel::canPushValueBinding()
WFYAHOO_widget_Panel::exposedProperties()
WFYAHOO_widget_Panel::initJS()
WFYAHOO_widget_Panel::render()
WFYAHOO_widget_Panel::setClose()
WFYAHOO_widget_Panel::setDraggable()
WFYAHOO_widget_Panel::setModal()

Inherited From WFYAHOO_widget_Overlay

WFYAHOO_widget_Overlay::__construct()
WFYAHOO_widget_Overlay::canPushValueBinding()
WFYAHOO_widget_Overlay::exposedProperties()
WFYAHOO_widget_Overlay::initJS()
WFYAHOO_widget_Overlay::render()
WFYAHOO_widget_Overlay::setContext()
WFYAHOO_widget_Overlay::setFixedCenter()
WFYAHOO_widget_Overlay::setHeight()
WFYAHOO_widget_Overlay::setIFrame()
WFYAHOO_widget_Overlay::setWidth()
WFYAHOO_widget_Overlay::setX()
WFYAHOO_widget_Overlay::setXY()
WFYAHOO_widget_Overlay::setY()
WFYAHOO_widget_Overlay::setZIndex()

Inherited From WFYAHOO_widget_Module

WFYAHOO_widget_Module::__construct()
WFYAHOO_widget_Module::addEffect()
WFYAHOO_widget_Module::canPushValueBinding()
WFYAHOO_widget_Module::exposedProperties()
WFYAHOO_widget_Module::initJS()
WFYAHOO_widget_Module::render()
WFYAHOO_widget_Module::setBody()
WFYAHOO_widget_Module::setFooter()
WFYAHOO_widget_Module::setHeader()
WFYAHOO_widget_Module::setupExposedBindings()
WFYAHOO_widget_Module::setVisible()

Inherited From WFYAHOO

WFYAHOO::__construct()
WFYAHOO::canPushValueBinding()
WFYAHOO::initJS()
WFYAHOO::jsForSimplePropertyConfig()
WFYAHOO::jsValueForValue()
WFYAHOO::render()
WFYAHOO::yuiloader()

Inherited From WFWidget

WFWidget::__construct()
WFWidget::addError()
WFWidget::bind()
WFWidget::bindingByName()
WFWidget::bindings()
WFWidget::canPushValueBinding()
WFWidget::errors()
WFWidget::exposedBindings()
WFWidget::exposedProperties()
WFWidget::formattedValue()
WFWidget::formatter()
WFWidget::hasRestoredState()
WFWidget::hidden()
WFWidget::name()
WFWidget::processBindingOptions()
WFWidget::propagateValueToBinding()
WFWidget::pullBindings()
WFWidget::pushBindings()
WFWidget::restoreState()
WFWidget::setFormatter()
WFWidget::setHidden()
WFWidget::setName()
WFWidget::setupExposedBindings()
WFWidget::setValue()
WFWidget::setWidgetLabel()
WFWidget::unbind()
WFWidget::value()
WFWidget::valueForBinding()
WFWidget::widgetLabel()

Inherited From WFView

WFView::__construct()
WFView::addChild()
WFView::allConfigFinishedLoading()
WFView::children()
WFView::cloneWithID()
WFView::enabled()
WFView::exposedProperties()
WFView::getForm()
WFView::getJSActions()
WFView::getListenerJS()
WFView::getListenerJSInScriptTag()
WFView::getOnEvent()
WFView::getWidgetDir()
WFView::getWidgetWWWDir()
WFView::id()
WFView::importCSS()
WFView::importJS()
WFView::jsEndHTML()
WFView::jsStartHTML()
WFView::page()
WFView::parent()
WFView::removeChild()
WFView::render()
WFView::setEnabled()
WFView::setId()
WFView::setJSonBlur()
WFView::setJSonClick()
WFView::setListener()
WFView::setOnEvent()
WFView::setParent()
WFView::yuiPath()

Inherited From WFObject

WFObject::__construct()
WFObject::exposedProperties()
WFObject::getClass()
WFObject::keyPathToTargetAndKey()
WFObject::setValueForKey()
WFObject::setValueForKeyPath()
WFObject::validateValueForKey()
WFObject::validateValueForKeyPath()
WFObject::valueForKey()
WFObject::valueForKeyPath()
WFObject::valueForUndefinedKey()
WFObject::__toString()

Documentation generated on Sun, 28 Sep 2008 18:26:02 -0400 by phpDocumentor 1.4.1