56 $this->PermitAccess =
get_package(
'permit::permit_access' ,
'last' , __FILE__ );
57 $this->PermitAlgorithms =
get_package(
'permit::permit_algorithms' ,
'last' , __FILE__ );
58 $this->Security =
get_package(
'security' ,
'last' , __FILE__ );
88 $Permit = $this->Security->get_gp(
'permit' ,
'command' );
89 $MasterType = $this->Security->get_gp(
'master_type' ,
'command' );
91 if( $this->Security->get_gp(
'ids' ,
'set' ) )
93 $MasterId = explode(
',' , $this->Security->get_gp(
'ids' ,
'string' ) );
97 $MasterId = array( $this->Security->get_gp(
'master_id' ,
'integer' ) );
100 $this->PermitAccess->set_permit_for_object( $Permit , $MasterId , $MasterType );
102 catch( Exception $e )
130 $Permit = $this->Security->get_gp(
'permit' ,
'command' );
131 $MasterType = $this->Security->get_gp(
'master_type' ,
'command' );
133 if( $this->Security->get_gp(
'ids' ,
'set' ) )
135 $MasterId = explode(
',' , $this->Security->get_gp(
'ids' ,
'string' ) );
139 $MasterId = array( $this->Security->get_gp(
'master_id' ,
'integer' ) );
142 $this->PermitAccess->delete_permit_for_object( $Permit , $MasterId , $MasterType );
144 catch( Exception $e )
172 $Permit = $this->Security->get_gp(
'permit' ,
'command' );
173 $MasterType = $this->Security->get_gp(
'master_type' ,
'command' );
175 if( $this->Security->get_gp(
'ids' ,
'set' ) )
177 $MasterId = explode(
',' , $this->Security->get_gp(
'ids' ,
'string' ) );
181 $MasterId = array( $this->Security->get_gp(
'master_id' ,
'integer' ) );
184 $this->PermitAccess->toggle_permit_for_object( $Permit , $MasterId , $MasterType );
186 catch( Exception $e )
214 $Object = $this->Security->get(
get_field( $Parameters ,
'page_name' ) ,
'command' );
216 $this->PermitAccess->delete_permits_for_page( $Object );
218 catch( Exception $e )
248 $ContextSet->add_context( dirname( __FILE__ ).
'/conf/cfcx_set_permit' );
250 $ContextSet->add_context( dirname( __FILE__ ).
'/conf/cfcx_delete_permit' );
252 $ContextSet->add_context( dirname( __FILE__ ).
'/conf/cfcx_toggle_permit' );
254 $ContextSet->execute( $Options , $this , __FILE__ );
256 catch( Exception $e )