phpPeanuts  2.2.0
phpPeanuts framework
 All Data Structures Namespaces Files Functions Variables
Public Member Functions | Data Fields
PntWidgetFactory Class Reference

Inherited by WidgetFactory.

Public Member Functions

 __construct ($page)
 
 getFormWidget ($itemType, $path, $contentLabel, $formKey=null)
 
 getDetailsFormWidget ($text)
 
 getCustomWidget ($text)
 
 getCustomWebsiteWidget ($text)
 
 getCustomUrlWidget ($text)
 
 isPasswordWidget ($text)
 
 getAndIncludeWidget ($text, $class)
 
 getCheckboxWidget ($text)
 
 getDateWidget ($text)
 
 getPasswordWidget ($text)
 
 getTextWidget ($text)
 
 getHtmlWidget ($text)
 
 getAdvancedHtmlWidget ($text)
 
 getTextAreaWidget ($text)
 
 getSelectWidget ($text)
 
 getRadioWidget ($text)
 
 getDialogWidget ($text)
 
 getMtoNDialogWidget ($text)
 
 getShortlistDialogWidget ($text)
 
 getRequestedObject ()
 
 getTextAreaTreshold ()
 
 setTextAreaTreshold ($value)
 
 getDialogTreshold ()
 
 setDialogTreshold ($value)
 
 __toString ()
 

Data Fields

 $textAreaTreshold = 120
 
 $dialogTreshold = 30
 
 $widgetDir = 'widgets'
 

Constructor & Destructor Documentation

__construct (   $page)

Member Function Documentation

__toString ( )
getAdvancedHtmlWidget (   $text)
getAndIncludeWidget (   $text,
  $class 
)

WARNING: Do not call this method with class name from unrusted data

getCheckboxWidget (   $text)
getCustomUrlWidget (   $text)
getCustomWebsiteWidget (   $text)
getCustomWidget (   $text)
getDateWidget (   $text)
getDetailsFormWidget (   $text)

PntReflectionError if text holds invalid path for the itemType

! do not set the ShortlistPath if you do not have the ShortlistDialogWidget installed!

getDialogTreshold ( )
getDialogWidget (   $text)
getFormWidget (   $itemType,
  $path,
  $contentLabel,
  $formKey = null 
)
Parameters
string$itemTypename of the (super) class of the item, must already be checkedAlphaNumeric
string$pathUNTRUSTED to the property edited by the widget
string$contentLabelUNTRUSTED human readable representation of the value in the request
string$formKeyname of the widget in the form PntReflectionError if text holds invalid $path for $itemType
getHtmlWidget (   $text)
getMtoNDialogWidget (   $text)
getPasswordWidget (   $text)
getRadioWidget (   $text)
getRequestedObject ( )
getSelectWidget (   $text)
getShortlistDialogWidget (   $text)
getTextAreaTreshold ( )
getTextAreaWidget (   $text)
getTextWidget (   $text)
isPasswordWidget (   $text)
setDialogTreshold (   $value)
setTextAreaTreshold (   $value)

Field Documentation

$dialogTreshold = 30
$textAreaTreshold = 120
$widgetDir = 'widgets'

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