contentbox.model.comments

Class Comment

railo-context.Component
        extended by contentbox.model.comments.Comment
Class Attributes:
  • entityname : cbComment
  •  
  • cacheuse : read-write
  •  
  • table : cb_comment
  •  
  • synchronized : false
  •  
  • cachename : cbComment
  •  
  • batchsize : 25
  •  
  • accessors : false
  •  
  • persistent : true
  •  

    ContentBox - A Modular Content Platform Copyright 2012 by Luis Majano and Ortus Solutions, Corp www.ortussolutions.com Apache License, Version 2.0 Copyright Since [2012] [Luis Majano and Ortus Solutions,Corp] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. I am a Comment Entity

    Property Summary
    type property default serializable required
    any author


    • notnull = true
    • length = 100
    true false
    any authorEmail


    • notnull = true
    • length = 255
    true false
    any authorIP


    • notnull = true
    • length = 100
    true false
    any authorURL


    • notnull = false
    • length = 255
    true false
    any commentID


    • fieldtype = id
    • generator = native
    • setter = no
    true false
    any content


    • notnull = true
    • ormtype = text
    true false
    any createdDate


    • notnull = true
    • ormtype = timestamp
    • update = false
    • index = idx_createdDate
    true false
    any isApproved


    • notnull = true
    • ormtype = boolean
    • index = idx_contentComment,idx_approved
    false true false
    any relatedContent


    • fieldtype = many-to-one
    • notnull = true
    • index = idx_contentComment
    • fkcolumn = FK_contentID
    • cfc = contentbox.model.content.BaseContent
    • lazy = true
    true false
    Constructor Summary
    init()
          constructor.
    Method Summary
    string getAuthor()
    string getAuthorEmail()
    string getAuthorIP()
    string getAuthorURL()
    string getCommentID()
    string getContent()
    string getCreatedDate()
    string getDisplayContent()
         Get Display Content.
    string getDisplayCreatedDate()
         Get formatted createdDate.
    string getIsApproved()
    any getMemento()
         Get memento representation.
    any getParentSlug()
         Get parent slug from either the page it belongs or the entry it belongs to.
    any getParentTitle()
         Get parent title from either the page it belongs or the entry it belongs to.
    string getRelatedContent()
    boolean hasRelatedContent([any relatedContent])
    boolean isLoaded()
         is loaded?.
    any setAuthor(any author)
    any setAuthorEmail(any authorEmail)
    any setAuthorIP(any authorIP)
    any setAuthorURL(any authorURL)
    any setContent(any content)
    any setCreatedDate(any createdDate)
    any setIsApproved(any isApproved)
    any setRelatedContent(any relatedContent)
     
    Methods inherited from class railo-context.Component
    None

    Constructor Detail

    init

    public init()

    constructor


    Property Detail

    author

    property any author

    Attributes:
    required - false
    notnull - true
    length - 100
    serializable - true

    authorEmail

    property any authorEmail

    Attributes:
    required - false
    notnull - true
    length - 255
    serializable - true

    authorIP

    property any authorIP

    Attributes:
    required - false
    notnull - true
    length - 100
    serializable - true

    authorURL

    property any authorURL

    Attributes:
    required - false
    notnull - false
    length - 255
    serializable - true

    commentID

    property any commentID

    Attributes:
    required - false
    fieldtype - id
    generator - native
    serializable - true
    setter - no

    content

    property any content

    Attributes:
    required - false
    notnull - true
    ormtype - text
    serializable - true

    createdDate

    property any createdDate

    Attributes:
    required - false
    notnull - true
    ormtype - timestamp
    update - false
    index - idx_createdDate
    serializable - true

    isApproved

    property any isApproved = [false]

    Attributes:
    required - false
    notnull - true
    ormtype - boolean
    index - idx_contentComment,idx_approved
    serializable - true

    relatedContent

    property any relatedContent

    Attributes:
    required - false
    fieldtype - many-to-one
    notnull - true
    index - idx_contentComment
    fkcolumn - FK_contentID
    serializable - true
    cfc - contentbox.model.content.BaseContent
    lazy - true

    Method Detail

    getAuthor

    public string getAuthor()


    getAuthorEmail

    public string getAuthorEmail()


    getAuthorIP

    public string getAuthorIP()


    getAuthorURL

    public string getAuthorURL()


    getCommentID

    public string getCommentID()


    getContent

    public string getContent()


    getCreatedDate

    public string getCreatedDate()


    getDisplayContent

    public string getDisplayContent()

    Get Display Content


    getDisplayCreatedDate

    public string getDisplayCreatedDate()

    Get formatted createdDate


    getIsApproved

    public string getIsApproved()


    getMemento

    public any getMemento()

    Get memento representation


    getParentSlug

    public any getParentSlug()

    Get parent slug from either the page it belongs or the entry it belongs to.


    getParentTitle

    public any getParentTitle()

    Get parent title from either the page it belongs or the entry it belongs to.


    getRelatedContent

    public string getRelatedContent()


    hasRelatedContent

    public boolean hasRelatedContent([any relatedContent])

    Parameters:
    relatedContent

    isLoaded

    public boolean isLoaded()

    is loaded?


    setAuthor

    public any setAuthor(any author)

    Parameters:
    author

    setAuthorEmail

    public any setAuthorEmail(any authorEmail)

    Parameters:
    authorEmail

    setAuthorIP

    public any setAuthorIP(any authorIP)

    Parameters:
    authorIP

    setAuthorURL

    public any setAuthorURL(any authorURL)

    Parameters:
    authorURL

    setContent

    public any setContent(any content)

    Parameters:
    content

    setCreatedDate

    public any setCreatedDate(any createdDate)

    Parameters:
    createdDate

    setIsApproved

    public any setIsApproved(any isApproved)

    Parameters:
    isApproved

    setRelatedContent

    public any setRelatedContent(any relatedContent)

    Parameters:
    relatedContent