NAME
ePortal::PageSection - definition for a section of PageView.
SYNOPSIS
ePortal::PageSection used to store information about available sections for PageView.
METHODS
ComponentNames()
Returns arrayref of filenames of available components in PageView's sections directory (default is /pv/sections/*.mc)
LoadDefaults($component_filename)
Loads default values for all attributes of the section from on-disk mason component when creating new PageSection. Default values specified as mason attributes
<%attr>
def_title => "Component title"
def_width => "W"
def_params => "default parameters"
def_url => "http://www.server/
def_memo => "this is some memo of the section"
</%attr>
content($section)
Loads specific Mason component and produces HTML content for a section.
section is ePortal::UserSection object. The function need it because it may keep some settings in SetupInfo private attribute.
Returns HTML text
Setupable()
Check is the section has setup method? Availability of setup method checking via section's component. The component must have a method "Setup".
Returns: Boolean
delete()
Overloaded function. Also deletes linked UserSection objects.
AUTHOR
Sergey Rusakov, <rusakov_sa@users.sourceforge.net>