Class kartik\tree\Module

Inheritancekartik\tree\Module » kartik\base\Module » yii\base\Module
Uses Traitskartik\base\TranslationTrait
Available since version1.0

The tree management module for Yii Framework 2.0.

Public Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$dataStructure array The configuration of additional data attributes for the tree kartik\tree\Module
$i18n array The the internalization configuration for this widget kartik\base\Module
$treeBehaviorName string The name to identify the nested set behavior name in the Tree model. kartik\tree\Module
$treeStructure array The configuration of nested set attributes structure kartik\tree\Module
$treeViewSettings array The default configuration settings for the tree view widget kartik\tree\Module
$unsetAjaxBundles array The list of asset bundles that would be unset when rendering the node detail form via ajax kartik\tree\Module

Protected Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$_msgCat string Translation message file category name for i18n kartik\base\Module

Public Methods

Hide inherited methods

MethodDescriptionDefined By
init() kartik\tree\Module
initI18N() Yii i18n messages configuration for generating translations kartik\base\TranslationTrait

Constants

Hide inherited constants

ConstantValueDescriptionDefined By
MODULE 'treemanager' kartik\tree\Module
NODE_MANAGE 'manage' kartik\tree\Module
NODE_MOVE 'move' kartik\tree\Module
NODE_REMOVE 'remove' kartik\tree\Module
NODE_SAVE 'save' kartik\tree\Module
VIEW_PART_1 1 kartik\tree\Module
VIEW_PART_2 2 kartik\tree\Module
VIEW_PART_3 3 kartik\tree\Module
VIEW_PART_4 4 kartik\tree\Module
VIEW_PART_5 5 kartik\tree\Module

Property Details

$dataStructure public property

The configuration of additional data attributes for the tree

public array $dataStructure = []
$treeBehaviorName public property

The name to identify the nested set behavior name in the Tree model. Defaults to tree.

public string $treeBehaviorName 'tree'
$treeStructure public property

The configuration of nested set attributes structure

public array $treeStructure = []
$treeViewSettings public property

The default configuration settings for the tree view widget

public array $treeViewSettings = ['nodeView' => '@kvtree/views/_form''nodeAddlViews' => [self::VIEW_PART_1 => ''self::VIEW_PART_2 => ''self::VIEW_PART_3 => ''self::VIEW_PART_4 => ''self::VIEW_PART_5 => '']]
$unsetAjaxBundles public property

The list of asset bundles that would be unset when rendering the node detail form via ajax

public array $unsetAjaxBundles = ['yii\web\YiiAsset''yii\web\JqueryAsset''yii\widgets\ActiveFormAsset''yii\validators\ValidationAsset']

Method Details

init() public method

public void init ( )