Class kartik\tree\models\Tree

Inheritancekartik\tree\models\Tree » yii\db\ActiveRecord
Uses Traitskartik\tree\models\TreeTrait
Subclassesdmstr\modules\pages\models\Tree

This is the base model class for the nested set tree structure

Public Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$boolAttribs array The list of boolean value attributes kartik\tree\models\TreeTrait
$encodeNodeNames bool Whether to HTML encode the tree node names. kartik\tree\models\Tree
$falseAttribs array The default list of boolean attributes with initial value = false kartik\tree\models\TreeTrait
$nodeActivationErrors array Activation errors for the node kartik\tree\models\Tree
$nodeRemovalErrors array Node removal errors kartik\tree\models\Tree
$purifyNodeIcons bool Whether to HTML purify the tree node icon content before saving. kartik\tree\models\Tree
$treeQueryClass string The classname for the TreeQuery that implements the NestedSetQueryBehavior. kartik\tree\models\Tree

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
parse() Parses an attribute value if set - else returns the default kartik\tree\models\TreeTrait
setDefault() Sets default value of a model attribute kartik\tree\models\TreeTrait

Property Details

$encodeNodeNames public property

Whether to HTML encode the tree node names. Defaults to true.

public bool $encodeNodeNames true
$nodeActivationErrors public property

Activation errors for the node

$nodeRemovalErrors public property

Node removal errors

$purifyNodeIcons public property

Whether to HTML purify the tree node icon content before saving. Defaults to true.

public bool $purifyNodeIcons true
$treeQueryClass public static property

The classname for the TreeQuery that implements the NestedSetQueryBehavior. If not set this will default to kartik\tree\models\TreeQuery.

public static string $treeQueryClass null