Пример #1
0
 /**
  * Setting the toolbar
  */
 protected function addToolBar()
 {
     $canDo = ComponentbuilderHelper::getActions('componentbuilder');
     JToolBarHelper::title(JText::_('COM_COMPONENTBUILDER_DASHBOARD'), 'grid-2');
     // set help url for this view if found
     $help_url = ComponentbuilderHelper::getHelpUrl('componentbuilder');
     if (ComponentbuilderHelper::checkString($help_url)) {
         JToolbarHelper::help('COM_COMPONENTBUILDER_HELP_MANAGER', false, $help_url);
     }
     if ($canDo->get('core.admin') || $canDo->get('core.options')) {
         JToolBarHelper::preferences('com_componentbuilder');
     }
 }
Пример #2
0
 /**
  * Setting the toolbar
  */
 protected function addToolBar()
 {
     $canDo = ComponentbuilderHelper::getActions('compiler');
     JToolBarHelper::title(JText::_('Compiler'), 'cogs');
     if ($canDo->get('core.admin') || $canDo->get('core.options')) {
         JToolBarHelper::custom('compiler.clearTmp', 'purge', '', 'Clear tmp', false);
         JToolBarHelper::divider();
         JToolBarHelper::preferences('com_componentbuilder');
     }
     // set help url for this view if found
     $help_url = ComponentbuilderHelper::getHelpUrl('compiler');
     if (ComponentbuilderHelper::checkString($help_url)) {
         JToolbarHelper::help('COM_COMPONENTBUILDER_HELP_MANAGER', false, $help_url);
     }
 }
Пример #3
0
 /**
  * Setting the toolbar
  */
 protected function addToolBar()
 {
     JToolBarHelper::title(JText::_('COM_COMPONENTBUILDER_SITE_VIEWS'), 'stack');
     JHtmlSidebar::setAction('index.php?option=com_componentbuilder&view=site_views');
     JFormHelper::addFieldPath(JPATH_COMPONENT . '/models/fields');
     if ($this->canCreate) {
         JToolBarHelper::addNew('site_view.add');
     }
     // Only load if there are items
     if (ComponentbuilderHelper::checkArray($this->items)) {
         if ($this->canEdit) {
             JToolBarHelper::editList('site_view.edit');
         }
         if ($this->canState) {
             JToolBarHelper::publishList('site_views.publish');
             JToolBarHelper::unpublishList('site_views.unpublish');
             JToolBarHelper::archiveList('site_views.archive');
             if ($this->canDo->get('core.admin')) {
                 JToolBarHelper::checkin('site_views.checkin');
             }
         }
         // Add a batch button
         if ($this->canBatch && $this->canCreate && $this->canEdit && $this->canState) {
             // Get the toolbar object instance
             $bar = JToolBar::getInstance('toolbar');
             // set the batch button name
             $title = JText::_('JTOOLBAR_BATCH');
             // Instantiate a new JLayoutFile instance and render the batch button
             $layout = new JLayoutFile('joomla.toolbar.batch');
             // add the button to the page
             $dhtml = $layout->render(array('title' => $title));
             $bar->appendButton('Custom', $dhtml, 'batch');
         }
         if ($this->state->get('filter.published') == -2 && ($this->canState && $this->canDelete)) {
             JToolbarHelper::deleteList('', 'site_views.delete', 'JTOOLBAR_EMPTY_TRASH');
         } elseif ($this->canState && $this->canDelete) {
             JToolbarHelper::trash('site_views.trash');
         }
         if ($this->canDo->get('core.export') && $this->canDo->get('site_view.export')) {
             JToolBarHelper::custom('site_views.exportData', 'download', '', 'COM_COMPONENTBUILDER_EXPORT_DATA', true);
         }
     }
     if ($this->canDo->get('core.import') && $this->canDo->get('site_view.import')) {
         JToolBarHelper::custom('site_views.importData', 'upload', '', 'COM_COMPONENTBUILDER_IMPORT_DATA', false);
     }
     // set help url for this view if found
     $help_url = ComponentbuilderHelper::getHelpUrl('site_views');
     if (ComponentbuilderHelper::checkString($help_url)) {
         JToolbarHelper::help('COM_COMPONENTBUILDER_HELP_MANAGER', false, $help_url);
     }
     // add the options comp button
     if ($this->canDo->get('core.admin') || $this->canDo->get('core.options')) {
         JToolBarHelper::preferences('com_componentbuilder');
     }
     if ($this->canState) {
         JHtmlSidebar::addFilter(JText::_('JOPTION_SELECT_PUBLISHED'), 'filter_published', JHtml::_('select.options', JHtml::_('jgrid.publishedOptions'), 'value', 'text', $this->state->get('filter.published'), true));
         // only load if batch allowed
         if ($this->canBatch) {
             JHtmlBatch_::addListSelection(JText::_('COM_COMPONENTBUILDER_KEEP_ORIGINAL_STATE'), 'batch[published]', JHtml::_('select.options', JHtml::_('jgrid.publishedOptions', array('all' => false)), 'value', 'text', '', true));
         }
     }
     JHtmlSidebar::addFilter(JText::_('JOPTION_SELECT_ACCESS'), 'filter_access', JHtml::_('select.options', JHtml::_('access.assetgroups'), 'value', 'text', $this->state->get('filter.access')));
     if ($this->canBatch && $this->canCreate && $this->canEdit) {
         JHtmlBatch_::addListSelection(JText::_('COM_COMPONENTBUILDER_KEEP_ORIGINAL_ACCESS'), 'batch[access]', JHtml::_('select.options', JHtml::_('access.assetgroups'), 'value', 'text'));
     }
 }
Пример #4
0
 /**
  * Setting the toolbar
  */
 protected function addToolBar()
 {
     JToolBarHelper::title(JText::_('COM_COMPONENTBUILDER_IMPORT_TITLE'), 'upload');
     JHtmlSidebar::setAction('index.php?option=com_componentbuilder&view=import');
     if ($this->canDo->get('core.admin') || $this->canDo->get('core.options')) {
         JToolBarHelper::preferences('com_componentbuilder');
     }
     // set help url for this view if found
     $help_url = ComponentbuilderHelper::getHelpUrl('import');
     if (ComponentbuilderHelper::checkString($help_url)) {
         JToolbarHelper::help('COM_COMPONENTBUILDER_HELP_MANAGER', false, $help_url);
     }
 }
Пример #5
0
 /**
  * Setting the toolbar
  */
 protected function addToolBar()
 {
     JFactory::getApplication()->input->set('hidemainmenu', true);
     $user = JFactory::getUser();
     $userId = $user->id;
     $isNew = $this->item->id == 0;
     JToolbarHelper::title(JText::_($isNew ? 'COM_COMPONENTBUILDER_FIELD_NEW' : 'COM_COMPONENTBUILDER_FIELD_EDIT'), 'pencil-2 article-add');
     // Built the actions for new and existing records.
     if ($this->refid || $this->ref) {
         if ($this->canDo->get('field.create') && $isNew) {
             // We can create the record.
             JToolBarHelper::save('field.save', 'JTOOLBAR_SAVE');
         } elseif ($this->canDo->get('field.edit')) {
             // We can save the record.
             JToolBarHelper::save('field.save', 'JTOOLBAR_SAVE');
         }
         if ($isNew) {
             // Do not creat but cancel.
             JToolBarHelper::cancel('field.cancel', 'JTOOLBAR_CANCEL');
         } else {
             // We can close it.
             JToolBarHelper::cancel('field.cancel', 'JTOOLBAR_CLOSE');
         }
     } else {
         if ($isNew) {
             // For new records, check the create permission.
             if ($this->canDo->get('field.create')) {
                 JToolBarHelper::apply('field.apply', 'JTOOLBAR_APPLY');
                 JToolBarHelper::save('field.save', 'JTOOLBAR_SAVE');
                 JToolBarHelper::custom('field.save2new', 'save-new.png', 'save-new_f2.png', 'JTOOLBAR_SAVE_AND_NEW', false);
             }
             JToolBarHelper::cancel('field.cancel', 'JTOOLBAR_CANCEL');
         } else {
             if ($this->canDo->get('field.edit')) {
                 // We can save the new record
                 JToolBarHelper::apply('field.apply', 'JTOOLBAR_APPLY');
                 JToolBarHelper::save('field.save', 'JTOOLBAR_SAVE');
                 // We can save this record, but check the create permission to see
                 // if we can return to make a new one.
                 if ($this->canDo->get('field.create')) {
                     JToolBarHelper::custom('field.save2new', 'save-new.png', 'save-new_f2.png', 'JTOOLBAR_SAVE_AND_NEW', false);
                 }
             }
             $canVersion = $this->canDo->get('core.version') && $this->canDo->get('field.version');
             if ($this->state->params->get('save_history', 1) && $this->canDo->get('field.edit') && $canVersion) {
                 JToolbarHelper::versions('com_componentbuilder.field', $this->item->id);
             }
             if ($this->canDo->get('field.create')) {
                 JToolBarHelper::custom('field.save2copy', 'save-copy.png', 'save-copy_f2.png', 'JTOOLBAR_SAVE_AS_COPY', false);
             }
             JToolBarHelper::cancel('field.cancel', 'JTOOLBAR_CLOSE');
         }
     }
     JToolbarHelper::divider();
     // set help url for this view if found
     $help_url = ComponentbuilderHelper::getHelpUrl('field');
     if (ComponentbuilderHelper::checkString($help_url)) {
         JToolbarHelper::help('COM_COMPONENTBUILDER_HELP_MANAGER', false, $help_url);
     }
 }
Пример #6
0
 /**
  * Setting the toolbar
  */
 protected function addToolBar()
 {
     JToolBarHelper::title(JText::_('COM_COMPONENTBUILDER_HELP_DOCUMENTS'), 'support');
     JHtmlSidebar::setAction('index.php?option=com_componentbuilder&view=help_documents');
     JFormHelper::addFieldPath(JPATH_COMPONENT . '/models/fields');
     if ($this->canCreate) {
         JToolBarHelper::addNew('help_document.add');
     }
     // Only load if there are items
     if (ComponentbuilderHelper::checkArray($this->items)) {
         if ($this->canEdit) {
             JToolBarHelper::editList('help_document.edit');
         }
         if ($this->canState) {
             JToolBarHelper::publishList('help_documents.publish');
             JToolBarHelper::unpublishList('help_documents.unpublish');
             JToolBarHelper::archiveList('help_documents.archive');
             if ($this->canDo->get('core.admin')) {
                 JToolBarHelper::checkin('help_documents.checkin');
             }
         }
         // Add a batch button
         if ($this->canBatch && $this->canCreate && $this->canEdit && $this->canState) {
             // Get the toolbar object instance
             $bar = JToolBar::getInstance('toolbar');
             // set the batch button name
             $title = JText::_('JTOOLBAR_BATCH');
             // Instantiate a new JLayoutFile instance and render the batch button
             $layout = new JLayoutFile('joomla.toolbar.batch');
             // add the button to the page
             $dhtml = $layout->render(array('title' => $title));
             $bar->appendButton('Custom', $dhtml, 'batch');
         }
         if ($this->state->get('filter.published') == -2 && ($this->canState && $this->canDelete)) {
             JToolbarHelper::deleteList('', 'help_documents.delete', 'JTOOLBAR_EMPTY_TRASH');
         } elseif ($this->canState && $this->canDelete) {
             JToolbarHelper::trash('help_documents.trash');
         }
         if ($this->canDo->get('core.export') && $this->canDo->get('help_document.export')) {
             JToolBarHelper::custom('help_documents.exportData', 'download', '', 'COM_COMPONENTBUILDER_EXPORT_DATA', true);
         }
     }
     if ($this->canDo->get('core.import') && $this->canDo->get('help_document.import')) {
         JToolBarHelper::custom('help_documents.importData', 'upload', '', 'COM_COMPONENTBUILDER_IMPORT_DATA', false);
     }
     // set help url for this view if found
     $help_url = ComponentbuilderHelper::getHelpUrl('help_documents');
     if (ComponentbuilderHelper::checkString($help_url)) {
         JToolbarHelper::help('COM_COMPONENTBUILDER_HELP_MANAGER', false, $help_url);
     }
     // add the options comp button
     if ($this->canDo->get('core.admin') || $this->canDo->get('core.options')) {
         JToolBarHelper::preferences('com_componentbuilder');
     }
     if ($this->canState) {
         JHtmlSidebar::addFilter(JText::_('JOPTION_SELECT_PUBLISHED'), 'filter_published', JHtml::_('select.options', JHtml::_('jgrid.publishedOptions'), 'value', 'text', $this->state->get('filter.published'), true));
         // only load if batch allowed
         if ($this->canBatch) {
             JHtmlBatch_::addListSelection(JText::_('COM_COMPONENTBUILDER_KEEP_ORIGINAL_STATE'), 'batch[published]', JHtml::_('select.options', JHtml::_('jgrid.publishedOptions', array('all' => false)), 'value', 'text', '', true));
         }
     }
     JHtmlSidebar::addFilter(JText::_('JOPTION_SELECT_ACCESS'), 'filter_access', JHtml::_('select.options', JHtml::_('access.assetgroups'), 'value', 'text', $this->state->get('filter.access')));
     if ($this->canBatch && $this->canCreate && $this->canEdit) {
         JHtmlBatch_::addListSelection(JText::_('COM_COMPONENTBUILDER_KEEP_ORIGINAL_ACCESS'), 'batch[access]', JHtml::_('select.options', JHtml::_('access.assetgroups'), 'value', 'text'));
     }
     // Set Type Selection
     $this->typeOptions = $this->getTheTypeSelections();
     if ($this->typeOptions) {
         // Type Filter
         JHtmlSidebar::addFilter('- Select ' . JText::_('COM_COMPONENTBUILDER_HELP_DOCUMENT_TYPE_LABEL') . ' -', 'filter_type', JHtml::_('select.options', $this->typeOptions, 'value', 'text', $this->state->get('filter.type')));
         if ($this->canBatch && $this->canCreate && $this->canEdit) {
             // Type Batch Selection
             JHtmlBatch_::addListSelection('- Keep Original ' . JText::_('COM_COMPONENTBUILDER_HELP_DOCUMENT_TYPE_LABEL') . ' -', 'batch[type]', JHtml::_('select.options', $this->typeOptions, 'value', 'text'));
         }
     }
     // Set Location Selection
     $this->locationOptions = $this->getTheLocationSelections();
     if ($this->locationOptions) {
         // Location Filter
         JHtmlSidebar::addFilter('- Select ' . JText::_('COM_COMPONENTBUILDER_HELP_DOCUMENT_LOCATION_LABEL') . ' -', 'filter_location', JHtml::_('select.options', $this->locationOptions, 'value', 'text', $this->state->get('filter.location')));
         if ($this->canBatch && $this->canCreate && $this->canEdit) {
             // Location Batch Selection
             JHtmlBatch_::addListSelection('- Keep Original ' . JText::_('COM_COMPONENTBUILDER_HELP_DOCUMENT_LOCATION_LABEL') . ' -', 'batch[location]', JHtml::_('select.options', $this->locationOptions, 'value', 'text'));
         }
     }
     // Set Admin View Selection
     $this->admin_viewOptions = JFormHelper::loadFieldType('Adminviewfolderlist')->getOptions();
     if ($this->admin_viewOptions) {
         // Admin View Filter
         JHtmlSidebar::addFilter('- Select ' . JText::_('COM_COMPONENTBUILDER_HELP_DOCUMENT_ADMIN_VIEW_LABEL') . ' -', 'filter_admin_view', JHtml::_('select.options', $this->admin_viewOptions, 'value', 'text', $this->state->get('filter.admin_view')));
         if ($this->canBatch && $this->canCreate && $this->canEdit) {
             // Admin View Batch Selection
             JHtmlBatch_::addListSelection('- Keep Original ' . JText::_('COM_COMPONENTBUILDER_HELP_DOCUMENT_ADMIN_VIEW_LABEL') . ' -', 'batch[admin_view]', JHtml::_('select.options', $this->admin_viewOptions, 'value', 'text'));
         }
     }
     // Set Site View Selection
     $this->site_viewOptions = JFormHelper::loadFieldType('Siteviewfolderlist')->getOptions();
     if ($this->site_viewOptions) {
         // Site View Filter
         JHtmlSidebar::addFilter('- Select ' . JText::_('COM_COMPONENTBUILDER_HELP_DOCUMENT_SITE_VIEW_LABEL') . ' -', 'filter_site_view', JHtml::_('select.options', $this->site_viewOptions, 'value', 'text', $this->state->get('filter.site_view')));
         if ($this->canBatch && $this->canCreate && $this->canEdit) {
             // Site View Batch Selection
             JHtmlBatch_::addListSelection('- Keep Original ' . JText::_('COM_COMPONENTBUILDER_HELP_DOCUMENT_SITE_VIEW_LABEL') . ' -', 'batch[site_view]', JHtml::_('select.options', $this->site_viewOptions, 'value', 'text'));
         }
     }
 }
Пример #7
0
 /**
  * Setting the toolbar
  */
 protected function addToolBar()
 {
     JToolBarHelper::title(JText::_('COM_COMPONENTBUILDER_FIELDS'), 'lamp');
     JHtmlSidebar::setAction('index.php?option=com_componentbuilder&view=fields');
     JFormHelper::addFieldPath(JPATH_COMPONENT . '/models/fields');
     if ($this->canCreate) {
         JToolBarHelper::addNew('field.add');
     }
     // Only load if there are items
     if (ComponentbuilderHelper::checkArray($this->items)) {
         if ($this->canEdit) {
             JToolBarHelper::editList('field.edit');
         }
         if ($this->canState) {
             JToolBarHelper::publishList('fields.publish');
             JToolBarHelper::unpublishList('fields.unpublish');
             JToolBarHelper::archiveList('fields.archive');
             if ($this->canDo->get('core.admin')) {
                 JToolBarHelper::checkin('fields.checkin');
             }
         }
         // Add a batch button
         if ($this->canBatch && $this->canCreate && $this->canEdit && $this->canState) {
             // Get the toolbar object instance
             $bar = JToolBar::getInstance('toolbar');
             // set the batch button name
             $title = JText::_('JTOOLBAR_BATCH');
             // Instantiate a new JLayoutFile instance and render the batch button
             $layout = new JLayoutFile('joomla.toolbar.batch');
             // add the button to the page
             $dhtml = $layout->render(array('title' => $title));
             $bar->appendButton('Custom', $dhtml, 'batch');
         }
         if ($this->state->get('filter.published') == -2 && ($this->canState && $this->canDelete)) {
             JToolbarHelper::deleteList('', 'fields.delete', 'JTOOLBAR_EMPTY_TRASH');
         } elseif ($this->canState && $this->canDelete) {
             JToolbarHelper::trash('fields.trash');
         }
         if ($this->canDo->get('core.export') && $this->canDo->get('field.export')) {
             JToolBarHelper::custom('fields.exportData', 'download', '', 'COM_COMPONENTBUILDER_EXPORT_DATA', true);
         }
     }
     if ($this->canDo->get('core.import') && $this->canDo->get('field.import')) {
         JToolBarHelper::custom('fields.importData', 'upload', '', 'COM_COMPONENTBUILDER_IMPORT_DATA', false);
     }
     // set help url for this view if found
     $help_url = ComponentbuilderHelper::getHelpUrl('fields');
     if (ComponentbuilderHelper::checkString($help_url)) {
         JToolbarHelper::help('COM_COMPONENTBUILDER_HELP_MANAGER', false, $help_url);
     }
     // add the options comp button
     if ($this->canDo->get('core.admin') || $this->canDo->get('core.options')) {
         JToolBarHelper::preferences('com_componentbuilder');
     }
     if ($this->canState) {
         JHtmlSidebar::addFilter(JText::_('JOPTION_SELECT_PUBLISHED'), 'filter_published', JHtml::_('select.options', JHtml::_('jgrid.publishedOptions'), 'value', 'text', $this->state->get('filter.published'), true));
         // only load if batch allowed
         if ($this->canBatch) {
             JHtmlBatch_::addListSelection(JText::_('COM_COMPONENTBUILDER_KEEP_ORIGINAL_STATE'), 'batch[published]', JHtml::_('select.options', JHtml::_('jgrid.publishedOptions', array('all' => false)), 'value', 'text', '', true));
         }
     }
     JHtmlSidebar::addFilter(JText::_('JOPTION_SELECT_ACCESS'), 'filter_access', JHtml::_('select.options', JHtml::_('access.assetgroups'), 'value', 'text', $this->state->get('filter.access')));
     if ($this->canBatch && $this->canCreate && $this->canEdit) {
         JHtmlBatch_::addListSelection(JText::_('COM_COMPONENTBUILDER_KEEP_ORIGINAL_ACCESS'), 'batch[access]', JHtml::_('select.options', JHtml::_('access.assetgroups'), 'value', 'text'));
     }
     // Category Filter.
     JHtmlSidebar::addFilter(JText::_('JOPTION_SELECT_CATEGORY'), 'filter_category_id', JHtml::_('select.options', JHtml::_('category.options', 'com_componentbuilder.fields'), 'value', 'text', $this->state->get('filter.category_id')));
     if ($this->canBatch && $this->canCreate && $this->canEdit) {
         // Category Batch selection.
         JHtmlBatch_::addListSelection(JText::_('COM_COMPONENTBUILDER_KEEP_ORIGINAL_CATEGORY'), 'batch[category]', JHtml::_('select.options', JHtml::_('category.options', 'com_componentbuilder.fields'), 'value', 'text'));
     }
     // Set Fieldtype Name Selection
     $this->fieldtypeNameOptions = JFormHelper::loadFieldType('Fieldtypes')->getOptions();
     if ($this->fieldtypeNameOptions) {
         // Fieldtype Name Filter
         JHtmlSidebar::addFilter('- Select ' . JText::_('COM_COMPONENTBUILDER_FIELD_FIELDTYPE_LABEL') . ' -', 'filter_fieldtype', JHtml::_('select.options', $this->fieldtypeNameOptions, 'value', 'text', $this->state->get('filter.fieldtype')));
         if ($this->canBatch && $this->canCreate && $this->canEdit) {
             // Fieldtype Name Batch Selection
             JHtmlBatch_::addListSelection('- Keep Original ' . JText::_('COM_COMPONENTBUILDER_FIELD_FIELDTYPE_LABEL') . ' -', 'batch[fieldtype]', JHtml::_('select.options', $this->fieldtypeNameOptions, 'value', 'text'));
         }
     }
     // Set Datatype Selection
     $this->datatypeOptions = $this->getTheDatatypeSelections();
     if ($this->datatypeOptions) {
         // Datatype Filter
         JHtmlSidebar::addFilter('- Select ' . JText::_('COM_COMPONENTBUILDER_FIELD_DATATYPE_LABEL') . ' -', 'filter_datatype', JHtml::_('select.options', $this->datatypeOptions, 'value', 'text', $this->state->get('filter.datatype')));
         if ($this->canBatch && $this->canCreate && $this->canEdit) {
             // Datatype Batch Selection
             JHtmlBatch_::addListSelection('- Keep Original ' . JText::_('COM_COMPONENTBUILDER_FIELD_DATATYPE_LABEL') . ' -', 'batch[datatype]', JHtml::_('select.options', $this->datatypeOptions, 'value', 'text'));
         }
     }
     // Set Indexes Selection
     $this->indexesOptions = $this->getTheIndexesSelections();
     if ($this->indexesOptions) {
         // Indexes Filter
         JHtmlSidebar::addFilter('- Select ' . JText::_('COM_COMPONENTBUILDER_FIELD_INDEXES_LABEL') . ' -', 'filter_indexes', JHtml::_('select.options', $this->indexesOptions, 'value', 'text', $this->state->get('filter.indexes')));
         if ($this->canBatch && $this->canCreate && $this->canEdit) {
             // Indexes Batch Selection
             JHtmlBatch_::addListSelection('- Keep Original ' . JText::_('COM_COMPONENTBUILDER_FIELD_INDEXES_LABEL') . ' -', 'batch[indexes]', JHtml::_('select.options', $this->indexesOptions, 'value', 'text'));
         }
     }
     // Set Null Switch Selection
     $this->null_switchOptions = $this->getTheNull_switchSelections();
     if ($this->null_switchOptions) {
         // Null Switch Filter
         JHtmlSidebar::addFilter('- Select ' . JText::_('COM_COMPONENTBUILDER_FIELD_NULL_SWITCH_LABEL') . ' -', 'filter_null_switch', JHtml::_('select.options', $this->null_switchOptions, 'value', 'text', $this->state->get('filter.null_switch')));
         if ($this->canBatch && $this->canCreate && $this->canEdit) {
             // Null Switch Batch Selection
             JHtmlBatch_::addListSelection('- Keep Original ' . JText::_('COM_COMPONENTBUILDER_FIELD_NULL_SWITCH_LABEL') . ' -', 'batch[null_switch]', JHtml::_('select.options', $this->null_switchOptions, 'value', 'text'));
         }
     }
     // Set Store Selection
     $this->storeOptions = $this->getTheStoreSelections();
     if ($this->storeOptions) {
         // Store Filter
         JHtmlSidebar::addFilter('- Select ' . JText::_('COM_COMPONENTBUILDER_FIELD_STORE_LABEL') . ' -', 'filter_store', JHtml::_('select.options', $this->storeOptions, 'value', 'text', $this->state->get('filter.store')));
         if ($this->canBatch && $this->canCreate && $this->canEdit) {
             // Store Batch Selection
             JHtmlBatch_::addListSelection('- Keep Original ' . JText::_('COM_COMPONENTBUILDER_FIELD_STORE_LABEL') . ' -', 'batch[store]', JHtml::_('select.options', $this->storeOptions, 'value', 'text'));
         }
     }
 }