<html>
<head>
<style><!--
  body {background-color:#ffffff;}
  .file {border:1px solid #eeeeee;margin-top:1em;margin-bottom:1em;}
  .pathname {font-family:monospace; float:right;}
  .fileheader {margin-bottom:.5em;}
  .diff {margin:0;}
  .tasklist {padding:4px;border:1px dashed #000000;margin-top:1em;}
  .tasklist ul {margin-top:0;margin-bottom:0;}
  tr.alt {background-color:#eeeeee}
  #added {background-color:#ddffdd;}
  #addedchars {background-color:#99ff99;font-weight:bolder;}
  tr.alt #added {background-color:#ccf7cc;}
  #removed {background-color:#ffdddd;}
  #removedchars {background-color:#ff9999;font-weight:bolder;}
  tr.alt #removed {background-color:#f7cccc;}
  #info {color:#888888;}
  #context {background-color:#eeeeee;}
  td {padding-left:.3em;padding-right:.3em;}
  tr.head {border-bottom-width:1px;border-bottom-style:solid;}
  tr.head td {padding:0;padding-top:.2em;}
  .task {background-color:#ffff00;}
  .comment {padding:4px;border:1px dashed #000000;background-color:#ffffdd}
  .error {color:red;}
  hr {border-width:0px;height:2px;background:black;}
--></style>
</head>
<body>
<table cellspacing="0" cellpadding="0" border="0" rules="cols">
<tr class="head"><td colspan="4">Commit in <b><tt>PEAR_Server/Server</tt></b> on <span id="info">MAIN</span></td></tr>
<tr><td><tt><a href="#file1">Backend.php</a></tt></td><td align="right" id="added">+104</td><td align="right" id="removed">-1</td><td nowrap="nowrap" align="center"><a href="http://cvs.phpdoc.org/co.php/PEAR_Server/Server/Backend.php?r=1.8">1.8</a> <a href="http://cvs.phpdoc.org/diff.php/PEAR_Server/Server/Backend.php?r1=1.8&r2=1.9">-&gt;</a> <a href="http://cvs.phpdoc.org/co.php/PEAR_Server/Server/Backend.php?r=1.9">1.9</a></td></tr>
</table>
<pre class="comment">
add some rudimentary docs
</pre>
<hr /><a name="file1" /><div class="file">
<span class="pathname"><a href="http://cvs.phpdoc.org/cvs.php/PEAR_Server">PEAR_Server</a>/<a href="http://cvs.phpdoc.org/cvs.php/PEAR_Server/Server">Server</a><br /></span>
<div class="fileheader"><big><b>Backend.php</b></big> <small id="info"><a href="http://cvs.phpdoc.org/co.php/PEAR_Server/Server/Backend.php?r=1.8">1.8</a> <a href="http://cvs.phpdoc.org/diff.php/PEAR_Server/Server/Backend.php?r1=1.8&r2=1.9">-&gt;</a> <a href="http://cvs.phpdoc.org/co.php/PEAR_Server/Server/Backend.php?r=1.9">1.9</a></small></div>
<pre class="diff"><small id="info">diff -u -r1.8 -r1.9
--- Backend.php        22 Apr 2005 02:31:14 -0000        1.8
+++ Backend.php        1 Jun 2005 02:50:39 -0000        1.9
@@ -1,16 +1,27 @@
</small></pre><pre class="diff" id="context"> &lt;?php
 require_once 'Chiara/PEAR/Server/Maintainer.php';
</pre><pre class="diff" id="added">+/**
+ * Base class for all backends.
+ * @author Gregory Beaver &lt;cellog@php.net&gt;
+ */
</pre><pre class="diff" id="context"> abstract class Chiara_PEAR_Server_Backend
 {
     protected $_channel;
     protected $_restdir;
 
</pre><pre class="diff" id="removed">-    public function __construct($channel, $restdir = false)
</pre><pre class="diff" id="added">+    /**
+     * @param string channel server
+     * @param string path to REST files
+     */
+    public function __construct($channel, $restdir)
</pre><pre class="diff" id="context">     {
         $this-&gt;_channel = $channel;
         $this-&gt;_restdir = $restdir;
     }
 
</pre><pre class="diff" id="added">+    /**
+     * @return string
+     */
</pre><pre class="diff" id="context">     public function getChannel()
     {
         return $this-&gt;_channel;
</pre><pre class="diff"><small id="info">@@ -24,22 +35,55 @@
</small></pre><pre class="diff" id="context">         return false;
     }
 
</pre><pre class="diff" id="added">+    /**
+     * @param string
+     * @param string
+     */
</pre><pre class="diff" id="context">     abstract public function saveReleaseREST($package, $version);
 
</pre><pre class="diff" id="added">+    /**
+     * @param string
+     */
</pre><pre class="diff" id="context">     abstract public function saveAllReleasesREST($package);
 
</pre><pre class="diff" id="added">+    /**
+     * @param string
+     */
</pre><pre class="diff" id="context">     abstract public function savePackageREST($package);
 
</pre><pre class="diff" id="added">+    /**
+     * @param string
+     * @param string
+     */
</pre><pre class="diff" id="context">     abstract public function deletePackageREST($package, $category);
 
</pre><pre class="diff" id="added">+    /**
+     * @param string
+     */
</pre><pre class="diff" id="context">     abstract public function saveCategoryREST($category);
 
</pre><pre class="diff" id="added">+    /**
+     * @param string
+     */
</pre><pre class="diff" id="context">     abstract public function deleteCategoryREST($category);
 
</pre><pre class="diff" id="added">+    /**
+     * @param string
+     * @param string
+     */
</pre><pre class="diff" id="context">     abstract public function deleteRelease($packagename, $version);
 
</pre><pre class="diff" id="added">+    /**
+     * @param string
+     * @param string
+     */
</pre><pre class="diff" id="context">     abstract public function deleteReleaseREST($packagename, $version);
 
</pre><pre class="diff" id="added">+    /**
+     * @param string
+     * @param string
+     * @return string
+     */
</pre><pre class="diff" id="context">     abstract public function getReleasePath($packagename, $version);
 
     /**
</pre><pre class="diff"><small id="info">@@ -47,10 +91,24 @@
</small></pre><pre class="diff" id="context">      */
     abstract public function saveRelease(Chiara_PEAR_Server_Release $release);
 
</pre><pre class="diff" id="added">+    /**
+     * @param string
+     * @param string
+     * @return boolean
+     */
</pre><pre class="diff" id="context">     abstract public function validLogin($user, $password);
 
</pre><pre class="diff" id="added">+    /**
+     * @param string
+     * @return boolean
+     */
</pre><pre class="diff" id="context">     abstract public function isAdmin($user);
 
</pre><pre class="diff" id="added">+    /**
+     * @param string
+     * @param string
+     * @return boolean
+     */
</pre><pre class="diff" id="context">     abstract public function isDeprecatedPackage($channel, $package);
 
     abstract public function releaseExists(Chiara_PEAR_Server_Release $release);
</pre><pre class="diff"><small id="info">@@ -65,24 +123,61 @@
</small></pre><pre class="diff" id="context">      */
     abstract public function getFilesize($fullpath);
 
</pre><pre class="diff" id="added">+    /**
+     * @param boolean
+     * @param boolean
+     * @param boolean
+     * @return array
+     */
</pre><pre class="diff" id="context">     abstract public function listPackages($releasedOnly = true, $onlyStable = true, $nosubpackages = true);
 
</pre><pre class="diff" id="added">+    /**
+     * @param string
+     * @return array
+     */
</pre><pre class="diff" id="context">     abstract public function listPackagesInCategory($category);
 
</pre><pre class="diff" id="added">+    /**
+     * @return array
+     */
</pre><pre class="diff" id="context">     abstract public function listCategories();
 
</pre><pre class="diff" id="added">+    /**
+     * @param string
+     */
</pre><pre class="diff" id="context">     abstract public function addCategory($cat);
 
</pre><pre class="diff" id="added">+    /**
+     * @param string
+     */
</pre><pre class="diff" id="context">     abstract public function updateCategory($cat);
 
</pre><pre class="diff" id="added">+    /**
+     * @param string
+     */
</pre><pre class="diff" id="context">     abstract public function getCategory($cat);
 
</pre><pre class="diff" id="added">+    /**
+     * @param string
+     */
</pre><pre class="diff" id="context">     abstract public function deleteCategory($cat);
 
</pre><pre class="diff" id="added">+    /**
+     * @param int
+     */
</pre><pre class="diff" id="context">     abstract public function categoryFromId($cat);
 
</pre><pre class="diff" id="added">+    /**
+     * @param string
+     * @return array
+     */
</pre><pre class="diff" id="context">     abstract public function categoryInfo($cat);
 
</pre><pre class="diff" id="added">+    /**
+     * @param string
+     * @param string
+     * @return array
+     */
</pre><pre class="diff" id="context">     abstract public function listDeps($package, $version);
 
     /**
</pre><pre class="diff"><small id="info">@@ -95,6 +190,9 @@
</small></pre><pre class="diff" id="context">      */
     abstract public function addPackage($package);
 
</pre><pre class="diff" id="added">+    /**
+     * @param string
+     */
</pre><pre class="diff" id="context">     abstract public function deletePackage($packagename);
 
     /**
</pre><pre class="diff"><small id="info">@@ -108,6 +206,11 @@
</small></pre><pre class="diff" id="context">      */
     abstract public function getPackage($package);
 
</pre><pre class="diff" id="added">+    /**
+     * @param string
+     * @param string package info key
+     * @return mixed
+     */
</pre><pre class="diff" id="context">     abstract public function packageInfo($package, $key = null);
 
     abstract public function addMaintainer(Chiara_PEAR_Server_Maintainer $maintainer);
</pre></div>
</body></html><pre>