示例#1
0
 public function getProtectedKeys($entity, $type)
 {
     $parent_protected = parent::getProtectedKeys($entity, $type);
     if ($type == 'update') {
         return array_merge($parent_protected, array("type", "aid", "sid", "file", "log_stamp", "imsi", "source", "stamp", "urt", "usaget", "billrun"));
     }
     return $parent_protected;
 }
示例#2
0
 public function getProtectedKeys($entity, $type)
 {
     $parent_protected = parent::getProtectedKeys($entity, $type);
     if ($type == 'logDetails') {
         $added_fields = array("source", "type", "path", "file_name", "stamp", "received_time", "retrieved_from", "process_time");
         return array_merge($parent_protected, $added_fields);
     }
     return $parent_protected;
 }
示例#3
0
 public function getProtectedKeys($entity, $type)
 {
     $parent_protected = parent::getProtectedKeys($entity, $type);
     if ($type == 'update') {
         if ($this->isLast($entity) && $this->endsInFuture($entity)) {
             return array_merge($parent_protected, array("from", $this->search_key));
         }
         return array_merge($parent_protected, array("from", "to", $this->search_key));
     } else {
         if ($type == 'close_and_new') {
             return array_merge($parent_protected, array($this->search_key));
         }
     }
     return $parent_protected;
 }