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

Class: pnFormStyledPlugin

Source Location: /includes/pnForm.php

Class Overview

pnFormPlugin
   |
   --pnFormStyledPlugin

Base plugin class for plugins that uses CSS styling


Variables

Methods


Child classes:

pnFormContextMenu
Context menu plugin
pnFormButton
Button
pnFormCheckbox
Check box plugin
pnFormLabel
Web form label
pnFormLinkButton
LinkButton
pnFormRadioButton
Radiobutton plugin
pnFormTextInput
TextInput plugin for pnForms
pnFormUploadInput
pnFormUploadInput
pnFormBaseListSelector
Zikula Application Framework

Inherited Variables

Inherited Methods

Class: pnFormPlugin

pnFormPlugin::pnFormPlugin()
Constructor
pnFormPlugin::create()
Create event handler
pnFormPlugin::dataBound()
DataBound event handler
pnFormPlugin::decode()
Decode event handler
pnFormPlugin::decodePostBackEvent()
Decode event handler for actions that generate a postback event
pnFormPlugin::getIdHtml()
Utility function to generate HTML for ID attribute
pnFormPlugin::initialize()
Initialize event handler
pnFormPlugin::load()
Load event handler
pnFormPlugin::postRender()
PostRender event handler
pnFormPlugin::readParameters()
Read Smarty plugin parameters
pnFormPlugin::registerPlugin()
pnFormPlugin::render()
Render event handler
pnFormPlugin::renderAttributes()
pnFormPlugin::renderBegin()
RenderBegin event handler
pnFormPlugin::renderContent()
RenderContent event handler
pnFormPlugin::renderEnd()
RenderEnd event handler

Class Details

[line 1565]
Base plugin class for plugins that uses CSS styling

This plugin adds attributes like "color", "back_groundcolor" and "font_weight" to plugins that extends it. The extending plugin must call pnFormPlugin::renderAttributes() to use the added CSS features. See also pnFormTextInput for an example implementation.

The support CSS styles are listed in the $styleElements array. Please use this as a reference. Underscores are converted to hyphens in the resulting output to match the correct CSS styles. When you need to use unsupported CSS styles then just write them directly in the style parameter of the plugin:

  1.  <!--[pnformtextinput id="title" maxLength="100" width="30em" style="border-left: 1px solid red;"]-->

You can also add styling in the code by adding key/value pairs to $styleAttributes. Example:

  1.  $this->styleAttributes['border-right''1px solid green';




[ Top ]


Class Variables

$styleAttributes = array()

[line 1572]

Styles added programatically


Type:   array


[ Top ]



Class Methods


method renderAttributes [line 1575]

void renderAttributes( &$render)



Overrides pnFormPlugin::renderAttributes() (parent method not documented)

Parameters:

   &$render  

[ Top ]


Documentation generated on Fri, 18 Jul 2008 21:52:57 +0200 by phpDocumentor 1.4.1