Skip to content
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

$strFormId is useless #1291

Merged
merged 1 commit into from
Aug 16, 2020
Merged

$strFormId is useless #1291

merged 1 commit into from
Aug 16, 2020

Conversation

matthiaz
Copy link
Contributor

$strFormId is useless. I think @spekary already tried to refactor some of it.
With this commit I try to remove strFormId and pass the object itself.

A possible use case is requesting a control by strControlId in a static method call. This is currently impossible, but after this commit you have the objFormId and can actually do this.
I have also added a __toString() method in an attempt to save backwards compatibility. If someone does use the strFormId, it gets string cast automatically.

$strFormId is useless. I think @spekary already tried to refactor some of it. 
With this commit I try to remove strFormId and pass the object itself. 

A possible use case is requesting a control by strControlId in a static method call. This is currently impossible, but after this commit you have the objFormId and can actually do this. 
I have also added a __toString() method in an attempt to save backwards compatibility. If someone does use the strFormId, it gets string cast automatically.
@matthiaz matthiaz merged commit 94ccef0 into qcubed:master Aug 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant