Removed Cache class.

* File was little more than just a stub file for the Cache class.

Removed Mailer class.

 * Attempting to remove non-critical classes from the system.

 * Class will be re-added / re-factored at a later date once the core of PICKLES is done.

Removed Security class.

 * Removing non-critcal classes from the system.

 * Security class was not very generic and will be replaced down the road once the security scheme is full realized.

Removed Form class.

 * Removing non-critcal classes from PICKLES to help the rewrite efforts.

 * Form class would take a database table and convert it into a webform.  Nice script, but really had no place in PICKLES.

 * Eventually will replace with a generic HTML form element generation class.

Added INSTALL file.

Updated derivation of the hostname.

 * Hostname is now defaulted in the class variable definition.

Refactoring Controller and Module
This commit is contained in:
Josh Sherman 2010-03-11 23:19:33 -05:00
parent 67c12593bc
commit c2445d3a62
8 changed files with 150 additions and 709 deletions

View file

@ -31,7 +31,7 @@ class Database extends Object
* @access private
* @var string
*/
private $hostname = null;
private $hostname = 'localhost';
/**
* Username for the MySQL Server
@ -112,10 +112,6 @@ class Database extends Object
{
$this->hostname = $config['hostname'];
}
else
{
$this->hostname = 'localhost';
}
}
/**
@ -130,12 +126,6 @@ class Database extends Object
{
if ($this->connection === null)
{
// Sets the database server to localhost if the URL is local
if ($this->hostname == '' || (isset($_SERVER['HTTP_HOST']) && ($_SERVER['HTTP_HOST'] == 'groupocity2.localhost' || $_SERVER['HTTP_HOST'] == 'groupocity2.desktop' || $_SERVER['HTTP_HOST'] == 'local2.groupocity.com')))
{
$this->hostname = 'localhost';
}
if (isset($this->username, $this->password, $this->database))
{
// Creates a new PDO database object (persistent)