Commit Graph

14 Commits

Author SHA1 Message Date
paul 488dad1fd9 Cleaned up BasicStor::bsPutFile()/StoredFile::Insert() by making a better set of more extensible parameters. This allowed me to pass in the MD5 and MIME type values, which means those values do not have to be re-calculated when this function is called. This means adding files will be faster now (each calculation of an MD5 value is .25 of a second on my machine). Added a cache to the Metadata class (this class needs serious cleaning up), so that you only have to do one database call and the rest of the time you just use the cache. The number of calls to getMetadataValue() should speedups due to this. Merged the LsPlaylist class into the Playlist class. Importing through the import script and web interface now reads the COMMENT tag and the COMPOSER tag (bug #2108). Moved from using (ls:genre) to (dc:type) for the metadata label for genre and added to the upgrade script to take this into account. Fixed bug in StoredFile::Recall() so that Playlists work again, added an MD5 parameter for this function so that all the Recall functions work in the same way, changed the return value to NULL if the Recall function does not find the record. Made a lot of code more readable and easier to debug. Added StoredFile::getGunid(). 2007-01-21 03:31:19 +00:00
paul 7aaabb2165 Minor code formatting tweaks. 2007-01-12 06:13:13 +00:00
paul 623be37d8a Fix for the bug where you could not upload files (the first part of bug #2114). Converted StoredFile into a real class that mapped the database table properly. Renamed some functions to be consistent with each other and with coding standards. 2007-01-11 19:24:45 +00:00
paul 997814e78a 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. 2007-01-09 21:11:45 +00:00
paul 425212bfb8 Possible fix for #2100 - scheduler user is not created. There is now a more verbose output when this step is taken, and also there were previous steps, that if they failed, would prevent this step from happening; so this has been fixed as well. Converted more functions to static functions because thats what they were in the first place...they were just pretending to be member functions. 2006-12-20 02:46:29 +00:00
paul 4733682a62 Refactored Alib to reveal its true nature: a bunch of static functions inside of classes. This makes it much easier to understand what is going on, and removes 4 layers of class heirarchies (now only 4 left). There are now two important global variables: CC_DBC, the database connection, and CC_CONFIG, the config variables. These used to be passed around to all classes, but since they are always the same they should be global. Refactored the StorageServer install scripts to live outside of the classes. They now live in the storageServer install scripts. A lot of functions in the StorageServer have become static as well, but there are definitely more that I didnt get to. Lots of code cleanup as well. This is a big update. 2006-12-16 06:36:22 +00:00
paul 985eeab08c Added public/private/protected/static to functions 2006-12-08 04:31:20 +00:00
paul 714e853fae Changing various function names to be more obvious and consistent. Get rid of unneeded data copying ( = = someFunction()). 2006-11-23 07:07:08 +00:00
paul 1a0cc368f0 Did some function renaming for public/private issues. Changed playlistIsAvailable() to not check if the playlist exists on disk (I think we can assume that it does if something is asking about it), it only checks if it is being edited now. This change was made for optimization purposes. 2006-11-21 16:00:50 +00:00
paul bb00be70bb Started to convert code to PHP5 using public/private/protected/static and __construct() method, got rid of =& when constructing objects. Improved documentation in many places. Commented out functions that are no longer in use. Got rid of double-copy operations when checking for errors (e.g. $foo = $r = myMethod()). Tweaked code here and there to fit coding conventions. 2006-11-14 19:09:20 +00:00
tomash c1253836d4 #1704 restoreBackup XMLRPC fixed 2006-11-09 14:38:59 +00:00
tomash a3144ce333 #1878 searchMetadata generalized to multifield orderby 2006-11-02 10:09:46 +00:00
tomash 0caf92b44e #1872 added 'source' to search result structure 2006-10-20 14:51:45 +00:00
paul fe31d2dfab Renaming top-level livesupport directory (/trunk/livesupport) to campcaster (trunk/campcaster). 2006-10-19 14:55:07 +00:00