diff --git a/php/classes/AmdaAction.php b/php/classes/AmdaAction.php
index 64018af..7415ab8 100644
--- a/php/classes/AmdaAction.php
+++ b/php/classes/AmdaAction.php
@@ -189,9 +189,13 @@ class AmdaAction
case 'catalog':
if ($isLeaf) {
$info = 'Nb intervals: '.$child->getAttribute('intervals').'
';
- // ICIIIII
$objectMgr = new TimeTableMgr();
+
$obj_info = $objectMgr->getObject($id, $nodeType);
+
+ if($nodeType == "catalog")
+ $info .='Nb columns: '.$obj_info['nbParam']. '
';
+
if (!empty($obj_info) && !empty($obj_info['description'])) {
$info .= 'Description: '. $obj_info['description'] . '
';
}
diff --git a/php/classes/TimeTableMgr.php b/php/classes/TimeTableMgr.php
index 81c1029..cbc11e6 100644
--- a/php/classes/TimeTableMgr.php
+++ b/php/classes/TimeTableMgr.php
@@ -74,8 +74,14 @@ class TimeTableMgr extends AmdaObjectMgr
$attributes = $objToGet->childNodes;
$nbInt = 0;
+ $nbParam = 0;
foreach ($attributes as $attribute) {
if ($attribute->nodeType == XML_ELEMENT_NODE) {
+ if($attribute->tagName == 'parameters'){
+ foreach($attribute->childNodes as $parameter){
+ $nbParam++;
+ }
+ }
/*if ($attribute->tagName == 'intervals') {
$start = $attribute -> getElementsByTagName('start')->item(0) -> nodeValue;
$stop = $attribute -> getElementsByTagName('stop')->item(0) -> nodeValue;
@@ -116,6 +122,7 @@ class TimeTableMgr extends AmdaObjectMgr
if($attributesToReturn['surveyStop'] == "" )
$attributesToReturn['surveyStop'] = $stop;
$attributesToReturn['nbIntervals'] = $nbInt;
+ $attributesToReturn['nbParam'] = $nbParam;
return $attributesToReturn;
}
--
libgit2 0.21.2