From 387d390181f4aefd6d1e6d8fe16d9697801e99d7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Thu, 3 Jan 2013 04:34:06 +0000 Subject: [PATCH] More cleanups --- inc/classes/rdf.class.php | 113 +++++++++++++++++++------------------- 1 file changed, 57 insertions(+), 56 deletions(-) diff --git a/inc/classes/rdf.class.php b/inc/classes/rdf.class.php index d3d0f45295..aaf125e5b2 100644 --- a/inc/classes/rdf.class.php +++ b/inc/classes/rdf.class.php @@ -1,35 +1,36 @@ | -// | | -// | Proxy and authentication methods added by: | -// | Marco Kraus | -// | | -// | Decoding of data by htmlentities or utf8_decode added by: | -// | Roland Haeder | -// | | -// +----------------------------------------------------------------------+ -// | Ref: | -// | @link http://www.fase4.com/rdf/ Latest release | -// +----------------------------------------------------------------------+ +/* + * +----------------------------------------------------------------------+ + * | rss Parser | + * | Copyright (c) 2001 Stefan Saasen | + * +----------------------------------------------------------------------+ + * | The contents of this file are subject to the Mozilla Public License | + * | Version 1.1 (the "License"); you may not use this file except in | + * | compliance with the License. You may obtain a copy of the License at | + * | http: *www.mozilla.org/MPL/ | + * | | + * | Software distributed under the License is distributed on an "AS IS" | + * | basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See | + * | the License for the specific language governing rights and | + * | limitations under the License. | + * +----------------------------------------------------------------------+ + * | | + * | Maintainer and initial developer: | + * | Stefan Saasen | + * | | + * | Proxy and authentication methods added by: | + * | Marco Kraus | + * | | + * | Decoding of data by htmlentities or utf8_decode added by: | + * | Roland Haeder | + * | | + * +----------------------------------------------------------------------+ + * | Ref: | + * | @link http://www.fase4.com/rdf/ Latest release | + * +----------------------------------------------------------------------+ + */ /** * Class RSS Parser @@ -372,7 +373,7 @@ class fase4_rdf { * * @access public * @author Stefan Saasen - * @see _refresh + * @see _refresh */ function fase4_rdf() { @@ -389,7 +390,7 @@ class fase4_rdf { * @author Stefan Saasen * @param string $rdf RDF File (Location) * @return string Displays RDF Content (using _display()) - * @see _remote_file, cache() + * @see _remote_file, cache() */ function parse_RDF($rdf) { @@ -411,7 +412,7 @@ class fase4_rdf { * @author Stefan Saasen * @param string $rdf RDF File (Location) * @return string Displays RDF Content (using _display()) - * @see _remote_file, cache() + * @see _remote_file, cache() */ function finish($return = FALSE) { $this->out = str_replace('$', '$', $this->out); @@ -437,7 +438,7 @@ class fase4_rdf { * @author Stefan Saasen * @param string $rdf RDF File (Location) * @return string Displays RDF Content (using _display()) - * @see _remote_file, cache() + * @see _remote_file, cache() */ function use_dynamic_display($bool) { $this->_use_dynamic_display = $bool; @@ -493,8 +494,8 @@ class fase4_rdf { * @access public * @param int $int No of max s * @author Stefan Saasen - * @return boolean - * @see _max_count, _endElement() + * @return boolean + * @see _max_count, _endElement() */ function set_max_item($int) { @@ -508,8 +509,8 @@ class fase4_rdf { * @access public * @author Stefan Saasen * @param string $dir Path to Directory. - * @return boolean - * @see _cache_dir + * @return boolean + * @see _cache_dir */ function set_CacheDir($dir) { @@ -594,7 +595,7 @@ class fase4_rdf { * @param mixed $parser a reference to the XML parser calling the handler. * @param string $name contains the name of the element for which this handler is called. * @param string $attrs contains an associative array with the element's attributes (if any). - * @see _get_ChannelData(), _clear_Items(), _type, _parse_mode, _depth, _tags, _cdepth, _ctags + * @see _get_ChannelData(), _clear_Items(), _type, _parse_mode, _depth, _tags, _cdepth, _ctags */ function _startElement($parser, $name, $attrs) { // We have to determine, which type of xml data we have to parse @@ -636,7 +637,7 @@ class fase4_rdf { * @access private * @author Stefan Saasen * @param mixed $parser a reference to the XML parser calling the handler. - * @see _output, _display_opt, _citem + * @see _output, _display_opt, _citem */ function _get_ChannelData($parser) { @@ -681,7 +682,7 @@ class fase4_rdf { * @author Stefan Saasen * @param mixed $parser a reference to the XML parser calling the handler. * @param string $name contains the name of the element for which this handler is called. - * @see _clear_Items(), _type, _parse_mode, _depth, _tags, _cdepth, _ctags, _item, _output, _display_opt + * @see _clear_Items(), _type, _parse_mode, _depth, _tags, _cdepth, _ctags, _item, _output, _display_opt */ function _endElement($parser, $name) { array_pop($this->_tags); @@ -903,7 +904,7 @@ class fase4_rdf { * @author Stefan Saasen * @param mixed $parser a reference to the XML parser calling the handler. * @param string $text contains the character data as a string. - * @see _parse_mode, _item, _tags, _depth, _citem, _ctags, _cdepth + * @see _parse_mode, _item, _tags, _depth, _citem, _ctags, _cdepth */ function _parseData($parser, $text) { @@ -946,7 +947,7 @@ class fase4_rdf { * @access public * @author Stefan Saasen * @param array $options - * @see _display_opt + * @see _display_opt */ function set_Options($options = '') { @@ -965,7 +966,7 @@ class fase4_rdf { * @access public * @author Stefan Saasen * @param int $width attribute width in tag - * @see _table_width + * @see _table_width */ function set_table_width($width = 400) { @@ -982,7 +983,7 @@ class fase4_rdf { * @access public * @author Stefan Saasen * @return array $options - * @see _display_opt + * @see _display_opt */ function get_Options() { $options = array( @@ -1002,7 +1003,7 @@ class fase4_rdf { * @author Stefan Saasen * @param string $rdf RDF File (Location) * @return string XML Presentation of parsed RDF File - * @see _cached_file, _remote_file, _cache_dir, _refresh, _update_cache() + * @see _cached_file, _remote_file, _cache_dir, _refresh, _update_cache() */ function cache() { @@ -1072,8 +1073,8 @@ class fase4_rdf { * @access private * @author Stefan Saasen * @param string $dir Path to Directory. - * @return boolean - * @see _cache_dir, _cache_dir_ok + * @return boolean + * @see _cache_dir, _cache_dir_ok */ function _create_cache_dir() { @@ -1109,7 +1110,7 @@ class fase4_rdf { * @access private * @author Stefan Saasen * @param string $rdf RDF File (Location) - * @see _cache_dir, _cached_file, _throw_exception() + * @see _cache_dir, _cached_file, _throw_exception() */ function _update_cache($content = '') { @@ -1136,8 +1137,8 @@ class fase4_rdf { * * @access public * @author Stefan Saasen - * @return string Date/Time of last Update - * @see _cache_dir, _cached_file + * @return string Date/Time of last Update + * @see _cache_dir, _cached_file */ function get_cache_update_time() { @@ -1151,7 +1152,7 @@ class fase4_rdf { * @author Stefan Saasen * @param string $rdf RDF File (Location) * @return string Displays RDF Content (using _display()) - * @see _remote_file, cache() + * @see _remote_file, cache() */ function get_CacheType() { @@ -1164,7 +1165,7 @@ class fase4_rdf { * @access public * @author Stefan Saasen * @return array $options - * @see _use_cached_file + * @see _use_cached_file */ function is_cachedFile() { @@ -1180,7 +1181,7 @@ class fase4_rdf { * * @access public * @author Stefan Saasen - * @see _cache_dir + * @see _cache_dir */ function clear_cache() { @@ -1223,7 +1224,7 @@ class fase4_rdf { * * @access private * @author Stefan Saasen - * @see _cache_dir, gc_probability, gc_maxlifetime + * @see _cache_dir, gc_probability, gc_maxlifetime */ function _garbage_collection() { @@ -1288,8 +1289,8 @@ class fase4_rdf { * * @access private * @author Marco Kraus - * @return array - * @see _use_proxy, cache() + * @return array + * @see _use_proxy, cache() */ function _rdf_data() { -- 2.39.5