MenuLink MenuLink(
[String
$path = ''], [String
$class = '']
)
|
|
Constructor
Parameters:
|
String |
$path: |
The directory path to start from |
|
String |
$class: |
The CSS class to use |
void display(
[String
$path = ''], [String
$class = '']
)
|
|
Display html
Parameters:
|
String |
$path: |
The directory path to start from |
|
String |
$class: |
The CSS class to use |
API Tags:
Redefinition of:
- Html::display()
- Display the html
array getDir(
String
$path, [String
$level = 0]
)
|
|
Returns the directory names in an array If a 'marker' file is found, the full path is used else the basename is used instead
Parameters:
|
String |
$path: |
The directory path to start from |
|
String |
$level: |
The directory level |
API Tags:
| Return: | An array of Directory names or NULL |
Get the html for the Home link
API Tags:
Get the html, and return it for a View of the Disk
API Tags:
Redefinition of:
- Html::getHtml()
- Get Html
String getIndicator(
String
$name
)
|
|
Get the image indicator for a link as html
Parameters:
|
String |
$name: |
The name of a gif indicator |
API Tags:
| Return: | The image as an object html |
String getMenuLink(
String
$level, String
$name, String
$path, [String
$indicator = false]
)
|
|
Get the html for a link
Parameters:
|
String |
$level: |
The directory level |
|
String |
$name: |
The name of the directory |
|
String |
$path: |
The path info for the directory |
|
String |
$indicator: |
The indicator for a parent-child |
API Tags:
String getSpace(
String
$level
)
|
|
Get the space before a sublink
Parameters:
|
String |
$level: |
The directory level |
API Tags:
| Return: | The space as html |
Get the html for an 'UP' link
API Tags:
String getUrl(
String
$path
)
|
|
Get the url from a path
Return i.e. 'adress-find.dk' from C:/Projects/www/virtuelserver/adress-find.dk when the PROJECT_PATH is C:/Projects/www/virtuelserver and the VIRTUEL_SERVER_URL is /www/virtuelserver
Parameters:
|
String |
$path: |
The path to convert to an url |
API Tags:
String getView(
String
$dir, [String
$level = 0], [mixed
$parent = false]
)
|
|
Get the html, and return it for a View of the Disk
Parameters:
|
String |
$dir: |
An array of directories |
|
String |
$level: |
The level deep |
API Tags:
boolean isChild(
mixed
$path
)
|
|
Returns true or false if current path is a child of working directory
- The following situations may occur
- cwd path description
- ======================================================
- /somedir/test /somedir/test/kontakt path is a child of the cwd
API Tags:
| Return: | True if path is a child of cwd |
boolean isParent(
String
$path
)
|
|
Returns true or false if current path is a parent of working directory
- The following situations may occur
- cwd path description
- ======================================================
- /somedir/katja/kontakt /somedir/katja path is a parent of the cwd
Parameters:
|
String |
$path: |
The directory path to test |
API Tags:
| Return: | True if path is a parent of cwd |
boolean isSibling(
String
$path
)
|
|
Returns true or false if current path is on the same level of working directory
- The following situations may occur
- cwd path description
- ======================================================
- /somedir/test/info /somedir/test/kontakt path is a sibling of the cwd
Parameters:
|
String |
$path: |
The directory path to test |
API Tags:
| Return: | True if path is a sibling of cwd |