From: Alan Knowles Date: Sun, 11 Dec 2011 08:31:03 +0000 (+0800) Subject: DataObjects/ProjectDirectory.php X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=708e7fe254e0abad605e4d3e73cdb33aa280ee2b DataObjects/ProjectDirectory.php --- diff --git a/DataObjects/ProjectDirectory.php b/DataObjects/ProjectDirectory.php index 9528f674..b00bd5b4 100644 --- a/DataObjects/ProjectDirectory.php +++ b/DataObjects/ProjectDirectory.php @@ -59,10 +59,21 @@ class Pman_Core_DataObjects_ProjectDirectory extends DB_DataObject $this->office_id = $pe->office_id; $this->role = $pe->role; $this->insert(); + + } + /** + * project id's for a user. + * @param DB_DataObject_Core_Person - who + * @return array id's of the project they are a member of.. + */ + function projects($au) + { } + + function checkPerm($lvl, $au) { return $au->hasPerm('Documents.Project_Directory', $lvl);