TextWidget.php #1

  • //
  • guest/
  • perforce_software/
  • chronicle/
  • main/
  • application/
  • widget/
  • forms/
  • TextWidget.php
  • View
  • Commits
  • Open Download .zip Download (1 KB)
<?php
/**
 * This is the text widget configuration form.
 *
 * @copyright   2011 Perforce Software. All rights reserved.
 * @license     Please see LICENSE.txt in top-level folder of this distribution.
 * @version     <release>/<patch>
 */
class Widget_Form_TextWidget extends P4Cms_Form_SubForm
{
    /**
     * Defines the elements that make up the text widget config form.
     * Called automatically when the form object is created.
     */
    public function init()
    {
        $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'
             );
    }
}
# Change User Description Committed
#1 16170 perforce_software Move Chronicle files to follow new path scheme for branching.
//guest/perforce_software/chronicle/application/widget/forms/TextWidget.php
#1 8972 Matt Attaway Initial add of the Chronicle source code