Exemplo n.º 1
0
 function displayOptions()
 {
     $this->processDisplayOptions();
     $this->configureSS->assign('strings', array('general' => $GLOBALS['mod_strings']['LBL_DASHLET_CONFIGURE_GENERAL'], 'filters' => $GLOBALS['mod_strings']['LBL_DASHLET_CONFIGURE_FILTERS'], 'myItems' => translate('LBL_DASHLET_CONFIGURE_MY_ITEMS_ONLY', 'Meetings'), 'displayRows' => $GLOBALS['mod_strings']['LBL_DASHLET_CONFIGURE_DISPLAY_ROWS'], 'title' => $GLOBALS['mod_strings']['LBL_DASHLET_CONFIGURE_TITLE'], 'save' => $GLOBALS['app_strings']['LBL_SAVE_BUTTON_LABEL'], 'autoRefresh' => $GLOBALS['app_strings']['LBL_DASHLET_CONFIGURE_AUTOREFRESH']));
     require_once 'modules/Meetings/Meeting.php';
     $types = getMeetingsExternalApiDropDown();
     $this->currentSearchFields['type']['input'] = '<select size="3" multiple="true" name="type[]">' . get_select_options_with_id($types, empty($this->filters['type']) ? '' : $this->filters['type']) . '</select>';
     $this->configureSS->assign('searchFields', $this->currentSearchFields);
     return $this->configureSS->fetch($this->configureTpl);
 }
Exemplo n.º 2
0
 function displayOptions()
 {
     $this->processDisplayOptions();
     $this->configureSS->assign('strings', array('general' => $GLOBALS['mod_strings']['LBL_DASHLET_CONFIGURE_GENERAL'], 'filters' => $GLOBALS['mod_strings']['LBL_DASHLET_CONFIGURE_FILTERS'], 'myItems' => translate('LBL_DASHLET_CONFIGURE_MY_ITEMS_ONLY', 'Meetings'), 'displayRows' => $GLOBALS['mod_strings']['LBL_DASHLET_CONFIGURE_DISPLAY_ROWS'], 'title' => $GLOBALS['mod_strings']['LBL_DASHLET_CONFIGURE_TITLE'], 'save' => $GLOBALS['app_strings']['LBL_SAVE_BUTTON_LABEL'], 'autoRefresh' => $GLOBALS['app_strings']['LBL_DASHLET_CONFIGURE_AUTOREFRESH'], 'clear' => $GLOBALS['app_strings']['LBL_CLEAR_BUTTON_LABEL']));
     // the 'type' search field exists in default dashlet's definition,
     // but we need to check it anyways because user can re-define the search fields using he studio
     // and the 'type' field can be removed
     if (isset($this->currentSearchFields['type'])) {
         require_once 'modules/Meetings/Meeting.php';
         $types = getMeetingsExternalApiDropDown();
         $this->currentSearchFields['type']['input'] = '<select size="3" multiple="true" name="type[]">' . get_select_options_with_id($types, empty($this->filters['type']) ? '' : $this->filters['type']) . '</select>';
         $this->configureSS->assign('searchFields', $this->currentSearchFields);
     }
     return $this->configureSS->fetch($this->configureTpl);
 }
Exemplo n.º 3
0
 public function testgetMeetingsExternalApiDropDown()
 {
     $actual = getMeetingsExternalApiDropDown();
     $expected = array('Sugar' => 'SuiteCRM');
     $this->assertSame($expected, $actual);
 }