-
Notifications
You must be signed in to change notification settings - Fork 54
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
Add possibility to specify the flow of creating operation arguments #17
base: master
Are you sure you want to change the base?
Conversation
Hmm, I'm not against adding more flexibility here, but can you show me some examples, which arguments you want to render with this? If we change this, we really need to be sure to find a generic solution that works for all situations. |
Hi mike, sure i can. I decide to extend mechanism of defining arguments, to bring (if necessary) ability to specify private escape flag (which will have priority over global) for each argument individually. Here in php-schellcommand i just added ability to process that kind of defined argument, but in php-pdftk you can see a method addOperationArgument(), which is the best example of what i am talking about. And a little bit of code example which should be as good explanation as verbal : Use example: (as i said changes here are consequences of extending php-pdftk, so i give a use example of it) 1.Adding attachment (new operation)
attachFiles method looks like this:
and addToPage() method which is used to add argument new way
doing all the dirty stuff:
Ps. I just noticed i did not make a pull request for php-pdftk before so you cannot see what i'm talking about. I did it now |
@mu4ddi3 Hmm, I'd prefer to separate things a bit more. How about this:
|
Hi @mikehaertl, sorry for delay. Change of the year is always a stressful time in my job - deadlines etc. I checked your proposition and it is more simplified, and the separation is also a good thing. "addArgs" function is clear and easy to understand. What now should i make a changes or you do it on your project? |
@mu4ddi3 Thanks for the feedback. Same here: Busy times. It will take a while (some weeks), but I will take care of the changes and let you know. Maybe you can then help testing. |
@mikehaertl Speaking about testing, you might wanna enable some newer PHP versions in Travis also ;) |
@schmunk42 Feel free to file a PR for this ;). |
No description provided.