public static function getPluginByName($name) {

		$db = Database::getInstance();
		$db->setQuery('SELECT * FROM `templates` WHERE name=?');
		$obj = $db->loadObject($name);
		return (is_a($obj, 'stdClass') ? new Template($obj) : NULL);
		
	}
public static function getPluginByName($name) {

		$db = Database::getInstance();
		$db->setQuery('SELECT * FROM `templates` WHERE name=?');
		$obj = $db->loadObject($name);
		return (is_a($obj, 'stdClass') ? new Template($obj) : NULL);
		
	}
public static function getPluginByName ( $ name ) { $ db = Database :: getInstance ( ) ; $ db -> setQuery ( 'SELECT * FROM `templates` WHERE name=?' ) ; $ obj = $ db -> loadObject ( $ name ) ; return ( is_a ( $ obj , 'stdClass' ) ? new Template ( $ obj ) : NULL ) ; }
Load and return a Template object by its name.

@param	string	Template name.

@return	Template|NULL
Load and return a Template object by its name .