-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Convert all private variables in EPub.php to protected variables #1
Comments
You are right, The reason I did set them private were that some were reporting problems after accessing variables out of order, for instance messing with the zip file, adding files after it were finalized. I have to assume any inherited classes at least are well behaved :) Change the variables to protected, and let me know which other changes you make/need, and I'll update the repository, probably tomorrow. |
You could also put a setter in EPub.php class I need to at times set the docRoot manually. This should be sufficient |
I have a new one in the works where there are getters and setters for just about all variables in it. It is far from finished, RL became ... interesting times before I managed to get the time for it. One of the main differences are that I'll be adding classes for the ePub XML structures for ease of maintenance, and multi level indexes. If you want me to, I can see if I can give you access to that, it's in a private repository here on this site. |
Hi IMO, it would be nice to separate all the unused classes into separate branches? |
The current "helpers" are just that, and are used by the EPub class. The exception is the splitter, which can be used separately as well, though no documentation is available for that. Yet. The splitter is a bit of an interesting class, one which may need a bit of clean up though. |
I needed to inherit EPub class to my custom classes, where I wanted to override addChapter with my own version. But since most of the variables are private, I think it would be a good idea to convert them to protected?
Right now, I cannot for instance in my inherited class access $this->isFinalized because that only belongs to EPub class.
The text was updated successfully, but these errors were encountered: