/** * Return array of active projects that this user has access to * * @access public * @param void * @return array */ function getActiveProjectIdsCSV() { if (is_null($this->active_projects_ids)) { $ids = ProjectUsers::getProjectIdsByUser($this); if (count($ids) > 0) { $this->active_projects_ids = implode(',', $ids); } else { $this->active_projects_ids = "0"; } } return $this->active_projects_ids; }