ContentBox Core API 1.6.0

contentbox.model.comments
Class Comment

WEB-INF.cftags.component
        extended by contentbox.model.comments.Comment

public class Comment
extends WEB-INF.cftags.component

******************************************************************************* ContentBox - A Modular Content Platform Copyright 2012 by Luis Majano and Ortus Solutions, Corp www.gocontentbox.org | www.luismajano.com | 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 & Description Default Serializable Required
 any author


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


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


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


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


Attributes:
  • generator = native
  • fieldtype = id
  • setter = false
true false
 any content


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


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


Attributes:
  • index = idx_contentComment,idx_approved
  • ormtype = boolean
  • notnull = true
  • dbdefault = 0
false true false
 any relatedContent


Attributes:
  • index = idx_contentComment
  • fieldtype = many-to-one
  • notnull = true
  • lazy = true
  • cfc = contentbox.model.content.BaseContent
  • fkcolumn = FK_contentID
true false
 
Constructor Summary
init()
          constructor
 
Method Summary
 any GETAUTHOR()
 any GETAUTHOREMAIL()
 any GETAUTHORIP()
 any GETAUTHORURL()
 any GETCOMMENTID()
 any GETCONTENT()
 any GETCREATEDDATE()
 any GETISAPPROVED()
 any GETRELATEDCONTENT()
 boolean HASRELATEDCONTENT()
 Comment SETAUTHOR(any author)
 Comment SETAUTHOREMAIL(any authorEmail)
 Comment SETAUTHORIP(any authorIP)
 Comment SETAUTHORURL(any authorURL)
 Comment SETCONTENT(any content)
 Comment SETCREATEDDATE(any createdDate)
 Comment SETISAPPROVED(any isApproved)
 Comment SETRELATEDCONTENT(any relatedContent)
 string getDisplayContent()
          Get Display Content
 string getDisplayCreatedDate()
          Get formatted createdDate
 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
 boolean isLoaded()
          is loaded?
 
Methods inherited from class WEB-INF.cftags.component
None
 

Constructor Detail

init

public init()
constructor

Property Detail

author

any author

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

authorEmail

any authorEmail

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

authorIP

any authorIP

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

authorURL

any authorURL

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

commentID

any commentID

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

content

any content

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

createdDate

any createdDate

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

isApproved

any isApproved

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

relatedContent

any relatedContent

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

Method Detail

GETAUTHOR

public any GETAUTHOR()


GETAUTHOREMAIL

public any GETAUTHOREMAIL()


GETAUTHORIP

public any GETAUTHORIP()


GETAUTHORURL

public any GETAUTHORURL()


GETCOMMENTID

public any GETCOMMENTID()


GETCONTENT

public any GETCONTENT()


GETCREATEDDATE

public any GETCREATEDDATE()


GETISAPPROVED

public any GETISAPPROVED()


GETRELATEDCONTENT

public any GETRELATEDCONTENT()


HASRELATEDCONTENT

public boolean HASRELATEDCONTENT()


SETAUTHOR

public Comment SETAUTHOR(any author)

Parameters:
author

SETAUTHOREMAIL

public Comment SETAUTHOREMAIL(any authorEmail)

Parameters:
authorEmail

SETAUTHORIP

public Comment SETAUTHORIP(any authorIP)

Parameters:
authorIP

SETAUTHORURL

public Comment SETAUTHORURL(any authorURL)

Parameters:
authorURL

SETCONTENT

public Comment SETCONTENT(any content)

Parameters:
content

SETCREATEDDATE

public Comment SETCREATEDDATE(any createdDate)

Parameters:
createdDate

SETISAPPROVED

public Comment SETISAPPROVED(any isApproved)

Parameters:
isApproved

SETRELATEDCONTENT

public Comment SETRELATEDCONTENT(any relatedContent)

Parameters:
relatedContent

getDisplayContent

public string getDisplayContent()
Get Display Content


getDisplayCreatedDate

public string getDisplayCreatedDate()
Get formatted createdDate


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.


isLoaded

public boolean isLoaded()
is loaded?


ContentBox Core API 1.6.0