The Joomla! Forum ™






Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: Mon Jul 23, 2007 6:06 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Mon Jul 23, 2007 5:44 pm
Posts: 2
http://api.joomla.org/
The has a graphic associated to an "Abstract private method." also there is no Protected method distinction anywhere.

I'm new to Joomla! but not to OOP, I hope thats a typo or an oversite. An Abstract private method will do nothing but give visibility errors.

Code:
<?php
abstract class SuperDuperClass
{
  public function __construct()
  {
    $this->abstractPrivateMethod();
  }
 
  abstract private function abstractPrivateMethod(); //FATAL ERROR!!
}

class SuperSubClass extends SuperDuperClass
{
  private abstractPrivateMethod()
  {
    //won't even get here!
  }
}

$sub = new SuperSubClass(); //here neither
?>

Running this gives "Fatal error: Abstract function SuperDuperClass::abstractPrivateMethod() cannot be declared private in /home/ludicruz/dev/APF.php on line 9"

Just a heads up :)


Top
 Profile  
 
PostPosted: Mon Jul 23, 2007 8:21 pm 
User avatar
Joomla! Explorer
Joomla! Explorer

Joined: Mon Dec 12, 2005 5:34 pm
Posts: 418
Hi,

thanks for noticing. Any particular class(es) that's you have in mind?

Please remember that Joomla! is enirely written in PHP4 and none of these concepts really apply.
The information is taken from the phpDoc comments where "private" basically means (now) that it should be treated as such, but PHP4 won't prevent you from doing so.
The __constructor methods being abstract means it'll needs implementation in inherited classes, ie. JSessionStorage or JObject.

Have fun,
CirTap

_________________
You can have programs written fast, well, and cheap, but you only get to pick 2 ...

"I love deadlines. I like the whooshing sound they make as they fly by." Douglas Adams


Top
 Profile  
 
PostPosted: Mon Jul 23, 2007 9:12 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Mon Jul 23, 2007 5:44 pm
Posts: 2
Nothing I noticed off-hand. But on that main page there are the symbols with definitions was what I was referring to.

oh I love your signature, I'd heard the deadline quote. But the fast, well, and cheap is SOOO true!


Top
 Profile  
 
PostPosted: Tue Jul 24, 2007 9:52 am 
User avatar
Joomla! Explorer
Joomla! Explorer

Joined: Mon Dec 12, 2005 5:34 pm
Posts: 418
Hi,

now I see what you mean. I think those labels are based on the image names themself, which are part of phpDocumentor. This icon-set is rather "old" and never has changes since PHP 4.0 :)
I'll ask Chris to get this fixed.

ludicruz wrote:
oh I love your signature, I'd heard the deadline quote. But the fast, well, and cheap is SOOO true!
thanks :)
Apparently for Joomla! 1.5 they picked well and cheap ;)

Have fun,
CirTap

_________________
You can have programs written fast, well, and cheap, but you only get to pick 2 ...

"I love deadlines. I like the whooshing sound they make as they fly by." Douglas Adams


Top
 Profile  
 
PostPosted: Tue Jul 24, 2007 12:00 pm 
User avatar
Joomla! Master
Joomla! Master

Joined: Thu Aug 18, 2005 10:41 am
Posts: 15753
Mod note; duplicate topic removed

_________________
Regards Robin

http://www.linkedin.com/in/robinmuilwijk - http://twitter.com/i_robin


Top
 Profile  
 
PostPosted: Fri Aug 03, 2007 7:08 pm 
User avatar
Joomla! Ace
Joomla! Ace

Joined: Thu Aug 18, 2005 8:57 am
Posts: 1381
Location: Shrewsbury, Shropshire, United Kingdom
I have remove "abstract private method" from the SVN documentation (http://api.joomla.org/svn/).

It will be removed from http://api.joomla.org when RC2 is released.

Thanks for the heads-up.

Regards,
Chris.

_________________
Chris Davenport - Joomla Production Leadership Team

Lion Coppice http://www.lioncoppice.org/
Davenport Technology Services http://www.davenporttechnology.com/


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 



Who is online

Users browsing this forum: No registered users and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group