Git Product home page Git Product logo

joomla-entity's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

joomla-entity's Issues

Packagist package for tests

When extending joomla-entity you usually need to add it as a require-dev dependency. The issue with the joomla extension folder structure is that you lose the option to share it through packagist for testing purposes.

Let's keep this repo for the pure PHP library and create a joomla-entity-library for the joomla extension. That way we can also test there that extension is installed, etc.

create method

Amazing stuff!!

I understand that the method to create instances is instance... and that's mainly because of Joomla's current practice.

To depart from the old practice, I'd love to have the verb to the action of object creation as create... it could be simply an alias.

Again, thank you @phproberto !

Load this library using Packagist

Hola Roberto!

I want to know if will be possible in the future to use this library using composer/packagist for standalone applications.

Regards

Add pagination to DatabaseSearcher

Right now we cannot serve pagination data because it does not support it. Ideally we want that after any search we can use getPagination to retrieve a pagination object

User::loadFromData() does not work properly

This is not really a bug but how User table works in joomla. You usually can do something like this to load a row based on some of its columns:

$table->load(['title' => 'My title', 'access' => 1]);

But joomla user table uses id in load:

$userTable->load(12);

It does not work like other tables. Suggested fix is to override loadFromData() method in user entity to perform a custom query based on tables behavior.

Some explanation

Hi Roberto, if been following you progress developing joomla-entity, joomla-common, joomla-component, joomla-module, over the last weeks, but would like some explanation so if you could write a blog post or have some practical instructions that would be nice, perhaps then i'm able to test.

greetings Ruud

Unable to load library through JLoader

This fails:

JLoader::import('joomla_entity.library')

because the awesome JLoader identifies a library as joomla if starts with joomla. We probably need to replace it with phproberto_joomla_entity so it uses the same structure than joomla-module package.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.