ShowSource ShowSource(
[String
$path = ''], [String
$file = '']
)
|
|
Constructor
Parameters:
|
String |
$path: |
The scrambled path to the file to show |
|
String |
$file: |
The scrambled filename of the file to show |
void addHtml(
[String
$html = '']
)
|
|
Add the current html to the SourceCode object
- Usage:
- $element = new Element();
- $element->addHtml();
- Or
- $element = new Element();
- $element->addHtml($element->getStart());
Parameters:
|
String |
$html: |
Use other html than fetched from $element->getHtml() |
void display(
[String
$path = ''], [String
$file = '']
)
|
|
Display html
Parameters:
|
String |
$path: |
The path to the file to show |
|
String |
$file: |
The filename of the file to show |
API Tags:
String getDemo(
String
$text
)
|
|
Get the source code.
Parameters:
|
String |
$text: |
The text to show |
API Tags:
Get the source code
API Tags:
| Return: | The source code of the file |
Get the source code.
Allow only i.e. CONTENT_FILE_NAME to be seen, due to security issues
API Tags:
| Return: | The source code of the file |
void link(
[String
$path = '.'], [String
$file = 'content.php'], [String
$aux = '']
)
|
|
Display a link
Parameters:
|
String |
$path: |
The path to the file to show |
|
String |
$file: |
The filename of the file to show |
|
String |
$aux: |
The type of link to use: or <li>...</li> |
API Tags:
void show(
[String
$path = ''], [String
$file = '']
)
|
|
Display show
Parameters:
|
String |
$path: |
The path to the file to show |
|
String |
$file: |
The filename of the file to show |
API Tags: