Skip to content

Handle structures without identifiers. Fixes #574 openva/va-decoded#22 - #689

Merged
waldoj merged 1 commit into
masterfrom
issue-574
Mar 20, 2017
Merged

waldoj merged 1 commit into
masterfrom
issue-574

Conversation

@krusynth

@krusynth krusynth commented Mar 19, 2017 •

Copy link
Copy Markdown
Member

#574 openva/va-decoded#22

This also is a massive cleanup of the structure class, to reduce the magic and sprawling code. In particular:

  • Removes magic global $db
  • Prefers passing in arguments to functions over context-specific magic properties.
  • Removes duplicate code in ancestor handling between id_ancestry and get_current
  • Replaces url mangling with a consistent interface to permalinks
  • Replaces inconsistent, renamed properties with standard internal naming
  • Eliminates abusing objects as arrays for real arrays.

This also is a massive cleanup of the structure class, to reduce the magic and sprawling code.  In particular:

* Removes magic global
* Prefers passing in arguments to functions over context-specific magic properties.
* Removes duplicate code in ancestor handling between id_ancestry and get_current
* Replaces url mangling with a consistent interface to permalinks
* Replaces inconsistent, renamed properties with standard internal naming
* Eliminates abusing objects as arrays with real arrays.
@krusynth

Copy link
Copy Markdown
Member Author

#673 is gonna conflict with this, but this one is preferred over that one. I'll handle the merge after this one is merged.

@waldoj

waldoj commented Mar 20, 2017

Copy link
Copy Markdown
Member

Good Lord, man.

@waldoj
waldoj merged commit 9707926 into master Mar 20, 2017
@waldoj
waldoj deleted the issue-574 branch March 20, 2017 02:28
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.

2 participants