Class icon defined in the data model, use either the static method GetClassIcon, or GetIcon (this one could be overloaded for an icon depending on the object state)

SVN:trunk[462]
This commit is contained in:
Romain Quetiez
2010-06-14 14:23:51 +00:00
parent c61e375483
commit c439ff2f46
2 changed files with 24 additions and 0 deletions

View File

@@ -492,6 +492,11 @@ abstract class DBObject
$this->m_iKey = $iNewKey;
}
public function GetIcon()
{
return MetaModel::GetClassIcon(get_class($this));
}
public function GetName()
{
$sNameAttCode = MetaModel::GetNameAttributeCode(get_class($this));