php4 compatibility
This commit is contained in:
parent
74de4a1095
commit
d86ddd0eae
@ -40,9 +40,9 @@
|
|||||||
|
|
||||||
var $_directory = CONTENT_DIR;
|
var $_directory = CONTENT_DIR;
|
||||||
|
|
||||||
function __construct() {
|
function s_entry_crawler() {
|
||||||
$this->index =& entry_init();
|
$this->index =& entry_init();
|
||||||
parent::__construct();
|
parent::fs_filelister();
|
||||||
}
|
}
|
||||||
|
|
||||||
function _checkFile($directory, $file) {
|
function _checkFile($directory, $file) {
|
||||||
|
@ -206,7 +206,7 @@ class pairs {
|
|||||||
* @parma array $b array of the second elements of each pair
|
* @parma array $b array of the second elements of each pair
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
function pairs(array $a, array $b) {
|
function pairs($a, $b) {
|
||||||
if (($v=count($a))!=count($b))
|
if (($v=count($a))!=count($b))
|
||||||
trigger_error("Size of params must match", E_USER_ERROR);
|
trigger_error("Size of params must match", E_USER_ERROR);
|
||||||
$this->a=$a; $this->b=$b;
|
$this->a=$a; $this->b=$b;
|
||||||
@ -1538,14 +1538,14 @@ class BPlusTree {
|
|||||||
* @param string $keyupper key upper bound of the iterator
|
* @param string $keyupper key upper bound of the iterator
|
||||||
* @param bool $includeupper if true $keyupper is included in the iterator
|
* @param bool $includeupper if true $keyupper is included in the iterator
|
||||||
*/
|
*/
|
||||||
function walker(
|
function &walker(
|
||||||
&$keylower =null,
|
&$keylower,
|
||||||
$includelower =null,
|
$includelower =null,
|
||||||
$keyupper =null,
|
$keyupper =null,
|
||||||
$includeupper =null
|
$includeupper =null
|
||||||
) {
|
) {
|
||||||
|
|
||||||
return new BPlusWalker($this, $keylower, $includelower, $keyupper, $includeupper);
|
return $o =& new BPlusWalker($this, $keylower, $includelower, $keyupper, $includeupper);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2345,7 +2345,7 @@ class BPlusWalker {
|
|||||||
|
|
||||||
function BPlusWalker(
|
function BPlusWalker(
|
||||||
&$tree,
|
&$tree,
|
||||||
&$keylower=null,
|
&$keylower,
|
||||||
$includelower=null,
|
$includelower=null,
|
||||||
$keyupper=null,
|
$keyupper=null,
|
||||||
$includeupper=null){
|
$includeupper=null){
|
||||||
@ -2563,14 +2563,14 @@ class SBPlusTree extends BPlusTree {
|
|||||||
return $seek;
|
return $seek;
|
||||||
}
|
}
|
||||||
|
|
||||||
function walker(
|
function &walker(
|
||||||
&$keylower =null,
|
&$keylower,
|
||||||
$includelower =null,
|
$includelower =null,
|
||||||
$keyupper =null,
|
$keyupper =null,
|
||||||
$includeupper =null
|
$includeupper =null
|
||||||
) {
|
) {
|
||||||
|
|
||||||
return new SBPlusWalker($this, $keylower, $includelower, $keyupper, $includeupper);
|
return $o =& new SBPlusWalker($this, $keylower, $includelower, $keyupper, $includeupper);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -101,7 +101,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function add($id, $entry, $del = array()) {
|
function add($id, $entry, $del = array()) {
|
||||||
$key =& entry_idtokey($id);
|
$key = entry_idtokey($id);
|
||||||
$val = $entry['SUBJECT'];
|
$val = $entry['SUBJECT'];
|
||||||
|
|
||||||
$main =& $this->get_index();
|
$main =& $this->get_index();
|
||||||
|
@ -253,7 +253,7 @@
|
|||||||
#$this->local_list = array_keys($entry_index);
|
#$this->local_list = array_keys($entry_index);
|
||||||
|
|
||||||
$index_count = $entry_index->length();
|
$index_count = $entry_index->length();
|
||||||
$this->walker =& $entry_index->walker();
|
$this->walker =& $entry_index->walker($firstid=null);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
// notice this won't work with cats (for now)
|
// notice this won't work with cats (for now)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user