Class: I2CE Module FieldLimits (Development)

From IHRIS Wiki


This article describes the class I2CE_Module_FieldLimits .

I2CE_Module_FormRelationship

Variables

$dateTypes

$dateActions

$dateOperatorMaps

$menudata

Methods

DATE_between_checkLimit()

DATE_between_checkLimitString()

DATE_between_generateLimit()

DATE_between_getLimitMenu()

DATE_between_processLimitMenu()

DISPLAY_generic()

Generic (internal fuzzy method for) display menu for a limit style Generic (internal fuzzy method for) processing menu for a particular limit style

PROCESS_generic()

Generic (internal fuzzy method for) processing menu for a particular limit style @param array $params are the calling parameters. 0=>array $vals the values we are processing. 1=>string $reportformfield which defaults to null. in the case of null, we except keys of the form $limit_field in the case of non-null, we expect $reportformfield to be of the form "$reportform+$field" and then the keys are of the form "limit_value_FORM_{$reportform}_FIELD_{$field}_LIMIT_{$style}_VALUE_{$field}"; 2=>boolean $strict. which defaults to true. if true we check that the key is in $vals and if not, return error.

  • Defined in i2ce/modules/Forms/modules/FieldLimits/lib/I2CE_Module_FieldLimits.php on line 683
  • Signature: protected function PROCESS_generic($style,$fieldObj,$vals,$strict)
  • Parameters:
    • string $style
      The style
    • I2CE_FormField $fieldObj
      the object the fuzzy method was called on
    • $vals
      • Default Value: array()
    • $strict
      • Default Value: true
  • Returns: mixed.
    false on failure. on sucess an array of relevant values for this limit style. The keys are the short version of the keys e.g. 'max' instead of 'limit_value_FORM_person_FIELD_password_LIMIT_between'

__call()

_hasMethod()

addDateTimeElements()

checkDateFromVals()

checkDateLimit()

checkDateLimitString()

checkLimitString_BOOL_false()

checkLimitString_BOOL_true()

checkLimitString_BOOL_truefalse()

checkLimitString_DB_DATE_not_null()

checkLimitString_DB_DATE_null()

checkLimitString_DB_DATE_null_not_null()

checkLimitString_DB_FLOAT_between()

checkLimitString_DB_FLOAT_greaterthan()

checkLimitString_DB_FLOAT_greaterthan_equals()

checkLimitString_DB_FLOAT_in()

checkLimitString_DB_FLOAT_lessthan()

checkLimitString_DB_INT_between()

checkLimitString_DB_INT_greaterthan()

checkLimitString_DB_INT_greaterthan_equals()

checkLimitString_DB_INT_in()

checkLimitString_DB_INT_lessthan()

checkLimitString_DB_STRING_between()

checkLimitString_DB_STRING_contains()

checkLimitString_DB_STRING_equals()

checkLimitString_DB_STRING_greaterthan()

checkLimitString_DB_STRING_greaterthan_equals()

checkLimitString_DB_STRING_in()

checkLimitString_DB_STRING_lessthan()

checkLimitString_DB_STRING_like()

checkLimitString_DB_STRING_lowerequals()

checkLimitString_DB_STRING_lowerlike()

checkLimitString_DB_STRING_startswith()

checkLimitString_DB_TEXT_between()

checkLimitString_DB_TEXT_contains()

checkLimitString_DB_TEXT_equals()

checkLimitString_DB_TEXT_greaterthan()

checkLimitString_DB_TEXT_greaterthan_equals()

checkLimitString_DB_TEXT_in()

checkLimitString_DB_TEXT_lessthan()

checkLimitString_DB_TEXT_lessthan_equals()

checkLimitString_DB_TEXT_like()

checkLimitString_DB_TEXT_lowerequals()

checkLimitString_DB_TEXT_lowerlike()

checkLimitString_DB_TEXT_startswith()

checkLimitString_MAP_MULT_equals()

checkLimitString_MAP_MULT_in()

checkLimitString_MAP_within()

checkLimitString_YESNO_no()

checkLimitString_YESNO_yes()

checkLimitString_YESNO_yesno()

checkLimitString_greaterthan_equals_now()

checkLimitString_greaterthan_now()

checkLimitString_lessthan_equals_now()

checkLimitString_lessthan_now()

checkLimitString_not_null()

checkLimitString_null()

checkLimitString_null_not_null()

checkLimit_BOOL_false()

checkLimit_BOOL_true()

checkLimit_BOOL_truefalse()

checkLimit_DB_DATE_in()

checkLimit_DB_DATE_not_null()

checkLimit_DB_DATE_null()

checkLimit_DB_DATE_null_not_null()

checkLimit_DB_FLOAT_between()

checkLimit_DB_FLOAT_equals()

checkLimit_DB_FLOAT_greaterthan()

checkLimit_DB_FLOAT_greaterthan_equals()

checkLimit_DB_FLOAT_in()

checkLimit_DB_FLOAT_lessthan()

checkLimit_DB_FLOAT_lessthan_equals()

checkLimit_DB_INT_between()

checkLimit_DB_INT_equals()

checkLimit_DB_INT_greaterthan()

checkLimit_DB_INT_greaterthan_equals()

checkLimit_DB_INT_in()

checkLimit_DB_INT_lessthan()

checkLimit_DB_INT_lessthan_equals()

checkLimit_DB_STRING_between()

checkLimit_DB_STRING_contains()

checkLimit_DB_STRING_equals()

checkLimit_DB_STRING_greaterthan()

checkLimit_DB_STRING_greaterthan_equals()

checkLimit_DB_STRING_in()

checkLimit_DB_STRING_lessthan()

checkLimit_DB_STRING_lessthan_equals()

checkLimit_DB_STRING_like()

checkLimit_DB_STRING_lowerequals()

checkLimit_DB_STRING_lowerlike()

checkLimit_DB_STRING_startswith()

checkLimit_DB_TEXT_between()

checkLimit_DB_TEXT_contains()

checkLimit_DB_TEXT_equals()

checkLimit_DB_TEXT_greaterthan()

checkLimit_DB_TEXT_greaterthan_equals()

checkLimit_DB_TEXT_in()

checkLimit_DB_TEXT_lessthan()

checkLimit_DB_TEXT_lessthan_equals()

checkLimit_DB_TEXT_like()

checkLimit_DB_TEXT_lowerequals()

checkLimit_DB_TEXT_lowerlike()

checkLimit_DB_TEXT_startswith()

checkLimit_MAP_MULT_equals()

checkLimit_MAP_MULT_in()

checkLimit_MAP_within()

checkLimit_YESNO_no()

checkLimit_YESNO_yes()

checkLimit_YESNO_yesno()

checkLimit_greaterthan_equals_now()

checkLimit_greaterthan_now()

checkLimit_lessthan_equals_now()

checkLimit_lessthan_now()

checkLimit_not_null()

checkLimit_null()

checkLimit_null_not_null()

checkeLimitString_DB_DATE_in()

createLimitString_DB_FLOAT_equals()

createLimitString_DB_INT_equals()

describeFieldLimit()

Get the description for the given style and data.

generateDateLimit()

generateDateNowLimit()

generateFieldLimit()

Generates a limit expression for a field based on limit data

  • Defined in i2ce/modules/Forms/modules/FieldLimits/lib/I2CE_Module_FieldLimits.php on line 1050
  • Signature: public function generateFieldLimit($fieldObj,$limit_data,$ref,$parent_ref)
  • Parameters:
    • I2CE_FormField $fieldObj
    • mixed $limit_data
    • callback $ref
      A callback function whose first arguement is the form, the second arguements is the field and which returns the way the field value should be references as a field. If the callback is null (the default) then the reference used is "$form+$field"
    • string $parent_ref
      Defaults to null. If not null, it is the referent to the parent id of the form
      • Default Value: null
  • Returns: string
    SQL statement false on failure

generateLimit_BOOL_false()

generateLimit_BOOL_true()

generateLimit_BOOL_truefalse()

generateLimit_DB_DATE_in()

generateLimit_DB_DATE_not_null()

generateLimit_DB_DATE_null()

generateLimit_DB_DATE_null_not_null()

generateLimit_DB_FLOAT_between()

generateLimit_DB_FLOAT_equals()

generateLimit_DB_FLOAT_greaterthan()

generateLimit_DB_FLOAT_greaterthan_equals()

generateLimit_DB_FLOAT_in()

generateLimit_DB_FLOAT_lessthan()

generateLimit_DB_FLOAT_lessthan_equals()

generateLimit_DB_INT_between()

generateLimit_DB_INT_equals()

generateLimit_DB_INT_greaterthan()

generateLimit_DB_INT_greaterthan_equals()

generateLimit_DB_INT_in()

generateLimit_DB_INT_lessthan()

generateLimit_DB_INT_lessthan_equals()

generateLimit_DB_STRING_between()

generateLimit_DB_STRING_contains()

generateLimit_DB_STRING_equals()

generateLimit_DB_STRING_greaterthan()

generateLimit_DB_STRING_greaterthan_equals()

generateLimit_DB_STRING_in()

generateLimit_DB_STRING_lessthan()

generateLimit_DB_STRING_lessthan_equals()

generateLimit_DB_STRING_like()

generateLimit_DB_STRING_lowerequals()

generateLimit_DB_STRING_lowerlike()

generateLimit_DB_STRING_startswith()

generateLimit_DB_TEXT_between()

generateLimit_DB_TEXT_contains()

generateLimit_DB_TEXT_equals()

generateLimit_DB_TEXT_greaterthan()

generateLimit_DB_TEXT_greaterthan_equals()

generateLimit_DB_TEXT_in()

generateLimit_DB_TEXT_lessthan()

generateLimit_DB_TEXT_lessthan_equals()

generateLimit_DB_TEXT_like()

generateLimit_DB_TEXT_lowerequals()

generateLimit_DB_TEXT_lowerlike()

generateLimit_DB_TEXT_startswith()

generateLimit_MAP_MULT_equals()

generateLimit_MAP_MULT_in()

generateLimit_MAP_within()

generateLimit_YESNO_no()

generateLimit_YESNO_yes()

generateLimit_YESNO_yesno()

generateLimit_greaterthan_equals_now()

generateLimit_greaterthan_now()

generateLimit_lessthan_equals_now()

generateLimit_lessthan_now()

generateLimit_max_parent()

generateLimit_max_parent_form()

generateLimit_min_parent()

generateLimit_min_parent_form()

generateLimit_not_null()

generateLimit_null()

generateLimit_null_not_null()

getDateLimitMenu()

getFieldDisplay()

Get the description for the field limit.

getFieldLimitStyles()

Get the limit styles available for the given field object

getMethods()

The 'fuzzy' methods that this module implements.

processDateLimitMenu()

Inherited Methods

__construct()

This public method is inherited from I2CE_Module->__construct()

action_configure()

This public method is inherited from I2CE_Module->action_configure()

action_disable()

This public method is inherited from I2CE_Module->action_disable()

action_enable()

This public method is inherited from I2CE_Module->action_enable()

action_initialize()

This public method is inherited from I2CE_Module->action_initialize()

getCLIMethods()

This public method is inherited from I2CE_Module->getCLIMethods()

getConfig()

This public method is inherited from I2CE_Module->getConfig()

getHooks()

This public method is inherited from I2CE_Module->getHooks()

post_update()

This public method is inherited from I2CE_Module->post_update()

pre_upgrade()

This public method is inherited from I2CE_Module->pre_upgrade()

upgrade()

This public method is inherited from I2CE_Module->upgrade()

Inherited Fuzzy Methods

launchBackgroundProcess()

This method is inherited from I2CE_Module->launchBackgroundProcess()

launchBackgroundPHPScript()

This method is inherited from I2CE_Module->launchBackgroundPHPScript()

launchBackgroundPage()

This method is inherited from I2CE_Module->launchBackgroundPage()

userMessage()

This method is inherited from I2CE_Fuzzy->userMessage()