Private Method Details |
getField |
|
private void getField( )
|
| |
overwrite this method in your subclass.
|
| Returns |
void |
|
setExplode |
|
private void setExplode( [ mixed $param ] )
|
| |
explode this field into multiple ones?
if used, $param should be a string holding some php code that returns anarray. the string will be evaluated (in a separade scope) using eval(), soescape it as you should, rtfm on that. if a parse error occures on your codeor if it doesn't return an array, it is ignored. you are allowed to accessthe filesystem and databases, but not issueing shell commands in your code.example: (real world example)this is a caption field. but because your app supports different languages,just one string isn't enough. you want one for each supported language.thing is you don't know which languages are used. this information is ina global var:$APP['usedLanguages'] = array('en'=>'english', 'de'=>'deutsch', 'de_du'=>'deutsch du', 'de_si'=>'deutsch sie');so every language used should have it's own caption field.your code for $param then looks like this:$param = "global $APP; return $APP['usedLanguages'];";now for each element in that returned array, one form element is 'exploded'.the name for the form element is the key of the array, the caption is thevalue. for the submitted values, $this->valueReceived will be an array also,in this case a hash, where the key is 'en' for example, and the value is theuser-submitted value. of course this also works with vecors.note: you have 3 possibilities to call this method. one is described above,meaning that you pass some php code. the 2nd is that you pass anarray directly. the 3rd is that you don't use $param. it will thenupdate $_explodeArray from $explodeEval.
|
| Parameter |
|
| mixed |
$param |
= >>NULL<< |
|
(php code as a string, or an array (vector or hash), or nothing.) |
|
| Returns |
void |
| See Also |
$explodeEval, $_explodeArray |
|
getLabel |
|
private string getLabel( [ string $useAccessKey ] )
|
| |
Return the label tag (for the current language).
|
| Parameter |
|
| string |
$useAccessKey |
= >>TRUE<< |
|
if we should 'highlight' the access key in the returned label. default = TRUE. |
|
| Returns |
string the label tag (html) for this field. |
| See Also |
$this, getCaptionForFormOutput() |
|
validateMust |
|
private void validateMust( &$v, &$vLength )
|
| |
must
|
| Parameter |
|
|
&$v |
|
|
Warning: documentation is missing. |
|
|
|
&$vLength |
|
|
Warning: documentation is missing. |
|
| Returns |
void |
|
validateOnlyOneOf |
|
private void validateOnlyOneOf( &$v )
|
| |
onlyOneOf
|
| Parameter |
|
|
&$v |
|
|
Warning: documentation is missing. |
|
| Returns |
void |
|
validateOnlyIf |
|
private void validateOnlyIf( &$v, &$vLength )
|
| |
onlyIf
|
| Parameter |
|
|
&$v |
|
|
Warning: documentation is missing. |
|
|
|
&$vLength |
|
|
Warning: documentation is missing. |
|
| Returns |
void |
|
validateMustStartWith |
|
private void validateMustStartWith( &$v )
|
| |
mustStartWith
|
| Parameter |
|
|
&$v |
|
|
Warning: documentation is missing. |
|
| Returns |
void |
|
validateNotStartWith |
|
private void validateNotStartWith( &$v )
|
| |
notStartWith
|
| Parameter |
|
|
&$v |
|
|
Warning: documentation is missing. |
|
| Returns |
void |
|
validateMustEndWith |
|
private void validateMustEndWith( &$v )
|
| |
mustEndWith
|
| Parameter |
|
|
&$v |
|
|
Warning: documentation is missing. |
|
| Returns |
void |
|
validateNotEndWith |
|
private void validateNotEndWith( &$v )
|
| |
notEndWith
|
| Parameter |
|
|
&$v |
|
|
Warning: documentation is missing. |
|
| Returns |
void |
|
validateMustContain |
|
private void validateMustContain( &$v )
|
| |
mustContain
|
| Parameter |
|
|
&$v |
|
|
Warning: documentation is missing. |
|
| Returns |
void |
|
validateNotContain |
|
private void validateNotContain( &$v )
|
| |
notContain
|
| Parameter |
|
|
&$v |
|
|
Warning: documentation is missing. |
|
| Returns |
void |
|
validateEqualTo |
|
private void validateEqualTo( &$v )
|
| |
equalTo
|
| Parameter |
|
|
&$v |
|
|
Warning: documentation is missing. |
|
| Returns |
void |
|
validateNotEqualTo |
|
private void validateNotEqualTo( &$v )
|
| |
notEqualTo
|
| Parameter |
|
|
&$v |
|
|
Warning: documentation is missing. |
|
| Returns |
void |
|
validateDataType |
|
private void validateDataType( &$v )
|
| |
bsDataType/bsDataInfo
|
| Parameter |
|
|
&$v |
|
|
Warning: documentation is missing. |
|
| Returns |
void |
|
validateRegularExpression |
|
private void validateRegularExpression( &$v )
|
| |
regularExpression
|
| Parameter |
|
|
&$v |
|
|
Warning: documentation is missing. |
|
| Returns |
void |
|
validateAdditionalCheck |
|
private void validateAdditionalCheck( &$v, &$vLength )
|
| |
additionalCheck
|
| Parameter |
|
|
&$v |
|
|
Warning: documentation is missing. |
|
|
|
&$vLength |
|
|
Warning: documentation is missing. |
|
| Returns |
void |
|
_getMaxLength |
|
private int _getMaxLength( )
|
| |
Return a usable maxLength for that field.
|
| Returns |
int a usable maxlength
@throw NULL if we cannot make up a logical value. |
| See Also |
$this, $this |
|
_getTagStringEvents |
|
private string _getTagStringEvents( )
|
| |
returns a string with the events that are set.
example: " onClick=\"javascript:someFunction();\" onMouseOver=\"javascript:someFunction();\""
|
| Returns |
string |
| See Also |
$this |
|
_getTagStringValue |
|
private mixed _getTagStringValue( [ mixed $explodeKey ] )
|
| |
returns the value that will be sent to the client browser.
|
| Parameter |
|
| mixed |
$explodeKey |
= >>NULL<< |
|
(int or string) |
|
| Returns |
mixed (usually string, but may be an array (eg radio fields)) |
| See Also |
getValue() |
|
_getTagStringStyles |
|
private string _getTagStringStyles( )
|
| |
returns a string with the style tags that are set.
example: " class=\"color: blue\" tabindex=\"10\""
|
| Returns |
string |
| See Also |
$this |
|
_getTagStringAdditionalTags |
|
private string _getTagStringAdditionalTags( )
|
| |
returns a string with the additional tags that are set.
example: " value='your value' checked"
|
| Returns |
string |
| See Also |
$this |
|
getCaption |
|
private string getCaption( [ string $useAccessKey, string $lang ] )
|
| |
Return the caption string (for the current language).
overwrites parent method.
Warning: documentation is missing.
|
| Parameter |
|
| string |
$useAccessKey |
= >>TRUE,<< |
|
if we should 'highlight' the access key in the returned caption. default = TRUE. |
|
|
| string |
$lang |
= >>null<< |
|
(default is null. if not given then the lang setting of the form is used.) |
|
| Returns |
string the caption for this field. |
| See Also |
$this, $this, getCaptionForFormOutput() |
|
getCaptionForFormOutput |
|
private string getCaptionForFormOutput( [ string $useAccessKey, string $lang ] )
|
| |
returns the caption string to use in the form output. so expect html here and not plaintext.
|
| Parameter |
|
| string |
$useAccessKey |
= >>TRUE,<< |
|
if we should 'highlight' the access key in the returned caption. default = TRUE. |
|
|
| string |
$lang |
= >>null<< |
|
(default is null. if not given then the lang setting of the form is used.) |
|
| Returns |
string (the caption for this field. usually an html string, not just plaintext.) |
| See Also |
getCaption() |
|
getHelp |
|
private void getHelp( )
|
| |
returns the help text
|
| Returns |
void |
|
_highlightAccessKey |
|
private string _highlightAccessKey( string $string )
|
| |
highlight access key in string and return new string
|
| Parameter |
|
|
| Returns |
string |
| See Also |
getCaption(), _getAccessKey(), getLabel(), $styles |
|
_getAccessKey |
|
private mixed _getAccessKey( [ string $caption ] )
|
| |
returns the access key letter, if any.
|
| Parameter |
|
| string |
$caption |
= >>NULL<< |
|
you may pass the caption here so it doesn't need to be fetched again if it's needed. |
|
| Returns |
mixed string a character, or NULL if none. |
| See Also |
$this |
|
_getFieldNameForHtml |
|
private string _getFieldNameForHtml( string $name )
|
| |
makes the field name html-compatible.
if the field name is for an array like foo['bar'] then foo[bar]will be returned.
|
| Parameter |
|
|
| Returns |
string |
|
_anyIfCase |
|
private bool _anyIfCase( array $myIf )
|
| |
used for mustIf, onlyIf and mustOneOfIf case. that's where the (method) name anyIf comes from.
|
| Parameter |
|
| array |
$myIf |
|
|
(object var mustIf, onlyIf or mustOneOfIf, so look there.) |
|
| Returns |
bool TRUE if it evaluates to TRUE, FALSE otherwise. |
|
_markAsUsed |
|
private void _markAsUsed( )
|
| |
when a field gets used in a form, it is marked as used.
this method is called from the getField() method in each form fieldimplementation. this way it should work with templates.
|
| Returns |
void |
| See Also |
$this |
|
_getBsDataInfoNumber |
|
private array _getBsDataInfoNumber( )
|
| |
returns a 2-dim vector with the min- and max value specified in bsDataInfo.
that applies for number values (bsDatType = 'number').element 1 is the lowest number, element 2 the highest number.if a value is not set, null is used instead.possible return value: array(50, null) (means a min number of 50, no max value.)
|
| Returns |
array (vector with 2 elements, see above) |
|
_evalWrap |
|
private void _evalWrap( $string, string $security, string $suppressErrors, array $params )
|
| |
evaluate code in it's own scope and return what the eval'd code returns.
we have it wrapped here so we are in the scope of this call and thuscan use $this-> things.
|
| Parameter |
|
|
$string |
|
|
Warning: documentation is missing. |
|
|
| string |
$security |
|
|
Warning: documentation is missing. |
|
|
| string |
$suppressErrors |
|
|
Warning: documentation is missing. |
|
|
| array |
$params |
|
|
Warning: documentation is missing. |
|
| Returns |
void |
|
&serialize |
|
private void &serialize( string $encrypt )
|
| |
Warning: documentation is missing.
|
| Parameter |
|
| string |
$encrypt |
|
|
Warning: documentation is missing. |
|
| Returns |
void |
|
unserialize |
|
private void unserialize( &$string, string $decrypt )
|
| |
Warning: documentation is missing.
|
| Parameter |
|
|
&$string |
|
|
Warning: documentation is missing. |
|
|
| string |
$decrypt |
|
|
Warning: documentation is missing. |
|
| Returns |
void |
|
&encrypt |
|
private void &encrypt( $string )
|
| |
Warning: documentation is missing.
|
| Parameter |
|
|
$string |
|
|
Warning: documentation is missing. |
|
| Returns |
void |
|
&decrypt |
|
private void &decrypt( $string )
|
| |
Warning: documentation is missing.
|
| Parameter |
|
|
$string |
|
|
Warning: documentation is missing. |
|
| Returns |
void |
|
initFromPost |
|
private void initFromPost( )
|
| |
Warning: documentation is missing.
|
| Returns |
void |
|