newToThis
unread,May 9, 2008, 4:24:49 AM5/9/08Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Php Object Generator
$lstSources = Source::GetDocumentList();
for ($i = 0; $i < sizeof($lstSources); $i++)
{
$source = $lstSources[$i];
...
}
--------
Hi all,
I have a beginner question -- given that a Source has many
Document(s), and that I've set up POG & databases correctly... why am
I getting the error:
Fatal error: Using $this when not in object context in /{path}/dao/
objects/class.source.php on line 310
where line 310 in class.source.php is:
function GetDocumentList($fcv_array = array(), $sortBy='',
$ascending=true, $limit='') {
$document = new Document();
$fcv_array[] = array("sourceId", "=", $this->sourceId); // line 310
$dbObjects = $document->GetList($fcv_array, $sortBy, $ascending,
$limit);
return $dbObjects;
}
====
Thanks in advance for your help!