X-Git-Url: https://git.llucax.com/software/bife/base.git/blobdiff_plain/9e4e164e9997bc088d2d6d711b482c5e1543875c..480641cd12c77d5f434e3ad430d9ab9059cd1373:/src/BIFE/Link.php?ds=sidebyside diff --git a/src/BIFE/Link.php b/src/BIFE/Link.php index 8204db0..830d85b 100644 --- a/src/BIFE/Link.php +++ b/src/BIFE/Link.php @@ -1,5 +1,5 @@ $value) { if (substr($name, 0, 5) === 'DATA-') { @@ -105,6 +101,32 @@ class BIFE_Link extends BIFE_Container { } // -X2C + // +X2C Operation 160 + /** + * Gets the relative path of the current BIFE file for web (URL) usage. + * + * @return string + * @access public + */ + function getWebPath() // ~X2C + { + return (@$_SERVER['PATH_INFO']) ? '../' : './'; + } + // -X2C + + // +X2C Operation 161 + /** + * Gets the relative path of the current BIFE file for filesystem usage. + * + * @return string + * @access public + */ + function getFsPath() // ~X2C + { + return dirname('.' . @$_SERVER['PATH_INFO']) . '/'; + } + // -X2C + // +X2C Operation 157 /** * Renders the widget.