aboutsummaryrefslogtreecommitdiff
path: root/h-source/Application/Models/GenericModel.php
diff options
context:
space:
mode:
Diffstat (limited to 'h-source/Application/Models/GenericModel.php')
-rw-r--r--h-source/Application/Models/GenericModel.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/h-source/Application/Models/GenericModel.php b/h-source/Application/Models/GenericModel.php
index 0ccd332..9a619fd 100644
--- a/h-source/Application/Models/GenericModel.php
+++ b/h-source/Application/Models/GenericModel.php
@@ -56,4 +56,14 @@ class GenericModel extends Model_Tree {
{
return getDiffArray($this->diffFields, $oldArray, $newArray);
}
+
+ //create the $_popupWhere property
+ public function createPopupWhere($list)
+ {
+ $listArray = explode(',',$list);
+ foreach ($listArray as $field)
+ {
+ $this->_popupWhere[$field] = 'type="'.$this->type.'" and deleted="no" and cleared="no"';
+ }
+ }
} \ No newline at end of file