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

Class: pnFormLabel

Source Location: /system/pnForm/plugins/function.pnformlabel.php

Class Overview

pnFormPlugin
   |
   --pnFormStyledPlugin
      |
      --pnFormLabel

Web form label


Variables

Methods


Inherited Variables

Inherited Methods

Class: pnFormStyledPlugin

pnFormStyledPlugin::renderAttributes()

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 29]
Web form label

Use this to create labels for your input fields in a web form. Example:

  1.    <!--[pnformlabel text="Title" for="title"]-->:
  2.    <!--[pnformtextinput id="title"]-->
The rendered output is an HTML label element with the "for" value set to the supplied id. In addition to this, the pnFormLabel plugin also sets "myLabel" on the "pointed-to" plugin to the supplied label text. This enables the validation summary to display the label text.




[ Top ]


Class Variables

$cssClass =

[line 53]

CSS class to use


Type:   string


[ Top ]

$for =

[line 47]

Labelled plugin's ID


Type:   string


[ Top ]

$html =

[line 41]

Allow HTML in label? 1=yes, otherwise no


Type:   int


[ Top ]

$text =

[line 35]

Text to show as label


Type:   string


[ Top ]



Class Methods


method create [line 62]

void create( &$render, &$params)



Overrides pnFormPlugin::create() (Create event handler)

Parameters:

   &$render  
   &$params  

[ Top ]

method getFilename [line 56]

void getFilename( )



[ Top ]

method postRender [line 86]

void postRender( &$render)



Overrides pnFormPlugin::postRender() (PostRender event handler)

Parameters:

   &$render  

[ Top ]

method render [line 67]

void render( &$render)



Overrides pnFormPlugin::render() (Render event handler)

Parameters:

   &$render  

[ Top ]


Documentation generated on Fri, 18 Jul 2008 21:45:54 +0200 by phpDocumentor 1.4.1