Hello midgard!

I started to experiment with OOP style functions, and according to manual
besides three main member functions (create, update and delete) there
should be defined $article->setScore() and $article->setType()... 
But using setscore and setttype functions results in "call to unsupported
or undefined function" error. 
Is it me, or it actually isn't implemented yet?
I am using latest midgard from cvs...

Here is test code which produced the error:

$a = mgd_get_article();
$a->name = "test.igp";
$a->topic = $root_topic;
$a->title = "Test IGP";
$a->abstract = "Test...";
$a->content = "Test articl";
$a->author = $midgard->user;
$id = $a->create();
print "ID: $id";
$a->settype(0);
$a->setScore(10); 

which prints ID of new created article and returns fatal error complainig
about unsupported or undefined function.

Thanks!

Boris Brzac
[ IGP Internet ]


--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org

To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]

Reply via email to