calwebsnc
07-20-2010, 10:46 AM
Hi,
I'm trying to develop a class to write new threads on vbulletin.
This is my code
<?php
// ######################### REQUIRE BACK-END ############################
require_once('./global.php');
class codeigniter_bridge{
function codeigniter_bridge(){
echo "Create Object <br/>";
$this->threaddm =& datamanager_init('Thread', $vbulletin, ERRTYPE_ARRAY, 'threadpost');
echo "Object Created<br/>";
}
function postThread(){
echo "Call Prova<br/>";
$class_methods = get_class_methods($this->threaddm);
foreach ($class_methods as $method_name) {
echo "$method_name\n";
}
}
}
$vb = new codeigniter_bridge();
$vb->postThread();
?>
and this is what appens:
http://www.cyberludus.com/forum/codeigniter_bridge.php
Where I do wrong?
Thank you!
I'm trying to develop a class to write new threads on vbulletin.
This is my code
<?php
// ######################### REQUIRE BACK-END ############################
require_once('./global.php');
class codeigniter_bridge{
function codeigniter_bridge(){
echo "Create Object <br/>";
$this->threaddm =& datamanager_init('Thread', $vbulletin, ERRTYPE_ARRAY, 'threadpost');
echo "Object Created<br/>";
}
function postThread(){
echo "Call Prova<br/>";
$class_methods = get_class_methods($this->threaddm);
foreach ($class_methods as $method_name) {
echo "$method_name\n";
}
}
}
$vb = new codeigniter_bridge();
$vb->postThread();
?>
and this is what appens:
http://www.cyberludus.com/forum/codeigniter_bridge.php
Where I do wrong?
Thank you!