Finalized the concept of abstract classes (#35) in the core. Still to be used within the UI.

SVN:trunk[378]
This commit is contained in:
Romain Quetiez
2010-04-30 16:42:08 +00:00
parent a980d043c0
commit e651c84331
4 changed files with 40 additions and 14 deletions

View File

@@ -302,6 +302,14 @@ function DisplayClassesList($oPage)
function DisplayClassDetails($oPage, $sClass)
{
$oPage->p("<h2>$sClass</h2><br/>\n".MetaModel::GetClassDescription($sClass)."<br/>\n");
if (MetaModel::IsAbstract($sClass))
{
$oPage->p("Abstract class: could not be instantiated");
}
else
{
$oPage->p("Not abstract: could be instantiated");
}
$oPage->p("<h3>Class Hierarchy</h3>");
$oPage->p("[<a href=\"?operation='list'\">All classes</a>]");
// List the parent classes