コード例 #1
0
ファイル: Show.class.php プロジェクト: evilgeny/bob
 /**
  * Returns diagram prefix name
  *
  * @return		string
  */
 public function getDiagramPrefix()
 {
     return 'report-' . $this->_object->id() . '-' . $this->_object->report_type;
 }
コード例 #2
0
ファイル: Mapper.class.php プロジェクト: evilgeny/bob
 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;
 }