controllers

package
v0.0.0-...-40d0a96 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2014 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Dbm *gorp.DbMap
)

Functions

func InitDB

func InitDB()

Types

type App

type App struct {
	GorpController
}

func (App) Index

func (c App) Index() revel.Result

type Category

type Category struct {
	GorpController
}

func (Category) Add

func (c Category) Add(category models.Category) revel.Result

func (Category) Delete

func (c Category) Delete(id int) revel.Result

func (Category) Edit

func (c Category) Edit(id int) revel.Result

func (Category) Filter

func (c Category) Filter(name string, omit int) revel.Result

func (Category) GetCategories

func (c Category) GetCategories(exclusion *int) []interface{}

func (Category) Index

func (c Category) Index(page int) revel.Result

func (Category) New

func (c Category) New() revel.Result

func (Category) Update

func (c Category) Update(category models.Category) revel.Result

type GorpController

type GorpController struct {
	*revel.Controller
	Txn *gorp.Transaction
}

func (*GorpController) Begin

func (c *GorpController) Begin() revel.Result

func (*GorpController) Commit

func (c *GorpController) Commit() revel.Result

func (*GorpController) GetCount

func (c *GorpController) GetCount(table string) int

func (*GorpController) Rollback

func (c *GorpController) Rollback() revel.Result

type Language

type Language struct {
	GorpController
}

func (Language) AddLanguage

func (c Language) AddLanguage(language models.Language) revel.Result

func (Language) Delete

func (c Language) Delete(id int) revel.Result

func (Language) Edit

func (c Language) Edit(id int) revel.Result

func (Language) Index

func (c Language) Index(page int) revel.Result

func (Language) New

func (c Language) New() revel.Result

func (Language) UpdateLanguage

func (c Language) UpdateLanguage(language models.Language) revel.Result

type Quote

type Quote struct {
	GorpController
}

func (Quote) Add

func (c Quote) Add(quote models.QuoteVM) revel.Result

func (Quote) CreateGetTagStatement

func (c Quote) CreateGetTagStatement(slugs []string) string

func (Quote) CreateInsertTagStatement

func (c Quote) CreateInsertTagStatement(tags []string, slugs []string) string

func (Quote) GetLanguages

func (c Quote) GetLanguages(exclusion *int) []interface{}

func (Quote) New

func (c Quote) New() revel.Result

func (Quote) Slug

func (c Quote) Slug(tags []string) []string

type Tag

type Tag struct {
	GorpController
}

func (Tag) Filter

func (c Tag) Filter(name string) revel.Result

Jump to

Keyboard shortcuts

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