88use wcf \system \category \CategoryHandler ;
99use wcf \system \exception \InvalidObjectTypeException ;
1010use wcf \system \exception \PermissionDeniedException ;
11- use wcf \system \user \collapsible \content \UserCollapsibleContentHandler ;
1211use wcf \system \WCF ;
1312
1413/**
@@ -33,18 +32,6 @@ abstract class AbstractCategoryListPage extends AbstractPage
3332 */
3433 public $ categoryNodeTree ;
3534
36- /**
37- * ids of collapsed categories
38- * @var int[]
39- */
40- public $ collapsedCategoryIDs ;
41-
42- /**
43- * id of the collapsible category object type
44- * @var int
45- */
46- public $ collapsibleObjectTypeID = 0 ;
47-
4835 /**
4936 * name of the controller used to edit categories
5037 * @var string
@@ -103,8 +90,6 @@ public function assignVariables()
10390 WCF ::getTPL ()->assign ([
10491 'addController ' => $ this ->addController ,
10592 'categoryNodeList ' => $ this ->categoryNodeTree ->getIterator (),
106- 'collapsedCategoryIDs ' => $ this ->collapsedCategoryIDs ,
107- 'collapsibleObjectTypeID ' => $ this ->collapsibleObjectTypeID ,
10893 'editController ' => $ this ->editController ,
10994 'objectType ' => $ this ->objectType ,
11095 ]);
@@ -151,23 +136,6 @@ public function readData()
151136
152137 $ this ->readCategories ();
153138
154- // note that the implementation of wcf\system\category\ICategoryType
155- // needs to support a object type of the pseudo definition
156- // 'com.woltlab.wcf.collapsibleContent.acp' which has to be registered
157- // during package installation as a 'com.woltlab.wcf.collapsibleContent'
158- // object type if you want to support collapsible categories in the
159- // acp; the pseudo object type is used to distinguish between
160- // collapsible categories in the frontend and the acp
161- $ collapsibleObjectTypeName = $ this ->objectType ->getProcessor ()->getObjectTypeName ('com.woltlab.wcf.collapsibleContent.acp ' );
162- if ($ collapsibleObjectTypeName ) {
163- $ this ->collapsibleObjectTypeID = UserCollapsibleContentHandler::getInstance ()->getObjectTypeID ($ collapsibleObjectTypeName );
164- // get ids of collapsed category
165- if ($ this ->collapsibleObjectTypeID !== null ) {
166- $ this ->collapsedCategoryIDs = UserCollapsibleContentHandler::getInstance ()->getCollapsedContent ($ this ->collapsibleObjectTypeID );
167- $ this ->collapsedCategoryIDs = \array_flip ($ this ->collapsedCategoryIDs );
168- }
169- }
170-
171139 parent ::readData ();
172140 }
173141}
0 commit comments