Skip to content

Commit

Permalink
Fixed regression in Model class due to refactoring parameter names.
Browse files Browse the repository at this point in the history
  • Loading branch information
KrisJordan committed Dec 16, 2008
1 parent 10f5330 commit ae94c0c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 10 deletions.
10 changes: 5 additions & 5 deletions recess/lib/recess/database/orm/Model.class.php
Expand Up @@ -386,7 +386,7 @@ function copy($keyValuePair) {
* @param mixed $rhs Value
* @return PdoDataSet
*/
function equal($column, $rhs){ return $this->select()->equal($column,$rhs); }
function equal($column, $rhs){ return $this->select()->equal($column, $rhs); }

/**
* Add inequality criteria between a column and value
Expand Down Expand Up @@ -423,7 +423,7 @@ function greaterThan($column, $rhs) { return $this->select()->greaterThan($colum
* @param mixed $rhs Value
* @return PdoDataSet
*/
function greaterThanOrEqualTo($column, $rhs) { return $this->select()->greaterThanOrEqualTo($lhs,$rhs); }
function greaterThanOrEqualTo($column, $rhs) { return $this->select()->greaterThanOrEqualTo($column,$rhs); }

/**
* SQL criteria specifying a column's value is less than $rhs
Expand All @@ -432,7 +432,7 @@ function greaterThanOrEqualTo($column, $rhs) { return $this->select()->greaterTh
* @param mixed $rhs Value
* @return PdoDataSet
*/
function lessThan($column, $rhs) { return $this->select()->lessThan($lhs,$rhs); }
function lessThan($column, $rhs) { return $this->select()->lessThan($column,$rhs); }

/**
* SQL criteria specifying a column's value is no greater than $rhs
Expand All @@ -441,7 +441,7 @@ function lessThan($column, $rhs) { return $this->select()->lessThan($lhs,$rhs);
* @param mixed $rhs Value
* @return PdoDataSet
*/
function lessThanOrEqualTo($column, $rhs) { return $this->select()->lessThanOrEqualTo($lhs,$rhs); }
function lessThanOrEqualTo($column, $rhs) { return $this->select()->lessThanOrEqualTo($column,$rhs); }

/**
* SQL LIKE criteria, note this does not automatically include wildcards
Expand All @@ -450,7 +450,7 @@ function lessThanOrEqualTo($column, $rhs) { return $this->select()->lessThanOrEq
* @param mixed $rhs Value
* @return PdoDataSet
*/
function like($column, $rhs) { return $this->select()->like($lhs,$rhs); }
function like($column, $rhs) { return $this->select()->like($column,$rhs); }

}

Expand Down
15 changes: 10 additions & 5 deletions recess/lib/recess/lang/Library.class.php
@@ -1,14 +1,19 @@
<?php
require_once($_ENV['dir.lib'] . 'recess/diagnostics/Diagnostics.class.php');
require_once($_ENV['dir.lib'] . 'recess/cache/Cache.class.php');

/**
* Used to include class files into the system
* Used over straight require's as a level of indirection to provide
* opportunity for more interesting include/require behaviors.
* Uses PHP's __autoload for lazy loading.
* Library is an important low level utility in Recess used to make importing class files
* less painful. Library is also an important level of indirection between PHP's native
* include/require functions. Library is how Recess! dynamically 'compiles' all classes
* into a single PHP file.
*
* @author Kris Jordan
* @todo Document this class well.
* @copyright 2008 Kris Jordan
* @package Recess! Framework
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
* @link http://www.recessframework.org/
*
* @todo Allow framework to register packages/shortcuts? i.e.: Library::import('recess.framework.models.Model') vs. Library::import('recess','Model')
*/
class Library {
Expand Down

0 comments on commit ae94c0c

Please sign in to comment.