[Cs-rssdb-commits] SF.net SVN: cs-rssdb:[70] branches/simplepie
Status: Abandoned
Brought to you by:
crazedsanity
From: <cra...@us...> - 2011-02-04 20:39:57
|
Revision: 70 http://cs-rssdb.svn.sourceforge.net/cs-rssdb/?rev=70&view=rev Author: crazedsanity Date: 2011-02-04 20:39:50 +0000 (Fri, 04 Feb 2011) Log Message: ----------- Implement SimplePie library, all tests pass. /VERSION: * updated to 0.2-BETA1 (from 0.1.3) /rssDBClass.php: * MAIN::: -- isConnected [DELETED] * __construct(): -- stop worrying about constants that aren't used -- build articleHandler, instance of cs_dbHandler{} (from cs-webapplibs) * parse_file(): -- loops through data from get_feed_data() and inserts each record, throwing an exception on error. -- NOTE::: this should probably be done within a transaction normally... * connect_db() [DELETED]: -- connect logic unnecessary; database object passed to constructor. * get_feed_data() [NEW]: -- creates an array of article data pulled from the feed. * insert_article(): -- utilizes cs_dbHandler::create_record(). * get_source(): -- ARG CHANGE: DEFAULT CHANGED: #1 ($criteria=NULL) -- set a default for the criteria, and only add it to the query if there's actually something passed (all sources can be pulled easily) -- always order by source_name -- added exception handling * get_most_recent_articles(): -- ARG CHANGE: DEFAULT CHANGED: #2 ($sourceNames=NULL) -- added default for sourceNames so it isn't required. -- updated query to allow for not having any sourceNames. -- updated ending comment to match method name /schema/rss_schema.pgsql.sql: * updated INSERT statements to match schema. /tests/testOfCSRSSDB.php: * lots of testing for SimplePie and rssDB. * fixed references to to testDBAbstract methods * uncomment the skipUnless() statement so all tests will be skipped if the schema file fails to load. /upgrades/upgrade.xml [NEW]: * file to use (with cs-webapplibs' cs_upgradedbupgrade) to upgrade database schema and such /upgrades/upgradeTo_0.2.php [NEW]: * skeleton script that will eventually upgrade from the older version to the new one. /upgrades/sql/upgradeTo0.2.pgsql.sql [NEW]: * skeleton SQL script for upgrading schema/data to the newest version. Modified Paths: -------------- branches/simplepie/VERSION branches/simplepie/rssDBClass.php branches/simplepie/schema/rss_schema.pgsql.sql branches/simplepie/tests/testOfCSRSSDB.php Added Paths: ----------- branches/simplepie/upgrades/ branches/simplepie/upgrades/sql/ branches/simplepie/upgrades/sql/upgradeTo0.2.pgsql.sql branches/simplepie/upgrades/upgrade.xml branches/simplepie/upgrades/upgradeTo_0.2.php This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |