Releases: phproberto/joomla-entity
Releases · phproberto/joomla-entity
Version 1.1.0 - Stable
Bug fixes
$article = new Article;
// This was throwing an exception because article is not loaded
$images = $article->getImages();
New Features
- Field system improvements:
// New function to retrieve a field by its name
$yearField = $article->fieldByName('year');
// Check if a field has a value assigned an retrieve it
if ($yearField->hasValue() && $yearField->value() === '2018')
{
echo 'This article is from year 2018';
}
Collection::filter()
: function to create retrieve a subset of a collection.
// Use a function to retrieve only articles of category 23
$categoryArticles = $articles->filter(
function ($article)
{
return 23 === (int) $article->get('catid');
}
);
- Allow to retrieve entity fields by their name.
Downloads
- Installable extension: v1.1.0/joomla-entity-v1.1.0.zip
Version 1.0.2 - Stable
- Bug fixes
Version 1.0.1 - Stable
- Added automatic updates support.
Version 1.0.0 - Stable
-
Integration with:
- Users
- Content
- Categories
- Tags
-
Extra noticeable features:
- Validation system
- Translations with validation & fallback support
- Integrated ACL system
- Custom fields integration