Documentation ¶
Overview ¶
Package user contains the list of administrative user for the system. All users have accesses, into a profile and even extended access based upon table records. It needs base xmodule.
Index ¶
- Constants
- func CreateStructureMaterialByData(sitecontext applications.Datasource, data xdominion.XRecordDef, ...) base.Structure
- func CreateStructureMaterialByKey(sitecontext applications.Datasource, key int, lang language.Tag) base.Structure
- func GetMaterialCompositeName(ctx *base.Datasource, quantity string, materialkey int, metrickey int, ...) string
- func Setup(ds applications.Datasource, prefix string) ([]string, error)
- func StartContext(ds applications.Datasource, ctx *context.Context) error
- func Synchronize(ds applications.Datasource, prefix string) ([]string, error)
- type StructureMaterial
- func (sm *StructureMaterial) Clone() base.Structure
- func (sm *StructureMaterial) ComplementData(sitecontext applications.Datasource)
- func (sm *StructureMaterial) GetData() *xdominion.XRecord
- func (sm *StructureMaterial) IsAuthorized(sitecontext applications.Datasource, site string, language string, ...) bool
Constants ¶
View Source
const ( MODULEID = "material" VERSION = "0.0.1" TRANSLATIONTHEME = "material" )
Variables ¶
This section is empty.
Functions ¶
func CreateStructureMaterialByData ¶
func CreateStructureMaterialByData(sitecontext applications.Datasource, data xdominion.XRecordDef, lang language.Tag) base.Structure
func CreateStructureMaterialByKey ¶
func CreateStructureMaterialByKey(sitecontext applications.Datasource, key int, lang language.Tag) base.Structure
func Setup ¶
func Setup(ds applications.Datasource, prefix string) ([]string, error)
InitModule is called during the init phase to link the module with the system adds tables and caches to ctx::database
func StartContext ¶
func StartContext(ds applications.Datasource, ctx *context.Context) error
func Synchronize ¶
func Synchronize(ds applications.Datasource, prefix string) ([]string, error)
Types ¶
type StructureMaterial ¶
func GetMaterial ¶
func GetMaterial(ctx *base.Datasource, clave int, lang language.Tag) *StructureMaterial
func (*StructureMaterial) Clone ¶
func (sm *StructureMaterial) Clone() base.Structure
Clone the whole structure
func (*StructureMaterial) ComplementData ¶
func (sm *StructureMaterial) ComplementData(sitecontext applications.Datasource)
ComplementData adds all the needed data from other objects /duplicable in the thread since the object will be destroyed at the end
func (*StructureMaterial) GetData ¶
func (sm *StructureMaterial) GetData() *xdominion.XRecord
Returns the raw data
func (*StructureMaterial) IsAuthorized ¶
func (sm *StructureMaterial) IsAuthorized(sitecontext applications.Datasource, site string, language string, device string) bool
IsAuthorized returns true if the structure can be used on this site/language/device
Click to show internal directories.
Click to hide internal directories.