New onsite patient portal, take 4.
[openemr.git] / portal / patient / fwk / libs / verysimple / Phreeze / IDaoMap2.php
blob7d9f612b4e8c15639ac459ba1cd86ee4fd72a343
1 <?php
2 /** @package verysimple::Phreeze */
4 /**
5 * import supporting libraries
6 */
7 require_once ("FieldMap.php");
8 require_once ("KeyMap.php");
10 /**
11 * IDaoMap2 is an interface for a mapped object that can be persisted by Phreeze
12 * Version 2 includes AddMap and SetFetchingStrategy
14 * @package verysimple::Phreeze
15 * @author VerySimple Inc.
16 * @copyright 1997-2007 VerySimple, Inc.
17 * @license http://www.gnu.org/licenses/lgpl.html LGPL
18 * @version 2.0
20 interface IDaoMap2 {
21 /**
22 * Add a new FieldMap
24 * @param string $property
25 * @param FieldMap $map
27 static function AddMap($property, FieldMap $map);
29 /**
30 * Change the fetching strategy for a KeyMap
32 * @param unknown $property
33 * @param int $loadType
34 * (KM_LOAD_LAZY | KM_LOAD_INNER | KM_LOAD_EAGER)
36 static function SetFetchingStrategy($property, $loadType);
38 /**
39 * Returns a singleton array of FieldMaps for a Phreezable object
41 * @access public
42 * @return FieldMap[]
44 static function GetFieldMaps();
46 /**
47 * Returns a singleton array of KeyMaps for the Phreezable object
49 * @access public
50 * @return KeyMap[]
52 static function GetKeyMaps();