MS_Addon_Redirect_Model

Redirect settings model.

Defined (1)

The class is defined in the following location(s).

/app/addon/redirect/class-ms-addon-redirect-model.php  
  1. class MS_Addon_Redirect_Model extends MS_Model_Settings { 
  2.  
  3. /** 
  4. * Group name of the custom settings 
  5. * @since 1.0.0 
  6. * @type string 
  7. */ 
  8. const GROUP = 'redirect'; 
  9.  
  10. /** 
  11. * Return current value of an addon setting 
  12. * @since 1.0.0 
  13. * @param string $key 
  14. * @return string 
  15. */ 
  16. public function get( $key ) { 
  17. return $this->get_custom_setting( self::GROUP, $key ); 
  18.  
  19. /** 
  20. * Change a setting of the addon 
  21. * @since 1.0.0 
  22. * @param string $key 
  23. * @param string $value 
  24. */ 
  25. public function set( $key, $value ) { 
  26. return $this->set_custom_setting( self::GROUP, $key, $value ); 
  27.