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

Inherited by PntMethodInvocation, and PntNavigation.

Public Member Functions

 getKey ()
 
 setKey ($value)
 
 getLabel ()
 
 getClass ()
 
 evaluate ($item, $extra1=null, $extra2=null, $extra3=null)
 
 getResultType ()
 
 getLastProp ()
 
 __toString ()
 
 toString ()
 
 _evaluate ($item)
 

Static Public Member Functions

static getInstance ($key)
 
static _getInstance ($key)
 

Data Fields

 $key
 

Member Function Documentation

__toString ( )
Returns
String representation for debugging purposes
_evaluate (   $item)
static _getInstance (   $key)
static
evaluate (   $item,
  $extra1 = null,
  $extra2 = null,
  $extra3 = null 
)

calls the func tion mixed $item the parameter of the func tion

Returns
mixed whatever the evaluated func tion returns
Exceptions
whateverthe evaluated function throws
getClass ( )
static getInstance (   $key)
static

get an instance of the proper subclass for evaluation with the specified key

Parameters
keyString the name of the func tion WARNING, do not set the func tion name from untrusted data as that could allow users to call insecure or harmfull func tions
Returns
PntEvaluation
getKey ( )
getLabel ( )
getLastProp ( )
getResultType ( )
setKey (   $value)

Sets the name of the func tion that will be called by ::evaluate

Parameters
string$valuemethod name WARNING, do not set the func tion name from untrusted data as that could allow users to call insecure or harmfull func tions
toString ( )

Field Documentation

$key

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