contentbox.model.content

Class CustomField

railo-context.Component
        extended by contentbox.model.content.CustomField
Class Attributes:
  • entityname : cbCustomField
  •  
  • cacheuse : read-write
  •  
  • table : cb_customfield
  •  
  • synchronized : false
  •  
  • cachename : cbCustomField
  •  
  • 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 custom field metadata that can be attached to base content in contentbox

    Property Summary
    type property default serializable required
    any customFieldID


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


    • notnull = true
    • ormtype = string
    • length = 255
    true false
    any relatedContent


    • fieldtype = many-to-one
    • notnull = false
    • index = idx_contentCustomFields
    • fkcolumn = FK_contentID
    • cfc = contentbox.model.content.BaseContent
    • lazy = true
    true false
    any value


    • notnull = true
    • ormtype = text
    • length = 8000
    true false
    Method Summary
    string getCustomFieldID()
    string getKey()
    any getMemento()
         Get memento representation.
    string getRelatedContent()
    string getValue()
    boolean hasRelatedContent([any relatedContent])
    boolean isLoaded()
         is loaded?.
    any setKey(any key)
    any setRelatedContent(any relatedContent)
    any setValue(any value)
     
    Methods inherited from class railo-context.Component
    None

    Property Detail

    customFieldID

    property any customFieldID

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

    key

    property any key

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

    relatedContent

    property any relatedContent

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

    value

    property any value

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

    Method Detail

    getCustomFieldID

    public string getCustomFieldID()


    getKey

    public string getKey()


    getMemento

    public any getMemento()

    Get memento representation


    getRelatedContent

    public string getRelatedContent()


    getValue

    public string getValue()


    hasRelatedContent

    public boolean hasRelatedContent([any relatedContent])

    Parameters:
    relatedContent

    isLoaded

    public boolean isLoaded()

    is loaded?


    setKey

    public any setKey(any key)

    Parameters:
    key

    setRelatedContent

    public any setRelatedContent(any relatedContent)

    Parameters:
    relatedContent

    setValue

    public any setValue(any value)

    Parameters:
    value