CMSB v3.76 Beta Released (Performance Optimizations)
13 posts by 2 authors in: Forums > CMS Builder
Last Post: 2 hours ago (RSS)
By Dave - 2 hours ago
I'd say stick with $schema = loadSchema('myTable'); and get everything from there since that's the definitive source.
interactivetools.com
By kitsguru - 2 hours ago
I just realized that everything I need for the plugin is now in __menu_order.php, and I don't need the schema. That said, I will be changing the menuHidden flag in some cases. My app is organized by packages that map to one or more tables. If a package is enabled, the menuHidden is set to 0 (now it would be removed); if not, it is set to 1. These packages can be enabled or disabled anytime.
The Class SchemaMenuOrder shows that the file is cached, so updating it might not be the best practice. Should I save the file and then call SchemaMenuOrder::refreshCache() OR is there a better way?
yaadev.com
By Dave - 2 hours ago
How do you update the menuHidden value? With saveSchema()? If so, it will update the menu order cache automatically. And you can load it with: Itools\Cmsb\SchemaMenuOrder::loadMenuCache()
Note that undocumented internals might sometimes change, but usually quite infrequently.
interactivetools.com