Text_Plain_Iptobinary
class Text_Plain_Iptobinary extends IOTransformationsPlugin (View source)
Handles the IPv4/IPv6 to binary transformation for text plain
Properties
protected bool | $success | Specifies whether transformation was successful or not. |
from IOTransformationsPlugin |
protected string | $error | To store the error message in case of failed transformations. |
from IOTransformationsPlugin |
Methods
Returns true if the element requires no wrapping
Returns passed options or default values if they were not set
Returns the html for input field to override default textarea.
Returns the array of scripts (filename) required for plugin initialization and handling
Gets the transformation description of the plugin
Does the actual work of each specific transformations plugin.
Gets the transformation name of the plugin
Gets the plugin`s MIME type
Gets the plugin`s MIME subtype
Details
bool
applyTransformationNoWrap(array $options = [])
Returns true if the element requires no wrapping
array
getOptions(array $options, array $defaults)
Returns passed options or default values if they were not set
string
getInputHtml(string $columnNameAppendix, array $options, string $value, int $fieldIndex)
Returns the html for input field to override default textarea.
Note: Return empty string if default textarea is required.
array
getScripts()
Returns the array of scripts (filename) required for plugin initialization and handling
string
getError()
Returns the error message
bool
isSuccess()
Returns the success status
void
reset()
Resets the object properties
static string
getInfo()
Gets the transformation description of the plugin
string
applyTransformation(string $buffer, array $options = [], FieldMetadata|null $meta = null)
Does the actual work of each specific transformations plugin.
static string
getName()
Gets the transformation name of the plugin
static string
getMIMEType()
Gets the plugin`s MIME type
static string
getMIMESubtype()
Gets the plugin`s MIME subtype