Perforce Chronicle 2012.2/486814
API Documentation

Widget_Form_TextWidget Class Reference

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

Inheritance diagram for Widget_Form_TextWidget:
P4Cms_Form_SubForm

List of all members.

Public Member Functions

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

Detailed Description

This is the text 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_TextWidget::init ( )

Defines the elements that make up the text widget config form.

Called automatically when the form object is created.

    {
        $this->addElement(
            'editor',
            'text',
            array(
                'label'         => 'Text',
                'required'      => true,
                'description'   => "Enter the text to display.",
                'attribs'       => array(
                    "height"    => 200
                )
            )
        );
        $this->getElement('text')
             ->getDecorator('label')
             ->setOption(
                'helpUri',
                Zend_Controller_Front::getInstance()->getBaseUrl()
                . '/' . Ui_Controller_Helper_HelpUrl::HELP_BASE_URL . '/'
                . 'widgets.macros.html'
             );
    }

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