SproutCMS

This is the code documentation for the SproutCMS project

class ColModifierHexIP

Converts a hex-packed IP back into readable form

Packing:
  bin2hex(inet_pton($ip))

Unpacking:
  Use this ColModifier

Extending this class

<?php
/**
* New class description goes here
* 
* @author Your Name, 2024-04-19
**/
class NewClassName extends ColModifierHexIP {
    
    /**
    * Modify a column value
    * This value will be html/csv/etc encoded afterwards.
    **/
    public function modify (string $val, string $field_name) {
        // Method code goes here
    }
    
}
?>