Extend extended

Posted on 2005-05-10 21:11:54 EEST.

Only code:

class Amerigard extends NewMidgardArticle
{
}
class FlyHigh extends Amerigard
{
}
$object = new FlyHigh();
print_r($object);
$object->getByID(17);

output:


flyhigh Object
(
[sitegroup] =>
[author] =>
[owner] =>
[realm] =>
[guid] =>
[changed] =>
[updated] =>
[action] =>
[errno] =>
[errstr] =>
[id] =>
[calstart] =>
[caldays] =>
[icon] =>
[view] =>
[print] =>
[extra1] =>
[extra2] =>
[extra3] =>
[name] =>
[score] =>
[revised] =>
[revision] =>
[created] =>
[approved] =>
[locked] =>
[type] =>
[creator] =>
[revisor] =>
[approver] =>
[locker] =>
[up] =>
[topic] =>
[title] =>
[abstract] =>
[content] =>
[url] =>
[lang] =>
[sid] =>
[contentauthor] =>
)
midgard-lib:5071:debug:query=SELECT sitegroup, realm, guid, action, author
FROM repligard WHERE (realm='article' and id=17) AND (repligard.sitegroup in (0,0))
midgard-lib:5071:debug:query=SELECT up,locked,revision,extra3,view,extra2,print,topic,
name,extra1,approver,revised,creator,type,icon,calstart,approved,caldays,locker,score,
revisor,created,id FROM article WHERE article.id=17 AND (article.sitegroup in (0, 0)
OR 0<>0)
Follow this link , if you really do not understand this code.

Back

Layout Copyright © 2006 Finnish Teleservice Center Ltd Oy - Site Powered by Midgard CMS