Documentation

IJunctionModelProperties extends IPropertyConfig

Defines a model that contains a link to a parent and a link to a target.

Table of Contents

getId() Retrieve the primary key property name string
getParentId() Retrieve the parent id property name string
getTargetId() Retrieve the target id property name string
getConfig() Retrieve the config array array
getPropertyNames() Retrieve a list of property names defined via this config array
beforeSave() Called via SaveableMappingObjectFactory, and happens as part of the beforeSave event. void
afterSave() Called via SaveableMappingObjectFactory, and happens as part of the afterSave event. void

Methods

getConfig()

Retrieve the config array

public getConfig( ) : array
Return values
array

config

getPropertyNames()

Retrieve a list of property names defined via this config

public getPropertyNames( ) : array
Return values
array

names

beforeSave()

Called via SaveableMappingObjectFactory, and happens as part of the beforeSave event.

public beforeSave( $model : IModel ) : void
Parameters
$model : IModel

Model being saved

afterSave()

Called via SaveableMappingObjectFactory, and happens as part of the afterSave event.

public afterSave( $model : IModel ) : void
Parameters
$model : IModel

Model being saved

Search results