Updating public profile by writing new code that reduces queries and adds some more features - also fixes issue 13

This commit is contained in:
Nathan Adams
2013-08-17 14:32:11 -05:00
parent ccece87dee
commit 18e191abc0
5 changed files with 136 additions and 60 deletions

View File

@@ -102,6 +102,14 @@ class IDF_Commit extends Pluf_Model
'help_text' => 'Date of creation by the scm',
),
);
$projtbl = $this->_con->pfx . "idf_projects";
$this->_a['views'] = array(
'project_find_private' => array (
'where' => 'private = 0',
'join' => "INNER JOIN " . $projtbl . " ON " . $this->getSqlTable() . ".project = " . $projtbl . ".id"
)
);
}
function __toString()