@@ -59,9 +59,7 @@ class %%CLASSNAME%% extends CommonTreeDropdown {
5959 * @param $full path or relative one (true by default)
6060 **/
6161 static function getTabsURL($full=true) {
62- $url = Toolbox::getItemTypeTabsURL(' PluginFieldsCommonDropdown' , $full );
63- $plug = isPluginItemType(get_called_class());
64- $url .= ' ?ddtype=' . strtolower($plug [' class' ]);
62+ $url = Toolbox::getItemTypeTabsURL(get_called_class(), $full );
6563 return $url ;
6664 }
6765
@@ -71,45 +69,7 @@ class %%CLASSNAME%% extends CommonTreeDropdown {
7169 * @param $full path or relative one (true by default)
7270 **/
7371 static function getSearchURL($full=true) {
74- $url = Toolbox::getItemTypeSearchURL(' PluginFieldsCommonDropdown' , $full );
75- $plug = isPluginItemType(get_called_class());
76- $url .= ' ?ddtype=' . strtolower($plug [' class' ]);
72+ $url = Toolbox::getItemTypeSearchURL(get_called_class(), $full );
7773 return $url ;
7874 }
79-
80- /**
81- * Get the form page URL for the current class
82- *
83- * @param $full path or relative one (true by default)
84- **/
85- static function getFormURL($full=true) {
86- $url = Toolbox::getItemTypeFormURL(' PluginFieldsCommonDropdown' , $full );
87- $plug = isPluginItemType(get_called_class());
88- $url .= ' ?ddtype=' . strtolower($plug [' class' ]);
89- return $url ;
90- }
91-
92- /**
93- * Get the form page URL for the current class and point to a specific ID
94- *
95- * @param $id (default 0)
96- * @param $full path or relative one (true by default)
97- *
98- * @since version 0.90
99- **/
100- static function getFormURLWithID($id=0, $full=true) {
101-
102- $link = self::getFormURL($full );
103- $link .= ' &id=' . $id ;
104- return $link ;
105- }
106-
107- /**
108- * Get default values to search engine to override
109- **/
110- static function getDefaultSearchRequest() {
111- $plug = isPluginItemType(get_called_class());
112- $search = [' addhidden' => [' ddtype' => strtolower($plug [' class' ])]];
113- return $search ;
114- }
11575}
0 commit comments