2.2.1
https://github.com/hubzero/hubzero-cms/tree/2.2.1
Changes
- PHP 5.6 minimum requirement
- PHP 7 ready
migrations
directories added to all components and plugins with initial install migrationsAutomatic API endpoints for ORM models - If a component has ORM models, the system will automatically make available API endpoints for the basic CRUD actions. Models must be named as a singular entity and endpoints are reached via the plural of those entity names. For example, if the Blog component has a model named
Entry
, then the API endpoint would behttps://yourhub.org/api/blog/entries
.Automatic API endpoints will only be available if a component has not already implemented an API interface (i.e., if a component does not have an
/api
sub-directory).Support for un-prefixed component and module directories. This allows for the removal of the redundant
com_
andmod_
prefixes on directories.old: app/components/com_example/ app/modules/mod_example/ new: app/components/example/ app/modules/example/
Note: Prefixed directories will be deprecated in the next version.
-
Autoloading of PHP files for un-prefixed components. No
include
orrequire
statements needed. Class namespace directly maps to case insensitive path.// Path: app/components/example/models/foo.php // Directly maps to a class of Components\Example\Models\Foo // Calling the class the first time autoloads it, so no include statement is needed: class Examples extends SiteController { public function displayTask() { $model = new \Components\Example\Models\Foo(); } }
Hubzero\Database\Manager
class added. Class is used to manage database connections.Hubzero\Database\Relational::connection
property changed from object (Hubzero\Database\Driver
) to (string) name of the connection to be resolved by the manager.Hubzero\Database\Driver\Pdo
is generic PDO driver class.Hubzero\Database\Driver\Mysql
added, extendsDriver\Pdo
Hubzero\Database\Driver\Sqlite
added, extendsDriver\Pdo
Hubzero\Database\Driver\Pgsql
added, extendsDriver\Pdo
- Projects now use global activity log.
core/libraries/simplepie
changed to a Composer packageHubzero\Database\Table
added as temporary replacement for Joomla'sJTable
Joomla constants replacement:
Joomla HUBzero JPATH_COMPONENT
PATH_COMPONENT
JPATH_COMPONENT_SITE
N/A JPATH_COMPONENT_ADMINISTRATOR
N/A - End of life for Joomla-based code
- Base install migrations added to every component
- Suggestions for alternate search terms if a term returns no results
Removed
com_admin
removed from corecom_store
removed from coreplg_quickicon_extensionupdate
removed from coreplg_quickicon_joomlaupdate
removed from coreplg_xmessage_im
removed from coreplg_xmessage_rss
removed from coreplg_xmessage_smstxt
removed from coretpl_hubbasic2012
removed from coretpl_hubbasic2013
removed from coretpl_baselayer
removed from core
Added
com_activity
added - Admin interface and API endpoint for browsing/inspecting site activity
Changed
com_citations
rewritten to use the ORMcom_config
rewritten from Joomla-based codecom_plugins
rewritten to use the ORMcom_resources
rewritten to use the ORMcom_support
rewritten to use the ORMcom_wishlist
rewritten to use the ORM