Class WebylonWidget
Базовый класс для виджетов
- Object
-
ViewableData
implements
IteratorAggregate
-
DataObject
implements
DataObjectInterface,
i18nEntityProvider
-
Widget
-
WebylonWidget
Direct known subclasses
Indirect known subclasses
AdditionalMenuWidget,
AdvancedSliderHomepageWidget,
ConsultantWidget,
ContactsBlockWidget,
CurrencyWidget,
EventCalendarWidget,
FAQHomepageWidget,
FAQSidebarWidget,
FavoriteProductsSidebarWidget,
FeedbackHomepageWidget,
GuestbookWidget,
HTMLBlockHomepageWidget,
AuthFormWidget,
HTMLBlockSidebarWidget,
PageMenuWidget,
PhotoAlbumHomepageWidget,
PhotoGalleryHomepageWidget,
PhotoGalleryWidget,
PollSidebarWidget,
PriceListWidget,
PublicationWidget,
SearchWidget,
SeparateHomepageWidget,
BannerWidget,
SeparateSidebarWidget,
SliderHomepageWidget,
SpecialCatalogHomepageWidget,
SpecialCatalogSidebarWidget,
SubscribeWidget,
SubsectionMenuWidget,
TextAnonsWidget,
TextBlockHomepageWidget,
TextBlockSidebarWidget,
WeatherSidebarWidget,
ButtonsBlockHomepageWidget,
YandexMapsHomepageWidget,
YandexMapsWidget,
CallBackWidget,
CarouselHomepageWidget,
CartWidget,
CatalogFilterSidebarWidget,
CatalogRubricsHomepageWidget
Methods summary
public static
|
|
public static
|
|
public static
|
|
public static
array
|
#
get_array_localization( string $class, string $field, array $options )
Возврат локализованных значений массива по классу и полю |
public
boolean
|
|
public
boolean
|
|
public
|
#
onBeforeWrite( )
Event handler called before writing to the database. You can overload this to clean up or otherwise process data before writing it to the database. Don't forget to call parent::onBeforeWrite(), though! |
public
|
#
onBeforeDelete( )
Event handler called before deleting from the database. You can overload this to clean up or otherwise process data before delete this record. Don't forget to call parent::onBeforeDelete(), though! |
public
array|string
|
#
fieldLabels( boolean $relations = true )
Get any user defined searchable fields labels that exist. Allows overriding of default field names in the form interface actually presented to the user. |
public
|
#
getCMSFields( )
Centerpiece of every data administration interface in Silverstripe, which
returns a |
public
|
|
public
an
|
#
getCMSActions( )
need to be overload by solid dataobject, so that the customised actions of that dataobject, including that dataobject's decorator customised actions could be added to the EditForm. |
public
|
#
populateDefaults( )
Load the default values in from the self::$defaults array. Will traverse the defaults of the current class and all its parent classes. Called by the constructor when creating new records. |
public
|
|
public
|
|
public
|
|
public
|
|
public
string
|
|
public
|
|
public
|
|
public
<type>
|
#
hasContent( )
Проверка наличия в виджете содержания
|
public
(string)
|
|
public
|
Methods inherited from Widget
CMSEditor(),
ClassName(),
Description(),
DescriptionSegment(),
EditableSegment(),
EnabledTitle(),
Name(),
populateFromPostData()
Methods inherited from DataObject
Aggregate(),
RelationshipAggregate(),
__construct(),
baseTable(),
belongs_to(),
buildDataObjectSet(),
buildSQL(),
can(),
canEdit(),
canView(),
castedUpdate(),
composite_fields(),
context_obj(),
customDatabaseFields(),
custom_database_fields(),
data(),
databaseFields(),
databaseIndexes(),
database_extensions(),
database_fields(),
db(),
dbObject(),
debug(),
defaultSearchFilters(),
defineMethods(),
delete(),
delete_by_id(),
destroy(),
disableCMSFieldsExtensions(),
disable_subclass_access(),
duplicate(),
enableCMSFieldsExtensions(),
enable_subclass_access(),
exists(),
extendedSQL(),
fieldLabel(),
flushCache(),
flush_and_destroy_cache(),
forceChange(),
get(),
getAllFields(),
getChangedFields(),
getClassAncestry(),
getComponent(),
getComponents(),
getComponentsQuery(),
getDefaultSearchContext(),
getField(),
getFrontEndFields(),
getManyManyComponents(),
getManyManyComponentsQuery(),
getManyManyFilter(),
getManyManyJoin(),
getRemoteJoinField(),
getReverseAssociation(),
getTitle(),
get_by_id(),
get_one(),
get_validation_enabled(),
hasDatabaseField(),
hasField(),
hasOwnTableDatabaseField(),
hasValue(),
has_many(),
has_one(),
has_own_table(),
i18n_plural_name(),
i18n_singular_name(),
inheritedDatabaseFields(),
instance_get(),
instance_get_one(),
isChanged(),
isEmpty(),
isInDB(),
is_composite_field(),
many_many(),
many_many_extraFields(),
merge(),
newClassInstance(),
onAfterDelete(),
onAfterWrite(),
plural_name(),
provideI18nEntities(),
relObject(),
requireDefaultRecords(),
requireTable(),
reset(),
scaffoldFormFields(),
scaffoldSearchFields(),
searchableFields(),
setCastedField(),
setClassName(),
setComponent(),
setField(),
set_context_obj(),
set_validation_enabled(),
singular_name(),
summaryFields(),
toMap(),
update(),
validate(),
write(),
writeComponents(),
writeWithoutVersion()
Methods inherited from ViewableData
ATT_val(),
BaseHref(),
CSSClasses(),
ColumnBreak(),
ColumnCalc(),
ColumnNumber(),
ColumnPad(),
ColumnPos(),
CurrentMember(),
Debug(),
Even(),
EvenOdd(),
First(),
FirstLast(),
HasPerm(),
IsAjax(),
JS_val(),
Last(),
Me(),
Middle(),
MiddleString(),
Modulus(),
MultipleOf(),
Odd(),
Pos(),
RAW_val(),
SQL_val(),
ThemeDir(),
ThemeName(),
Top(),
TotalItems(),
XML_val(),
__get(),
__isset(),
__set(),
buildCastingCache(),
cachedCall(),
castingClass(),
castingHelper(),
castingHelperPair(),
castingObjectCreator(),
castingObjectCreatorPair(),
customise(),
escapeTypeForField(),
getIterator(),
getSecurityID(),
getXMLValues(),
i18nLocale(),
iteratorProperties(),
obj(),
renderWith(),
setCustomisedObj()
Methods inherited from Object
__call(),
__toString(),
__wakeup(),
addMethodsFrom(),
addStaticVars(),
addWrapperMethod(),
add_extension(),
add_static_var(),
allMethodNames(),
cacheToFile(),
cacheToFileWithArgs(),
clearCache(),
combined_static(),
create(),
createMethod(),
create_from_string(),
extInstance(),
extend(),
getCustomClass(),
getExtensionInstance(),
getExtensionInstances(),
get_extensions(),
get_static(),
hasExtension(),
hasMethod(),
has_extension(),
invokeWithExtensions(),
is_a(),
loadCache(),
parentClass(),
parse_class_spec(),
remove_extension(),
sanitiseCachename(),
saveCache(),
set_stat(),
set_static(),
set_uninherited(),
stat(),
strong_create(),
uninherited(),
uninherited_static(),
useCustomClass()
Magic methods summary
Properties summary
public static
array
|
$db |
#
Database field definitions. This is a map from field names to field type. The field type should be a class that extends . |
public static
array
|
$defaults |
#
Inserts standard column-values when a DataObject is instanciated. Does not
insert default records |
public static
array
|
$summary_fields |
#
Provides a default list of fields to be used by a 'summary' view of this object. |
public static
array
|
$searchable_fields |
#
Default list of fields that can be scaffolded by the ModelAdmin search interface. |
public static
integer
|
$max_image_width | |
public static
integer
|
$max_image_heigth |
Properties inherited from Widget
$belongs_many_many,
$cmsTitle,
$default_sort,
$description,
$has_many,
$has_one,
$many_many,
$title
Properties inherited from DataObject
$allowed_actions,
$ancestry,
$api_access,
$belongs_to,
$brokenOnDelete,
$brokenOnWrite,
$cache_get_one,
$cache_has_own_table,
$cache_has_own_table_field,
$casting,
$componentCache,
$components,
$create_table_options,
$default_records,
$destroyed,
$field_labels,
$indexes,
$many_many_extraFields,
$original,
$plural_name,
$record,
$singular_name
Properties inherited from ViewableData
$customisedObject,
$default_cast,
$failover,
$iteratorPos,
$iteratorTotalItems