Javascript for Episerver 7.5 cms

SiteTreeModel (constructor)

Location

epi-cms/component/SiteTreeModel

Extends

Properties

_attrPairNames

Used across all instances a hash to cache attribute names and their getter and setter names.

location

profile

query

showAllLanguages

store

Methods

public inherited method _changeAttrValue ( name , value )

Internal helper for directly changing an attribute value.

Parameters

public inherited method _get ( name , names )

Private function that does a get based off a hash of names

Parameters

public method _setQuery ( q )

Updates the query of the model and raises the onItemChildrenReload event.

Parameters

public method _showAllLanguagesSetter ( value )

Parameters

public method constructor ( )


public inherited method get ( name )

Get a property on a Stateful instance.

Parameters

public method getAllLanguagesForCurrentSite ( )


public method getAllLanguagesForSite ( siteUrl )

Parameters

public method getChildren ( parentItem , onComplete )

Gets the children for the specified item. The children of a site, identified by the url, is the enabled languages for that site.

Parameters

public method getCurrentSite ( )


public method getIdentity ( item )

Gets the identity for the specified item

Parameters

public method getLabel ( item )

Gets the label for the specified item. This is the text that will be visible in the tree.

Parameters

public method getRoot ( onItem , onError )

Calls onItem with the root item for the tree, possibly a fabricated item.

Parameters

public method mayHaveChildren ( item )

Tells if an item has or may have children. Implementing logic here avoids showing +/- expando icon for nodes that we know don't have children. (For efficiency reasons we may not want to check if an element actually has children until user clicks the expando node)

Parameters

public method onItemChildrenReload ( parent )

Raised when the children of an item must be reloaded. The subscriber needs to call getChildren to get the updated children collection

Parameters

public method postscript ( )


public inherited method set ( name , value )

Set a property on a Stateful instance

Parameters

public inherited method watch ( name , callback )

Watches a property for changes

Parameters