public function actions()
 {
     return ['getTree' => ['class' => AdjacencyFullTreeDataAction::className(), 'class_name' => Navigation::className(), 'model_label_attribute' => 'name'], 'move' => ['class' => TreeNodeMoveAction::className(), 'className' => Navigation::className()], 'reorder' => ['class' => TreeNodesReorderAction::className(), 'className' => Navigation::className()], 'addImage' => ['class' => AddImageAction::className()], 'upload' => ['class' => UploadAction::className()], 'remove' => ['class' => RemoveAction::className()], 'save-info' => ['class' => SaveInfoAction::className()]];
 }
示例#2
0
 public function actions()
 {
     return ['getTree' => ['class' => AdjacencyFullTreeDataAction::className(), 'class_name' => Page::className(), 'model_label_attribute' => 'name'], 'upload' => ['class' => UploadAction::className(), 'upload' => 'theme/resources/product-images'], 'remove' => ['class' => RemoveAction::className(), 'uploadDir' => 'theme/resources/product-images'], 'save-info' => ['class' => SaveInfoAction::className()], 'property-handler' => ['class' => PropertyHandler::className(), 'modelName' => Page::className()], 'move' => ['class' => TreeNodeMoveAction::className(), 'className' => Page::className(), 'saveAttributes' => ['slug_compiled']], 'reorder' => ['class' => TreeNodesReorderAction::className(), 'className' => Page::className()]];
 }
 public function actions()
 {
     return ['getTree' => ['class' => AdjacencyFullTreeDataAction::className(), 'class_name' => Navigation::className(), 'model_label_attribute' => 'name'], 'move' => ['class' => TreeNodeMoveAction::className(), 'className' => Navigation::className()], 'reorder' => ['class' => TreeNodesReorderAction::className(), 'className' => Navigation::className()]];
 }