Class Store

Hierarchy

Index

Methods

Methods

public addModelScope(scope: any)

Parameters

  • scope: any

public addOrphanRelation(relation: any)

Parameters

  • relation: any

public addReverseRelation(relation: any)

Parameters

  • relation: any

public addSubModels(subModelTypes: RelationalModel, superModelType: RelationalModel)

Parameters

public bind(eventName: string, callback: Function, context?: any): any

Parameters

  • eventName: string
  • callback: Function
  • context?: any optional

Returns

any

public checkId(model: RelationalModel, id: any)

Parameters

public find(type: any, item: string): RelationalModel

Parameters

  • type: any
  • item: string

Returns

RelationalModel

public find(type: any, item: number): RelationalModel

Parameters

  • type: any
  • item: number

Returns

RelationalModel

public find(type: any, item: RelationalModel): RelationalModel

Parameters

Returns

RelationalModel

public find(type: any, item: any): RelationalModel

Parameters

  • type: any
  • item: any

Returns

RelationalModel

public getCollection(type: RelationalModel, create: boolean): Collection

Parameters

Returns

Collection

public getObjectByName(name: string): any

Parameters

  • name: string

Returns

any

public initializeRelation(model: any, relation: any, options: any): any

Parameters

  • model: any
  • relation: any
  • options: any

Returns

any

public listenTo(object: any, events: string, callback: Function): any

Parameters

  • object: any
  • events: string
  • callback: Function

Returns

any

public listenToOnce(object: any, events: string, callback: Function): any

Parameters

  • object: any
  • events: string
  • callback: Function

Returns

any

public off(eventName?: string, callback?: Function, context?: any): any

Parameters

  • eventName?: string optional
  • callback?: Function optional
  • context?: any optional

Returns

any

public on(eventName: string, callback?: Function, context?: any): any

Parameters

  • eventName: string
  • callback?: Function optional
  • context?: any optional

Returns

any

public once(events: string, callback: Function, context?: any): any

Parameters

  • events: string
  • callback: Function
  • context?: any optional

Returns

any

public processOrphanRelations()

public register(model: RelationalModel)

Parameters

public removeModelScope(scope: any)

Parameters

  • scope: any

public reset()

public resolveIdForItem(type: any, item: any): any

Parameters

  • type: any
  • item: any

Returns

any

public retroFitRelation(relation: RelationalModel, create: boolean): Collection

Parameters

Returns

Collection

public setupSuperModel(modelType: RelationalModel)

Parameters

public stopListening(object?: any, events?: string, callback?: Function): any

Parameters

  • object?: any optional
  • events?: string optional
  • callback?: Function optional

Returns

any

public trigger(eventName: string, args?: Array<any>): any

Parameters

  • eventName: string
  • args?: Array<any> optional

Returns

any

public unbind(eventName?: string, callback?: Function, context?: any): any

Parameters

  • eventName?: string optional
  • callback?: Function optional
  • context?: any optional

Returns

any

public unregister(model: RelationalModel, collection: Collection, options: any)

Parameters

public update(model: RelationalModel)

Parameters