-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Experimental forward compatibility with PHP 9.0
This is basically 3.1.0 "beta" now
- Loading branch information
Showing
26 changed files
with
534 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
|
||
trait pudlCollection_trait { | ||
|
||
|
||
|
||
//////////////////////////////////////////////////////////////////////////// | ||
// RESET INTERNAL POINTER TO FIRST OBJECT IN COLLECTION | ||
// https://www.php.net/manual/en/iterator.rewind.php | ||
//////////////////////////////////////////////////////////////////////////// | ||
public function rewind() { | ||
$this->_rewind(); | ||
} | ||
|
||
|
||
|
||
|
||
//////////////////////////////////////////////////////////////////////////// | ||
// RETURNS THE INNER ITERATOR FOR THE CURRENT ENTRY. | ||
// http://php.net/manual/en/outeriterator.getinneriterator.php | ||
//////////////////////////////////////////////////////////////////////////// | ||
public function getInnerIterator() { | ||
return $this->_getInnerIterator(); | ||
} | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?php | ||
|
||
trait pudlCollection_trait { | ||
|
||
|
||
|
||
//////////////////////////////////////////////////////////////////////////// | ||
// RESET INTERNAL POINTER TO FIRST OBJECT IN COLLECTION | ||
// https://www.php.net/manual/en/iterator.rewind.php | ||
//////////////////////////////////////////////////////////////////////////// | ||
public function rewind() : void { | ||
$this->_rewind(); | ||
} | ||
|
||
|
||
|
||
|
||
//////////////////////////////////////////////////////////////////////////// | ||
// MOVE INTERNAL POINTER TO SPECIFIC ITEM WITHIN COLLECTION | ||
//////////////////////////////////////////////////////////////////////////// | ||
public function seek($row) : void { | ||
$this->_seek($row); | ||
} | ||
|
||
|
||
|
||
|
||
//////////////////////////////////////////////////////////////////////////// | ||
// RETURNS THE INNER ITERATOR FOR THE CURRENT ENTRY. | ||
// http://php.net/manual/en/outeriterator.getinneriterator.php | ||
//////////////////////////////////////////////////////////////////////////// | ||
public function getInnerIterator() : ?Iterator { | ||
return $this->_getInnerIterator(); | ||
} | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
<?php | ||
|
||
|
||
|
||
|
||
//////////////////////////////////////////////////////////////////////////////// | ||
// COMPATIBILITY SHIM FOR LEGACY AND MODERN PHP | ||
//////////////////////////////////////////////////////////////////////////////// | ||
trait pudlData_shim { | ||
|
||
|
||
|
||
|
||
//////////////////////////////////////////////////////////////////////////// | ||
// PULLED FROM PHPS BUILT IN COUNTABLE INTERFACE | ||
//////////////////////////////////////////////////////////////////////////// | ||
public function count() { | ||
return $this->_count(); | ||
} | ||
|
||
|
||
|
||
|
||
//////////////////////////////////////////////////////////////////////////// | ||
// PULLED FROM PHPS BUILT IN SEEKABLEITERATOR INTERFACE | ||
//////////////////////////////////////////////////////////////////////////// | ||
public function seek($position) { | ||
$this->_seek($position); | ||
} | ||
|
||
|
||
|
||
|
||
//////////////////////////////////////////////////////////////////////////// | ||
// PULLED FROM PHPS BUILT IN ITERATOR INTERFACE | ||
//////////////////////////////////////////////////////////////////////////// | ||
public function current() { | ||
return $this->_current(); | ||
} | ||
|
||
|
||
public function key() { | ||
return $this->_key(); | ||
} | ||
|
||
|
||
public function next() { | ||
$this->_next(); | ||
} | ||
|
||
|
||
public function rewind() { | ||
$this->_rewind(); | ||
} | ||
|
||
|
||
public function valid() { | ||
return $this->_valid(); | ||
} | ||
|
||
|
||
|
||
|
||
//////////////////////////////////////////////////////////////////////////// | ||
// PULLED FROM PHP'S BUILT IN JSONSERIALIZABLE INTERFACE | ||
//////////////////////////////////////////////////////////////////////////// | ||
public function jsonSerialize() { | ||
return $this->_jsonSerialize(); | ||
} | ||
|
||
|
||
} |
Oops, something went wrong.