Permalink
Browse files

Initial version.

  • Loading branch information...
boenrobot committed Oct 1, 2011
0 parents commit 90d0d6b6806975c1b0b6f5aeaa4c372d35697d66
Showing with 26,404 additions and 0 deletions.
  1. +1 −0 CREDITS
  2. +2 −0 README
  3. +1 −0 README.md
  4. +1 −0 RELEASE-1.0.0b1
  5. +4 −0 catalog.xml
  6. +20 −0 docs/docblox.xml
  7. +188 −0 docs/docblox.xsd
  8. +1,789 −0 docs/doxygen.ini
  9. +78 −0 docs/tutorials/PEAR2_Net_RouterOS/Client.cls
  10. +135 −0 docs/tutorials/PEAR2_Net_RouterOS/PEAR2_Net_RouterOS.pkg
  11. +69 −0 docs/tutorials/PEAR2_Net_RouterOS/Query.cls
  12. +33 −0 examples/callback-and-loop.php
  13. +35 −0 examples/loop-and-extract.php
  14. +33 −0 examples/send-and-complete.php
  15. +19 −0 examples/send-and-forget.php
  16. +23 −0 examples/sync-request-arguments.php
  17. +22 −0 examples/sync-request-simple.php
  18. +12 −0 extrasetup.php
  19. 0 nbproject/private/config.properties
  20. +7 −0 nbproject/private/private.properties
  21. +5 −0 nbproject/private/private.xml
  22. +5 −0 nbproject/private/private.xml.0.nblh~
  23. +8 −0 nbproject/private/retriever/catalog.xml
  24. +17,458 −0 nbproject/private/retriever/docbook.org/xml/5.0/xsd/docbook.xsd
  25. +32 −0 nbproject/private/retriever/docbook.org/xml/5.0/xsd/xlink.xsd
  26. +13 −0 nbproject/private/retriever/docbook.org/xml/5.0/xsd/xml.xsd
  27. +652 −0 nbproject/private/retriever/pear.php.net/dtd/package-2.0.xsd
  28. +89 −0 nbproject/private/retriever/pear.php.net/dtd/tasks-1.0.xsd
  29. +15 −0 nbproject/project.properties
  30. +9 −0 nbproject/project.xml
  31. +292 −0 package.xml
  32. +123 −0 packagexmlsetup.php
  33. +47 −0 src/PEAR2/Net/RouterOS/Autoload.php
  34. +563 −0 src/PEAR2/Net/RouterOS/Client.php
  35. +489 −0 src/PEAR2/Net/RouterOS/Communicator.php
  36. +35 −0 src/PEAR2/Net/RouterOS/DataFlowException.php
  37. +35 −0 src/PEAR2/Net/RouterOS/Exception.php
  38. +36 −0 src/PEAR2/Net/RouterOS/InvalidArgumentException.php
  39. +81 −0 src/PEAR2/Net/RouterOS/LengthException.php
  40. +184 −0 src/PEAR2/Net/RouterOS/Message.php
  41. +82 −0 src/PEAR2/Net/RouterOS/NotSupportedException.php
  42. +216 −0 src/PEAR2/Net/RouterOS/Query.php
  43. +226 −0 src/PEAR2/Net/RouterOS/Request.php
  44. +179 −0 src/PEAR2/Net/RouterOS/Response.php
  45. +313 −0 src/PEAR2/Net/RouterOS/ResponseCollection.php
  46. +35 −0 src/PEAR2/Net/RouterOS/SocketException.php
  47. +83 −0 src/PEAR2/Net/RouterOS/UnexpectedValueException.php
  48. +848 −0 tests/ClientFeaturesTest.php
  49. +316 −0 tests/ConnectionTest.php
  50. +279 −0 tests/PseudoServer.php
  51. +649 −0 tests/RequestHandlingTest.php
  52. +430 −0 tests/StateAlteringFeaturesTest.php
  53. +3 −0 tests/bootstrap.php
  54. +102 −0 tests/configuration.xml
@@ -0,0 +1 @@
+Vasil Rangelov [boen_robot] <boen.robot@gmail.com> <lead>
2 README
@@ -0,0 +1,2 @@
+RouterOS API client implementation.
+This package allows you to read and write information from a RouterOS host using MikroTik's RouterOS API.
@@ -0,0 +1 @@
+See the project wiki for installation instructions and other documentation.
@@ -0,0 +1 @@
+First PEAR2 release
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog" prefer="system">
+ <nextCatalog catalog="nbproject/private/retriever/catalog.xml"/>
+</catalog>
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<docblox
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:noNamespaceSchemaLocation="docblox.xsd"
+>
+ <title>PEAR2_Net_RouterOS documentation</title>
+ <parser>
+ <default-package-name>PEAR2_Net_RouterOS</default-package-name>
+ <target>PEAR2_Net_RouterOS__DocBlox_Documentation</target>
+ <extensions>
+ <extension>php</extension>
+ </extensions>
+ </parser>
+ <files>
+ <directory>../src/PEAR2/Net/RouterOS</directory>
+ </files>
+ <transformer>
+ <target>PEAR2_Net_RouterOS__DocBlox_Documentation</target>
+ </transformer>
+</docblox>
@@ -0,0 +1,188 @@
+<?xml version="1.0"?>
+<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+ <xsd:element name="docblox">
+ <xsd:annotation>
+ <xsd:documentation xml:lang="en-us" xmlns="http://www.w3.org/1999/xhtml">Root element of docblox's configuration.</xsd:documentation>
+ </xsd:annotation>
+ <xsd:complexType>
+ <xsd:all>
+ <xsd:element name="title">
+ <xsd:annotation>
+ <xsd:documentation xml:lang="en-us" xmlns="http://www.w3.org/1999/xhtml">Tthe title for this project, may contain HTML.</xsd:documentation>
+ </xsd:annotation>
+ <xsd:complexType mixed="true">
+ <xsd:sequence>
+ <xsd:any minOccurs="0" maxOccurs="unbounded" namespace="http://www.w3.org/1999/xhtml" processContents="lax"/>
+ </xsd:sequence>
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="parser" minOccurs="0">
+ <xsd:annotation>
+ <xsd:documentation xml:lang="en-us" xmlns="http://www.w3.org/1999/xhtml">The parser section contains all settings related to the conversion of your project’s source to the intermediate structure format of DocBlox (structure.xml).</xsd:documentation>
+ </xsd:annotation>
+ <xsd:complexType>
+ <xsd:all>
+ <xsd:element name="default-package-name" minOccurs="0" type="xsd:string">
+ <xsd:annotation>
+ <xsd:documentation xml:lang="en-us" xmlns="http://www.w3.org/1999/xhtml">Optional element which defines the name of the default package. This is the name of the package when none is provided.</xsd:documentation>
+ </xsd:annotation>
+ </xsd:element>
+ <xsd:element name="target" type="xsd:string" minOccurs="0">
+ <xsd:annotation>
+ <xsd:documentation xml:lang="en-us" xmlns="http://www.w3.org/1999/xhtml">The target location where to store the structure.xml, also used as source location for the transformer.</xsd:documentation>
+ </xsd:annotation>
+ </xsd:element>
+ <xsd:element name="markers" minOccurs="0">
+ <xsd:annotation>
+ <xsd:documentation xml:lang="en-us" xmlns="http://www.w3.org/1999/xhtml">Contains a listing of item’s. These items identify which keywords in comments are used to identify additional sets of information. An example of this is inline comments starting with the <em>marker</em> TODO or FIXME.</xsd:documentation>
+ </xsd:annotation>
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="item" type="xsd:string"/>
+ </xsd:sequence>
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="extensions" minOccurs="0">
+ <xsd:annotation>
+ <xsd:documentation xml:lang="en-us" xmlns="http://www.w3.org/1999/xhtml">Contains a list of extension’s which a file must have to be interpreted. If a file does not have the extension mentioned in this list then it is not parsed. Examples: php, php3 or phtml.</xsd:documentation>
+ </xsd:annotation>
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="extension" type="xsd:string"/>
+ </xsd:sequence>
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="visibility" minOccurs="0" type="xsd:string"/>
+ </xsd:all>
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="transformer" minOccurs="0">
+ <xsd:annotation>
+ <xsd:documentation xml:lang="en-us" xmlns="http://www.w3.org/1999/xhtml">The transformer section contains most settings related to the transformation of the intermediate structure format (structure.xml) to a human-readable set of documentation. The format of this set of documentation is determined by the template choice which is present in the <strong>transformations</strong> head section.
+
+ <blockquote>The transformer determines the location of the intermediate structure format (structure.xml) by retrieving the <strong>target</strong> element in the <strong>parser</strong> section.</blockquote>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="target" type="xsd:string" minOccurs="0">
+ <xsd:annotation>
+ <xsd:documentation xml:lang="en-us" xmlns="http://www.w3.org/1999/xhtml">The target location where to store the generated documentation files.</xsd:documentation>
+ </xsd:annotation>
+ </xsd:element>
+ <xsd:element name="external-class-documentation" minOccurs="0" maxOccurs="unbounded">
+ <xsd:annotation>
+ <xsd:documentation xml:lang="en-us" xmlns="http://www.w3.org/1999/xhtml">With this element you can link the documentation generated by DocBlox to the URL of a library based on the prefix of the class. This element may be used multiple times and each time has a <strong>prefix</strong> and <strong>uri</strong> element which specify which class to link where. The uri element supports 2 substitution variables: {CLASS} and {LOWERCASE_CLASS}.
+
+ <blockquote>Please note that if the class is part of a namespace that the backslashes are also copied; with exception of the ‘root’ (start of the class name).</blockquote>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:complexType>
+ <xsd:all>
+ <xsd:element name="prefix" type="xsd:string"/>
+ <xsd:element name="uri" type="xsd:anyURI"/>
+ </xsd:all>
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:sequence>
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="logging" minOccurs="0">
+ <xsd:annotation>
+ <xsd:documentation xml:lang="en-us" xmlns="http://www.w3.org/1999/xhtml">The logging section contains all settings related to the logging of information in DocBlox.
+
+ <blockquote>DocBlox does not ‘care’ whether the specified logging paths exist; if they do not then no log files are generated.</blockquote>
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:complexType>
+ <xsd:all>
+ <xsd:element name="level" type="logging-level">
+ <xsd:annotation>
+ <xsd:documentation xml:lang="en-us" xmlns="http://www.w3.org/1999/xhtml">Determines the minimum level of information that is supplied. Any priority equal to or higher than the given is included in the log files and is output to the screen. All priorities lower than the given are not logged.</xsd:documentation>
+ </xsd:annotation>
+ </xsd:element>
+ <xsd:element name="paths">
+ <xsd:annotation>
+ <xsd:documentation xml:lang="en-us" xmlns="http://www.w3.org/1999/xhtml">Contains all folders to where DocBlox may log.</xsd:documentation>
+ </xsd:annotation>
+ <xsd:complexType>
+ <xsd:all>
+ <xsd:element name="default">
+ <xsd:annotation>
+ <xsd:documentation xml:lang="en-us" xmlns="http://www.w3.org/1999/xhtml">The path of the default logging file, the name may be augmented with a {DATE} variable to provide a timestamp and {APP_ROOT} to indicate the root of the DocBlox application.</xsd:documentation>
+ </xsd:annotation>
+ </xsd:element>
+ <xsd:element name="errors">
+ <xsd:annotation>
+ <xsd:documentation xml:lang="en-us" xmlns="http://www.w3.org/1999/xhtml">Messages with level debug are not added to the default log but in a separate log file whose path you can declare here. As with the default log file you can augment the path with the {DATE} variable.</xsd:documentation>
+ </xsd:annotation>
+ </xsd:element>
+ </xsd:all>
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:all>
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="transformations" minOccurs="0">
+ <xsd:annotation>
+ <xsd:documentation xml:lang="en-us" xmlns="http://www.w3.org/1999/xhtml">The transformations section controls the behaviour applied in transforming the intermediate structure format to the final human-readable output.</xsd:documentation>
+ </xsd:annotation>
+ <xsd:complexType>
+ <xsd:choice maxOccurs="unbounded">
+ <xsd:element name="template">
+ <xsd:annotation>
+ <xsd:documentation>The name or path of a template to use. This element may be used multiple times to combine several templates though usually you only supply one.</xsd:documentation>
+ </xsd:annotation>
+ <xsd:complexType>
+ <xsd:attribute name="name" use="required"/>
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="transformation">
+ <xsd:annotation>
+ <xsd:documentation xml:lang="en-us" xmlns="http://www.w3.org/1999/xhtml">It is also possible to execute additional transformations specifically for this project by defining your own transformations here.</xsd:documentation>
+ </xsd:annotation>
+ </xsd:element>
+ </xsd:choice>
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="files" minOccurs="0">
+ <xsd:annotation>
+ <xsd:documentation xml:lang="en-us" xmlns="http://www.w3.org/1999/xhtml">The files section allows you to specify where the source code for your project is and what files to ignore.It is allowed to use relative paths here; just remember that these are relative from the working directory where you execute DocBlox in.</xsd:documentation>
+ </xsd:annotation>
+ <xsd:complexType>
+ <xsd:choice maxOccurs="unbounded">
+ <xsd:element name="file">
+ <xsd:annotation>
+ <xsd:documentation xml:lang="en-us" xmlns="http://www.w3.org/1999/xhtml">It is possible to specify specific <strong>file</strong>s or a specific set of files using the element. As with the -f parameter it supports wildcards.</xsd:documentation>
+ </xsd:annotation>
+ </xsd:element>
+ <xsd:element name="directory">
+ <xsd:annotation>
+ <xsd:documentation xml:lang="en-us" xmlns="http://www.w3.org/1999/xhtml">In addition you can also provide entire directory trees using the element. This also supports the use of wildcards. Please note that in contrary to the element that the element is recursive and will tell DocBlox to process all files contained in this folder and every subfolder.</xsd:documentation>
+ </xsd:annotation>
+ </xsd:element>
+ <xsd:element name="ignore">
+ <xsd:annotation>
+ <xsd:documentation xml:lang="en-us" xmlns="http://www.w3.org/1999/xhtml">In some cases you will have to <strong>ignore</strong> certain files in your project; examples of these can be third party libraries and/or tests. In this case you can use the ignore element and provide a pattern (not a path) to ignore. This if you provide <strong>*test*</strong> it will ignore any file or directory containing the text <em>test</em> in it.</xsd:documentation>
+ </xsd:annotation>
+ </xsd:element>
+ </xsd:choice>
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:all>
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:simpleType name="logging-level">
+ <xsd:restriction base="xsd:string">
+ <xsd:enumeration value="emerg"/>
+ <xsd:enumeration value="alert"/>
+ <xsd:enumeration value="crit"/>
+ <xsd:enumeration value="err"/>
+ <xsd:enumeration value="warn"/>
+ <xsd:enumeration value="notice"/>
+ <xsd:enumeration value="info"/>
+ <xsd:enumeration value="debug"/>
+ <xsd:enumeration value="quiet"/>
+ </xsd:restriction>
+ </xsd:simpleType>
+</xsd:schema>
Oops, something went wrong.

0 comments on commit 90d0d6b

Please sign in to comment.