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

Inherits PntPagePart.

Inherited by ButtonPart.

Public Member Functions

 __construct ($whole, $requestData, $caption, $script, $ghost=false, $width=null)
 
 setMinLength ($value)
 
 setBaseWidth ($value)
 
 setWidthMultiplier ($value)
 
 setCssClass ($value)
 
 getName ()
 
 printBody ($args=null, $type=null)
 
 printButton ($disabled, $width, $cssClass, $script, $caption, $type, $id)
 
 getButtonClass ($type)
 
- Public Member Functions inherited from PntPagePart
 printBody ()
 
 ajaxPrintUpdates ($preFix='')
 
 getThisPntHandlerName ()
 
 getType ()
 
 getRequestedObject ()
 
 getFormTexts ()
 
 getOwnFormTexts ()
 
 getFootprintId ()
 
 getExcludedMultiValuePropButtonKeys ()
 
- Public Member Functions inherited from PntPage
 getInfoStyle ()
 
 setInfoStyle ($value)
 
 printHeader ()
 
 printFooter ()
 
 printBodyTagIeExtraPiece ()
 
 includeSkin ($name, $param=null)
 
 printSetTitle ($title=null)
 
 getButton ($caption, $script, $ghost=false, $len=null)
 
 handleRequest ()
 
 getPartId ()
 
 ajaxHandleRequest ()
 
 ajaxPrintHeaders ()
 
 ajaxPrintUpdates ($preFix='')
 
 getAjaxUpdatePartIds ()
 
 getAjaxUpdateSubPartIds ($prefix)
 
 ajaxShouldUpdate ($partId, $partName=null, $extraParam=null)
 
 ajaxPrintPartUpdate ($partName, $partId=null, $extraParam=null)
 
 isRequestAjax ()
 
 ajaxPrintPartAttributes ()
 
 getAjaxLoadingMessage ()
 
 initForHandleRequest ()
 
 checkAccess ()
 
 isLayoutReport ()
 
 printHeaders ()
 
 printHeaderXframeOptions ()
 
 getCharset ()
 
 printBody ()
 
 printMainPart ()
 
 printPart ($partName)
 
 imp_printPart ($args)
 
 getPart ($args, $cache=true)
 
 getPartIncludeTryParams ($partName)
 
 getSpecificPartPrefix ($partName=null)
 
 printPartDebugComment ($partName, $debug)
 
 printInformationPart ()
 
 getFilterPartString ()
 
 getButtonsList ()
 
 addMultiValuePropertyButtons (&$buttons)
 
 getExcludedMultiValuePropButtonKeys ()
 
 getMultiValuePropertyButtonScript ($propName, $edit=false)
 
 getThisPntContext ()
 
 getDetailsHref ($appName, $pntType)
 
 getLinkDirFromNav ($nav, $pntHandler='')
 
 getTargetAppName ($nav, $pntHandler='')
 
 getDetailsLinkPntHandler ()
 
 getNoItemsMessage ()
 
 getRequestDuration ()
 
 getConvert ($obj, $path, $kind=0, $preformatAndTab=0)
 
 getInitConverter ($prop)
 
 addContextButtonTo (&$buttons)
 
 doScouting ()
 
 getFootprintId ()
 
 printFootprintJsLiteral ($quote="'")
 
 getPropertyName ()
 
 printNextActionTicket ()
 
 getAndCreateNextActionTicket ()
 
 printExtraHeaders ()
 
 getImagesDir ()
 
- Public Member Functions inherited from PntRequestHandler
 __construct ($whole, $requestData)
 
 getDir ()
 
 getDomainDir ($type=null)
 
 getBaseUrl ()
 
 getConverter ()
 
 getDebugMode ()
 
 initForHandleRequest ()
 
 startSession ()
 
 getContextHref ($footprintId)
 
 getController ()
 
 getScout ()
 
 getGlobalFilters ()
 
 forwardRequest ($requestData, $information=null)
 
 redirectRequest ($requestData, $information=null, $dir=null)
 
 queryStringFrom ($requestData, $param=null)
 
 getRequestParam ($key)
 
 getReqParam ($key, $asHtml=false)
 
 htOut ($aString)
 
 getRequestHandler ($requestData, $dir=null)
 
 tryUseHandlerClass ($handlerClass, &$attempted)
 
 getHandlersTriedString ($attempted)
 
 __toString ()
 
 toString ()
 
 getLabel ()
 
 getName ()
 
 getThisPntHandlerName ()
 
 getInformation ()
 
 getEventualItemNotFoundMessage ()
 
 setInformation ($value)
 
 getTypeLabel ()
 
 getType ()
 
 checkAlphaNumeric ($value)
 
 getTryUseClassTryParams ($className, $dir)
 
 getIncludesDir ()
 
 tryUseClass ($className, $dir)
 
 useClass ($className, $dir)
 
 getTypeClassDescriptor ()
 
 getRequestedObject ()
 
 setRequestedObject ($value)
 
 getFormTexts ()
 
 getFormTextPaths ()
 
 setFormTexts ($value)
 
 getMarkedItemsCollector ()
 

Data Fields

 $caption
 
 $script
 
 $ghost
 
 $width
 
 $minLength = 8
 
 $baseWidth = 24
 
 $widthMultiplier = 6
 
 $cssClass = 'funkyButton'
 
 $buttonName = ''
 

Additional Inherited Members

- Static Public Member Functions inherited from PntPage
static getInfoStyleOk ()
 
static getInfoStyleError ()
 
static getInfoStyleWarning ()
 

Constructor & Destructor Documentation

__construct (   $whole,
  $requestData,
  $caption,
  $script,
  $ghost = false,
  $width = null 
)

Member Function Documentation

getButtonClass (   $type)

override this method to get different css class for different type

getName ( )
printBody (   $args = null,
  $type = null 
)
printButton (   $disabled,
  $width,
  $cssClass,
  $script,
  $caption,
  $type,
  $id 
)

Actually prints the button.

Parameters
$scriptonClick script for the button, caller must take care of proper encoding of eventual literal strings in the script Parameters should not contain HTML as they are converted to html here
setBaseWidth (   $value)
setCssClass (   $value)

Sets the value for the class= in the button tag. will be extended with 'Ghost' if the button is ghosted

setMinLength (   $value)
setWidthMultiplier (   $value)

Field Documentation

$baseWidth = 24
$buttonName = ''
$caption
$cssClass = 'funkyButton'
$ghost
$minLength = 8
$script
$width
$widthMultiplier = 6

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