Skip to content
This repository
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 85 lines (79 sloc) 2.492 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84
<?xml version="1.0" encoding="UTF-8"?>
<package version="2.1" xmlns="http://pear.php.net/dtd/package-2.1" xmlns:tasks="http://pear.php.net/dtd/tasks-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://pear.php.net/dtd/tasks-1.0 http://pear.php.net/dtd/tasks-1.0.xsd http://pear.php.net/dtd/package-2.1 http://pear.php.net/dtd/package-2.1.xsd">
 <name>PEAR2_DB_Pl2Method</name>
 <channel>pear2.php.net</channel>
 <summary>Library for accessing stored procedures as PHP Method
</summary>
 <description>
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());
</description>
 <lead>
  <name>Ivo Nascimento</name>
  <user>ivonascimento</user>
  <email>ivo@o8o.com.br</email>
  <active>yes</active>
 </lead>
 <date>2011-08-07</date>
 <time>18:36:05</time>
 <version>
  <release>0.1.0</release>
  <api>0.1.0</api>
 </version>
 <stability>
  <release>alpha</release>
  <api>alpha</api>
 </stability>
 <license uri="http://www.opensource.org/licenses/bsd-license.php">New BSD License</license>
 <notes>Package PEAR2_DB_Pl2Method release notes for version 0.1.0.
Support to just Psql PDO Driver
without type validation yet


Package PEAR2_DB_Pl2Method API release notes for version 0.1.0.</notes>
 <contents>
  <dir name="/">
   <dir name="examples">
    <file role="doc" name="teste.php"/>
   </dir>
   <dir name="src" baseinstalldir="PEAR2">
    <dir name="DB">
     <dir name="Pl2Method">
      <dir name="Driver">
       <file role="php" name="Pgsql.php"/>
      </dir>
      <file role="php" name=".gitignore"/>
      <file role="php" name="SGDBDriver.php"/>
      <file role="php" name="SGDBInterface.php"/>
     </dir>
     <file role="php" name="Pl2Method.php"/>
    </dir>
   </dir>
  </dir>
 </contents>
 <dependencies>
  <required>
   <php>
    <min>5.2.0</min>
   </php>
   <pearinstaller>
    <min>2.0.0a1</min>
   </pearinstaller>
  </required>
 </dependencies>
 <phprelease/>
</package>
Something went wrong with that request. Please try again.