-
Notifications
You must be signed in to change notification settings - Fork 337
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #494 from brammel123/master
when the Serializable interface is implemented, automatically also define the "serialize" and "unserialize" methods
- Loading branch information
Showing
6 changed files
with
116 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,5 @@ | |
*.a.* | ||
*.so.* | ||
shared/ | ||
static/ | ||
static/ | ||
.vscode/ |
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 |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
* Base class for defining your own objects | ||
* | ||
* @author Emiel Bruijntjes <[email protected]> | ||
* @copyright 2013 Copernica BV | ||
* @copyright 2013 - 2022 Copernica BV | ||
*/ | ||
|
||
/** | ||
|
@@ -261,6 +261,22 @@ class PHPCPP_EXPORT Base | |
*/ | ||
int __compare(const Base &base) const; | ||
|
||
/** | ||
* Method that is called when an explicit call to $object->serialize() is made | ||
* Note that a call to serialize($object) does not end up in this function, but | ||
* is handled by the user-space implementation of Serializable::serialize()). | ||
* @return Php::Value | ||
*/ | ||
Php::Value __serialize(); | ||
|
||
/** | ||
* Method that is called when an explicit call to $object->unserialize() is made | ||
* Note that a call to unserialize($string) does not end up in this function, but | ||
* is handled by the user-space implementation of Serializable::unserialize()). | ||
* @param params The passed parameters | ||
*/ | ||
void __unserialize(Php::Parameters ¶ms); | ||
|
||
|
||
private: | ||
/** | ||
|
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