contenttypes

package
v0.0.0-...-99ae320 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 3, 2015 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContentType

type ContentType struct {
	Form    []*form.Field `bson:"form,omitempty" json:"content_form,omitempty"`
	Type    string        `bson:"type,omitempty" json:"type,omitempty"`
	MongoId bson.ObjectId `bson:"_id,omitempty" json:"id,omitempty"`
}

func AllContentTypes

func AllContentTypes(w *wrapper.Wrapper) ([]ContentType, error)

func LoadContentType

func LoadContentType(i string, w *wrapper.Wrapper) (ContentType, error)

func LoadContentTypeT

func LoadContentTypeT(t string, w *wrapper.Wrapper) (ContentType, error)

func NewContentType

func NewContentType() ContentType

func (*ContentType) GetById

func (ct *ContentType) GetById(i string, w *wrapper.Wrapper) error

func (*ContentType) GetByType

func (ct *ContentType) GetByType(t string, w *wrapper.Wrapper) error

func (*ContentType) Save

func (ct *ContentType) Save(w *wrapper.Wrapper) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL