?
avatar BuenGenio
BuenGenio
19 Feb 2015

It's often really useful to be able to bind an associative array, or another object, to an instance of JObject (or inheriting class). Can we add this please? Happy to do the work...

avatar BuenGenio BuenGenio - open - 19 Feb 2015
avatar joomla-cms-bot joomla-cms-bot - change - 19 Feb 2015
Labels Added: ?
avatar Bakual
Bakual - comment - 19 Feb 2015

JObject is actually deprecated. I'm wondering how much sense it makes to add things to it.

avatar BuenGenio
BuenGenio - comment - 19 Feb 2015

Not much, if it's deprecated, does it? ;)

What's replacing it? What's the location of up-to-date documentation so I don't look like a fool next time? :)

Thanks

avatar Bakual
Bakual - comment - 19 Feb 2015

It is officially deprecated with Joomla 3.4.0. You're not to blame for not knowing it :smile:

There is no class to replace it. JObject is a historic class which isn't really needed anymore with current PHP versions.

The error handling should instead be done using exceptions. Other than that it only contains some setter and getter methods. Either create own set/get methods in your class or use for example our Registry class if you need more advanced property handling.

avatar elkuku
elkuku - comment - 19 Feb 2015

Check out the JRegistry class for that matter.
On Feb 19, 2015 6:13 AM, "Thomas Hunziker" notifications@github.com wrote:

It is officially deprecated with Joomla 3.4.0. You're not to blame for not
knowing it [image: :smile:]

There is no class to replace it. JObject is a historic class which isn't
really needed anymore with current PHP versions.

The error handling should instead be done using exceptions. Other than
that it only contains some setter and getter methods. Either create own
set/get methods in your class or use for example our Registry class if you
need more advanced property handling.


Reply to this email directly or view it on GitHub
#6125 (comment).

avatar mbabker
mbabker - comment - 19 Feb 2015

What's replacing it? What's the location of up-to-date documentation so I don't look like a fool next time? :)

FWIW we typically update api.joomla.org with each release. I'm actually working on getting the updated content together with a couple of minor template updates, so that content should roll out either over the weekend or on Monday. And like @Bakual said, 3.4 is the first release it's deprecated in, so without following the GitHub merges, it's easy to miss things in upcoming releases.

avatar BuenGenio
BuenGenio - comment - 19 Feb 2015

The reason I may sound a bit edgy, is because since J! 3.x I've sometimes struggled to find clear or up to date documentation (with examples, which helps tremendously!) on how to use certain parts of the API.

Joomla Framework, is even a darker area, despite the fact I've tried (unsuccessfully) so far to get it bootstrapped as a foundation for my new projects - mostly because of the lack of decent documentation on it.

Had I had more time to do it myself - I certainly would... alas, I'm not in that position.

Perhaps I went off on an off-topicky limb, but maybe this can be relayed to the relevant parties in the hope that Joomla may be picked up quicker and more readily by the masses.... ( should this be another bug report? :))

avatar zero-24 zero-24 - change - 19 Feb 2015
Category Libraries
avatar brianteeman brianteeman - change - 25 Feb 2015
Labels Removed: ?
avatar brianteeman brianteeman - change - 25 Feb 2015
Labels Added: ?
avatar vdespa
vdespa - comment - 22 Mar 2015

Considering that JObject is deprecated, adding new features to it make little sense (as already mentioned). Since there is no visible progress, I am closing this issue for the moment. If there is any opposition to closing this, just leave a comment. Thanks :)


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/6125.
avatar vdespa vdespa - change - 22 Mar 2015
Status New Closed
Closed_Date 0000-00-00 00:00:00 2015-03-22 21:29:33
Closed_By vdespa
avatar joomla-cms-bot
joomla-cms-bot - comment - 22 Mar 2015

Set to "closed" on behalf of @vdespa by The JTracker Application at issues.joomla.org/joomla-cms/6125

avatar joomla-cms-bot joomla-cms-bot - close - 22 Mar 2015

Add a Comment

Login with GitHub to post a comment