This repository has been archived by the owner on Jul 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding an IQuery interface to make chaining query generation easier
- Loading branch information
1 parent
6355878
commit 8d5b3b9
Showing
9 changed files
with
79 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
nbproject | ||
Morph.phar | ||
doc/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?php | ||
/** | ||
* @package Morph | ||
* @author Jonathan Moss <[email protected]> | ||
* @copyright 2011 Jonathan Moss | ||
*/ | ||
|
||
/** | ||
* An interface for query objects | ||
* | ||
* @author Jonathan Moss <[email protected]> | ||
*/ | ||
interface Morph_IQuery | ||
{ | ||
|
||
/** | ||
* @return array | ||
*/ | ||
function getRawQuery(); | ||
|
||
/** | ||
* @return array | ||
*/ | ||
function getRawSort(); | ||
|
||
/** | ||
* @return int | ||
*/ | ||
function getLimit(); | ||
|
||
/** | ||
* @return int | ||
*/ | ||
function getSkip(); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,6 @@ | |
* @package Morph | ||
* @author Jonathan Moss <[email protected]> | ||
* @copyright 2009 Jonathan Moss | ||
* @version SVN: $Id$ | ||
*/ | ||
|
||
/** | ||
|
@@ -41,7 +40,7 @@ | |
* | ||
* @package Morph | ||
*/ | ||
class Morph_Query | ||
class Morph_Query implements Morph_IQuery | ||
{ | ||
|
||
/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters