Fixed Warning: Invalid argument supplied for foreach() in ../html/libraries/cms/html/select.php on line 592 by adding empty select option.
This commit is contained in:
@ -50,14 +50,14 @@ class JFormFieldAdminviewsfilteraddcustombutton extends JFormFieldList
|
||||
$db->setQuery($query);
|
||||
|
||||
$results = $db->loadColumn();
|
||||
$_filter = array();
|
||||
$_filter[] = JHtml::_('select.option', '', '- ' . JText::_('COM_COMPONENTBUILDER_FILTER_SELECT_ADD_CUSTOM_BUTTON') . ' -');
|
||||
|
||||
if ($results)
|
||||
{
|
||||
// get admin_viewsmodel
|
||||
$model = ComponentbuilderHelper::getModel('admin_views');
|
||||
$results = array_unique($results);
|
||||
$_filter = array();
|
||||
$_filter[] = JHtml::_('select.option', '', '- ' . JText::_('COM_COMPONENTBUILDER_FILTER_SELECT_ADD_CUSTOM_BUTTON') . ' -');
|
||||
foreach ($results as $add_custom_button)
|
||||
{
|
||||
// Translate the add_custom_button selection
|
||||
@ -65,8 +65,7 @@ class JFormFieldAdminviewsfilteraddcustombutton extends JFormFieldList
|
||||
// Now add the add_custom_button and its text to the options array
|
||||
$_filter[] = JHtml::_('select.option', $add_custom_button, JText::_($text));
|
||||
}
|
||||
return $_filter;
|
||||
}
|
||||
return false;
|
||||
return $_filter;
|
||||
}
|
||||
}
|
||||
|
@ -50,14 +50,14 @@ class JFormFieldAdminviewsfilteraddcustomimport extends JFormFieldList
|
||||
$db->setQuery($query);
|
||||
|
||||
$results = $db->loadColumn();
|
||||
$_filter = array();
|
||||
$_filter[] = JHtml::_('select.option', '', '- ' . JText::_('COM_COMPONENTBUILDER_FILTER_SELECT_ADD_CUSTOM_IMPORT') . ' -');
|
||||
|
||||
if ($results)
|
||||
{
|
||||
// get admin_viewsmodel
|
||||
$model = ComponentbuilderHelper::getModel('admin_views');
|
||||
$results = array_unique($results);
|
||||
$_filter = array();
|
||||
$_filter[] = JHtml::_('select.option', '', '- ' . JText::_('COM_COMPONENTBUILDER_FILTER_SELECT_ADD_CUSTOM_IMPORT') . ' -');
|
||||
foreach ($results as $add_custom_import)
|
||||
{
|
||||
// Translate the add_custom_import selection
|
||||
@ -65,8 +65,7 @@ class JFormFieldAdminviewsfilteraddcustomimport extends JFormFieldList
|
||||
// Now add the add_custom_import and its text to the options array
|
||||
$_filter[] = JHtml::_('select.option', $add_custom_import, JText::_($text));
|
||||
}
|
||||
return $_filter;
|
||||
}
|
||||
return false;
|
||||
return $_filter;
|
||||
}
|
||||
}
|
||||
|
@ -50,14 +50,14 @@ class JFormFieldAdminviewsfilteraddfadein extends JFormFieldList
|
||||
$db->setQuery($query);
|
||||
|
||||
$results = $db->loadColumn();
|
||||
$_filter = array();
|
||||
$_filter[] = JHtml::_('select.option', '', '- ' . JText::_('COM_COMPONENTBUILDER_FILTER_SELECT_ADD_FADEIN') . ' -');
|
||||
|
||||
if ($results)
|
||||
{
|
||||
// get admin_viewsmodel
|
||||
$model = ComponentbuilderHelper::getModel('admin_views');
|
||||
$results = array_unique($results);
|
||||
$_filter = array();
|
||||
$_filter[] = JHtml::_('select.option', '', '- ' . JText::_('COM_COMPONENTBUILDER_FILTER_SELECT_ADD_FADEIN') . ' -');
|
||||
foreach ($results as $add_fadein)
|
||||
{
|
||||
// Translate the add_fadein selection
|
||||
@ -65,8 +65,7 @@ class JFormFieldAdminviewsfilteraddfadein extends JFormFieldList
|
||||
// Now add the add_fadein and its text to the options array
|
||||
$_filter[] = JHtml::_('select.option', $add_fadein, JText::_($text));
|
||||
}
|
||||
return $_filter;
|
||||
}
|
||||
return false;
|
||||
return $_filter;
|
||||
}
|
||||
}
|
||||
|
@ -50,14 +50,14 @@ class JFormFieldAdminviewsfilteraddphpajax extends JFormFieldList
|
||||
$db->setQuery($query);
|
||||
|
||||
$results = $db->loadColumn();
|
||||
$_filter = array();
|
||||
$_filter[] = JHtml::_('select.option', '', '- ' . JText::_('COM_COMPONENTBUILDER_FILTER_SELECT_ADD_PHP_AJAX') . ' -');
|
||||
|
||||
if ($results)
|
||||
{
|
||||
// get admin_viewsmodel
|
||||
$model = ComponentbuilderHelper::getModel('admin_views');
|
||||
$results = array_unique($results);
|
||||
$_filter = array();
|
||||
$_filter[] = JHtml::_('select.option', '', '- ' . JText::_('COM_COMPONENTBUILDER_FILTER_SELECT_ADD_PHP_AJAX') . ' -');
|
||||
foreach ($results as $add_php_ajax)
|
||||
{
|
||||
// Translate the add_php_ajax selection
|
||||
@ -65,8 +65,7 @@ class JFormFieldAdminviewsfilteraddphpajax extends JFormFieldList
|
||||
// Now add the add_php_ajax and its text to the options array
|
||||
$_filter[] = JHtml::_('select.option', $add_php_ajax, JText::_($text));
|
||||
}
|
||||
return $_filter;
|
||||
}
|
||||
return false;
|
||||
return $_filter;
|
||||
}
|
||||
}
|
||||
|
@ -50,13 +50,13 @@ class JFormFieldAdminviewsfiltertype extends JFormFieldList
|
||||
$db->setQuery($query);
|
||||
|
||||
$results = $db->loadColumn();
|
||||
$_filter = array();
|
||||
|
||||
if ($results)
|
||||
{
|
||||
// get admin_viewsmodel
|
||||
$model = ComponentbuilderHelper::getModel('admin_views');
|
||||
$results = array_unique($results);
|
||||
$_filter = array();
|
||||
foreach ($results as $type)
|
||||
{
|
||||
// Translate the type selection
|
||||
@ -64,8 +64,7 @@ class JFormFieldAdminviewsfiltertype extends JFormFieldList
|
||||
// Now add the type and its text to the options array
|
||||
$_filter[] = JHtml::_('select.option', $type, JText::_($text));
|
||||
}
|
||||
return $_filter;
|
||||
}
|
||||
return false;
|
||||
return $_filter;
|
||||
}
|
||||
}
|
||||
|
@ -50,14 +50,14 @@ class JFormFieldClassextendingsfilterextensiontype extends JFormFieldList
|
||||
$db->setQuery($query);
|
||||
|
||||
$results = $db->loadColumn();
|
||||
$_filter = array();
|
||||
$_filter[] = JHtml::_('select.option', '', '- ' . JText::_('COM_COMPONENTBUILDER_FILTER_SELECT_EXTENSION_TYPE') . ' -');
|
||||
|
||||
if ($results)
|
||||
{
|
||||
// get class_extendingsmodel
|
||||
$model = ComponentbuilderHelper::getModel('class_extendings');
|
||||
$results = array_unique($results);
|
||||
$_filter = array();
|
||||
$_filter[] = JHtml::_('select.option', '', '- ' . JText::_('COM_COMPONENTBUILDER_FILTER_SELECT_EXTENSION_TYPE') . ' -');
|
||||
foreach ($results as $extension_type)
|
||||
{
|
||||
// Translate the extension_type selection
|
||||
@ -65,8 +65,7 @@ class JFormFieldClassextendingsfilterextensiontype extends JFormFieldList
|
||||
// Now add the extension_type and its text to the options array
|
||||
$_filter[] = JHtml::_('select.option', $extension_type, JText::_($text));
|
||||
}
|
||||
return $_filter;
|
||||
}
|
||||
return false;
|
||||
return $_filter;
|
||||
}
|
||||
}
|
||||
|
@ -50,14 +50,14 @@ class JFormFieldClassmethodsfilterextensiontype extends JFormFieldList
|
||||
$db->setQuery($query);
|
||||
|
||||
$results = $db->loadColumn();
|
||||
$_filter = array();
|
||||
$_filter[] = JHtml::_('select.option', '', '- ' . JText::_('COM_COMPONENTBUILDER_FILTER_SELECT_EXTENSION_TYPE') . ' -');
|
||||
|
||||
if ($results)
|
||||
{
|
||||
// get class_methodsmodel
|
||||
$model = ComponentbuilderHelper::getModel('class_methods');
|
||||
$results = array_unique($results);
|
||||
$_filter = array();
|
||||
$_filter[] = JHtml::_('select.option', '', '- ' . JText::_('COM_COMPONENTBUILDER_FILTER_SELECT_EXTENSION_TYPE') . ' -');
|
||||
foreach ($results as $extension_type)
|
||||
{
|
||||
// Translate the extension_type selection
|
||||
@ -65,8 +65,7 @@ class JFormFieldClassmethodsfilterextensiontype extends JFormFieldList
|
||||
// Now add the extension_type and its text to the options array
|
||||
$_filter[] = JHtml::_('select.option', $extension_type, JText::_($text));
|
||||
}
|
||||
return $_filter;
|
||||
}
|
||||
return false;
|
||||
return $_filter;
|
||||
}
|
||||
}
|
||||
|
@ -50,14 +50,14 @@ class JFormFieldClassmethodsfiltervisibility extends JFormFieldList
|
||||
$db->setQuery($query);
|
||||
|
||||
$results = $db->loadColumn();
|
||||
$_filter = array();
|
||||
$_filter[] = JHtml::_('select.option', '', '- ' . JText::_('COM_COMPONENTBUILDER_FILTER_SELECT_VISIBILITY') . ' -');
|
||||
|
||||
if ($results)
|
||||
{
|
||||
// get class_methodsmodel
|
||||
$model = ComponentbuilderHelper::getModel('class_methods');
|
||||
$results = array_unique($results);
|
||||
$_filter = array();
|
||||
$_filter[] = JHtml::_('select.option', '', '- ' . JText::_('COM_COMPONENTBUILDER_FILTER_SELECT_VISIBILITY') . ' -');
|
||||
foreach ($results as $visibility)
|
||||
{
|
||||
// Translate the visibility selection
|
||||
@ -65,8 +65,7 @@ class JFormFieldClassmethodsfiltervisibility extends JFormFieldList
|
||||
// Now add the visibility and its text to the options array
|
||||
$_filter[] = JHtml::_('select.option', $visibility, JText::_($text));
|
||||
}
|
||||
return $_filter;
|
||||
}
|
||||
return false;
|
||||
return $_filter;
|
||||
}
|
||||
}
|
||||
|
@ -50,14 +50,14 @@ class JFormFieldClasspropertiesfilterextensiontype extends JFormFieldList
|
||||
$db->setQuery($query);
|
||||
|
||||
$results = $db->loadColumn();
|
||||
$_filter = array();
|
||||
$_filter[] = JHtml::_('select.option', '', '- ' . JText::_('COM_COMPONENTBUILDER_FILTER_SELECT_EXTENSION_TYPE') . ' -');
|
||||
|
||||
if ($results)
|
||||
{
|
||||
// get class_propertiesmodel
|
||||
$model = ComponentbuilderHelper::getModel('class_properties');
|
||||
$results = array_unique($results);
|
||||
$_filter = array();
|
||||
$_filter[] = JHtml::_('select.option', '', '- ' . JText::_('COM_COMPONENTBUILDER_FILTER_SELECT_EXTENSION_TYPE') . ' -');
|
||||
foreach ($results as $extension_type)
|
||||
{
|
||||
// Translate the extension_type selection
|
||||
@ -65,8 +65,7 @@ class JFormFieldClasspropertiesfilterextensiontype extends JFormFieldList
|
||||
// Now add the extension_type and its text to the options array
|
||||
$_filter[] = JHtml::_('select.option', $extension_type, JText::_($text));
|
||||
}
|
||||
return $_filter;
|
||||
}
|
||||
return false;
|
||||
return $_filter;
|
||||
}
|
||||
}
|
||||
|
@ -50,14 +50,14 @@ class JFormFieldClasspropertiesfiltervisibility extends JFormFieldList
|
||||
$db->setQuery($query);
|
||||
|
||||
$results = $db->loadColumn();
|
||||
$_filter = array();
|
||||
$_filter[] = JHtml::_('select.option', '', '- ' . JText::_('COM_COMPONENTBUILDER_FILTER_SELECT_VISIBILITY') . ' -');
|
||||
|
||||
if ($results)
|
||||
{
|
||||
// get class_propertiesmodel
|
||||
$model = ComponentbuilderHelper::getModel('class_properties');
|
||||
$results = array_unique($results);
|
||||
$_filter = array();
|
||||
$_filter[] = JHtml::_('select.option', '', '- ' . JText::_('COM_COMPONENTBUILDER_FILTER_SELECT_VISIBILITY') . ' -');
|
||||
foreach ($results as $visibility)
|
||||
{
|
||||
// Translate the visibility selection
|
||||
@ -65,8 +65,7 @@ class JFormFieldClasspropertiesfiltervisibility extends JFormFieldList
|
||||
// Now add the visibility and its text to the options array
|
||||
$_filter[] = JHtml::_('select.option', $visibility, JText::_($text));
|
||||
}
|
||||
return $_filter;
|
||||
}
|
||||
return false;
|
||||
return $_filter;
|
||||
}
|
||||
}
|
||||
|
@ -50,14 +50,14 @@ class JFormFieldCustomadminviewsfilteraddcustombutton extends JFormFieldList
|
||||
$db->setQuery($query);
|
||||
|
||||
$results = $db->loadColumn();
|
||||
$_filter = array();
|
||||
$_filter[] = JHtml::_('select.option', '', '- ' . JText::_('COM_COMPONENTBUILDER_FILTER_SELECT_ADD_CUSTOM_BUTTON') . ' -');
|
||||
|
||||
if ($results)
|
||||
{
|
||||
// get custom_admin_viewsmodel
|
||||
$model = ComponentbuilderHelper::getModel('custom_admin_views');
|
||||
$results = array_unique($results);
|
||||
$_filter = array();
|
||||
$_filter[] = JHtml::_('select.option', '', '- ' . JText::_('COM_COMPONENTBUILDER_FILTER_SELECT_ADD_CUSTOM_BUTTON') . ' -');
|
||||
foreach ($results as $add_custom_button)
|
||||
{
|
||||
// Translate the add_custom_button selection
|
||||
@ -65,8 +65,7 @@ class JFormFieldCustomadminviewsfilteraddcustombutton extends JFormFieldList
|
||||
// Now add the add_custom_button and its text to the options array
|
||||
$_filter[] = JHtml::_('select.option', $add_custom_button, JText::_($text));
|
||||
}
|
||||
return $_filter;
|
||||
}
|
||||
return false;
|
||||
return $_filter;
|
||||
}
|
||||
}
|
||||
|
@ -50,14 +50,14 @@ class JFormFieldCustomadminviewsfilteraddphpajax extends JFormFieldList
|
||||
$db->setQuery($query);
|
||||
|
||||
$results = $db->loadColumn();
|
||||
$_filter = array();
|
||||
$_filter[] = JHtml::_('select.option', '', '- ' . JText::_('COM_COMPONENTBUILDER_FILTER_SELECT_ADD_PHP_AJAX') . ' -');
|
||||
|
||||
if ($results)
|
||||
{
|
||||
// get custom_admin_viewsmodel
|
||||
$model = ComponentbuilderHelper::getModel('custom_admin_views');
|
||||
$results = array_unique($results);
|
||||
$_filter = array();
|
||||
$_filter[] = JHtml::_('select.option', '', '- ' . JText::_('COM_COMPONENTBUILDER_FILTER_SELECT_ADD_PHP_AJAX') . ' -');
|
||||
foreach ($results as $add_php_ajax)
|
||||
{
|
||||
// Translate the add_php_ajax selection
|
||||
@ -65,8 +65,7 @@ class JFormFieldCustomadminviewsfilteraddphpajax extends JFormFieldList
|
||||
// Now add the add_php_ajax and its text to the options array
|
||||
$_filter[] = JHtml::_('select.option', $add_php_ajax, JText::_($text));
|
||||
}
|
||||
return $_filter;
|
||||
}
|
||||
return false;
|
||||
return $_filter;
|
||||
}
|
||||
}
|
||||
|
@ -50,14 +50,14 @@ class JFormFieldCustomcodesfiltercommenttype extends JFormFieldList
|
||||
$db->setQuery($query);
|
||||
|
||||
$results = $db->loadColumn();
|
||||
$_filter = array();
|
||||
$_filter[] = JHtml::_('select.option', '', '- ' . JText::_('COM_COMPONENTBUILDER_FILTER_SELECT_COMMENT_TYPE') . ' -');
|
||||
|
||||
if ($results)
|
||||
{
|
||||
// get custom_codesmodel
|
||||
$model = ComponentbuilderHelper::getModel('custom_codes');
|
||||
$results = array_unique($results);
|
||||
$_filter = array();
|
||||
$_filter[] = JHtml::_('select.option', '', '- ' . JText::_('COM_COMPONENTBUILDER_FILTER_SELECT_COMMENT_TYPE') . ' -');
|
||||
foreach ($results as $comment_type)
|
||||
{
|
||||
// Translate the comment_type selection
|
||||
@ -65,8 +65,7 @@ class JFormFieldCustomcodesfiltercommenttype extends JFormFieldList
|
||||
// Now add the comment_type and its text to the options array
|
||||
$_filter[] = JHtml::_('select.option', $comment_type, JText::_($text));
|
||||
}
|
||||
return $_filter;
|
||||
}
|
||||
return false;
|
||||
return $_filter;
|
||||
}
|
||||
}
|
||||
|
@ -50,14 +50,14 @@ class JFormFieldCustomcodesfiltertarget extends JFormFieldList
|
||||
$db->setQuery($query);
|
||||
|
||||
$results = $db->loadColumn();
|
||||
$_filter = array();
|
||||
$_filter[] = JHtml::_('select.option', '', '- ' . JText::_('COM_COMPONENTBUILDER_FILTER_SELECT_TARGET') . ' -');
|
||||
|
||||
if ($results)
|
||||
{
|
||||
// get custom_codesmodel
|
||||
$model = ComponentbuilderHelper::getModel('custom_codes');
|
||||
$results = array_unique($results);
|
||||
$_filter = array();
|
||||
$_filter[] = JHtml::_('select.option', '', '- ' . JText::_('COM_COMPONENTBUILDER_FILTER_SELECT_TARGET') . ' -');
|
||||
foreach ($results as $target)
|
||||
{
|
||||
// Translate the target selection
|
||||
@ -65,8 +65,7 @@ class JFormFieldCustomcodesfiltertarget extends JFormFieldList
|
||||
// Now add the target and its text to the options array
|
||||
$_filter[] = JHtml::_('select.option', $target, JText::_($text));
|
||||
}
|
||||
return $_filter;
|
||||
}
|
||||
return false;
|
||||
return $_filter;
|
||||
}
|
||||
}
|
||||
|
@ -50,14 +50,14 @@ class JFormFieldCustomcodesfiltertype extends JFormFieldList
|
||||
$db->setQuery($query);
|
||||
|
||||
$results = $db->loadColumn();
|
||||
$_filter = array();
|
||||
$_filter[] = JHtml::_('select.option', '', '- ' . JText::_('COM_COMPONENTBUILDER_FILTER_SELECT_TYPE') . ' -');
|
||||
|
||||
if ($results)
|
||||
{
|
||||
// get custom_codesmodel
|
||||
$model = ComponentbuilderHelper::getModel('custom_codes');
|
||||
$results = array_unique($results);
|
||||
$_filter = array();
|
||||
$_filter[] = JHtml::_('select.option', '', '- ' . JText::_('COM_COMPONENTBUILDER_FILTER_SELECT_TYPE') . ' -');
|
||||
foreach ($results as $type)
|
||||
{
|
||||
// Translate the type selection
|
||||
@ -65,8 +65,7 @@ class JFormFieldCustomcodesfiltertype extends JFormFieldList
|
||||
// Now add the type and its text to the options array
|
||||
$_filter[] = JHtml::_('select.option', $type, JText::_($text));
|
||||
}
|
||||
return $_filter;
|
||||
}
|
||||
return false;
|
||||
return $_filter;
|
||||
}
|
||||
}
|
||||
|
@ -50,14 +50,14 @@ class JFormFieldDynamicgetsfiltergettype extends JFormFieldList
|
||||
$db->setQuery($query);
|
||||
|
||||
$results = $db->loadColumn();
|
||||
$_filter = array();
|
||||
$_filter[] = JHtml::_('select.option', '', '- ' . JText::_('COM_COMPONENTBUILDER_FILTER_SELECT_GETTYPE') . ' -');
|
||||
|
||||
if ($results)
|
||||
{
|
||||
// get dynamic_getsmodel
|
||||
$model = ComponentbuilderHelper::getModel('dynamic_gets');
|
||||
$results = array_unique($results);
|
||||
$_filter = array();
|
||||
$_filter[] = JHtml::_('select.option', '', '- ' . JText::_('COM_COMPONENTBUILDER_FILTER_SELECT_GETTYPE') . ' -');
|
||||
foreach ($results as $gettype)
|
||||
{
|
||||
// Translate the gettype selection
|
||||
@ -65,8 +65,7 @@ class JFormFieldDynamicgetsfiltergettype extends JFormFieldList
|
||||
// Now add the gettype and its text to the options array
|
||||
$_filter[] = JHtml::_('select.option', $gettype, JText::_($text));
|
||||
}
|
||||
return $_filter;
|
||||
}
|
||||
return false;
|
||||
return $_filter;
|
||||
}
|
||||
}
|
||||
|
@ -50,14 +50,14 @@ class JFormFieldDynamicgetsfiltermainsource extends JFormFieldList
|
||||
$db->setQuery($query);
|
||||
|
||||
$results = $db->loadColumn();
|
||||
$_filter = array();
|
||||
$_filter[] = JHtml::_('select.option', '', '- ' . JText::_('COM_COMPONENTBUILDER_FILTER_SELECT_MAIN_SOURCE') . ' -');
|
||||
|
||||
if ($results)
|
||||
{
|
||||
// get dynamic_getsmodel
|
||||
$model = ComponentbuilderHelper::getModel('dynamic_gets');
|
||||
$results = array_unique($results);
|
||||
$_filter = array();
|
||||
$_filter[] = JHtml::_('select.option', '', '- ' . JText::_('COM_COMPONENTBUILDER_FILTER_SELECT_MAIN_SOURCE') . ' -');
|
||||
foreach ($results as $main_source)
|
||||
{
|
||||
// Translate the main_source selection
|
||||
@ -65,8 +65,7 @@ class JFormFieldDynamicgetsfiltermainsource extends JFormFieldList
|
||||
// Now add the main_source and its text to the options array
|
||||
$_filter[] = JHtml::_('select.option', $main_source, JText::_($text));
|
||||
}
|
||||
return $_filter;
|
||||
}
|
||||
return false;
|
||||
return $_filter;
|
||||
}
|
||||
}
|
||||
|
@ -50,14 +50,14 @@ class JFormFieldFieldsfilterdatatype extends JFormFieldList
|
||||
$db->setQuery($query);
|
||||
|
||||
$results = $db->loadColumn();
|
||||
$_filter = array();
|
||||
$_filter[] = JHtml::_('select.option', '', '- ' . JText::_('COM_COMPONENTBUILDER_FILTER_SELECT_DATATYPE') . ' -');
|
||||
|
||||
if ($results)
|
||||
{
|
||||
// get fieldsmodel
|
||||
$model = ComponentbuilderHelper::getModel('fields');
|
||||
$results = array_unique($results);
|
||||
$_filter = array();
|
||||
$_filter[] = JHtml::_('select.option', '', '- ' . JText::_('COM_COMPONENTBUILDER_FILTER_SELECT_DATATYPE') . ' -');
|
||||
foreach ($results as $datatype)
|
||||
{
|
||||
// Translate the datatype selection
|
||||
@ -65,8 +65,7 @@ class JFormFieldFieldsfilterdatatype extends JFormFieldList
|
||||
// Now add the datatype and its text to the options array
|
||||
$_filter[] = JHtml::_('select.option', $datatype, JText::_($text));
|
||||
}
|
||||
return $_filter;
|
||||
}
|
||||
return false;
|
||||
return $_filter;
|
||||
}
|
||||
}
|
||||
|
@ -50,14 +50,14 @@ class JFormFieldFieldsfilterindexes extends JFormFieldList
|
||||
$db->setQuery($query);
|
||||
|
||||
$results = $db->loadColumn();
|
||||
$_filter = array();
|
||||
$_filter[] = JHtml::_('select.option', '', '- ' . JText::_('COM_COMPONENTBUILDER_FILTER_SELECT_INDEXES') . ' -');
|
||||
|
||||
if ($results)
|
||||
{
|
||||
// get fieldsmodel
|
||||
$model = ComponentbuilderHelper::getModel('fields');
|
||||
$results = array_unique($results);
|
||||
$_filter = array();
|
||||
$_filter[] = JHtml::_('select.option', '', '- ' . JText::_('COM_COMPONENTBUILDER_FILTER_SELECT_INDEXES') . ' -');
|
||||
foreach ($results as $indexes)
|
||||
{
|
||||
// Translate the indexes selection
|
||||
@ -65,8 +65,7 @@ class JFormFieldFieldsfilterindexes extends JFormFieldList
|
||||
// Now add the indexes and its text to the options array
|
||||
$_filter[] = JHtml::_('select.option', $indexes, JText::_($text));
|
||||
}
|
||||
return $_filter;
|
||||
}
|
||||
return false;
|
||||
return $_filter;
|
||||
}
|
||||
}
|
||||
|
@ -50,14 +50,14 @@ class JFormFieldFieldsfilternullswitch extends JFormFieldList
|
||||
$db->setQuery($query);
|
||||
|
||||
$results = $db->loadColumn();
|
||||
$_filter = array();
|
||||
$_filter[] = JHtml::_('select.option', '', '- ' . JText::_('COM_COMPONENTBUILDER_FILTER_SELECT_NULL_SWITCH') . ' -');
|
||||
|
||||
if ($results)
|
||||
{
|
||||
// get fieldsmodel
|
||||
$model = ComponentbuilderHelper::getModel('fields');
|
||||
$results = array_unique($results);
|
||||
$_filter = array();
|
||||
$_filter[] = JHtml::_('select.option', '', '- ' . JText::_('COM_COMPONENTBUILDER_FILTER_SELECT_NULL_SWITCH') . ' -');
|
||||
foreach ($results as $null_switch)
|
||||
{
|
||||
// Translate the null_switch selection
|
||||
@ -65,8 +65,7 @@ class JFormFieldFieldsfilternullswitch extends JFormFieldList
|
||||
// Now add the null_switch and its text to the options array
|
||||
$_filter[] = JHtml::_('select.option', $null_switch, JText::_($text));
|
||||
}
|
||||
return $_filter;
|
||||
}
|
||||
return false;
|
||||
return $_filter;
|
||||
}
|
||||
}
|
||||
|
@ -50,14 +50,14 @@ class JFormFieldFieldsfilterstore extends JFormFieldList
|
||||
$db->setQuery($query);
|
||||
|
||||
$results = $db->loadColumn();
|
||||
$_filter = array();
|
||||
$_filter[] = JHtml::_('select.option', '', '- ' . JText::_('COM_COMPONENTBUILDER_FILTER_SELECT_STORE') . ' -');
|
||||
|
||||
if ($results)
|
||||
{
|
||||
// get fieldsmodel
|
||||
$model = ComponentbuilderHelper::getModel('fields');
|
||||
$results = array_unique($results);
|
||||
$_filter = array();
|
||||
$_filter[] = JHtml::_('select.option', '', '- ' . JText::_('COM_COMPONENTBUILDER_FILTER_SELECT_STORE') . ' -');
|
||||
foreach ($results as $store)
|
||||
{
|
||||
// Translate the store selection
|
||||
@ -65,8 +65,7 @@ class JFormFieldFieldsfilterstore extends JFormFieldList
|
||||
// Now add the store and its text to the options array
|
||||
$_filter[] = JHtml::_('select.option', $store, JText::_($text));
|
||||
}
|
||||
return $_filter;
|
||||
}
|
||||
return false;
|
||||
return $_filter;
|
||||
}
|
||||
}
|
||||
|
@ -50,14 +50,14 @@ class JFormFieldHelpdocumentsfilterlocation extends JFormFieldList
|
||||
$db->setQuery($query);
|
||||
|
||||
$results = $db->loadColumn();
|
||||
$_filter = array();
|
||||
$_filter[] = JHtml::_('select.option', '', '- ' . JText::_('COM_COMPONENTBUILDER_FILTER_SELECT_LOCATION') . ' -');
|
||||
|
||||
if ($results)
|
||||
{
|
||||
// get help_documentsmodel
|
||||
$model = ComponentbuilderHelper::getModel('help_documents');
|
||||
$results = array_unique($results);
|
||||
$_filter = array();
|
||||
$_filter[] = JHtml::_('select.option', '', '- ' . JText::_('COM_COMPONENTBUILDER_FILTER_SELECT_LOCATION') . ' -');
|
||||
foreach ($results as $location)
|
||||
{
|
||||
// Translate the location selection
|
||||
@ -65,8 +65,7 @@ class JFormFieldHelpdocumentsfilterlocation extends JFormFieldList
|
||||
// Now add the location and its text to the options array
|
||||
$_filter[] = JHtml::_('select.option', $location, JText::_($text));
|
||||
}
|
||||
return $_filter;
|
||||
}
|
||||
return false;
|
||||
return $_filter;
|
||||
}
|
||||
}
|
||||
|
@ -50,14 +50,14 @@ class JFormFieldHelpdocumentsfiltertype extends JFormFieldList
|
||||
$db->setQuery($query);
|
||||
|
||||
$results = $db->loadColumn();
|
||||
$_filter = array();
|
||||
$_filter[] = JHtml::_('select.option', '', '- ' . JText::_('COM_COMPONENTBUILDER_FILTER_SELECT_TYPE') . ' -');
|
||||
|
||||
if ($results)
|
||||
{
|
||||
// get help_documentsmodel
|
||||
$model = ComponentbuilderHelper::getModel('help_documents');
|
||||
$results = array_unique($results);
|
||||
$_filter = array();
|
||||
$_filter[] = JHtml::_('select.option', '', '- ' . JText::_('COM_COMPONENTBUILDER_FILTER_SELECT_TYPE') . ' -');
|
||||
foreach ($results as $type)
|
||||
{
|
||||
// Translate the type selection
|
||||
@ -65,8 +65,7 @@ class JFormFieldHelpdocumentsfiltertype extends JFormFieldList
|
||||
// Now add the type and its text to the options array
|
||||
$_filter[] = JHtml::_('select.option', $type, JText::_($text));
|
||||
}
|
||||
return $_filter;
|
||||
}
|
||||
return false;
|
||||
return $_filter;
|
||||
}
|
||||
}
|
||||
|
@ -50,19 +50,18 @@ class JFormFieldJoomlacomponentsfilterauthor extends JFormFieldList
|
||||
$db->setQuery($query);
|
||||
|
||||
$results = $db->loadColumn();
|
||||
$_filter = array();
|
||||
$_filter[] = JHtml::_('select.option', '', '- ' . JText::_('COM_COMPONENTBUILDER_FILTER_SELECT_AUTHOR') . ' -');
|
||||
|
||||
if ($results)
|
||||
{
|
||||
$results = array_unique($results);
|
||||
$_filter = array();
|
||||
$_filter[] = JHtml::_('select.option', '', '- ' . JText::_('COM_COMPONENTBUILDER_FILTER_SELECT_AUTHOR') . ' -');
|
||||
foreach ($results as $author)
|
||||
{
|
||||
// Now add the author and its text to the options array
|
||||
$_filter[] = JHtml::_('select.option', $author, $author);
|
||||
}
|
||||
return $_filter;
|
||||
}
|
||||
return false;
|
||||
return $_filter;
|
||||
}
|
||||
}
|
||||
|
@ -50,19 +50,18 @@ class JFormFieldJoomlacomponentsfiltercompanyname extends JFormFieldList
|
||||
$db->setQuery($query);
|
||||
|
||||
$results = $db->loadColumn();
|
||||
$_filter = array();
|
||||
$_filter[] = JHtml::_('select.option', '', '- ' . JText::_('COM_COMPONENTBUILDER_FILTER_SELECT_COMPANYNAME') . ' -');
|
||||
|
||||
if ($results)
|
||||
{
|
||||
$results = array_unique($results);
|
||||
$_filter = array();
|
||||
$_filter[] = JHtml::_('select.option', '', '- ' . JText::_('COM_COMPONENTBUILDER_FILTER_SELECT_COMPANYNAME') . ' -');
|
||||
foreach ($results as $companyname)
|
||||
{
|
||||
// Now add the companyname and its text to the options array
|
||||
$_filter[] = JHtml::_('select.option', $companyname, $companyname);
|
||||
}
|
||||
return $_filter;
|
||||
}
|
||||
return false;
|
||||
return $_filter;
|
||||
}
|
||||
}
|
||||
|
@ -50,14 +50,14 @@ class JFormFieldJoomlamodulesfiltertarget extends JFormFieldList
|
||||
$db->setQuery($query);
|
||||
|
||||
$results = $db->loadColumn();
|
||||
$_filter = array();
|
||||
$_filter[] = JHtml::_('select.option', '', '- ' . JText::_('COM_COMPONENTBUILDER_FILTER_SELECT_TARGET') . ' -');
|
||||
|
||||
if ($results)
|
||||
{
|
||||
// get joomla_modulesmodel
|
||||
$model = ComponentbuilderHelper::getModel('joomla_modules');
|
||||
$results = array_unique($results);
|
||||
$_filter = array();
|
||||
$_filter[] = JHtml::_('select.option', '', '- ' . JText::_('COM_COMPONENTBUILDER_FILTER_SELECT_TARGET') . ' -');
|
||||
foreach ($results as $target)
|
||||
{
|
||||
// Translate the target selection
|
||||
@ -65,8 +65,7 @@ class JFormFieldJoomlamodulesfiltertarget extends JFormFieldList
|
||||
// Now add the target and its text to the options array
|
||||
$_filter[] = JHtml::_('select.option', $target, JText::_($text));
|
||||
}
|
||||
return $_filter;
|
||||
}
|
||||
return false;
|
||||
return $_filter;
|
||||
}
|
||||
}
|
||||
|
@ -50,14 +50,14 @@ class JFormFieldLayoutsfilteraddphpview extends JFormFieldList
|
||||
$db->setQuery($query);
|
||||
|
||||
$results = $db->loadColumn();
|
||||
$_filter = array();
|
||||
$_filter[] = JHtml::_('select.option', '', '- ' . JText::_('COM_COMPONENTBUILDER_FILTER_SELECT_ADD_PHP_VIEW') . ' -');
|
||||
|
||||
if ($results)
|
||||
{
|
||||
// get layoutsmodel
|
||||
$model = ComponentbuilderHelper::getModel('layouts');
|
||||
$results = array_unique($results);
|
||||
$_filter = array();
|
||||
$_filter[] = JHtml::_('select.option', '', '- ' . JText::_('COM_COMPONENTBUILDER_FILTER_SELECT_ADD_PHP_VIEW') . ' -');
|
||||
foreach ($results as $add_php_view)
|
||||
{
|
||||
// Translate the add_php_view selection
|
||||
@ -65,8 +65,7 @@ class JFormFieldLayoutsfilteraddphpview extends JFormFieldList
|
||||
// Now add the add_php_view and its text to the options array
|
||||
$_filter[] = JHtml::_('select.option', $add_php_view, JText::_($text));
|
||||
}
|
||||
return $_filter;
|
||||
}
|
||||
return false;
|
||||
return $_filter;
|
||||
}
|
||||
}
|
||||
|
@ -50,14 +50,14 @@ class JFormFieldLibrariesfiltertarget extends JFormFieldList
|
||||
$db->setQuery($query);
|
||||
|
||||
$results = $db->loadColumn();
|
||||
$_filter = array();
|
||||
$_filter[] = JHtml::_('select.option', '', '- ' . JText::_('COM_COMPONENTBUILDER_FILTER_SELECT_TARGET') . ' -');
|
||||
|
||||
if ($results)
|
||||
{
|
||||
// get librariesmodel
|
||||
$model = ComponentbuilderHelper::getModel('libraries');
|
||||
$results = array_unique($results);
|
||||
$_filter = array();
|
||||
$_filter[] = JHtml::_('select.option', '', '- ' . JText::_('COM_COMPONENTBUILDER_FILTER_SELECT_TARGET') . ' -');
|
||||
foreach ($results as $target)
|
||||
{
|
||||
// Translate the target selection
|
||||
@ -65,8 +65,7 @@ class JFormFieldLibrariesfiltertarget extends JFormFieldList
|
||||
// Now add the target and its text to the options array
|
||||
$_filter[] = JHtml::_('select.option', $target, JText::_($text));
|
||||
}
|
||||
return $_filter;
|
||||
}
|
||||
return false;
|
||||
return $_filter;
|
||||
}
|
||||
}
|
||||
|
@ -50,14 +50,14 @@ class JFormFieldLibrariesfiltertype extends JFormFieldList
|
||||
$db->setQuery($query);
|
||||
|
||||
$results = $db->loadColumn();
|
||||
$_filter = array();
|
||||
$_filter[] = JHtml::_('select.option', '', '- ' . JText::_('COM_COMPONENTBUILDER_FILTER_SELECT_TYPE') . ' -');
|
||||
|
||||
if ($results)
|
||||
{
|
||||
// get librariesmodel
|
||||
$model = ComponentbuilderHelper::getModel('libraries');
|
||||
$results = array_unique($results);
|
||||
$_filter = array();
|
||||
$_filter[] = JHtml::_('select.option', '', '- ' . JText::_('COM_COMPONENTBUILDER_FILTER_SELECT_TYPE') . ' -');
|
||||
foreach ($results as $type)
|
||||
{
|
||||
// Translate the type selection
|
||||
@ -65,8 +65,7 @@ class JFormFieldLibrariesfiltertype extends JFormFieldList
|
||||
// Now add the type and its text to the options array
|
||||
$_filter[] = JHtml::_('select.option', $type, JText::_($text));
|
||||
}
|
||||
return $_filter;
|
||||
}
|
||||
return false;
|
||||
return $_filter;
|
||||
}
|
||||
}
|
||||
|
@ -50,19 +50,18 @@ class JFormFieldServersfiltername extends JFormFieldList
|
||||
$db->setQuery($query);
|
||||
|
||||
$results = $db->loadColumn();
|
||||
$_filter = array();
|
||||
$_filter[] = JHtml::_('select.option', '', '- ' . JText::_('COM_COMPONENTBUILDER_FILTER_SELECT_NAME') . ' -');
|
||||
|
||||
if ($results)
|
||||
{
|
||||
$results = array_unique($results);
|
||||
$_filter = array();
|
||||
$_filter[] = JHtml::_('select.option', '', '- ' . JText::_('COM_COMPONENTBUILDER_FILTER_SELECT_NAME') . ' -');
|
||||
foreach ($results as $name)
|
||||
{
|
||||
// Now add the name and its text to the options array
|
||||
$_filter[] = JHtml::_('select.option', $name, $name);
|
||||
}
|
||||
return $_filter;
|
||||
}
|
||||
return false;
|
||||
return $_filter;
|
||||
}
|
||||
}
|
||||
|
@ -50,14 +50,14 @@ class JFormFieldServersfilterprotocol extends JFormFieldList
|
||||
$db->setQuery($query);
|
||||
|
||||
$results = $db->loadColumn();
|
||||
$_filter = array();
|
||||
$_filter[] = JHtml::_('select.option', '', '- ' . JText::_('COM_COMPONENTBUILDER_FILTER_SELECT_PROTOCOL') . ' -');
|
||||
|
||||
if ($results)
|
||||
{
|
||||
// get serversmodel
|
||||
$model = ComponentbuilderHelper::getModel('servers');
|
||||
$results = array_unique($results);
|
||||
$_filter = array();
|
||||
$_filter[] = JHtml::_('select.option', '', '- ' . JText::_('COM_COMPONENTBUILDER_FILTER_SELECT_PROTOCOL') . ' -');
|
||||
foreach ($results as $protocol)
|
||||
{
|
||||
// Translate the protocol selection
|
||||
@ -65,8 +65,7 @@ class JFormFieldServersfilterprotocol extends JFormFieldList
|
||||
// Now add the protocol and its text to the options array
|
||||
$_filter[] = JHtml::_('select.option', $protocol, JText::_($text));
|
||||
}
|
||||
return $_filter;
|
||||
}
|
||||
return false;
|
||||
return $_filter;
|
||||
}
|
||||
}
|
||||
|
@ -50,14 +50,14 @@ class JFormFieldSiteviewsfilteraddcustombutton extends JFormFieldList
|
||||
$db->setQuery($query);
|
||||
|
||||
$results = $db->loadColumn();
|
||||
$_filter = array();
|
||||
$_filter[] = JHtml::_('select.option', '', '- ' . JText::_('COM_COMPONENTBUILDER_FILTER_SELECT_ADD_CUSTOM_BUTTON') . ' -');
|
||||
|
||||
if ($results)
|
||||
{
|
||||
// get site_viewsmodel
|
||||
$model = ComponentbuilderHelper::getModel('site_views');
|
||||
$results = array_unique($results);
|
||||
$_filter = array();
|
||||
$_filter[] = JHtml::_('select.option', '', '- ' . JText::_('COM_COMPONENTBUILDER_FILTER_SELECT_ADD_CUSTOM_BUTTON') . ' -');
|
||||
foreach ($results as $add_custom_button)
|
||||
{
|
||||
// Translate the add_custom_button selection
|
||||
@ -65,8 +65,7 @@ class JFormFieldSiteviewsfilteraddcustombutton extends JFormFieldList
|
||||
// Now add the add_custom_button and its text to the options array
|
||||
$_filter[] = JHtml::_('select.option', $add_custom_button, JText::_($text));
|
||||
}
|
||||
return $_filter;
|
||||
}
|
||||
return false;
|
||||
return $_filter;
|
||||
}
|
||||
}
|
||||
|
@ -50,14 +50,14 @@ class JFormFieldSiteviewsfilteraddphpajax extends JFormFieldList
|
||||
$db->setQuery($query);
|
||||
|
||||
$results = $db->loadColumn();
|
||||
$_filter = array();
|
||||
$_filter[] = JHtml::_('select.option', '', '- ' . JText::_('COM_COMPONENTBUILDER_FILTER_SELECT_ADD_PHP_AJAX') . ' -');
|
||||
|
||||
if ($results)
|
||||
{
|
||||
// get site_viewsmodel
|
||||
$model = ComponentbuilderHelper::getModel('site_views');
|
||||
$results = array_unique($results);
|
||||
$_filter = array();
|
||||
$_filter[] = JHtml::_('select.option', '', '- ' . JText::_('COM_COMPONENTBUILDER_FILTER_SELECT_ADD_PHP_AJAX') . ' -');
|
||||
foreach ($results as $add_php_ajax)
|
||||
{
|
||||
// Translate the add_php_ajax selection
|
||||
@ -65,8 +65,7 @@ class JFormFieldSiteviewsfilteraddphpajax extends JFormFieldList
|
||||
// Now add the add_php_ajax and its text to the options array
|
||||
$_filter[] = JHtml::_('select.option', $add_php_ajax, JText::_($text));
|
||||
}
|
||||
return $_filter;
|
||||
}
|
||||
return false;
|
||||
return $_filter;
|
||||
}
|
||||
}
|
||||
|
@ -50,14 +50,14 @@ class JFormFieldTemplatesfilteraddphpview extends JFormFieldList
|
||||
$db->setQuery($query);
|
||||
|
||||
$results = $db->loadColumn();
|
||||
$_filter = array();
|
||||
$_filter[] = JHtml::_('select.option', '', '- ' . JText::_('COM_COMPONENTBUILDER_FILTER_SELECT_ADD_PHP_VIEW') . ' -');
|
||||
|
||||
if ($results)
|
||||
{
|
||||
// get templatesmodel
|
||||
$model = ComponentbuilderHelper::getModel('templates');
|
||||
$results = array_unique($results);
|
||||
$_filter = array();
|
||||
$_filter[] = JHtml::_('select.option', '', '- ' . JText::_('COM_COMPONENTBUILDER_FILTER_SELECT_ADD_PHP_VIEW') . ' -');
|
||||
foreach ($results as $add_php_view)
|
||||
{
|
||||
// Translate the add_php_view selection
|
||||
@ -65,8 +65,7 @@ class JFormFieldTemplatesfilteraddphpview extends JFormFieldList
|
||||
// Now add the add_php_view and its text to the options array
|
||||
$_filter[] = JHtml::_('select.option', $add_php_view, JText::_($text));
|
||||
}
|
||||
return $_filter;
|
||||
}
|
||||
return false;
|
||||
return $_filter;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user