getQuery(true) ->select('*') ->from($dbo->quoteName('#__extensions')) ->where($dbo->quoteName('type') . ' = ' . $dbo->quote('plugin')); if ($filter) { $query->where( '(' . $dbo->quoteName('element') . ' LIKE ' . $dbo->quote("%$filter%") . ' OR ' . $dbo->quoteName('folder') . ' LIKE ' . $dbo->quote("%$filter%") . ')' ); } $dbo->setQuery($query); $rows = $dbo->loadObjectList(); if (!$rows) { echo "No plugins found.\n"; exit(0); } foreach ($rows as $row) { printf( "[%s/%s] enabled=%d ordering=%d access=%d\n params=%s\n\n", $row->folder, $row->element, $row->enabled, $row->ordering, $row->access, $row->params ?: '{}' ); }