english/administrator/components/com_plugins/helpers/plugins.php
/**
	 * Returns an array of standard published state filter options.
	 *
	 * @return	string			The HTML code for the select tag
	 */
Returns an array of standard published state filter options.
@return      string                  The HTML code for the select tag
Returns an array of standard published state filter options . @return string The HTML code for the select tag
public static function folderOptions()
	{
		$db		= JFactory::getDbo();
		$query	= $db->getQuery(true);
		$query->select('DISTINCT(folder) AS value, folder AS text');
		$query->from('#__extensions');
		$query->where('`type` = '.$db->quote('plugin'));
		$query->order('folder');
		$db->setQuery($query);
		$options = $db->loadObjectList();
		if ($error = $db->getErrorMsg()) {
			JError::raiseWarning(500, $error);
		}
		return $options;
	}
public static function folderOptions ( ) { $ db = JFactory :: getDbo ( ) ; $ query = $ db -> getQuery ( true ) ; $ query -> select ( 'DISTINCT(folder) AS value, folder AS text' ) ; $ query -> from ( '#__extensions' ) ; $ query -> where ( '`type` = ' . $ db -> quote ( 'plugin' ) ) ; $ query -> order ( 'folder' ) ; $ db -> setQuery ( $ query ) ; $ options = $ db -> loadObjectList ( ) ; if ( $ error = $ db -> getErrorMsg ( ) ) { JError :: raiseWarning ( 500 , $ error ) ; } return $ options ; }
Returns an array of standard published state filter options.
Returns an array of standard published state filter options .