public function getAllModules()
	{
		$arrModules = array();

		$strQuery = 'SELECT m.id, m.name, t.name AS theme FROM tl_module m LEFT JOIN tl_theme t ON m.pid=t.id';

		if(\Input::get('table') == 'tl_module' && \Input::get('act') == 'edit')
		{
			$strQuery .= ' WHERE m.id != ?';
		}

		$strQuery .= ' ORDER BY t.name, m.name';

		$objModules = $this->Database->prepare($strQuery)->execute(\Input::get('id'));

		while ($objModules->next())
		{
			$arrModules[$objModules->theme][$objModules->id] = $objModules->name . ' (ID ' . $objModules->id . ')';
		}

		return $arrModules;
	}
public function getAllModules()
	{
		$arrModules = array();

		$strQuery = 'SELECT m.id, m.name, t.name AS theme FROM tl_module m LEFT JOIN tl_theme t ON m.pid=t.id';

		if(\Input::get('table') == 'tl_module' && \Input::get('act') == 'edit')
		{
			$strQuery .= ' WHERE m.id != ?';
		}

		$strQuery .= ' ORDER BY t.name, m.name';

		$objModules = $this->Database->prepare($strQuery)->execute(\Input::get('id'));

		while ($objModules->next())
		{
			$arrModules[$objModules->theme][$objModules->id] = $objModules->name . ' (ID ' . $objModules->id . ')';
		}

		return $arrModules;
	}
public function getAllModules ( ) { $ arrModules = array ( ) ; $ strQuery = 'SELECT m.id, m.name, t.name AS theme FROM tl_module m LEFT JOIN tl_theme t ON m.pid=t.id' ; if ( \ Input :: get ( 'table' ) == 'tl_module' && \ Input :: get ( 'act' ) == 'edit' ) { $ strQuery .= ' WHERE m.id != ?' ; } $ strQuery .= ' ORDER BY t.name, m.name' ; $ objModules = $ this -> Database -> prepare ( $ strQuery ) -> execute ( \ Input :: get ( 'id' ) ) ; while ( $ objModules -> next ( ) ) { $ arrModules [ $ objModules -> theme ] [ $ objModules -> id ] = $ objModules -> name . ' (ID ' . $ objModules -> id . ')' ; } return $ arrModules ; }
Get all modules prepared for select wizard

@return array
Get all modules prepared for select wizard