-
Notifications
You must be signed in to change notification settings - Fork 240
Conversation
$ret = $ret[$field]; | ||
break; | ||
} | ||
echo $ret."\n"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need spaces around dots
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
throw new CentreonClapiException(self::MISSINGPARAMETER); | ||
} | ||
$p = $this->object->getParameters($params[0], $params[1]); | ||
print $p[$params[1]]."\n"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need spaces around dots
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
@kduret ping |
$ret = $extended->getParameters($objectId, $field); | ||
$ret = $ret[$field]; | ||
} | ||
switch ($params[1]) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The switch is the same as that employed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. But this one is to convert parameter value if needed. Otherwise, the ->getParameters would be duplicated.
* fix(doc) doc for host get param #5783 * API: Add HOST getparam
thanks for your contribution |
UPDATE: #5946 (add possibility to get several params and fix 3 variables not found) |
Looks good to me. Tested with the latest update brought by #5946. |
Fixes: #4343