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 +++++++++++++++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) (limited to 'h-source/Library/Model/Base.php') 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) -- cgit v1.2.3