From 084c6123f0a0fbf05ed4c0d776f05e084d9ecc58 Mon Sep 17 00:00:00 2001 From: Antonio Gallo Date: Fri, 18 Feb 2011 11:21:43 +0000 Subject: added new EasyGiant library --- h-source/Library/Model/Base.php | 31 +++++++++++++++++++++++++++++-- h-source/Library/Model/Map.php | 19 +++++++++++++++++-- h-source/Library/Model/Tree.php | 19 +++++++++++++++++-- 3 files changed, 63 insertions(+), 6 deletions(-) (limited to 'h-source/Library/Model') diff --git a/h-source/Library/Model/Base.php b/h-source/Library/Model/Base.php index 1aaadca..4f2e783 100755 --- a/h-source/Library/Model/Base.php +++ b/h-source/Library/Model/Base.php @@ -1,7 +1,22 @@ . if (!defined('EG')) die('Direct access not allowed!'); @@ -136,6 +151,18 @@ abstract class Model_Base $this->db = Factory_Db::getInstance(DATABASE_TYPE); } + //sanitize all the $values proprierty + public function sanitize() + { + $this->values = $this->arrayExt->subset($this->values,null,'sanitizeDb'); + } + + //change a resulting string from a db query + public function setString($key,$value) + { + $this->_resultString->string[$key] = $value; + } + //set the submitNames property (array) //$methodName : the method name, $submitName: the submit name of the submit action of the form public function setSubmitNames($methodName,$submitName) diff --git a/h-source/Library/Model/Map.php b/h-source/Library/Model/Map.php index 7a36c6f..4fe562d 100755 --- a/h-source/Library/Model/Map.php +++ b/h-source/Library/Model/Map.php @@ -1,7 +1,22 @@ . if (!defined('EG')) die('Direct access not allowed!'); diff --git a/h-source/Library/Model/Tree.php b/h-source/Library/Model/Tree.php index d7b655d..4dcac8f 100755 --- a/h-source/Library/Model/Tree.php +++ b/h-source/Library/Model/Tree.php @@ -1,7 +1,22 @@ . if (!defined('EG')) die('Direct access not allowed!'); -- cgit v1.2.3