Webylon 3.1 API Docs
  • Package
  • Class
  • Tree
  • Deprecated
  • Download
Version: current
  • 3.2
  • 3.1

Packages

  • auth
  • Booking
  • cart
    • shipping
    • steppedcheckout
  • Catalog
  • cms
    • assets
    • batchaction
    • batchactions
    • bulkloading
    • comments
    • content
    • core
    • export
    • newsletter
    • publishers
    • reports
    • security
    • tasks
  • Dashboard
  • DataObjectManager
  • event
  • faq
  • forms
    • actions
    • core
    • fields-basic
    • fields-dataless
    • fields-datetime
    • fields-files
    • fields-formatted
    • fields-formattedinput
    • fields-relational
    • fields-structural
    • transformations
    • validators
  • googlesitemaps
  • guestbook
  • installer
  • newsletter
  • None
  • photo
    • gallery
  • PHP
  • polls
  • recaptcha
  • sapphire
    • api
    • bulkloading
    • control
    • core
    • cron
    • dev
    • email
    • fields-formattedinput
    • filesystem
    • formatters
    • forms
    • i18n
    • integration
    • misc
    • model
    • parsers
    • search
    • security
    • tasks
    • testing
    • tools
    • validation
    • view
    • widgets
  • seo
    • open
      • graph
  • sfDateTimePlugin
  • spamprotection
  • stealth
    • captha
  • subsites
  • userform
    • pagetypes
  • userforms
  • webylon
  • widgets

Classes

  • Aggregate
  • Aggregate_Relationship
  • AssetAdminQuotaExtension
  • AttachedFilesExtension
  • BookingWidget
  • CheckoutPageExchangeExtension
  • ClassInfo
  • ControllerRedirectExtension
  • CSSContentParser
  • DisableJSValidation
  • Extension
  • HtmlEditorQuotaExtension
  • ManifestBuilder
  • MobileExtension
  • Object
  • PaymentMethodAutoHide
  • ProductSearchFormExtension
  • SS_Cache
  • TokenisedRegularExpression
  • ValidationResult
  • YamlFixture

Functions

  • __autoload
  • _t
  • array_fill_keys
  • getClassFile
  • getSysTempDir
  • getTempFolder
  • increase_memory_limit_to
  • increase_time_limit_to
  • project
  • singleton
  • stripslashes_recursively
  • translate_memstring

Class Extension

Add extension that can be added to an object with Object::add_extension(). For DataObject extensions, use DataObjectDecorator. Each extension instance has an "owner" instance, accessible through Extension::getOwner(). Every object instance gets its own set of extension instances, meaning you can set parameters specific to the "owner instance" in new Extension instances.

Direct known subclasses

AddressBookProfilePageExtension, AssetAdminQuotaExtension, ControllerRedirectExtension, ControllerSubsites, CustomMenu, DataObjectDecorator, DataObjectFileTrackingDecorator, DataObjectLoggerExtension, DisableJSValidation, ExtendPageAnnouncement, ExtendPageCart, ExtendPageMember, AttachedFilesExtension, ExtendPageNews, ExtendPagePoll, ExtendPageSpecialCatalog, ExtendProfilePageOrder, GDMergeAlpha, HtmlEditorQuotaExtension, ImportCatalogMessage, LeftAndMainDecorator, LeftAndMainSubsites, MemberLoggerExtension, BookingWidget, MobileExtension, NearestEventExtention, PageHideFieldsExtension, PageInformerRates, PageInformerWeather, PaymentMethodAutoHide, PhotoAlbumExtentions, ProductSearchFormExtension, PublicationSiteTree, ShowUserFromExtension, CalendarWidgetExtention, SSNController, SteppedCheckout, SubscribeFormAllPagesExtension, WatermarkImage, CatalogBaseFiltersExtension, CheckoutPageExchangeExtension, CheckoutStep, ContactFormAddressExtension, ContentControllerSearchExtension

Indirect known subclasses

AnnouncementDecorator, AssetManagerFolder, CatalogOldFieldsDecorator, YaMoneyPaymentDecorator, YMLSiteConfig, CatalogProductLinkedDecorator, CatalogRubricsHomepageWidget_CatalogDecorator, CatalogSiteConfig, CheckoutStep_ContactDetails, CheckoutStep_Membership, CheckoutStep_PaymentMethod, CheckoutStep_ShippingMethod, CheckoutStep_Summary, ClientEmailOrderNotification, AssociatedFolderDecorator, ClientEmailOrderNotification_SiteConfig, ClientVKOrderNotification, ClientVKOrderNotification_SiteConfig, CommentsSiteConfig, CustomMenuDecorator, DataObjectSubsites, DefaultCMSActionDecorator, DocumentSiteConfig, ErrorPageSubsite, ExtendGroupDiscount, AttachedFiles, ExtendMemberCart, ExtendProductSpecialCatalog, FileDataObjectTrackingDecorator, FileImportDecorator, FileOversizeDecorator, FileSubsites, FilesystemPublisher, FindCyrillicSiteConfig, FulltextSearchable, GoogleSitemapDecorator, AuthSiteConfig, GroupSubsites, Hierarchy, ImageAutoResize, LeftAndMainQuota, ManagerEmailOrderNotification, ManagerEmailOrderNotification_SiteConfig, MemberActivation, MemberSubsites, MobileContentDecorator, NewsletterRole, BaseObjectDecorator, NewsSiteConfig, OrderHandlersDecorator, OrderItemVariationDecorator, Orders1CExchangeSiteConfig, OrdersExportDecorator, PageIcon, PageWidgets, PaymentMethodShippingDecorator, PaymentOrderExtension, PaymentSiteConfig, BookingSiteConfig, PhotoAlbumProductLinkDecorator, PhotoAlbumWidgetLinkDecorator, Product3DDecorator, ProductCatalogCatalogLinkedDecorator, ProductImportV1Decorator, ProductOldFieldsDecorator, ProductProductLinkedDecorator, ProductShippingDecorator, RatingExtension, RealtySiteConfigDecorator, CartSiteConfig, RsyncMultiHostPublisher, SberbankPaymentDecorator, SeoOpenGraphPageDecorator, SeoOpenGraphSiteConfig, ShippingMemberDecorator, ShippingMethodPaymentDecorator, ShippingOrderDecorator, ShippingSiteConfig, SimpleOrderCatalogDecorator, SimpleOrderProductDecorator, CatalogCatalogLinkedDecorator, SiteConfigDecorator, SiteConfigSubsites, SiteConfigWidgets, SiteTreeDecorator, SiteTreeImportDecorator, SiteTreeSubsites, SMSCOrderNotification, SMSCOrderNotification_SiteConfig, SMSOrderNotification, SMSOrderNotification_SiteConfig, CatalogCMSActionDecorator, SortableDataObject, SortCMSActionDecorator, StaticPublisher, SteppedCheckout_PageMessages, Translatable, Versioned, VideoSiteConfig, WatermarkSiteConfig, WebylonSiteConfig, WidgetSortCMSActionDecorator

Abstract
Package: sapphire\core
Located at sapphire/core/Extension.php

Methods summary

public
# __construct( )
public
# setOwner( Object $owner, string $ownerBaseClass = null )

Set the owner of this decorator.

Set the owner of this decorator.

Parameters

$owner
Object $owner The owner object,
$ownerBaseClass
string $ownerBaseClass The base class that the extension is applied to; this may be the class of owner, or it may be a parent. For example, if Versioned was applied to SiteTree, and then a Page object was instantiated, $owner would be a Page object, but $ownerBaseClass would be 'SiteTree'.
public
# clearOwner( )
public Object
# getOwner( )

Returns the owner of this decorator

Returns the owner of this decorator

Returns

Object
Object
public static string
# get_classname_without_arguments( string $extensionStr )

Helper method to strip eval'ed arguments from a string thats passed to Object::$extensions or Object::add_extension().

Helper method to strip eval'ed arguments from a string thats passed to Object::$extensions or Object::add_extension().

Parameters

$extensionStr
string $extensionStr E.g. "Versioned('Stage','Live')"

Returns

string
Extension classname, e.g. "Versioned"

Magic methods summary

Properties summary

public static mixed $allowed_actions
#

This is used by extensions designed to be applied to controllers. It works the same way as Controller::$allowed_actions.

This is used by extensions designed to be applied to controllers. It works the same way as Controller::$allowed_actions.

protected DataObject $owner
#

The DataObject that owns this decorator.

The DataObject that owns this decorator.

protected DataObject $ownerBaseClass
#

The base class that this extension was applied to; $this->owner must be one of these

The base class that this extension was applied to; $this->owner must be one of these

public mixed $class
#
[Raise a SilverStripe Framework issue/bug](https://github.com/silverstripe/silverstripe-framework/issues/new)
- [Raise a SilverStripe CMS issue/bug](https://github.com/silverstripe/silverstripe-cms/issues/new)
- Please use the Silverstripe Forums to ask development related questions. -
Webylon 3.1 API Docs API documentation generated by ApiGen 2.8.0