Skip to content
Browse files

Merge pull request #14 from saltybeagle/master

Minor fixes to the channel categories xml
  • Loading branch information...
2 parents 57d8fa8 + 8e2f3ae commit b63ad938302700b3daacb9941a9fda978e7bf402 @saltybeagle saltybeagle committed
Showing with 45 additions and 2 deletions.
  1. +1 −0 www/rest/c/DB/packages.xml
  2. +44 −1 www/rest/c/DB/packagesinfo.xml
  3. +0 −1 www/rest/c/categories.xml
View
1 www/rest/c/DB/packages.xml
@@ -1,4 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<l xmlns="http://pear.php.net/dtd/rest.categorypackages" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://pear.php.net/dtd/rest.categorypackages http://pear.php.net/dtd/rest.categorypackages.xsd">
<p xlink:href="rest/p/PEAR2_DB_PI2Method">PEAR2_DB_PI2Method</p>
+ <p xlink:href="rest/p/PEAR2_DB_Pl2Method">PEAR2_DB_Pl2Method</p>
</l>
View
45 www/rest/c/DB/packagesinfo.xml
@@ -1,4 +1,47 @@
<?xml version="1.0" encoding="UTF-8"?>
<f xmlns="http://pear.php.net/dtd/rest.categorypackageinfo" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://pear.php.net/dtd/rest.categorypackageinfo http://pear.php.net/dtd/rest.categorypackageinfo.xsd">
- <pi/>
+ <pi>
+ <p>
+ <n>PEAR2_DB_Pl2Method</n>
+ <c>pear2.php.net</c>
+ <ca xmlns:xlink="rest/c/Default" xlink:href="rest/c/Default">Default</ca>
+ <l>New BSD License</l>
+ <s>Library for accessing stored procedures as PHP Method
+</s>
+ <d>
+This package make stored procedures from PostgreSQL and others SGDB
+can used as PHP Methods.
+You have PDOStatement as answer like in this sample:
+
+ -- in database dev
+ create or replace function teste() returns varchar(10) as
+ $$
+ begin
+ return 'teste';
+ end;
+ $$
+ language 'plpgsql';
+
+$a = new PDO(&quot;pgsql:host=localhost;port=5432;dbname=dev;user=postgres;password=root&quot;);
+$pl2method = \PEAR2\DB\Pl2Method\Pl2Method::getInstance($a);
+
+here you have a PDOStatement
+$returned = $pl2method-&gt;public-&gt;teste();
+var_dump( $returned );
+ and You can FetchAll()
+var_dump($returned-&gt;FetchAll());
+</d>
+ <r xmlns="http://pear.php.net/dtd/rest.package" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://pear.php.net/dtd/rest.package http://pear.php.net/dtd/rest.package.xsd"/>
+ </p>
+ <a>
+ <r>
+ <v>0.1.0</v>
+ <s>alpha</s>
+ </r>
+ </a>
+ <deps>
+ <v>0.1.0</v>
+ <d>a:1:{s:8:&quot;required&quot;;a:2:{s:3:&quot;php&quot;;a:1:{s:3:&quot;min&quot;;s:5:&quot;5.2.0&quot;;}s:13:&quot;pearinstaller&quot;;a:1:{s:3:&quot;min&quot;;s:7:&quot;2.0.0a1&quot;;}}}</d>
+ </deps>
+ </pi>
</f>
View
1 www/rest/c/categories.xml
@@ -2,7 +2,6 @@
<a xmlns="http://pear.php.net/dtd/rest.allcategories" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://pear.php.net/dtd/rest.allcategories http://pear.php.net/dtd/rest.allcategories.xsd">
<ch>pear2.php.net</ch>
<c xlink:href="rest/c/Caching/info.xml">Caching</c>
- <c xlink:href="rest/c/categorize/info.xml">categorize</c>
<c xlink:href="rest/c/Console/info.xml">Console</c>
<c xlink:href="rest/c/Default/info.xml">Default</c>
<c xlink:href="rest/c/HTTP/info.xml">HTTP</c>

0 comments on commit b63ad93

Please sign in to comment.
Something went wrong with that request. Please try again.