Esempio n. 1
0
        /// <summary>
        /// 
        /// </summary>
		public string AddField(FieldEntry field, string xpath)
		{
			return AddFieldorValue(field.ToString(), xpath);
			//return AddField(field.Table, field.FieldName, xpath);
		}
Esempio n. 2
0
		/// <summary>
		/// Constructs a condition with a field and a string expression
		/// Using this overload allows clients to identify fields from values. 
		/// This is how Select fields are identified by filters
		/// </summary>
		/// <param name="fieldL"></param>
		/// <param name="op"></param>
		/// <param name="fieldR"></param>
		public ConditionEntry(FieldEntry fieldL, string op, FieldEntry fieldR)
		{
			this.fieldL = fieldL;
			this.expressionL = fieldL.ToString();
			this.op = op;
			this.fieldR = fieldR;
			this.expressionR = fieldR.ToString();
		}
Esempio n. 3
0
        /// <summary>
        /// 
        /// </summary>
		public string AddFieldTitle(FieldEntry field)
		{
			return AddField(field, "item/title");
		}
Esempio n. 4
0
        /// <summary>
        /// 
        /// </summary>
		public string AddFieldDateUpdated(FieldEntry field)
		{
			return AddField(field, "item/date-updated");
		}
Esempio n. 5
0
		/// <summary>
		/// Adds item/@itemid field
		/// </summary>
		/// <param name="field">Name of numeric id field</param>
		/// <returns>same as AddField</returns>
		public string AddFieldID(FieldEntry field)
		{
			return AddField(field, "item/@itemid");
		}
Esempio n. 6
0
        /// <summary>
        /// 
        /// </summary>
		public OrderByDateUpdated(ListTypeBase ListType) : base(ListType)
		{
			if(!IsSupported()) 
			{
				return;
			}
			
			if(ListType.GetListTypeName() == "CLUBS")
			{
				TableEntry GuideEntriesTable = new TableEntry("GuideEntries", "g");

				OrderByField 
					= new FieldEntry(ListType.GetSelectTable(), "LastUpdated", ">", GuideEntriesTable, "LastUpdated");
			}
			else if(ListType.GetListTypeName() == "CAMPAIGNDIARYENTRIES"
				|| ListType.GetListTypeName() == "THREADS")
			{
				OrderByField = ListType.GetSelectTable().MakeField("LastPosted");
			}
			else
			{
				OrderByField = ListType.GetSelectTable().MakeField("LastUpdated");
			}
				
			ListType.AddField(OrderByField, "item/date-updated");
		}