Added md5 checksum to FILES table in the database. The XML-RPC function call storeAudioClipOpen now returns error code 888 if the file uploaded is a duplicate of an existing file. Started an upgrade script, but still needs a little bit of work. Removed unused className argument to StoredFile::recall functions. Fixed xr_cli_test.php to use Console_GetOpt PEAR class and fixed code formatting. Fixed code documentation. Fixed some function names to conform to coding standards.

This commit is contained in:
paul 2007-01-09 21:11:45 +00:00
parent 1a8610b37b
commit 997814e78a
16 changed files with 524 additions and 600 deletions

View file

@ -29,8 +29,6 @@ class MetaData {
public $exists;
/**
* @param Greenbox $gb
* A reference to GreenBox object
* @param string $gunid
* global unique id
* @param string $resDir
@ -40,7 +38,7 @@ class MetaData {
{
$this->gunid = $gunid;
$this->resDir = $resDir;
$this->fname = $this->makeFname();
$this->fname = $this->makeFileName();
$this->exists = null;
}
@ -554,7 +552,7 @@ class MetaData {
*
* @return string
*/
private function makeFname()
private function makeFileName()
{
return "{$this->resDir}/{$this->gunid}.xml";
}
@ -565,7 +563,7 @@ class MetaData {
*
* @return string
*/
public function getFname()
public function getFileName()
{
return $this->fname;
}