Prty::ContentProcessor::Type - Basisklasse für Entitäts-Typen
Prty::Section::Object
Diese Klasse ist die Basisklasse für alle Plugin-Klassen, die im ContentProcessor mit registerType() definiert werden.
Eine Plugin-Klasse wird in folgenden Schritten definiert
Die zulässigen Abschnittsattribute werden in der Plugin-Klasse per
our @Attributs = qw/ <Liste der Attributnamen> /;
definiert.
$ent = $class->create($cop,$plg,$sec);
$ent->addSubSection($sec);
@attributes | $attributeA = $class->attributes;
$path = $ent->entityId;
@files = $ent->files;
$name = $ent->name;
Liefere den Namen der Entität. Dies ist der Wert des Attributs Name:, bereinigt um Besonderheiten:
Name:
ein Sigil am Namensanfang (z.B. @@) wird entfernt
@@
Gleichheitszeichen (=) innerhalb des Namens (z.B. bei Klassen) werden durch einen Slash (/) ersetzt
=
/
$str = $ent->pureCode;
1.097
Frank Seitz, http://fseitz.de/
Copyright (C) 2016 Frank Seitz
This code is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Prty, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Prty
CPAN shell
perl -MCPAN -e shell install Prty
For more information on module installation, please visit the detailed CPAN module installation guide.