[ Index ]

PHP Cross Reference of vtigercrm-6.1.0

title

Body

[close]

/vtlib/Vtiger/Utils/ -> StringTemplate.php (summary)

(no description)

File Size: 115 lines (3 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Vtiger_StringTemplate:: (6 methods):
  __construct()
  assign()
  get()
  clear()
  merge()
  __formatAsRegex()


Class: Vtiger_StringTemplate  - X-Ref

Template class will enable you to replace a merge fields defined in the String
with values set dynamically.

__construct()   X-Ref
Constructor


assign($key, $value)   X-Ref
Assign replacement value for the variable.


get($key)   X-Ref
Get replacement value for the variable.


clear($exceptvars=false)   X-Ref
Clear all the assigned variable values.
(except the once in the given list)


merge($instring, $avoidLookup=false)   X-Ref
Merge the given file with variable values assigned.

returns: merged contents
param: $instring input string template
param: $avoidLookup should be true if only verbatim file copy needs to be done

__formatAsRegex($value)   X-Ref
Clean up the input to be used as a regex




Generated: Fri Nov 28 20:08:37 2014 Cross-referenced by PHPXref 0.7.1