Class Section

The page object in Concrete encapsulates all the functionality used by a typical page and their contents including blocks, page metadata, page permissions.

Collection
Extended by Concrete\Core\Page\Page implements Concrete\Core\Permission\ObjectInterface
Extended by Concrete\Core\Multilingual\Page\Section\Section

Methods summary

public
public
public static
# assign( $c, $language, $country, $numPlurals = null, $pluralRule = '', $pluralCases = array() )
public
# unassign( )
public static MultilingualSection|false
# getByID( integer $cID, integer|string $cvID = 'RECENT', string $class,… )

Returns an instance of MultilingualSection for the given page ID.

public static Concrete\Core\Multilingual\Page\Section\Section|false
# getByLanguage( string $language )
public static Concrete\Core\Multilingual\Page\Section\Section|false
# getByLocale( string $locale )
public static Concrete\Core\Multilingual\Page\Section\Section
# getCurrentSection( )

Gets the MultilingualSection object for the current section of the site.

public static
public static Concrete\Core\Multilingual\Page\Section\Section
public
public
public static
public
# getLanguageText( $locale = null )
public
# getIcon( )
public
public integer
# getNumberOfPluralForms( )

Returns the number of plural forms.

public string
# getPluralsRule( )

Returns the rule to determine which plural we should use (in gettext notation).

public array
# getPluralsCases( )

Returns the plural cases for the language; array keys are the case name, array values are some examples for that case.

public static
# registerPage( $page )
public static
# unregisterPage( $page )
public static
# registerMove( $page, $oldParent, $newParent )
public static
# relatePage( $oldPage, $newPage, $locale )
public static
# isAssigned( $page )
public static
public static
# getCollectionIDForLocale( $mpRelationID, $locale )
public static
public static
# registerDuplicate( $newPage, $oldPage )
public
public static
public static
# ignorePageRelation( $page, $locale )
public static
public static
# getList( )
public integer|null
# getTranslatedPageID( $page )

Receives a page in a different language tree, and tries to return the corresponding page in the current language tree.

public Gettext\Translations
# getSectionInterfaceTranslations( boolean $untranslatedFirst = false )

Loads the translations of this multilingual section.

Methods inherited from Concrete\Core\Page\Page

__construct(), __destruct(), _associateMasterCollectionAttributes(), _associateMasterCollectionBlocks(), _duplicateAll(), _getNumChildren(), acquireAreaPermissions(), acquireAreaStylesFromDefaults(), acquirePagePermissions(), activate(), add(), addAdditionalPagePath(), addBlock(), addCollectionAlias(), addCollectionAliasExternal(), addHomePage(), addStatic(), assignPermissionSet(), assignPermissions(), canMoveCopyTo(), clearPagePaths(), clearPagePermissions(), computeCanonicalPagePath(), deactivate(), delete(), duplicate(), duplicateAll(), export(), forceCheckIn(), generatePagePath(), getAdditionalPagePaths(), getAutoGeneratedPagePathObject(), getByPath(), getCollectionCheckedOutUserID(), getCollectionCheckedOutUserName(), getCollectionChildren(), getCollectionChildrenArray(), getCollectionDatePublic(), getCollectionDatePublicObject(), getCollectionDescription(), getCollectionDisplayOrder(), getCollectionFilename(), getCollectionFullPageCaching(), getCollectionFullPageCachingLifetime(), getCollectionFullPageCachingLifetimeCustomValue(), getCollectionFullPageCachingLifetimeValue(), getCollectionHandle(), getCollectionIcon(), getCollectionInheritance(), getCollectionLink(), getCollectionName(), getCollectionParentID(), getCollectionParentIDFromChildID(), getCollectionParentIDs(), getCollectionPath(), getCollectionPathFromID(), getCollectionPathObject(), getCollectionPointerExternalLink(), getCollectionPointerID(), getCollectionPointerOriginalID(), getCollectionThemeID(), getCollectionThemeObject(), getCollectionTypeHandle(), getCollectionTypeID(), getCollectionTypeName(), getCollectionUserID(), getController(), getCurrentPage(), getCustomStyleObject(), getDrafts(), getFirstChild(), getFromRequest(), getJSONObject(), getMasterCollectionID(), getNextSubPageDisplayOrder(), getNumChildren(), getNumChildrenDirect(), getOriginalCollectionID(), getPackageHandle(), getPackageID(), getPageController(), getPageDraftTargetParentPageID(), getPageIndexContent(), getPageIndexScore(), getPagePaths(), getPageStatistics(), getPageTemplateHandle(), getPageTemplateID(), getPageTemplateObject(), getPageTypeHandle(), getPageTypeID(), getPageTypeName(), getPageTypeObject(), getPageWrapperClass(), getParentPermissionsCollectionID(), getPermissionAssignmentClassName(), getPermissionObjectIdentifier(), getPermissionsCollectionID(), getPermissionsCollectionObject(), getTotalPageViews(), hasPageThemeCustomizations(), inheritPermissionsFromDefaults(), inheritPermissionsFromParent(), isActive(), isAdminArea(), isAlias(), isArrangeMode(), isBlockAliasedFromMasterCollection(), isCheckedOut(), isCheckedOutByMe(), isEditMode(), isExternalLink(), isGeneratedCollection(), isInTrash(), isMasterCollection(), isPageDraft(), isSystemPage(), move(), movePageDisplayOrderToBottom(), movePageDisplayOrderToSibling(), movePageDisplayOrderToTop(), moveToRoot(), moveToTrash(), openCollectionPointerExternalLinkInNewWindow(), overrideTemplatePermissions(), populatePage(), populateRecursivePages(), processArrangement(), queueForDeletion(), queueForDeletionRequest(), queueForDeletionSort(), queueForDuplication(), queueForDuplicationSort(), removePermissions(), removeThisAlias(), rescanAreaPermissions(), rescanChildrenDisplayOrder(), rescanCollectionPath(), rescanSystemPageStatus(), resetAllCustomStyles(), resetCustomThemeStyles(), setCanonicalPagePath(), setController(), setCustomStyleObject(), setOverrideTemplatePermissions(), setPageDraftTargetParentPageID(), setPageIndexScore(), setPageType(), setPermissionsInheritanceToOverride(), setPermissionsInheritanceToTemplate(), setPermissionsToManualOverride(), setTheme(), update(), updateCollectionAliasExternal(), updateCollectionName(), updateDisplayOrder(), updateGroupsSubCollection(), updatePermissionsCollectionID(), writePageThemeCustomizations()

Properties summary

protected string $msCountry
#
public string $msLanguage
#
protected integer $msNumPlurals
#
protected string $msPluralRule
#
protected string[] $msPluralCases
#