1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-27 01:40:22 +02:00

PHPdoc fix

This commit is contained in:
marj
2009-11-17 10:31:05 +00:00
parent 43f3c15b9f
commit e41a48ffe6
3 changed files with 42 additions and 29 deletions

View File

@@ -11,9 +11,9 @@
| GNU General Public License (http://gnu.org). | GNU General Public License (http://gnu.org).
| |
| $Source: /cvs_backup/e107_0.8/e107_handlers/admin_log_class.php,v $ | $Source: /cvs_backup/e107_0.8/e107_handlers/admin_log_class.php,v $
| $Revision: 1.16 $ | $Revision: 1.17 $
| $Date: 2009-09-13 16:37:18 $ | $Date: 2009-11-17 10:30:40 $
| $Author: secretr $ | $Author: marj_nl_fr $
To do: To do:
1. Do we need to check for presence of elements of debug_backtrace() to avoid notices? 1. Do we need to check for presence of elements of debug_backtrace() to avoid notices?
2. Reflect possible DB structure changes once finalised 2. Reflect possible DB structure changes once finalised
@@ -315,7 +315,8 @@ class e_admin_log
/** /**
* Removes all events older than $days, or truncates the table if $days == false * Removes all events older than $days, or truncates the table if $days == false
* *
* @param int $days * @param integer|false $days
*@return void
*/ */
function purge_log_events($days) function purge_log_events($days)
{ {

View File

@@ -9,9 +9,9 @@
* Simple XML Parser * Simple XML Parser
* *
* $Source: /cvs_backup/e107_0.8/e107_handlers/xml_class.php,v $ * $Source: /cvs_backup/e107_0.8/e107_handlers/xml_class.php,v $
* $Revision: 1.34 $ * $Revision: 1.35 $
* $Date: 2009-11-07 02:28:54 $ * $Date: 2009-11-17 10:30:39 $
* $Author: e107coders $ * $Author: marj_nl_fr $
*/ */
if (!defined('e107_INIT')) { exit; } if (!defined('e107_INIT')) { exit; }
@@ -68,7 +68,8 @@ class xmlClass
/** /**
* Log of all paths replaced. * Log of all paths replaced.
* @var *
* @var array
*/ */
public $fileConvertLog = array(); public $fileConvertLog = array();
@@ -76,7 +77,7 @@ class xmlClass
public $filePathDestination = FALSE; public $filePathDestination = FALSE;
public $convertFileTypes = array("jpg","gif","png","jpeg"); public $convertFileTypes = array("jpg", "gif", "png", "jpeg");
public $filePathPrepend = array(); public $filePathPrepend = array();
@@ -198,25 +199,27 @@ class xmlClass
/** /**
* Set Xml tags that should always return arrays. * Set Xml tags that should always return arrays.
*
*FIXME is this an array or a string???
* @param object $array * @param object $array
* @return * @return xmlClass
*/ */
public function setOptArrayTags($string) public function setOptArrayTags($string)
{ {
$this->arrayTags = (array) explode(",",$string); $this->arrayTags = (array) explode(",", $string);
return $this; return $this;
} }
public function setOptStringTags($string) public function setOptStringTags($string)
{ {
$this->stringTags = (array) explode(",",$string); $this->stringTags = (array) explode(",", $string);
return $this; return $this;
} }
/** /**
* Set forceArray option * Set forceArray option
* *
* @param string $flag * @param boolean $flag
* @return xmlClass * @return xmlClass
*/ */
public function setOptForceArray($flag) public function setOptForceArray($flag)
@@ -550,7 +553,8 @@ class xmlClass
/** /**
* Convert Array(0) to String based on specified Tags. * Convert Array(0) to String based on specified Tags.
* @param object $vars *
* @param array|string $vars
* @return * @return
*/ */
function parseStringTags($vars) function parseStringTags($vars)
@@ -574,7 +578,8 @@ class xmlClass
/** /**
* Return as an array, even when a single xml tag value is found * Return as an array, even when a single xml tag value is found
* Use setArrayTags() to set which tags are affected. * Use setArrayTags() to set which tags are affected.
* @param object $vars *
* @param array $vars
* @return array * @return array
*/ */
private function parseArrayTags($vars) private function parseArrayTags($vars)
@@ -654,8 +659,10 @@ class xmlClass
/** /**
* Convert file path for inclusion in XML file. * Convert file path for inclusion in XML file.
* @param callback function $text - see e107ExportValue()
* @return converted file path * @see e107ExportValue()
* @param string $text - callback function
* @return string converted file path
*/ */
private function replaceFilePaths($text) private function replaceFilePaths($text)
{ {
@@ -669,12 +676,14 @@ class xmlClass
/** /**
* Process data values for XML file. If $this->convertFilePaths is TRUE, convert paths - see replaceFilePaths() * Process data values for XML file. If $this->convertFilePaths is TRUE, convert paths
*
* @see replaceFilePaths()
* @param mixed $val * @param mixed $val
* @param string $key key for the current value. Used for exception processing. * @param string $key key for the current value. Used for exception processing.
* @return mixed * @return mixed
*/ */
private function e107ExportValue($val,$key='') private function e107ExportValue($val, $key = '')
{ {
if($key && isset($this->filePathPrepend[$key])) if($key && isset($this->filePathPrepend[$key]))
{ {
@@ -703,17 +712,18 @@ class xmlClass
/** /**
* Create an e107 Export File in XML format * Create an e107 Export File in XML format
* Note: If $this->filePathDestination has a value, then the file will be saved there. * Note: If $this->filePathDestination has a value, then the file will be saved there.
*
* @param array $prefs - see e_core_pref $aliases (eg. core, ipool etc) * @param array $prefs - see e_core_pref $aliases (eg. core, ipool etc)
* @param array $tables - table names without the prefix * @param array $tables - table names without the prefix
* @param boolean $debug [optional] * @param boolean $debug [optional]
* @return text / file for download * @return string text / file for download
*/ */
public function e107Export($xmlprefs,$tables,$debug=FALSE) public function e107Export($xmlprefs, $tables, $debug = FALSE)
{ {
require_once(e_ADMIN."ver.php"); require_once(e_ADMIN."ver.php");
$text = "<?xml version='1.0' encoding='utf-8' ?>\n"; $text = "<?xml version='1.0' encoding='utf-8' ?".">\n";
$text .= "<e107Export version='".$e107info['e107_version']."' timestamp='".time()."' >\n"; $text .= "<e107Export version='".$e107info['e107_version']."' timestamp='".time()."' >\n";
if(varset($xmlprefs)) // Export Core Preferences. if(varset($xmlprefs)) // Export Core Preferences.
@@ -795,11 +805,12 @@ class xmlClass
/** /**
* Return an Array of core preferences from e107 XML Dump data * Return an Array of core preferences from e107 XML Dump data
* @param object $XMLData Raw XML e107 Export Data *
* @param object $prefType [optional] the type of core pref: core|emote|ipool|menu etc. * @param array $XMLData Raw XML e107 Export Data
* @return preference array equivalent to the old $pref global; * @param string $prefType [optional] the type of core pref: core|emote|ipool|menu etc.
* @return array preference array equivalent to the old $pref global;
*/ */
public function e107ImportPrefs($XMLData,$prefType='core') public function e107ImportPrefs($XMLData, $prefType='core')
{ {
@@ -830,6 +841,7 @@ class xmlClass
/** /**
* Import an e107 XML file into site preferences and DB tables * Import an e107 XML file into site preferences and DB tables
*
* @param path $file - e107 XML file path * @param path $file - e107 XML file path
* @param string $mode[optional] - add|replace * @param string $mode[optional] - add|replace
* @param boolean $debug [optional] * @param boolean $debug [optional]

View File

@@ -9,8 +9,8 @@
* Installation file * Installation file
* *
* $Source: /cvs_backup/e107_0.8/install_.php,v $ * $Source: /cvs_backup/e107_0.8/install_.php,v $
* $Revision: 1.50 $ * $Revision: 1.51 $
* $Date: 2009-11-17 09:11:05 $ * $Date: 2009-11-17 10:31:05 $
* $Author: marj_nl_fr $ * $Author: marj_nl_fr $
* *
*/ */
@@ -1052,7 +1052,7 @@ class e_install
/** /**
* Install a Theme required plugin. * Install a Theme required plugin.
* @param string $plugpath - plugin folder name * @param string $plugpath - plugin folder name
* @return * @return void
*/ */
public function install_plugin($plugpath) //FIXME - requires default plugin table entries, see above. public function install_plugin($plugpath) //FIXME - requires default plugin table entries, see above.
{ {