MagicCMS Documentation

MagicPost Members

The MagicPost type exposes the following members.

Constructors


  Name Description
Public method MagicPost()()()()
Initializes a new empty instance of the MagicPost class.
Public method MagicPost(MagicPostTypeInfo)
Initializes a new empty instance of the MagicPost class of a chosen type.
Public method MagicPost(Int32)
Initializes a new instance of the MagicPost class. Fetching it from database.
Public method MagicPost(SqlDataReader)
Initializes a new instance of the MagicPost class. Fetching it from database.

Methods


  Name Description
Public method AddChild
Adds a child to a Post.
Public method CloneChildrenFrom
Clones the children from another post.
Public method ConnectTo(Int32)
Connects a child to single parent MagicPost object.
Public method ConnectTo(array<Int32>[]()[][])
Connects a child to many parent MagicPost objects.
Public method CountChildren(Int32)
Counts the children by type.
Public method CountChildren(array<Int32>[]()[][])
Counts the children by type.
Public method Delete
Put this post in trash can or, if already in, remove it from MagicCMS Database.
Public method GetAnswers(String)
Gets the answers to messages.
Public method GetAnswers()()()()
Gets the answers to messages by default order.
Public method GetAnswersByType
Get answers or comments to a posts or messages (MagicPostCollection )
Public method Static member GetByType(array<Int32>[]()[][], String, Boolean, Int32)
Gets a collection of MagicPost by type.
Public method Static member GetByType(array<Int32>[]()[][], array<String>[]()[][], String, Boolean, Int32)
Gets a collection of MagicPost filtered by type and tags.
Public method Static member GetByType(array<Int32>[]()[][], String, Boolean, Int32, Boolean, MagicSearchActive)
Gets a collection of MagicPost filtered by type.
Public method Static member GetByType(array<Int32>[]()[][], String, Boolean, Int32, Boolean, MagicSearchActive, Boolean)
Gets a collection of MagicPost filtered by type.
Public method Static member GetByType(array<Int32>[]()[][], String, Boolean, Int32, Boolean)
Gets a collection of MagicPost filtered by type.
Public method Static member GetByType(Int32, String)
Gets a collection of MagicPost filtered by type.
Public method Static member GetByType(Int32)
Gets a collection of MagicPost filtered by type.
Public method Static member GetByType(array<Int32>[]()[][])
Gets a collection of MagicPost filtered by type.
Public method GetChildren()()()()
Gets a MagicPostCollection containing the post children.
Public method GetChildren(String, Int32)
Gets a MagicPostCollection containing the post children.
Public method GetChildren(String, Int32, Boolean)
Gets the MagicPostCollection of children of the Post.
Public method GetChildrenByDate
Gets the MagicPostCollection of children of the Post filtered by publication date (DataPubblicazione).
Public method GetChildrenByType(array<Int32>[]()[][], String, Boolean, Int32)
Gets the children of the post filtered by post type (Tipo).
Public method GetChildrenByType(array<Int32>[]()[][], String, Boolean, Int32, Boolean, MagicSearchActive)
Gets the children of the post filtered by post type (Tipo).
Public method GetChildrenByType(array<Int32>[]()[][], String, Boolean, Int32, Boolean, MagicSearchActive, Boolean)
Gets the children of the post filtered by post type (Tipo).
Public method GetChildrenByType(array<Int32>[]()[][], String, Boolean, Int32, Boolean)
Gets the children of the post filtered by post type (Tipo).
Public method GetChildrenByType(Int32, String)
Gets the children of the post filtered by post type (Tipo).
Public method GetChildrenByType(Int32)
Gets the children of the post filtered by post type (Tipo).
Public method GetChildrenByType(array<Int32>[]()[][])
Gets the children of the post filtered by post type (Tipo).
Public method GetGrandSons(String, Int32)
Gets the grand sons (children of children) of a post.
Public method GetGrandSons(String, Int32, Boolean)
Gets the grand sons (children of children) of a post.
Public method GetGrandSonsByType(array<Int32>[]()[][], String, Boolean, Int32, Boolean)
Gets the grand sons (children of children) of a post.
Public method GetGrandSonsByType(array<Int32>[]()[][], String, Boolean, Int32)
Gets the grand sons (children of children) of a post.
Public method GetGrandSonsByType(Int32)
Gets the grand sons (children of children) of a post.
Public method GetMediatVoti
Retrieve the average rating assigned to the post.
Public method GetMiniaturePk(Int32, Int32, MagicPostWhichUrl)
Gets the miniature of a post. Create miniature if it doesn't exist.
Public method GetMiniaturePk(Int32, Int32)
Gets the miniature of a post. Create miniature if it doesn't exist.
Public method GetParents()()()()
Gets parents of this post.
Public method GetParents(array<Int32>[]()[][])
Gets the parents of this Post Filtered by type.
Public method GetParents(array<Int32>[]()[][], String)
Gets the parents of this Post Filtered by type.
Public method Static member GetPostByParentType
Gets MagicPost filtered by post type of its parents.
Public method GetRandomChild
Gets a random child of the post.
Public method GetSiblings(String, array<Int32>[]()[][])
Gets the siblings posts (same parent) of current post.
Public method GetSiblings()()()()
Gets the siblings posts (same parent) of current post.
Public method GetSiblings(String)
Gets the siblings posts (same parent) of current post.
Public method GetSiblings(String, Int32)
Gets the siblings posts (same parent) of current post.
Public method GetTestoBreveCustom
Gets truncated and translated short text or description extracted from TestoBreve (if not empty) or from TestoLungo
Public method GetVoti
Retrieves the sum of the votes received by the post.
Public method HomePanel
Returns a formatted panel (div) with an image and links to the post.
Public method Insert
Inserts a new created MagicPost instance in MagicCMS database.
Public method IsLocalLink
Determines whether the post is part of a monopage site (chile of an Home page Section).
Public method MergeContext
Public method Static member SearchByKeyword(String, String)
Get a collection of MagicPost by keyword.
Public method Static member SearchByKeyword(array<String>[]()[][], String, Int32, Boolean, WhereClauseCollection)
Get a collection of MagicPost by keyword.
Public method SetAnswerTo
Set the post as un answer or a comment to an other post.
Public method UnDelete
Undelete this post removing it from trash can.
Public method Update
Save modified MagicPost instance in MagicCMS database.

Properties


  Name Description
Public property Active
Gets or sets the active flag of the Post.
Public property Altezza
Gets or sets the altezza (height) field.
Public property AutoMiniaturePk
Automatically generate a miniature (if it doesn't exits) and return miniature id (pk).
Public property Contenitore
Gets the contenitore (container) flag.
Public property ContenutiPreferiti
Gets the comma separated list of preferred children (in italian "contenuti preferiti") type ids.
Public property CustomClass
Gets or sets the custom class.
Public property DataPubblicazione
Gets or sets the publication date (in italian data di pubblicazione).
Public property DataScadenza
Gets or sets the expiration date (in italian data di scadenza).
Public property DataUltimaModifica
Gets or sets the last modification date (in italian data dell'ultima modifica).
Public property DisplayTitle
Gets or sets the pretty title (Display Title). Alias for ExtraInfo1
Public property Email
Gets or sets the email. (Alias for ExtraInfo2)
Public property ExtraInfo
Gets or sets the extra information 0.
Public property ExtraInfo1
Gets or sets the Display Title (or Pretty Title).
Public property ExtraInfo2
Gets or sets the extra info2.
Public property ExtraInfo3
Gets or sets the extra info3.
Public property ExtraInfo4
Gets or sets the extra info4.
Public property ExtraInfo5
Gets or sets the extra info5.
Public property ExtraInfo6
Gets or sets the extra info6.
Public property ExtraInfo7
Gets or sets the extra info7.
Public property ExtraInfo8
Gets or sets the extra info8.
Public property ExtraInfoNumber1
Gets or sets the extra information number1.
Public property ExtraInfoNumber2
Gets or sets the extra information number2.
Public property ExtraInfoNumber3
Gets or sets the extra information number3.
Public property ExtraInfoNumber4
Gets or sets the extra information number4.
Public property ExtraInfoNumber5
Gets or sets the extra information number5.
Public property ExtraInfoNumber6
Gets or sets the extra information number6.
Public property ExtraInfoNumber7
Gets or sets the extra information number7.
Public property ExtraInfoNumber8
Gets or sets the extra information number8.
Public property FlagCancellazione
Gets or sets the "deleted" flag (in italian deletion = cancellazione).
Public property FlagExtraInfo1
Public property FlagExtraInfo2
Public property FlagExtraInfo3
Public property FlagExtraInfo4
Public property Geolocazione
Gets or sets the geo location (geolocazione in italian). (Alias for ExtraInfo)
Public property IconClass
Gets or sets the icon class. (Alias for ExtraInfo5)
Public property Item
Gets or sets a magic post property by property name.
Public property LabelExtraInfo1
Public property LabelExtraInfo2
Public property LabelExtraInfo3
Public property LabelExtraInfo4
Public property Larghezza
Gets or sets the width (larghezza in italian).
Public property MapZoom
Gets or sets the map zoom. (Alias for Altezza)
Public property MenuIcon
Gets or sets the menu icon. (Alias for IconClass)
Public property MetaInfo
Public property Name
Gets or sets the name. (Alias for Titolo)
Public property NomeExtraInfo
Public property NomeTipo
Gets the Post Type name.
Public property OrderChildrenBy
Gets or sets the order of post children collections. (Alias for ExtraInfo)
Public property Ordinamento
Gets or sets the order (in italian ordinamento).
Public property Owner
Gets or sets the owner.
Public property Parents
Gets or sets the parents of the posts.
Public property Pk
Gets or sets the pk (Unique id of the post).
Public property Preferred
Gets the preferred id list.
Public property PreferredChildren
Gets or sets the preferred children. (Alias for ExtraInfo2)
Public property Tags
Gets or sets the tags.
Public property TestoBreve
Gets or sets the testo breve.
Public property TestoBreve_RT
Gets the Short Text of the post. If a translation exist for the post return the Short Text translation for the current language.
Public property TestoLungo
Gets or sets the testo lungo.
Public property TestoLungo_RT
Gets long text of the post. f a translation exist for the post return the Long Text translation for the current language.
Public property TestoNote_RT
Gets the Short Text of the post. If a translation exist for the post return the Short Text translation for the current language.
Public property Tipo
Gets or sets the post type (tipo in italian).
Public property Title_RT
Gets the pretty title of the post. If a translation exist for the post return the title translation for the current language.
Public property Titolo
Gets or sets the Post Title (titolo in italian).
Public property Translations
Gets or sets the translations.
Public property TypeInfo
Gets or sets the type information.
Public property Url
Gets or sets the URL.
Public property Url2
Gets or sets the url2.