Documentation ¶
Index ¶
- Constants
- type Book
- type BookPage
- type CCKField
- type CCKFieldType
- type Database
- func (db Database) AllBookPages() []*BookPage
- func (db Database) AllBookPagesAsMap() map[int32]*BookPage
- func (db Database) AllBooks() []*Book
- func (db Database) AllBooksAsMap() map[int32]string
- func (db Database) AllMenus() []*MenuCustom
- func (db Database) AllNodeTypes() []*NodeType
- func (db Database) AllVocabularies() []*Vocabulary
- func (db Database) CCKDataForNode(node *JoinedNodeDataBody, fields []*CCKFieldType) (map[CCKField]interface{}, error)
- func (db Database) CCKFields() (map[string][]*CCKFieldType, error)
- func (db Database) GetUrlAlias(nid int32) string
- func (db Database) JoinedMenusForPath(path string) []*JoinedMenu
- func (db Database) JoinedNodeFields(offset, count int) []*JoinedNodeDataBody
- func (db Database) JoinedTaxonomyTerms(nid int32) []*JoinedTaxonomyTerm
- func (db Database) MenusForMlid(mlid int32) []*JoinedMenu
- type Emvideo
- type EmvideoError
- type JoinedMenu
- type JoinedNodeDataBody
- type JoinedTaxonomyTerm
- type Menu
- type MenuCustom
- type Node
- type NodeType
- type TaxonomyIndex
- type UrlAlias
- type Vocabulary
Constants ¶
View Source
const (
NoSuchTable uint16 = 1146 // http://dev.mysql.com/doc/refman/5.5/en/error-messages-server.html
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CCKFieldType ¶
type CCKFieldType struct { Name string `db:"field_name"` Type string `db:"type"` ContentType string `db:"type_name"` Gs string `db:"global_settings"` GlobalSettings map[interface{}]interface{} `db:"-"` Required bool `db:"required"` Multiple bool `db:"multiple"` DBStorage bool `db:"db_storage"` Module string `db:"module"` Dbc string `db:"db_columns"` DBColumns map[interface{}]interface{} `db:"-"` Locked bool `db:"locked"` }
type Database ¶
func (Database) AllBookPages ¶
func (Database) AllBookPagesAsMap ¶
func (Database) AllBooksAsMap ¶
func (Database) AllMenus ¶
func (db Database) AllMenus() []*MenuCustom
func (Database) AllNodeTypes ¶
func (Database) AllVocabularies ¶
func (db Database) AllVocabularies() []*Vocabulary
func (Database) CCKDataForNode ¶
func (db Database) CCKDataForNode(node *JoinedNodeDataBody, fields []*CCKFieldType) (map[CCKField]interface{}, error)
func (Database) GetUrlAlias ¶
func (Database) JoinedMenusForPath ¶
func (db Database) JoinedMenusForPath(path string) []*JoinedMenu
func (Database) JoinedNodeFields ¶
func (db Database) JoinedNodeFields(offset, count int) []*JoinedNodeDataBody
func (Database) JoinedTaxonomyTerms ¶
func (db Database) JoinedTaxonomyTerms(nid int32) []*JoinedTaxonomyTerm
func (Database) MenusForMlid ¶
func (db Database) MenusForMlid(mlid int32) []*JoinedMenu
type Emvideo ¶
type Emvideo struct {
VideoId, Provider string
}
func EmvideoForNodeField ¶
func EmvideoForNodeField(cckFieldType *CCKFieldType, cckFieldData map[CCKField]interface{}) (*Emvideo, error)
type EmvideoError ¶
type EmvideoError struct {
// contains filtered or unexported fields
}
func (EmvideoError) Error ¶
func (e EmvideoError) Error() string
type JoinedMenu ¶
type JoinedNodeDataBody ¶
type JoinedNodeDataBody struct { Nid int32 Vid int32 Type string Title string Published bool // column=status Created int64 Changed int64 Comment int8 Promote bool Sticky bool //Bundle string //Deleted bool //RevisionId int32 //Delta int32 BodyValue sql.NullString BodySummary sql.NullString BodyFormat sql.NullString }
func (JoinedNodeDataBody) Filename ¶
func (node JoinedNodeDataBody) Filename() string
type JoinedTaxonomyTerm ¶
type MenuCustom ¶
type Node ¶
type Vocabulary ¶
Click to show internal directories.
Click to hide internal directories.