예제 #1
0
 /**
  *	Description...
  *
  *	@return void
  **/
 public function reportQuery()
 {
     if ($this->dynamic()) {
         $query = $this->_mapper->_dataQuery($this->_object)->group($this->_object->detailLevel()->getFieldNameWithId());
         $this->_object->_appendSort($query);
     } else {
         $query = $this->_mapper->_dataQuery($this->_object)->where('period=?', $this->_object->period()->lastValue());
         $this->_object->_appendSort($query);
     }
     if ($a = $this->_object->hideRestriction()) {
         $query->where($a);
     }
     return $query;
 }