diff options
Diffstat (limited to 'codebase/connector/db_common.php')
-rw-r--r-- | codebase/connector/db_common.php | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/codebase/connector/db_common.php b/codebase/connector/db_common.php index f6391d2..eddc7ad 100644 --- a/codebase/connector/db_common.php +++ b/codebase/connector/db_common.php @@ -8,6 +8,8 @@ require_once("tools.php"); /*! manager of data request **/ class DataRequestConfig{ + + private $action_mode = ""; private $filters; //!< array of filtering rules private $relation=false; //!< ID or other element used for linking hierarchy private $sort_by; //!< sorting field @@ -52,6 +54,7 @@ class DataRequestConfig{ $this->relation =$proto->get_relation(); $this->user = $proto->user; $this->version = $proto->version; + $this->action_mode = $proto->action_mode; } /*! convert self to string ( for logs ) @@ -69,6 +72,15 @@ class DataRequestConfig{ return $str; } + public function set_action_mode($action_mode) { + $this->action_mode = $action_mode; + return $this; + } + + public function get_action_mode() { + return $this->action_mode; + } + /*! returns set of filtering rules @return set of filtering rules @@ -205,7 +217,6 @@ class DataRequestConfig{ if (is_string($value)) $value = trim($value); $this->source = $value; - if (!$this->source) throw new Exception("Source of data can't be empty"); } /*! sets data limits |