Perforce Chronicle 2012.2/486814
API Documentation

Widget_Form_IframeWidget Class Reference

This is the iframe widget configuration form. More...

Inheritance diagram for Widget_Form_IframeWidget:
P4Cms_Form_SubForm

List of all members.

Public Member Functions

 init ()
 Defines the elements that make up the widget config form.

Detailed Description

This is the iframe widget configuration form.

Copyright:
2011-2012 Perforce Software. All rights reserved
License:
Please see LICENSE.txt in top-level folder of this distribution.
Version:
2012.2/486814

Member Function Documentation

Widget_Form_IframeWidget::init ( )

Defines the elements that make up the widget config form.

Called automatically when the form object is created.

    {
        $this->addElement(
            'text',
            'iframeSrc',
            array(
                'label'         => 'URL',
                'required'      => true,
                'description'   => "Source URL for the iframe element",
            )
        );

        $this->addElement(
            'text',
            'iframeWidth',
            array(
                'label'         => 'Width',
            )
        );

        $this->addElement(
            'text',
            'iframeHeight',
            array(
                'label'         => 'Height',
            )
        );

        $this->addElement(
            'select',
            'iframeScroll',
            array(
                'label'         => 'Show Scrollbars',
                'multiOptions'  => array(
                    'auto'  => 'Automatically',
                    'yes'   => 'Always',
                    'no'    => 'Never'
                )
            )
        );
    }

The documentation for this class was generated from the following file: