diff --git a/site/app_model.php b/site/app_model.php index 83eca67..e38d6a0 100644 --- a/site/app_model.php +++ b/site/app_model.php @@ -42,6 +42,25 @@ class AppModel extends Model { var $useNullForEmpty = true; var $formatDateFields = true; + + /************************************************************************** + ************************************************************************** + ************************************************************************** + * function: queryInit + * - Initializes the query fields + */ + function prDump($all = false) { + $vars = get_object_vars($this); + foreach (array_keys($vars) AS $name) { + if (preg_match("/^[A-Z]/", $name)) + unset($vars[$name]); + if (preg_match("/^_/", $name) && !$all) + unset($vars[$name]); + } + pr($vars); + } + + /** * Get Enum Values * Snippet v0.1.3