Class kartik\tree\models\Tree
Inheritance | kartik\tree\models\Tree » yii\db\ActiveRecord |
---|---|
Uses Traits | kartik\tree\models\TreeTrait |
Subclasses | dmstr\modules\pages\models\Tree |
This is the base model class for the nested set tree structure
Public Properties
Property | Type | Description | Defined 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 |
Public Methods
Protected Methods
Method | Description | Defined 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
Whether to HTML encode the tree node names. Defaults to true
.
Activation errors for the node
Node removal errors
Whether to HTML purify the tree node icon content before saving.
Defaults to true
.
The classname for the TreeQuery that implements the NestedSetQueryBehavior.
If not set this will default to kartik\tree\models\TreeQuery
.