From 41648101cfe91b1e43e4436eb658ceb889897989 Mon Sep 17 00:00:00 2001 From: Christian Hammers Date: Mon, 21 Feb 2011 22:39:56 +0000 Subject: [PATCH] Documented snmp_set_valueretrieval() and snmp_get_valueretrieval(). git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@308549 c90b9560-bf6c-de11-be94-00142212c4b1 --- .../functions/snmp-get-valueretrieval.xml | 46 ++++++++-- .../functions/snmp-set-valueretrieval.xml | 88 +++++++++++++++++-- 2 files changed, 121 insertions(+), 13 deletions(-) diff --git a/reference/snmp/functions/snmp-get-valueretrieval.xml b/reference/snmp/functions/snmp-get-valueretrieval.xml index d67f6450f0..dc8c54788a 100644 --- a/reference/snmp/functions/snmp-get-valueretrieval.xml +++ b/reference/snmp/functions/snmp-get-valueretrieval.xml @@ -1,32 +1,61 @@ - + snmp_get_valueretrieval Return the method how the SNMP values will be returned + &reftitle.description; - intsnmp_get_valueretrieval + int + snmp_get_valueretrieval - - &warn.undocumented.func; - - + + + &reftitle.returnvalues; + + On of the SNMP_VALUE_LIBRARY, SNMP_VALUE_PLAIN, SNMP_VALUE_OBJECT constants. + + + + + &reftitle.examples; + + + Using snmp_get_valueretrieval + +value; + } else { + echo $ret; + } +]]> + + + + + &reftitle.seealso; - snmp_set_valueretrieval + + snmp_set_valueretrieval + + - + + diff --git a/reference/snmp/functions/snmp-set-valueretrieval.xml b/reference/snmp/functions/snmp-set-valueretrieval.xml index 86084428b5..af89fd1d9c 100644 --- a/reference/snmp/functions/snmp-set-valueretrieval.xml +++ b/reference/snmp/functions/snmp-set-valueretrieval.xml @@ -7,26 +7,103 @@ Specify the method how the SNMP values will be returned + &reftitle.description; - boolsnmp_set_valueretrieval - intmethod + bool + snmp_set_valueretrieval + + int + method + SNMP_VALUE_LIBRARY + + + + + &reftitle.parameters; + + + + + method + + + + types + + + + SNMP_VALUE_LIBRARY + The return values will be as returned by the Net-SNMP library. + + + SNMP_VALUE_PLAIN + The return values will be the plain value without the SNMP type hint. + + + SNMP_VALUE_OBJECT + + The return values will be objects with the properties "value" and "type", where the latter + is one of the SNMP_OCTET_STR, SNMP_COUNTER etc. constants. + + + + +
+
+
+
+
+
+ + + + &reftitle.examples; + + + Using + <function>snmp_set_valueretrieval</function> + + + 4 <-- SNMP_OCTET_STR, see constants + // [value] => lo + // ) + +?> +]]> + + + &reftitle.seealso; - snmp_get_valueretrieval + + snmp_get_valueretrieval + + - +
+