/** * Returns diagram prefix name * * @return string */ public function getDiagramPrefix() { return 'report-' . $this->_object->id() . '-' . $this->_object->report_type; }
public function _loadCollection($type, RM_Report_Object $object, $groupId = NULL) { $res = array(); $q = M('Db')->createQuery($this->table('group_link'))->where('group_type=?', $type)->where('report_id=?', $object->id()); if (!isNull($groupId)) { $q->where('group_id=?', $groupId); } foreach ($q->execute() as $row) { $res[$row['value_id']] = $row['group_id']; } return $res; }