Thread:Project:Support desk/Access to Article object from command line

Part of an extension that I've written will be run from a scheduled task from the command line. It all works until this part:

# get article text $titleObj = Title::newFromText($egApprovedRevsfastDocsDomainOwners); $articleObj = new Article($titleObj); $testmailer->sendMail($recipientList,"after articleObj",$message); #debug message is successfully $text = $articleObj->fetchContent; $testmailer->sendMail($recipientList,"after text retrieval",$message); #debug message unsuccessful

Now, this works when I navigate to the page as a normal special page, but when running from the command line I don't seem to have access to Title::, or the "new Article" isn't creating an article object. I have verified $thategApprovedRevsfastDocsDomainOwners contains what I expect.

What am I missing so that this can run from the command line? MW version: 1.19.2 PHP version 5.2.8 MYSQL ver: 5.1.37