| Methods |
public
|
addAsJSVar()
Add FrontFile as JS Variable to store the JS Objects of components.
name of frontfile is used as variable name in JS
Add FrontFile as JS Variable to store the JS Objects of components.
name of frontfile is used as variable name in JS
|
#
|
public
|
render()
Advance Function
echo FrontFile Front-End code
Advance Function
echo FrontFile Front-End code
|
#
|
public
|
getOutput(): string
Advance Function
get FrontFile Front-End code
Advance Function
get FrontFile Front-End code
Returns
|
#
|
public
|
ProcessMe(): string
Advance Function
get FrontFile Front-End code
Advance Function
get FrontFile Front-End code
Returns
|
#
|
public
|
renderit()
Advance Function
echo FrontFile data
Advance Function
echo FrontFile data
|
#
|
public
|
getFilePath(): string
File Path of FrontFile
|
#
|
public
|
getName(): string
Get Name(id) of front file
Get Name(id) of front file
|
#
|
public
|
getBindGate(): BasicGate
Get Parent Gate or Bind Gate with front file. It return bound Gate if FrontFile bound with Gate
Get Parent Gate or Bind Gate with front file. It return bound Gate if FrontFile bound with Gate
|
#
|
public
|
getBackEndGate(): BackEndGate
Get Gate that is bound with front file
Get Gate that is bound with front file
|
#
|
public
|
getBackEndGateDirPath(): string
Get Gate Path which is bound with this front file
Get Gate Path which is bound with this front file
|
#
|
public
|
getSjspath(): string
Get SJS File Path which is bound with this front file
Get SJS File Path which is bound with this front file
|
#
|
public
|
getRegisterGate(): string
Get Parent Gate Name
|
#
|
public
|
disablePHP($level = 0)
Disable PHP execution set $intPHPLevel=0, Default it is enable.
PHP can only executed by a Custom Evaluator not by EVAL…
Disable PHP execution set $intPHPLevel=0, Default it is enable.
PHP can only executed by a Custom Evaluator not by EVAL. So
It can execute only few PHP syntax.PHP tags are not allowed.
Only use Expression Tags for output ##{} and silent #{}#
Enable php execution in front file. 0= no php execution,
1 = Allowed
|
#
|
public
|
setBlnshowFront(boolean $blnshowFront)
Enable rendering for front file
Enable rendering for front file
|
#
|
public
|
getBlnshowFront(): boolean
Check if FrontFile can render
Check if FrontFile can render
|
#
|
public
|
getBlncodefront(): boolean
Check if FrontFile is bound with any front-end Gate type
Check if FrontFile is bound with any front-end Gate type
|
#
|
public
|
getBlncodebehind(): boolean
Check if FrontFile is bound with any back-end Gate type
Check if FrontFile is bound with any back-end Gate type
|
#
|
public
|
executePHPCode(string $strPHPCode, Component $compobj = null): string
Execute PHP code in Limited Container. Use only Template Tags ##{ }# or #{ }#
Execute PHP code in Limited Container. Use only Template Tags ##{ }# or #{ }#
Parameters
| $strPHPCode |
PHP Template code
|
| $compobj |
default null, Show debug information if Component
run code
|
|
#
|
public
|
addMetaData(string $key, string|array $value)
Add Meta Data attached to FrontFile. Only available after Parse Phase.
Add Meta Data attached to FrontFile. Only available after Parse Phase.
|
#
|
public
|
addProp(string $key, string|array $value)
Alias of addMetaData
Add Meta Data attached to FrontFile. Only available after Parse Phase.
Alias of addMetaData
Add Meta Data attached to FrontFile. Only available after Parse Phase.
|
#
|
public
|
getMetaData(string $key): string|array
Read Meta Data attached with FrontFile
Read Meta Data attached with FrontFile
|
#
|
public
|
isComponent(string $key): boolean
Check if Component Exist in FrontFile
Check if Component Exist in FrontFile
Parameters
| $key |
component name or id in HTML code
|
|
#
|
public
|
getComponent(string $key): Component
Get Component
Parameters
| $key |
component name or id in HTML code
|
|
#
|
public
|
getComponentSafe(string $key): Component|null
Get Component if exist
Parameters
| $key |
component name or id in HTML code
|
|
#
|
public
|
getComponents(): array
Get Children Components Only
Get Children Components Only
|
#
|
public
|
getAllComponents(): array
Get All Children + References Components
Get All Children + References Components
|
#
|
public
|
parseComponent(Component $obj, boolean $innerHTML = false): string
Generate HTML for Component Object
$frontobj = new Sphp\tools\FrontFile("Gates/forms/front1.front");
$div1 = $frontobj-…
Generate HTML for Component Object
$frontobj = new Sphp\tools\FrontFile("Gates/forms/front1.front");
$div1 = $frontobj->getComponent('div1');
echo $frontobj->parseComponent($div1);
Parameters
| $innerHTML |
Optional Default=false,
if true then it will not generate component tag in html
|
|
#
|
public
|
getChildrenWrapper($compobj): NodeTag
Wrap All Children of Component as Node Object.
$frontobj = new Sphp\tools\FrontFile("Gates/forms/front1.front");
$div1 …
Wrap All Children of Component as Node Object.
$frontobj = new Sphp\tools\FrontFile("Gates/forms/front1.front");
$div1 = $frontobj->getComponent('div1');
$node1 = $frontobj->getChildrenWrapper($div1);
echo $frontobj->parseComponentChildren($node1);
|
#
|
public
|
parseComponentChildren(NodeTag $obj): string
Generate HTML for Component Children
Generate HTML for Component Children
|
#
|