mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 18:48:51 +02:00
New type of attribute: Blob, allowing documents in the application. Was fully developed in the core, but roughly integrated in the application... todo: file upload for edition, file download for viewing
SVN:trunk[196]
This commit is contained in:
@@ -338,13 +338,20 @@ function DisplayClassDetails($oPage, $sClass)
|
||||
$sAllowedValues = "";
|
||||
$oAllowedValuesDef = $oAttDef->GetValuesDef();
|
||||
$sMoreInfo = "";
|
||||
if (is_subclass_of($oAttDef, 'AttributeDBFieldVoid'))
|
||||
|
||||
$aCols = array();
|
||||
foreach($oAttDef->GetSQLColumns() as $sCol => $sFieldDesc)
|
||||
{
|
||||
$aCols[] = "$sCol: $sFieldDesc";
|
||||
}
|
||||
if (count($aCols) > 0)
|
||||
{
|
||||
$sCols = implode(', ', $aCols);
|
||||
|
||||
$aMoreInfo = array();
|
||||
$aMoreInfo[] = "Column: <em>".$oAttDef->GetSQLExpr()."</em>";
|
||||
$aMoreInfo[] = "Column(s): <em>$sCols</em>";
|
||||
$aMoreInfo[] = "Default: '".$oAttDef->GetDefaultValue()."'";
|
||||
$aMoreInfo[] = $oAttDef->IsNullAllowed() ? "Null allowed" : "Null NOT allowed";
|
||||
//$aMoreInfo[] = $oAttDef->DBGetUsedFields();
|
||||
$sMoreInfo .= implode(', ', $aMoreInfo);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user