mirror of
https://github.com/e107inc/e107.git
synced 2025-08-02 04:40:44 +02:00
PHPdoc -
add returned type
This commit is contained in:
@@ -9,8 +9,8 @@
|
|||||||
* Text processing and parsing functions
|
* Text processing and parsing functions
|
||||||
*
|
*
|
||||||
* $Source: /cvs_backup/e107_0.8/e107_handlers/e_parse_class.php,v $
|
* $Source: /cvs_backup/e107_0.8/e107_handlers/e_parse_class.php,v $
|
||||||
* $Revision: 1.70 $
|
* $Revision: 1.71 $
|
||||||
* $Date: 2009-10-30 19:57:28 $
|
* $Date: 2009-10-30 20:05:17 $
|
||||||
* $Author: marj_nl_fr $
|
* $Author: marj_nl_fr $
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@@ -834,14 +834,14 @@ class e_parse
|
|||||||
* @param string $modifiers [optional] TITLE|SUMMARY|DESCRIPTION|BODY|RAW|LINKTEXT etc.
|
* @param string $modifiers [optional] TITLE|SUMMARY|DESCRIPTION|BODY|RAW|LINKTEXT etc.
|
||||||
* @param mixed $postID [optional]
|
* @param mixed $postID [optional]
|
||||||
* @param boolean $wrap [optional]
|
* @param boolean $wrap [optional]
|
||||||
* @return
|
* @return string
|
||||||
*/
|
*/
|
||||||
function toHTML($text, $parseBB = FALSE, $modifiers = "", $postID = "", $wrap = FALSE)
|
function toHTML($text, $parseBB = FALSE, $modifiers = "", $postID = "", $wrap = FALSE)
|
||||||
{
|
{
|
||||||
if($text == '')
|
if($text == '')
|
||||||
return $text;
|
return $text;
|
||||||
|
|
||||||
global $pref,$fromadmin;
|
global $pref, $fromadmin;
|
||||||
|
|
||||||
// Set default modifiers to start
|
// Set default modifiers to start
|
||||||
$opts = $this->e_optDefault;
|
$opts = $this->e_optDefault;
|
||||||
@@ -1282,8 +1282,9 @@ class e_parse
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Convert text blocks which are to be embedded within JS
|
* Convert text blocks which are to be embedded within JS
|
||||||
|
*
|
||||||
* @param object $stringarray
|
* @param object $stringarray
|
||||||
* @return
|
* @return string
|
||||||
*/
|
*/
|
||||||
function toJS($stringarray)
|
function toJS($stringarray)
|
||||||
{
|
{
|
||||||
@@ -1301,9 +1302,10 @@ class e_parse
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Convert Text for RSS/XML use.
|
* Convert Text for RSS/XML use.
|
||||||
|
*
|
||||||
* @param object $text
|
* @param object $text
|
||||||
* @param object $tags [optional]
|
* @param object $tags [optional]
|
||||||
* @return
|
* @return string
|
||||||
*/
|
*/
|
||||||
function toRss($text, $tags = FALSE)
|
function toRss($text, $tags = FALSE)
|
||||||
{
|
{
|
||||||
@@ -1314,9 +1316,9 @@ class e_parse
|
|||||||
}
|
}
|
||||||
|
|
||||||
$text = $this->toEmail($text);
|
$text = $this->toEmail($text);
|
||||||
$search = array("'", "$", "'", "$"," & ", e_BASE, "href='request.php");
|
$search = array("'", "$", "'", "$"," & ", e_BASE, "href='request.php");
|
||||||
$replace = array("'", '$', "'", '$',' & ', SITEURL, "href='".SITEURL."request.php" );
|
$replace = array("'", '$', "'", '$',' & ', SITEURL, "href='".SITEURL."request.php" );
|
||||||
$text = str_replace($search, $replace, $text);
|
$text = str_replace($search, $replace, $text);
|
||||||
|
|
||||||
if($tags == TRUE && ($text))
|
if($tags == TRUE && ($text))
|
||||||
{
|
{
|
||||||
@@ -1339,6 +1341,7 @@ class e_parse
|
|||||||
/**
|
/**
|
||||||
* Replace e107 path constants
|
* Replace e107 path constants
|
||||||
* Note: only an ADMIN user can convert {e_ADMIN}
|
* Note: only an ADMIN user can convert {e_ADMIN}
|
||||||
|
*
|
||||||
* @param string $text
|
* @param string $text
|
||||||
* @param string $mode [optional] abs|full "full" = produce absolute URL path, e.g. http://sitename.com/e107_plugins/etc
|
* @param string $mode [optional] abs|full "full" = produce absolute URL path, e.g. http://sitename.com/e107_plugins/etc
|
||||||
* TRUE = produce truncated URL path, e.g. e107plugins/etc
|
* TRUE = produce truncated URL path, e.g. e107plugins/etc
|
||||||
@@ -1460,7 +1463,7 @@ class e_parse
|
|||||||
*
|
*
|
||||||
* @param string $url
|
* @param string $url
|
||||||
* @param string $mode 0-folders, 1-relative, 2-absolute, 3-full (with domain), 4-absolute & relative (combination of 1,2,3)
|
* @param string $mode 0-folders, 1-relative, 2-absolute, 3-full (with domain), 4-absolute & relative (combination of 1,2,3)
|
||||||
* @return
|
* @return string
|
||||||
*/
|
*/
|
||||||
function createConstants($url, $mode = 0)
|
function createConstants($url, $mode = 0)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user