67 $this->CachedMultyFS =
get_package(
'cached_multy_fs' ,
'last' , __FILE__ );
68 $this->String =
get_package(
'string' ,
'last' , __FILE__ );
100 if( $this->ControllerWasAdded ===
false )
102 $Code =
'{direct_controller:set_group=1;delete_group=1;toggle_group=1;'.
103 'package_name=permit::permit_controller}';
105 $this->ControllerWasAdded =
true;
110 catch( Exception $e )
138 private function compile_group_button( &$Settings , $Name )
142 list( $Text , $Group , $MasterId ) = $Settings->get_settings(
'text,group,master_id' );
143 $MasterType = $Settings->get_setting(
'master_type' ,
'user' );
144 $CheckBoxes = $Settings->get_setting(
'checkboxes' ,
'user' );
147 $Code .=
"{href:text=$Text;page=javascript:ultimix.permit.".$Name.
"GroupButton".
148 "( '$Group' , $MasterId , '$MasterType' , '$CheckBoxes' )}";
152 catch( Exception $e )
184 return( $this->compile_group_button( $Settings ,
'Set' ) );
186 catch( Exception $e )
218 return( $this->compile_group_button( $Settings ,
'Delete' ) );
220 catch( Exception $e )
252 return( $this->compile_group_button( $Settings ,
'Toggle' ) );
254 catch( Exception $e )