Documentation ¶
Overview ¶
Package cms represents abstraction of business layer cms page and cms block objects
Index ¶
Constants ¶
const ( ConstModelNameCMSPage = "CMSPage" ConstModelNameCMSPageCollection = "CMSPageCollection" ConstModelNameCMSBlock = "CMSBlock" ConstModelNameCMSBlockCollection = "CMSBlockCollection" ConstErrorModule = "cms" ConstErrorLevel = env.ConstErrorLevelModel )
Package global constants
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InterfaceCMSBlock ¶
type InterfaceCMSBlock interface { LoadByIdentifier(identifier string) error GetIdentifier() string SetIdentifier(string) error GetContent() string SetContent(string) error EvaluateContent() string models.InterfaceModel models.InterfaceObject models.InterfaceStorable models.InterfaceListable }
InterfaceCMSBlock represents interface to access business layer implementation of cms block object
func GetCMSBlockModel ¶
func GetCMSBlockModel() (InterfaceCMSBlock, error)
GetCMSBlockModel retrieves current InterfaceCMSBlock model implementation
func GetCMSBlockModelAndSetID ¶
func GetCMSBlockModelAndSetID(csmBlockID string) (InterfaceCMSBlock, error)
GetCMSBlockModelAndSetID retrieves current InterfaceCMSBlock model implementation and sets its ID to some value
func LoadCMSBlockByID ¶
func LoadCMSBlockByID(csmBlockID string) (InterfaceCMSBlock, error)
LoadCMSBlockByID loads csmBlock data into current InterfaceCMSBlock model implementation
func LoadCMSBlockByIdentifier ¶
func LoadCMSBlockByIdentifier(identifier string) (InterfaceCMSBlock, error)
LoadCMSBlockByIdentifier loads CMSBlock model by its identifier
type InterfaceCMSBlockCollection ¶
type InterfaceCMSBlockCollection interface { ListCMSBlocks() []InterfaceCMSBlock models.InterfaceCollection }
InterfaceCMSBlockCollection represents interface to access business layer implementation of cms block collection
func GetCMSBlockCollectionModel ¶
func GetCMSBlockCollectionModel() (InterfaceCMSBlockCollection, error)
GetCMSBlockCollectionModel retrieves current InterfaceCMSBlockCollection model implementation
type InterfaceCMSPage ¶
type InterfaceCMSPage interface { GetEnabled() bool SetEnabled(bool) error LoadByIdentifier(identifier string) error GetIdentifier() string SetIdentifier(string) error GetTitle() string SetTitle(string) error GetContent() string SetContent(string) error EvaluateContent() string models.InterfaceModel models.InterfaceObject models.InterfaceStorable models.InterfaceListable }
InterfaceCMSPage represents interface to access business layer implementation of cms page object
func GetCMSPageModel ¶
func GetCMSPageModel() (InterfaceCMSPage, error)
GetCMSPageModel retrieves current InterfaceCMSPage model implementation
func GetCMSPageModelAndSetID ¶
func GetCMSPageModelAndSetID(cmsPageID string) (InterfaceCMSPage, error)
GetCMSPageModelAndSetID retrieves current InterfaceCMSPage model implementation and sets its ID to some value
func LoadCMSPageByID ¶
func LoadCMSPageByID(cmsPageID string) (InterfaceCMSPage, error)
LoadCMSPageByID loads cmsPage data into current InterfaceCMSPage model implementation
func LoadCMSPageByIdentifier ¶
func LoadCMSPageByIdentifier(identifier string) (InterfaceCMSPage, error)
LoadCMSPageByIdentifier loads CMSPage model by its identifier
type InterfaceCMSPageCollection ¶
type InterfaceCMSPageCollection interface { ListCMSPages() []InterfaceCMSPage models.InterfaceCollection }
InterfaceCMSPageCollection represents interface to access business layer implementation of cms page collection
func GetCMSPageCollectionModel ¶
func GetCMSPageCollectionModel() (InterfaceCMSPageCollection, error)
GetCMSPageCollectionModel retrieves current InterfaceCMSPageCollection model implementation