[Cs-webapplibs-commits] SF.net SVN: cs-webapplibs:[145] trunk/0.3
Status: Beta
Brought to you by:
crazedsanity
From: <cra...@us...> - 2009-08-28 20:31:01
|
Revision: 145 http://cs-webapplibs.svn.sourceforge.net/cs-webapplibs/?rev=145&view=rev Author: crazedsanity Date: 2009-08-28 20:30:54 +0000 (Fri, 28 Aug 2009) Log Message: ----------- No more include/requires: include before or use __autoload(). NOTE::: this was tested using the current (trunk/1.0) version of cs-content's __autoload.php script. REMOVED require_once() STATEMENTS::: * /cs_authToken.class.php * /cs_bbCodeParser.class.php * /cs_phpDB.class.php * /cs_sessionDB.class.php * /cs_siteConfig.class.php * /cs_tabs.class.php * /cs_webdblogger.class.php * /cs_webdbupgrade.class.php * /abstract/cs_webapplibs.abstract.class.php * /tests/testOfCSPHPDB.php * /tests/testOfCSWebAppLibs.php Modified Paths: -------------- trunk/0.3/abstract/cs_webapplibs.abstract.class.php trunk/0.3/cs_authToken.class.php trunk/0.3/cs_bbCodeParser.class.php trunk/0.3/cs_phpDB.class.php trunk/0.3/cs_sessionDB.class.php trunk/0.3/cs_siteConfig.class.php trunk/0.3/cs_tabs.class.php trunk/0.3/cs_webdblogger.class.php trunk/0.3/cs_webdbupgrade.class.php trunk/0.3/tests/testOfCSPHPDB.php trunk/0.3/tests/testOfCSWebAppLibs.php Modified: trunk/0.3/abstract/cs_webapplibs.abstract.class.php =================================================================== --- trunk/0.3/abstract/cs_webapplibs.abstract.class.php 2009-08-27 16:44:16 UTC (rev 144) +++ trunk/0.3/abstract/cs_webapplibs.abstract.class.php 2009-08-28 20:30:54 UTC (rev 145) @@ -10,7 +10,6 @@ * Last Updated:::::::: $Date$ */ -require_once(dirname(__FILE__) .'/../../cs-content/abstract/cs_version.abstract.class.php'); abstract class cs_webapplibsAbstract extends cs_versionAbstract { protected $gfObj; @@ -24,7 +23,6 @@ if($makeGfObj === true) { //make a cs_globalFunctions{} object. //TODO::: find a way to avoid h - require_once(dirname(__FILE__) ."/../../cs-content/cs_globalFunctions.class.php"); $this->gfObj = new cs_globalFunctions(); } }//end __construct() Modified: trunk/0.3/cs_authToken.class.php =================================================================== --- trunk/0.3/cs_authToken.class.php 2009-08-27 16:44:16 UTC (rev 144) +++ trunk/0.3/cs_authToken.class.php 2009-08-28 20:30:54 UTC (rev 145) @@ -11,7 +11,6 @@ */ -require_once(dirname(__FILE__) .'/abstract/cs_webapplibs.abstract.class.php'); class cs_authToken extends cs_webapplibsAbstract { Modified: trunk/0.3/cs_bbCodeParser.class.php =================================================================== --- trunk/0.3/cs_bbCodeParser.class.php 2009-08-27 16:44:16 UTC (rev 144) +++ trunk/0.3/cs_bbCodeParser.class.php 2009-08-28 20:30:54 UTC (rev 145) @@ -18,7 +18,6 @@ * been converted. */ -require_once(dirname(__FILE__) ."/abstract/cs_webapplibs.abstract.class.php"); class cs_bbCodeParser extends cs_webapplibsAbstract { Modified: trunk/0.3/cs_phpDB.class.php =================================================================== --- trunk/0.3/cs_phpDB.class.php 2009-08-27 16:44:16 UTC (rev 144) +++ trunk/0.3/cs_phpDB.class.php 2009-08-28 20:30:54 UTC (rev 145) @@ -24,9 +24,6 @@ // /////////////////////// -require_once(dirname(__FILE__) ."/abstract/cs_webapplibs.abstract.class.php"); -require_once(dirname(__FILE__) ."/abstract/cs_phpDB.abstract.class.php"); - class cs_phpDB extends cs_webapplibsAbstract { private $dbLayerObj; Modified: trunk/0.3/cs_sessionDB.class.php =================================================================== --- trunk/0.3/cs_sessionDB.class.php 2009-08-27 16:44:16 UTC (rev 144) +++ trunk/0.3/cs_sessionDB.class.php 2009-08-28 20:30:54 UTC (rev 145) @@ -8,10 +8,6 @@ * $LastChangedRevision$ */ -require_once(constant('LIBDIR') .'/cs-content/cs_session.class.php'); -require_once(dirname(__FILE__) .'/cs_phpDB.class.php'); -require_once(constant('LIBDIR') .'/cs-phpxml/cs_arrayToPath.class.php'); -require_once(constant('LIBDIR') .'/cs-webapplibs/cs_webdblogger.class.php'); class cs_sessionDB extends cs_session { Modified: trunk/0.3/cs_siteConfig.class.php =================================================================== --- trunk/0.3/cs_siteConfig.class.php 2009-08-27 16:44:16 UTC (rev 144) +++ trunk/0.3/cs_siteConfig.class.php 2009-08-28 20:30:54 UTC (rev 145) @@ -15,10 +15,6 @@ * */ -require_once(dirname(__FILE__) .'/abstract/cs_webapplibs.abstract.class.php'); -require_once(dirname(__FILE__) .'/../cs-content/cs_fileSystem.class.php'); -require_once(dirname(__FILE__). '/../cs-phpxml/cs_phpxmlParser.class.php'); -require_once(dirname(__FILE__) .'/../cs-phpxml/cs_phpxmlBuilder.class.php'); class cs_siteConfig extends cs_webapplibsAbstract { Modified: trunk/0.3/cs_tabs.class.php =================================================================== --- trunk/0.3/cs_tabs.class.php 2009-08-27 16:44:16 UTC (rev 144) +++ trunk/0.3/cs_tabs.class.php 2009-08-28 20:30:54 UTC (rev 145) @@ -4,9 +4,7 @@ * */ -require_once(dirname(__FILE__) .'/abstract/cs_webapplibs.abstract.class.php'); - class cs_tabs extends cs_webapplibsAbstract { private $tabsArr=array(); private $selectedTab; Modified: trunk/0.3/cs_webdblogger.class.php =================================================================== --- trunk/0.3/cs_webdblogger.class.php 2009-08-27 16:44:16 UTC (rev 144) +++ trunk/0.3/cs_webdblogger.class.php 2009-08-28 20:30:54 UTC (rev 145) @@ -27,8 +27,6 @@ //NOTE::: this class **REQUIRES** cs-content for its "cs_phpDB" class. -require_once(dirname(__FILE__) .'/abstract/cs_webapplibs.abstract.class.php'); -require_once(dirname(__FILE__) .'/cs_webdbupgrade.class.php'); class cs_webdblogger extends cs_webapplibsAbstract { /** Database handle */ Modified: trunk/0.3/cs_webdbupgrade.class.php =================================================================== --- trunk/0.3/cs_webdbupgrade.class.php 2009-08-27 16:44:16 UTC (rev 144) +++ trunk/0.3/cs_webdbupgrade.class.php 2009-08-28 20:30:54 UTC (rev 145) @@ -12,9 +12,6 @@ * */ -require_once(dirname(__FILE__) .'/abstract/cs_webapplibs.abstract.class.php'); -require_once(dirname(__FILE__) .'/cs_webdblogger.class.php'); -require_once(dirname(__FILE__) .'/cs_phpDB.class.php'); class cs_webdbupgrade extends cs_webapplibsAbstract { @@ -87,11 +84,6 @@ throw new exception(__METHOD__ .": required constant 'SITE_ROOT' not set"); } - require_once(constant('LIBDIR') .'/cs-content/cs_globalFunctions.class.php'); - require_once(constant('LIBDIR') .'/cs-content/cs_fileSystem.class.php'); - require_once(constant('LIBDIR') .'/cs-phpxml/cs_phpxmlParser.class.php'); - require_once(constant('LIBDIR') .'/cs-phpxml/cs_phpxmlCreator.class.php'); - require_once(constant('LIBDIR') .'/cs-phpxml/cs_arrayToPath.class.php'); $this->fsObj = new cs_fileSystem(constant('SITE_ROOT')); parent::__construct(true); Modified: trunk/0.3/tests/testOfCSPHPDB.php =================================================================== --- trunk/0.3/tests/testOfCSPHPDB.php 2009-08-27 16:44:16 UTC (rev 144) +++ trunk/0.3/tests/testOfCSPHPDB.php 2009-08-28 20:30:54 UTC (rev 145) @@ -4,8 +4,6 @@ */ -require_once(dirname(__FILE__) .'/../cs_phpDB.class.php'); - class TestOfCSPHPDB extends UnitTestCase { private $dbParams=array(); Modified: trunk/0.3/tests/testOfCSWebAppLibs.php =================================================================== --- trunk/0.3/tests/testOfCSWebAppLibs.php 2009-08-27 16:44:16 UTC (rev 144) +++ trunk/0.3/tests/testOfCSWebAppLibs.php 2009-08-28 20:30:54 UTC (rev 145) @@ -11,7 +11,6 @@ * $LastChangedRevision$ */ -require_once(dirname(__FILE__) .'/../cs_authToken.class.php'); class testOfCSWebAppLibs extends UnitTestCase { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |