WE_Content::Base - base class for all web.editor content implementations
use WE_Content::Base;
new WE_Content::... -string => ..., -file => ..., -object => ...
Construct with either a string, content from file or a perl object.
Clone the $self object. If $as is supplied, then the cloned object is blessed to this class.
$self
$as
Get a string either from file or from string.
Guess the WE_Content::... implementation of the data in $buf. Currently WE_Content::YAML or WE_Content::PerlDD may be returned.
WE_Content::...
$buf
WE_Content::YAML
WE_Content::PerlDD
Return the referenced content element. The path is either a string with "/" as path separator or an array reference. Leading "/" are optional.
Same as by_path, but use the dot (".") as separator.
Set the referenced (scalar) path to $new_value.
$new_value
Same as set_by_path, but use the dot (".") as separator.
Return true, if the current object is from "prototype" or "template" type.
Slaven Rezic - slaven@rezic.de
WE_Content::Tools, WE_Content::PerlDD.
To install WE::DB, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WE::DB
CPAN shell
perl -MCPAN -e shell install WE::DB
For more information on module installation, please visit the detailed CPAN module installation guide.