View Class Reference

Inheritance diagram for View:
AboutView AccessFailureAjaxView AccessFailureView AccountOrgChartModalView ActionRowForWorkflowComponentView AddressMapModalView AjaxPageView AttributeRowForWizardModelComponentView AttributesRedirectToContactsView BreadCrumbView CalendarListView CheckServicesView CommentsForRelatedModelView ConfigurationView DetailsPortletSelectionView DynamicSearchRowView EmailMessageRecipientRowForWorkflowComponentView EmailMessageRowForWorkflowComponentView ErrorView FlashMessageView FooterView FullCalendarForCombinedView GameCoinContainerView GlobalMarketingFooterFooterConfigurationPreviewView GlobalSearchView GridView HeaderLinksView HeaderView HomeDashboardPortletSelectionView HomeView ImportWizardMappingExtraColumnView InstallAccessFailureView InstallAdditionalCheckServicesView InstallCompleteView InstallDemoDataView InstallView InstallWelcomeView IntroView LoginView MapPortletAddressView MenuUserInterfaceDemoView MenuView MergeTagGuideView MergeTagsView MetadataView MetadataViewEditView MixedModelsSearchAndListView MixedModelsSearchView ModalContainerView ModalGameNotificationContainerView ModalView ModelNotFoundView NoGlobalEmailConfigurationYetView NoMeetingsYetView NoPortletsToPlaceView NoUserEmailConfigurationYetView NullView PageView PortletRefreshView ProcessView ProgressView QueueJobView RecentlyViewedView ReportChartView ReportResultsGridView ReportResultsSQLView RunJobView ShortcutsCreateMenuView SplashView StandardUserInterfaceDemoView TaskCheckListItemsForTaskView TestConnectionView TitleBarView UnsupportedBrowserView UpgradeStartCompleteView UpgradeStepOneCompleteView UpgradeStepTwoCompleteView UserGameDashboardView UserInterfaceChooserView ViewIsMissingRequiredAttributesView WelcomeView WizardModelRelationsAndAttributesTreeView WizardView ZurmoDefaultView

Public Member Functions

 isUniqueToAPage ()
 render ()
 setCssClasses (array $classes)
 getCssClasses ()
 getTitle ()

Protected Member Functions

 resolveDefaultClasses ()
 renderContainerWrapperId ()
 getContainerWrapperTag ()
 getId ()
 renderContent ()
 getViewStyle ()
 renderTitleContent ()

Protected Attributes

 $cssClasses = array()
 $title
 $makeDefaultClassesFromClassHeirarchy = true

Detailed Description

Base class for all views. A view is something that knows how to render itself for display within an XHtml page. Views are arranged in a hierarchy of views within views and when the top level view is asked to render itself it renders the entire hierarchy.

Definition at line 43 of file View.php.


Member Function Documentation

isUniqueToAPage (  ) 

Tells View that it can render the extending class' divs with and id matching their name. Must be overridden to return false in extending classes that can be rendered multiple times within a page to avoid generating a page with non-unique ids which will fail XHtml validation. For those it will render a class attribute with their name.

Reimplemented in ActionBarAndListView, ActionBarSearchAndListView, AjaxPageView, CalendarView, ConfigurationView, FlashMessageView, GridView, InlineEditView, ModalConfigEditView, ModalContainerView, MyListView, NullView, RelatedListView, TitleBarView, AccountDetailsAndRelationsView, LatestActivitiesListView, AutorespondersListView, CampaignDetailsAndRelationsView, CommentsForRelatedModelView, ConfigureModulesView, AnyContactSelectForEmailMatchingView, ContactDetailsAndRelationsView, ContactInlineCreateForArchivedEmailCreateView, ActionBarAndAttributeEditView, ActionBarAndModuleEditableMetadataCollectionView, ActionBarAndModuleEditView, ActionBarForDesignerModuleView, AttributeEditView, AttributesCollectionView, DesignerPageMenuView, MetadataViewEditView, ModuleEditableMetadataCollectionView, ModuleEditView, StandardAndCustomAttributesListView, TitleBarAndDesignerPageMenuView, ArchivedEmailMatchingView, EmailConfigurationListView, EmailTemplateWizardTypesGridView, MergeTagsView, GameRewardDetailsAndRelationsView, GameCoinContainerView, LeaderboardActionBarAndListView, LeaderboardListView, ModalGameNotificationContainerView, TitleBarAndLeaderboardView, UserGameDashboardView, HomeDashboardView, IframePortletView, ImportWizardView, JobsCollectionView, AttributesRedirectToContactsView, LeadConvertView, LeadDetailsAndRelationsView, LeadsModuleAttributesListView, AddressMapModalView, MapPortletAddressView, MarketingDashboardView, MarketingListDetailsAndRelationsView, MarketingListMembersListView, MarketingListsManageSubscriptionsListView, DaysMeetingsFromCalendarModalListView, MissionsPortletListView, OpportunityDetailsAndRelationsView, ProductCategoriesActionBarAndTreeListView, ProjectsDashboardView, DashboardReportChartForPortletView, ReportDetailsAndResultsView, ReportWizardTypesGridView, SummationDrillDownReportResultsGridView, RssReaderView, SocialItemsListView, TaskCheckListItemsForTaskView, ActionBarForUserEditAndDetailsView, UserDetailsAndRelationsView, UserGroupMembershipView, WorkflowWizardTypesGridView, ActionBarAndZeroModelsYetView, AuthenticationConfigurationListView, BreadCrumbView, ChartView, ComponentForWizardModelView, CurrenciesCollectionView, DevelopmentListView, LanguagesCollectionView, ModalSearchAndListView, ModelRelationsSecuredPortletFrameView, PluginsConfigurationListView, SearchAndListView, ActionBarForGroupEditAndDetailsView, GroupsActionBarAndTreeListView, GroupUserMembershipEditView, ModulePermissionsEditAndDetailsView, PoliciesEditAndDetailsView, RightsEditAndDetailsView, RolesActionBarAndTreeListView, RolesTitleBarAndTreeView, StepsAndProgressBarForWizardView, TitleBarAndListView, WizardModelRelationsAndAttributesTreeView, and WizardView.

Definition at line 66 of file View.php.

render (  ) 

Renders a div element with a id or class attribute set to the type of the view, (depending on the value returned by isUniqueToAPage()), and containing the content of any matching template found in the themes/<themename>/ directory if it exists, marked by begin/end comments, and the content of the view rendered by renderContent(). All are correctly indented by indent().

If the template does not exist in the active theme folder, it will attempt to locate the file in the themes/default/templates folder and include it if it exists.

Reimplemented in AjaxPageView, ModalView, PageView, PortletRefreshView, ImportMappingRuleAjaxPageView, ImportWizardMappingExtraColumnView, ActionRowForWorkflowComponentView, EmailMessageRecipientRowForWorkflowComponentView, EmailMessageRowForWorkflowComponentView, AttributeRowForWizardModelComponentView, GlobalSearchView, DynamicSearchRowView, AccessFailureAjaxView, ShortcutsCreateMenuView, and ZurmoExternalDefaultPageView.

Definition at line 83 of file View.php.

getId (  )  [protected]
Returns:
id of view if UniqueToAPage is false. Override if you want to pass an id in.

Reimplemented in CommentsForRelatedModelView, DashboardReportChartForPortletView, TaskCheckListItemsForTaskView, and MobileHeaderView.

Definition at line 159 of file View.php.

renderContent (  )  [abstract, protected]

Renders the view content.

Reimplemented in TestCompleteSequentialProcessView, ActionBarForSearchAndListView, AjaxPageView, CalendarView, ConfigurationView, ContainedViewCompleteSequentialProcessView, DetailsPortletSelectionView, DetailsView, EditAndDetailsView, EditView, FlashMessageView, GridView, InlineEditView, ListView, MassActionView, ModalConfigEditView, ModalContainerView, ModalView, NoPortletsToPlaceView, NullView, PageView, PortletFrameView, PortletRefreshView, ProgressView, SearchView, SequentialProcessContainerView, SequentialProcessView, TitleBarView, AccountOrgChartModalView, AccountSelectView, LatestActivitiesForPortletView, LatestActivitiesListView, AutorespondersListView, CalendarItemsListView, CalendarListView, CombinedCalendarView, FullCalendarForCombinedView, SavedCalendarFiltersForReportWizardView, CampaignDetailsOverlayView, CampaignDetailsView, CampaignEditView, CampaignItemsRelatedListView, CampaignOverallMetricsView, CommentsForRelatedModelView, ConfigureModulesMenuView, DiagnosticCheckServicesView, AnyContactSelectForEmailMatchingView, ContactEditAndDetailsView, ConversationDetailsView, ActionBarForDesignerModuleView, AttributesCollectionView, DesignerPageMenuView, MetadataViewEditView, ModuleEditableMetadataCollectionView, ArchivedEmailMatchingView, NoGlobalEmailConfigurationYetView, NoUserEmailConfigurationYetView, MergeTagGuideView, MergeTagsView, GameCoinContainerView, ModalGameNotificationContainerView, UserBadgesForPortletView, UserGameDashboardView, UserGamificationStatisticsForPortletView, UserLeaderboardRankingForPortletView, DashboardView, HomeDashboardPortletSelectionView, HomeView, IframePortletView, WelcomeView, ImportSequentialProcessContainerView, ImportTempTableListView, ImportWizardMappingExtraColumnView, CheckServicesView, InstallAccessFailureView, InstallAdditionalCheckServicesView, InstallCompleteView, InstallDemoDataView, InstallPageView, InstallSettingsView, InstallView, InstallWelcomeView, UpgradeStartCompleteView, UpgradeStepOneCompleteView, UpgradeStepTwoCompleteView, JobsCollectionView, QueueJobView, RunJobView, AttributesRedirectToContactsView, LeadConvertAccountSkipView, LeadConvertView, AddressMapModalView, MapPortletAddressView, GlobalMarketingFooterFooterConfigurationPreviewView, MarketingDashboardView, MarketingMetricsView, MarketingOverallMetricsView, MarketingListDetailsOverlayView, MarketingListDetailsView, MarketingListMembersListView, MarketingListMembersPortletView, MarketingListOverallMetricsView, MarketingListsManageSubscriptionsListView, MashableInboxActionBarForViews, DaysMeetingsFromCalendarModalListView, NoMeetingsYetView, MissionsPortletListView, MyMissionsForPortletView, OpportunitiesBySourceChartView, OpportunitiesByStageChartView, ProductsRelatedListView, ProductCategoriesModalTreeListView, ProductCategoriesTreeListView, ActiveProjectsListView, ProjectsActivityFeedPortletView, ProjectsDashboardView, ProjectsFeedListView, ZeroTasksForRelatedModelYetView, DashboardReportChartForPortletView, ReportChartForPortletView, ReportChartView, ReportDetailsView, ReportResultsGridForPortletView, ReportResultsGridView, ReportResultsSQLView, ReportSQLForPortletView, RuntimeFiltersForPortletView, RssReaderView, SocialItemsForPortletView, SocialItemsListView, AccountDetailsOverlayView, ContactDetailsOverlayView, OpportunityDetailsOverlayView, ProjectDetailsOverlayView, TaskCheckListItemsForTaskView, TaskRelatedDetailsOverlayView, TasksForRelatedKanbanView, TaskModalDetailsView, TasksListView, ActionBarForUserEditAndDetailsView, UserGroupMembershipView, ActionRowForWorkflowComponentView, EmailMessageRecipientRowForWorkflowComponentView, EmailMessageRowForWorkflowComponentView, WorkflowManageOrderListView, WorkflowManageOrderView, AboutView, AttributeRowForWizardModelComponentView, BreadCrumbView, ComponentForWizardModelView, ConfigurableDetailsAndRelationsView, CurrenciesCollectionView, MenuUserInterfaceDemoView, StandardUserInterfaceDemoView, DetailsAndRelationsView, ErrorView, FooterView, GlobalSearchView, HeaderLinksView, HeaderView, InlineEditForPortletView, IntroView, LanguagesCollectionView, LoginView, MenuView, ModelNotFoundView, ModelRelationsSecuredPortletFrameView, ModelsToMergeListAndChartView, RecentlyViewedView, DynamicSearchRowView, MixedModelsSearchAndListView, MixedModelsSearchView, AccessFailureAjaxView, AccessFailureView, ActionBarForGroupEditAndDetailsView, ActionBarForSecurityTreeListView, GroupsModalTreeListView, GroupsTreeListView, RolesModalTreeListView, RolesTreeListView, ShortcutsCreateMenuView, SplashView, StepsAndProgressBarForWizardView, StickyDetailsAndRelationsBreadCrumbView, TestConnectionView, UnsupportedBrowserView, UserInterfaceChooserView, ViewIsMissingRequiredAttributesView, WizardModelRelationsAndAttributesTreeView, WizardTypeView, WizardView, ZeroModelsYetView, ZurmoDefaultView, and ZurmoExternalDefaultView.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Fri Jul 25 07:10:31 2014