Podius::FieldType - provides objects to abstract media field types
use Podius::FieldType;
my $ftype = new Podius::FieldType(Podius::FieldType::STRING, 250);
my ($type_code, $type_param, $type_is_list) = $ftype->decode;
print join(', ', $ftype->get_code_name . " ($type_code)",
$type_param, $type_is_list), "\n";
To write.
This is a list of known (as of now) type codes, they are available in Podius::FieldType namespace as constants, Podius::FieldType::STRING.
* STRING * INTEGER * BOOLEAN * CHAR * DATE * OID
In case of a list, the type code and its parameter refer to a type of the list's elements.
* type-code, integer - see Type Codes section * type-param - optional parameter (scalar or ARRAY or undef) * type-is-array, boolean - true if list, by default false
In case of a list, the type code and its parameter refer to a type of the list's elements.
* type-code, integer - see Type Codes section * type-param - optional parameter (scalar or ARRAY or undef) * type-is-list, boolean - true if list, by default false
decode.
get_code: integer get_code_name: string get_param: scalar or ARRAY or undef is_list: boolean