2017 © Pedro Peláez
 

library joomla-entity

Entities for Joomla!

image

phproberto/joomla-entity

Entities for Joomla!

  • Friday, July 6, 2018
  • by phproberto
  • Repository
  • 5 Watchers
  • 12 Stars
  • 60 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 4 Open issues
  • 10 Versions
  • 114 % Grown

The README.md

Entity system for Joomla!

Because developing Joomla extensions should be fun and easy., (*1)

Quickstart

Let's use a fast example. This is how you actually can load an article by its id in Joomla:, (*2)

Load an article, (*3)

Where $article is a stdClass object. You can access its properties but it's really a dummy thing. An end point., (*4)

With an Article entity you can do:, (*5)

Load an article, (*6)

Here $article is an Article entity. An object that exposes its logic and resources to the developer., (*7)

Some awesome things that you can do with that article entity:, (*8)

// Use article as entity
echo $article->get('title');

// Use params transparently
if ($article->param('show_title', '1') === '1')
{
    echo $article->get('title');
}

// Check if article is featured
if ($article->isFeatured())
{
    // Do something
}

// Check if article has an intro image
if ($article->hasIntroImage())
{
    $image = $article->getIntroImage();
    echo '<img src="' . JUri::root(true) . '/' . $image['url'] . '" />';
}

// Check article state
if ($article->isPublished())
{
    echo 'Article published!';
}

// Retrieve article category
echo $article->category()->get('title');

// You can modify article properties
$article->set('title', 'My modified title');

// And save it
try 
{
    $article->save();
}
catch (\RuntimeException $e)
{
    echo 'There was an error saving article: ' . $e->getMessage();
}

See the full documentation for other examples., (*9)

Installation

Go to the releases section and follow the How to install / upgrade instructions in the latest release., (*10)

Documentation

Documentation is published in https://phproberto.github.io/joomla-entity/., (*11)

Requirements

  • PHP 7.1+
  • Joomla! CMS v3.9+

This library is licensed under GNU LESSER GENERAL PUBLIC LICENSE., (*12)

Copyright (C) 2017-2019 Roberto Segura López - All rights reserved., (*13)

The Versions

06/07 2018

dev-develop

dev-develop https://github.com/phproberto/joomla-entity

Entities for Joomla!

  Sources   Download

LGPL-2.1+

The Requires

  • php ^7.0

 

The Development Requires

orm entity joomla

06/07 2018

dev-field-group

dev-field-group https://github.com/phproberto/joomla-entity

Entities for Joomla!

  Sources   Download

LGPL-2.1+

The Requires

  • php ^7.0

 

The Development Requires

orm entity joomla

05/07 2018

dev-translation

dev-translation https://github.com/phproberto/joomla-entity

Entities for Joomla!

  Sources   Download

LGPL-2.1+

The Requires

  • php ^7.0

 

The Development Requires

orm entity joomla

19/06 2018

dev-master

9999999-dev https://github.com/phproberto/joomla-entity

Entities for Joomla!

  Sources   Download

LGPL-2.1+

The Requires

  • php ^7.0

 

The Development Requires

orm entity joomla

19/06 2018

v1.1.0

1.1.0.0 https://github.com/phproberto/joomla-entity

Entities for Joomla!

  Sources   Download

LGPL-2.1+

The Requires

  • php ^7.0

 

The Development Requires

orm entity joomla

23/05 2018

v1.0.2

1.0.2.0 https://github.com/phproberto/joomla-entity

Entities for Joomla!

  Sources   Download

LGPL-2.1+

The Requires

  • php ^7.0

 

The Development Requires

orm entity joomla

23/05 2018

dev-table-options

dev-table-options https://github.com/phproberto/joomla-entity

Entities for Joomla!

  Sources   Download

LGPL-2.1+

The Requires

  • php ^7.0

 

The Development Requires

orm entity joomla

29/03 2018

v1.0.1

1.0.1.0 https://github.com/phproberto/joomla-entity

Entities for Joomla!

  Sources   Download

LGPL-2.1+

The Requires

  • php ^7.0

 

The Development Requires

orm entity joomla

29/03 2018

v1.0.0

1.0.0.0 https://github.com/phproberto/joomla-entity

Entities for Joomla!

  Sources   Download

LGPL-2.1+

The Requires

  • php ^7.0

 

The Development Requires

orm entity joomla

22/09 2017

v1.0.0-alpha

1.0.0.0-alpha

Entities for Joomla!

  Sources   Download

LGPL-2.1+

The Requires

  • php >=5.5.0

 

The Development Requires