Skip to content

Commit

Permalink
PP Prep - Updating File Headers
Browse files Browse the repository at this point in the history
  • Loading branch information
KrisJordan committed Dec 25, 2008
1 parent ca6148b commit bf6fbae
Show file tree
Hide file tree
Showing 77 changed files with 307 additions and 109 deletions.
2 changes: 1 addition & 1 deletion bootstrap.php
Expand Up @@ -2,7 +2,7 @@
/**
* Recess! Framework is bootstrapped by passing control to Recess::main().
*
* @author Kris Jordan
* @author Kris Jordan <krisjordan@gmail.com>
*/
$_ENV['dir.bootstrap'] = str_replace('\\','/',realpath(dirname(__FILE__))) . '/';
$_ENV['url.base'] = str_replace('bootstrap.php', '', $_SERVER['PHP_SELF']);
Expand Down
2 changes: 1 addition & 1 deletion index.php
Expand Up @@ -7,7 +7,7 @@
*
* Once .htaccess is working go ahead and delete this file.
*
* @author Kris Jordan
* @author Kris Jordan <krisjordan@gmail.com>
*/

define('INDEX_PHP','index.php');
Expand Down
5 changes: 3 additions & 2 deletions recess-conf.php
Expand Up @@ -6,12 +6,13 @@
* For tutorials, documentation, bug reports, feature suggestions
* head over to:
*
* http://www.recessframework.com/
* http://www.recessframework.org/
*
* Enjoy! -Kris Jordan (http://www.krisjordan.com)
*/

RecessConf::$mode = RecessConf::DEVELOPMENT; // or RecessConf::PRODUCTION
// RecessConf::DEVELOPMENT or RecessConf::PRODUCTION
RecessConf::$mode = RecessConf::DEVELOPMENT;

RecessConf::$applications
= array( 'recess.apps.tools.RecessToolsApplication',
Expand Down
2 changes: 1 addition & 1 deletion recess/lib/recess/Recess.class.php
Expand Up @@ -5,7 +5,7 @@
* for the flow of control from preprocessing of request data, the serving of a request
* in a controller, and rendering a response to the request through a view.
*
* @author Kris Jordan
* @author Kris Jordan <krisjordan@gmail.com>
* @final
*/
final class Recess {
Expand Down
Expand Up @@ -8,6 +8,12 @@
*/
class RecessToolsAppsController extends Controller {

public function init() {
if(RecessConf::$mode == RecessConf::PRODUCTION) {
throw new RecessResponseException('Recess Tools are available only during development. Please disable the application in a production environment.', ResponseCodes::HTTP_NOT_FOUND, array());
}
}

/** !Route GET */
public function home() {
$this->apps = RecessConf::$applications;
Expand Down
Expand Up @@ -15,6 +15,12 @@
*/
class RecessToolsCodeController extends Controller {

public function init() {
if(RecessConf::$mode == RecessConf::PRODUCTION) {
throw new RecessResponseException('Tools are available only during development.', ResponseCodes::HTTP_NOT_FOUND, array());
}
}

protected function checkTables() {
try{ // This is so hacked it's embarrasing. Sorry folks.
Model::createTableFor('RecessReflectorClass');
Expand Down
Expand Up @@ -9,6 +9,12 @@
*/
class RecessToolsDatabaseController extends Controller {

public function init() {
if(RecessConf::$mode == RecessConf::PRODUCTION) {
throw new RecessResponseException('Tools are available only during development.', ResponseCodes::HTTP_NOT_FOUND, array());
}
}

/** !Route GET */
public function home() {
$this->default = Databases::getDefaultSource();
Expand Down
Expand Up @@ -6,6 +6,12 @@
*/
class RecessToolsHomeController extends Controller {

public function init() {
if(RecessConf::$mode == RecessConf::PRODUCTION) {
throw new RecessResponseException('Tools are available only during development.', ResponseCodes::HTTP_NOT_FOUND, array());
}
}

/** !Route GET */
public function home() {
}
Expand Down
Expand Up @@ -7,6 +7,12 @@
*/
class RecessToolsRoutesController extends Controller {

public function init() {
if(RecessConf::$mode == RecessConf::PRODUCTION) {
throw new RecessResponseException('Tools are available only during development.', ResponseCodes::HTTP_NOT_FOUND, array());
}
}

/** !Route GET */
public function home() {

Expand Down
Expand Up @@ -7,6 +7,12 @@
*/
class RecessToolsTestsController extends Controller {

public function init() {
if(RecessConf::$mode == RecessConf::PRODUCTION) {
throw new RecessResponseException('Tools are available only during development.', ResponseCodes::HTTP_NOT_FOUND, array());
}
}

/** !Route GET */
public function home() {

Expand Down
Expand Up @@ -4,7 +4,9 @@
include_once($viewsDir . 'common/header.php');
?>

Instructions!
<h1>Your apps dir isn't writeable...</h1>

<h2>Please make: <span class="highlight"><?php echo $_ENV['dir.apps']; ?></span> writeable and try again.</h2>

<?php
include_once($viewsDir . 'common/footer.php');
Expand Down
6 changes: 3 additions & 3 deletions recess/lib/recess/cache/Cache.class.php
Expand Up @@ -7,9 +7,9 @@
* of including individual providers. For the perf concerned be
* encouraged to remove unused cache providers from this file.
*
* @author Kris Jordan
* @author Kris Jordan <krisjordan@gmail.com>
* @package Recess! Framework
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
* @license MIT
* @link http://www.recessframework.org/
**/
abstract class Cache {
Expand Down Expand Up @@ -84,7 +84,7 @@ static function clear() {

/**
* Common interface for caching subsystems.
* @author Kris Jordan
* @author Kris Jordan <krisjordan@gmail.com>
*/
interface ICacheProvider {
/**
Expand Down
4 changes: 2 additions & 2 deletions recess/lib/recess/database/Databases.class.php
Expand Up @@ -2,10 +2,10 @@
/**
* Registry of Database Sources
*
* @author Kris Jordan
* @author Kris Jordan <krisjordan@gmail.com>
* @copyright 2008 Kris Jordan
* @package Recess! Framework
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
* @license MIT
* @link http://www.recessframework.org/
*/
class Databases {
Expand Down
4 changes: 2 additions & 2 deletions recess/lib/recess/database/orm/Model.class.php
Expand Up @@ -22,10 +22,10 @@
/**
* Model is the basic unit of organization in Recess' simple ORM.
*
* @author Kris Jordan
* @author Kris Jordan <krisjordan@gmail.com>
* @copyright 2008 Kris Jordan
* @package Recess! Framework
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
* @license MIT
* @link http://www.recessframework.org/
*/
abstract class Model extends RecessObject implements ISqlConditions {
Expand Down
Expand Up @@ -5,10 +5,10 @@
* An annotation used on Model Classes, the BelongsTo annotation gives a model
* a BelongsToRelationship.
*
* @author Kris Jordan
* @author Kris Jordan <krisjordan@gmail.com>
* @copyright 2008 Kris Jordan
* @package Recess! Framework
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
* @license MIT
* @link http://www.recessframework.org/
*/
class BelongsToAnnotation extends ModelAnnotation {
Expand Down
Expand Up @@ -5,10 +5,10 @@
* An annotation used on Model properties which specifies information about the column
* a given property maps to in the data source.
*
* @author Kris Jordan
* @author Kris Jordan <krisjordan@gmail.com>
* @copyright 2008 Kris Jordan
* @package Recess! Framework
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
* @license MIT
* @link http://www.recessframework.org/
*/
class ColumnAnnotation extends ModelPropertyAnnotation {
Expand Down
Expand Up @@ -5,10 +5,10 @@
* An annotation used on Model Classes, the Database annotations sets the name
* of the data source (Databases::getSource($name)) this Model should talk to.
*
* @author Kris Jordan
* @author Kris Jordan <krisjordan@gmail.com>
* @copyright 2008 Kris Jordan
* @package Recess! Framework
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
* @license MIT
* @link http://www.recessframework.org/
*/
class DatabaseAnnotation extends ModelAnnotation {
Expand Down
Expand Up @@ -6,10 +6,10 @@
* An annotation used on Model Classes, the HasMany annotations gives a model
* a HasManyRelationship.
*
* @author Kris Jordan
* @author Kris Jordan <krisjordan@gmail.com>
* @copyright 2008 Kris Jordan
* @package Recess! Framework
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
* @license MIT
* @link http://www.recessframework.org/
*/
class HasManyAnnotation extends ModelAnnotation {
Expand Down
Expand Up @@ -4,10 +4,10 @@
/**
* Abstract class for annotations used on Model Classes
*
* @author Kris Jordan
* @author Kris Jordan <krisjordan@gmail.com>
* @copyright 2008 Kris Jordan
* @package Recess! Framework
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
* @license MIT
* @link http://www.recessframework.org/
*/
abstract class ModelAnnotation extends Annotation {
Expand Down
Expand Up @@ -4,10 +4,10 @@
/**
* Abstract class for annotations used on the properties of a model.
*
* @author Kris Jordan
* @author Kris Jordan <krisjordan@gmail.com>
* @copyright 2008 Kris Jordan
* @package Recess! Framework
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
* @license MIT
* @link http://www.recessframework.org/
*/
abstract class ModelPropertyAnnotation extends Annotation {
Expand Down
Expand Up @@ -5,10 +5,10 @@
* An annotation used on Model Classes, the Table annotations links a model
* to a table in the RDBMS.
*
* @author Kris Jordan
* @author Kris Jordan <krisjordan@gmail.com>
* @copyright 2008 Kris Jordan
* @package Recess! Framework
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
* @license MIT
* @link http://www.recessframework.org/
*/
class TableAnnotation extends ModelAnnotation {
Expand Down
Expand Up @@ -3,10 +3,10 @@
* A BelongsTo Recess Relationship is an abstraction of for the Many side of a
* foreign key relationship on the RDBMS.
*
* @author Kris Jordan
* @author Kris Jordan <krisjordan@gmail.com>
* @copyright 2008 Kris Jordan
* @package Recess! Framework
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
* @license MIT
* @link http://www.recessframework.org/
*/
class BelongsToRelationship extends Relationship {
Expand Down
Expand Up @@ -5,10 +5,10 @@
* A HasMany Recess Relationship is an abstraction of for the Many side of a
* foreign key relationship on the RDBMS.
*
* @author Kris Jordan
* @author Kris Jordan <krisjordan@gmail.com>
* @copyright 2008 Kris Jordan
* @package Recess! Framework
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
* @license MIT
* @link http://www.recessframework.org/
*/
class HasManyRelationship extends Relationship {
Expand Down
Expand Up @@ -2,10 +2,10 @@
/**
* A Recess Relationship is an abstraction of a foreign key relationship on the RDBMS.
*
* @author Kris Jordan
* @author Kris Jordan <krisjordan@gmail.com>
* @copyright 2008 Kris Jordan
* @package Recess! Framework
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
* @license MIT
* @link http://www.recessframework.org/
*/
abstract class Relationship {
Expand Down
Expand Up @@ -6,10 +6,10 @@
/**
* Interface for vendor specific operations needed by PdoDataSource.
*
* @author Kris Jordan
* @author Kris Jordan <krisjordan@gmail.com>
* @copyright 2008 Kris Jordan
* @package Recess! Framework
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
* @license MIT
* @link http://www.recessframework.org/
*/
interface IPdoDataSourceProvider {
Expand Down
Expand Up @@ -5,10 +5,10 @@
/**
* MySql Data Source Provider
*
* @author Kris Jordan
* @author Kris Jordan <krisjordan@gmail.com>
* @copyright 2008 Kris Jordan
* @package Recess! Framework
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
* @license MIT
* @link http://www.recessframework.org/
*/
class MysqlDataSourceProvider implements IPdoDataSourceProvider {
Expand Down
4 changes: 2 additions & 2 deletions recess/lib/recess/database/pdo/PdoDataSet.class.php
Expand Up @@ -16,10 +16,10 @@
* print_r($result);
* }
*
* @author Kris Jordan
* @author Kris Jordan <krisjordan@gmail.com>
* @copyright 2008 Kris Jordan
* @package Recess! Framework
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
* @license MIT
* @link http://www.recessframework.org/
*/
class PdoDataSet implements Iterator, Countable, ArrayAccess, ISqlSelectOptions, ISqlConditions {
Expand Down
4 changes: 2 additions & 2 deletions recess/lib/recess/database/pdo/PdoDataSource.class.php
Expand Up @@ -10,10 +10,10 @@
* A PDO wrapper in the Recess! Framework that provides a single interface for commonly
* needed operations (i.e.: list tables, list columns in a table, etc).
*
* @author Kris Jordan
* @author Kris Jordan <krisjordan@gmail.com>
* @copyright 2008 Kris Jordan
* @package Recess! Framework
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
* @license MIT
* @link http://www.recessframework.org/
*/
class PdoDataSource extends PDO {
Expand Down
Expand Up @@ -2,10 +2,10 @@
/**
* RecessTable represents a basic abstraction of an RDBMS column.
*
* @author Kris Jordan
* @author Kris Jordan <krisjordan@gmail.com>
* @copyright 2008 Kris Jordan
* @package Recess! Framework
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
* @license MIT
* @link http://www.recessframework.org/
*/
class RecessColumnDescriptor {
Expand Down
Expand Up @@ -4,10 +4,10 @@
/**
* RecessTableDescriptor represents a basic abstraction of an RDBMS table.
*
* @author Kris Jordan
* @author Kris Jordan <krisjordan@gmail.com>
* @copyright 2008 Kris Jordan
* @package Recess! Framework
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
* @license MIT
* @link http://www.recessframework.org/
*/
class RecessTableDescriptor {
Expand Down
4 changes: 2 additions & 2 deletions recess/lib/recess/database/pdo/RecessType.class.php
Expand Up @@ -3,10 +3,10 @@
* Recess has a fixed set of native 'recess' types that are mapped to vendor specific
* column types by individual DataSourceProviders.
*
* @author Kris Jordan
* @author Kris Jordan <krisjordan@gmail.com>
* @copyright 2008 Kris Jordan
* @package Recess! Framework
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
* @license MIT
* @link http://www.recessframework.org/
*/
abstract class RecessType {
Expand Down

0 comments on commit bf6fbae

Please sign in to comment.