예제 #1
0
		/// <summary>Obtm a quantidade de utilizadores registados</summary>
		public override int getUserCount()
		{
			DataSet ds = PostGreServerUtility.getAllFromDB("OrionsBelt_UsersGetCount");
			object o = ds.Tables[0].Rows[0][0];
			return (int)(Int64)o;
		}
예제 #2
0
		public override User[] getUsersRanking() {
			DataSet ds = PostGreServerUtility.getAllFromDB("OrionsBelt_UsersGetUserRanks");
			return PopulateUserRankings(50, ds, "user_id");
		}
예제 #3
0
        /// <summary>Obtém as notícias existentes</summary>
        protected override NewsList GetNewsFromDB()
        {
            DataSet ds = PostGreServerUtility.getAllFromDB("OrionsBelt_GetNews");

            return(NewsFromDataSet(ds));
        }
예제 #4
0
 /// <summary>
 /// Carrega as seccoes existentes para uma base de dados
 /// </summary>
 /// <returns>um objecto do tipo SectionCollection com todas as collections</returns>
 override public UtilityCollection getAllSectionsFromDB()
 {
     return(storeSections(PostGreServerUtility.getAllFromDB("OrionsBelt_SectionsGetAllSections")));
 }
예제 #5
0
        public override ArrayList GetAll()
        {
            DataSet alliances = PostGreServerUtility.getAllFromDB("OrionsBelt_AllianceGetAlliance");

            return(FromDataSet(alliances));
        }
예제 #6
0
 /// <summary>
 /// retorna a informao das namedPages da Base de Dados
 /// </summary>
 /// <returns>collection com as namedPages</returns>
 override public UtilityCollection getAllNamedPagesFromDB()
 {
     return(storeNamedPages(PostGreServerUtility.getAllFromDB("OrionsBelt_NamedPagesGetAllNamedPages")));
 }