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

APIv4 - Cleanup getFields, add @internal flag for non-public field attributes #20489

Merged
merged 1 commit into from
Jun 3, 2021

Conversation

colemanw
Copy link
Member

@colemanw colemanw commented Jun 3, 2021

Overview

Cleanup in APIv4 getFields.

Comments

This is in preparation for adding more attributes to each field to designate it's type (Field or Filter), the operators it allows and the list of sql callbacks. My main hesitation to adding all that stuff was bloat in the output of api.getFields so this PR adds a @internal flag which will give access to those attributes during internal api getFields but hide them from the public api.

@civibot
Copy link

civibot bot commented Jun 3, 2021

(Standard links)

@civibot civibot bot added the master label Jun 3, 2021
/**
* @param bool $readonly
* @return $this
*/
public function setreadonly($readonly) {
public function setReadonly($readonly) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm - what about proper camels setReadOnly - is that inconsistent with other places?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The property is called "readonly" (all lower case)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:-(

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
…tributes
@eileenmcnaughton eileenmcnaughton merged commit 90d612c into civicrm:master Jun 3, 2021
@eileenmcnaughton eileenmcnaughton deleted the getFieldsFix branch June 3, 2021 04:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants