Hey, im sort of new to the world of object oriented programming and i seem to be having a little problem.
I have the following class:
class Projectreply extends BaseProjectreply
{
public $myauthor;
public function getAuthor()
{
return $this->myauthor;
}
public function setAuthor($v)
{
$this->myauthor = $v;
}
}
Now Somehow
$reply = new Projectreply();
$reply->setAuthor($rs->get($namePos));
$reply->getAuthor();
Is not working and i cant seem to explain why.
Im sure the value is being passed to the class, im sure the getAuthor method is being called. Something is going wrong with the variable in the class.
Any good tutorial about what i'm not understanding?