}
-
/**
* fetch a list of user projects.
* if you need to filter open/closed.. then add whereAdds before calling
*/
- function getUserProjects($au, $data='id') // COMPANY BASED!!!!
+ function userProjects($au, $data='id') // COMPANY BASED!!!!
{
+
$id = (int) $au->company_id;
+
$this->whereAdd("
(client_id= $id) OR (agency_id= $id)
");
return empty($data) ? $this->fetchAll() :$this->fetchAll($data);
+ }
+
+ // DEPRICATED - use userProjects
+
+ function getUserProjects($au, $data='id') // COMPANY BASED!!!!
+ {
+ return $this->userProjects($au, $data);
+
+
}