-
Notifications
You must be signed in to change notification settings - Fork 166
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c6a0e9f
commit 7610b34
Showing
2 changed files
with
84 additions
and
20 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
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,49 @@ | ||
<?php | ||
/** @package verysimple::Phreeze */ | ||
|
||
/** import supporting libraries */ | ||
require_once("FieldMap.php"); | ||
require_once("KeyMap.php"); | ||
|
||
/** | ||
* IDaoMap2 is an interface for a mapped object that can be persisted by Phreeze | ||
* Version 2 includes AddMap and SetFetchingStrategy | ||
* | ||
* @package verysimple::Phreeze | ||
* @author VerySimple Inc. | ||
* @copyright 1997-2007 VerySimple, Inc. | ||
* @license http://www.gnu.org/licenses/lgpl.html LGPL | ||
* @version 2.0 | ||
*/ | ||
interface IDaoMap2 | ||
{ | ||
/** | ||
* Add a new FieldMap | ||
* @param string $property | ||
* @param FieldMap $map | ||
*/ | ||
static function AddMap($property,FieldMap $map); | ||
|
||
/** | ||
* Change the fetching strategy for a KeyMap | ||
* @param unknown $property | ||
* @param int $loadType (KM_LOAD_LAZY | KM_LOAD_INNER | KM_LOAD_EAGER) | ||
*/ | ||
static function SetFetchingStrategy($property,$loadType); | ||
|
||
/** | ||
* Returns a singleton array of FieldMaps for a Phreezable object | ||
* @access public | ||
* @return FieldMap[] | ||
*/ | ||
static function GetFieldMaps(); | ||
|
||
/** | ||
* Returns a singleton array of KeyMaps for the Phreezable object | ||
* @access public | ||
* @return KeyMap[] | ||
*/ | ||
static function GetKeyMaps(); | ||
} | ||
|
||
?> |