svn: /phd/trunk/phpdotnet/phd/Package/IDE/API/ Function.php
| From: | Moacir de Oliveira Miranda Júnior | Date: | Sun, 05 Jun 2011 20:50:31 +0000 |
| Subject: | svn: /phd/trunk/phpdotnet/phd/Package/IDE/API/ Function.php | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-8206@lists.php.net to get a copy of this message | ||
moacir Sun, 05 Jun 2011 20:50:31 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=311844
Log:
Adding the function to get the errors info
Changed paths:
U phd/trunk/phpdotnet/phd/Package/IDE/API/Function.php
Modified: phd/trunk/phpdotnet/phd/Package/IDE/API/Function.php
===================================================================
--- phd/trunk/phpdotnet/phd/Package/IDE/API/Function.php 2011-06-05 20:22:02 UTC (rev 311843)
+++ phd/trunk/phpdotnet/phd/Package/IDE/API/Function.php 2011-06-05 20:50:31 UTC (rev 311844)
@@ -99,6 +99,14 @@
private $changeLogEntries = array();
/**
+ * Description of the errors the function may throw.
+ * Content of the <refsect1 role="errors"> of the Manual.
+ *
+ * @var string
+ */
+ private $errors;
+
+ /**
* Creates a new instance of Package_IDE_API_Function.
*
* @param SimpleXMLElement $xmlElement A new SimpleXMLElement
@@ -112,6 +120,7 @@
$this->manualid = $xmlElement->manualid;
$this->returnType = $xmlElement->return->type;
$this->returnDescription = $xmlElement->return->description;
+ $this->errors = $xmlElement->errors->description;
if (isset($xmlElement->params->param)) {
foreach ($xmlElement->params->param as $param) {
@@ -258,10 +267,21 @@
*
* @return array Array with the changelog entries.
*/
- public function getchangeLogEntries()
+ public function getChangeLogEntries()
{
return $this->changeLogEntries;
}
+
+ /**
+ * Content of the <refsect1 role="errors"> of the function.
+ *
+ * @return string The description of the errors the function may throw.
+ */
+ public function getErrors()
+ {
+ return $this->errors;
+ }
+
}
/*