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

Class: pnFormDateInput

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

Class Overview

pnFormPlugin
   |
   --pnFormStyledPlugin
      |
      --pnFormTextInput
         |
         --pnFormDateInput

Date input for pnForms


Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 33]
Date input for pnForms

The date input plugin is a text input plugin that only allows dates to be posted. The value returned from pnForm::pnFormGetValues() is although a string of the format 'YYYY-MM-DD' since this is the standard internal Zikula format for dates.

You can also use all of the features from the pnFormTextInput plugin since the date input inherits from it.




[ Top ]


Class Variables

$defaultValue =

[line 56]

Default date value

This parameter enables the input to be pre-filled with the current date or similar other well defined default values. You can set the default value to be one of the following:

  • now: current date and time
  • today: current date
  • monthstart: first day in current month
  • monthend: last day in current month
  • yearstart: first day in the year
  • yearend: last day in the year
  • custom: inital Date



Type:   mixed


[ Top ]

$includeTime =

[line 39]

Enable or disable input of time in addition to the date


Type:   bool


[ Top ]

$initDate =

[line 40]


Type:   mixed


[ Top ]



Class Methods


method create [line 65]

void create( &$render, &$params)



Overrides pnFormTextInput::create() (parent method not documented)

Parameters:

   &$render  
   &$params  

[ Top ]

method formatValue [line 200]

void formatValue( &$render, $value)



Overrides pnFormTextInput::formatValue() (parent method not documented)

Parameters:

   &$render  
   $value  

[ Top ]

method getFilename [line 59]

void getFilename( )



Overrides pnFormTextInput::getFilename() (Get filename for this plugin)

[ Top ]

method parseValue [line 173]

void parseValue( &$render, $text)



Overrides pnFormTextInput::parseValue() (parent method not documented)

Parameters:

   &$render  
   $text  

[ Top ]

method render [line 79]

void render( &$render)



Overrides pnFormTextInput::render() (parent method not documented)

Parameters:

   &$render  

[ Top ]

method validate [line 181]

void validate( &$render)



Overrides pnFormTextInput::validate() (parent method not documented)

Parameters:

   &$render  

[ Top ]


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