Overview

Namespaces

  • None
  • PHP

Classes

  • Breadcrumb
  • Breadcrumbs
  • CacheFile
  • Comment
  • CommentArray
  • CommentFilter
  • CommentForm
  • CommentList
  • Config
  • Database
  • DatabaseQuery
  • DatabaseQuerySelect
  • DatabaseQuerySelectFulltext
  • DatabaseStopwords
  • Debug
  • Field
  • Fieldgroup
  • Fieldgroups
  • FieldgroupsArray
  • Fields
  • FieldsArray
  • Fieldtype
  • FieldtypeMulti
  • Fieldtypes
  • FileLog
  • FilenameArray
  • Fuel
  • HookEvent
  • ImageSizer
  • Inputfield
  • InputfieldsArray
  • InputfieldWrapper
  • Language
  • LanguageParser
  • Languages
  • LanguagesPageFieldValue
  • LanguageSupportInstall
  • LanguageTranslator
  • Markdown_Parser
  • MarkdownExtra_Parser
  • ModuleJS
  • ModulePlaceholder
  • Modules
  • Notice
  • NoticeError
  • NoticeMessage
  • Notices
  • NullPage
  • Page
  • PageArray
  • Pagefile
  • Pagefiles
  • PagefilesManager
  • PageFinder
  • Pageimage
  • Pageimages
  • PagerNav
  • PagerNavItem
  • Pages
  • PagesAccess
  • PagesSortfields
  • PagesType
  • Paths
  • Permission
  • Permissions
  • Process
  • ProcessController
  • ProcessWire
  • Role
  • Roles
  • Sanitizer
  • Selector
  • SelectorBitwiseAnd
  • SelectorContains
  • SelectorContainsLike
  • SelectorContainsWords
  • SelectorEnds
  • SelectorEqual
  • SelectorGreaterThan
  • SelectorGreaterThanEqual
  • SelectorLessThan
  • SelectorLessThanEqual
  • SelectorNotEqual
  • Selectors
  • SelectorStarts
  • Session
  • SessionCSRF
  • SmartyPants_Parser
  • SmartyPantsTypographer_Parser
  • SystemUpdate1
  • Template
  • TemplateFile
  • Templates
  • TemplatesArray
  • Textformatter
  • Textile
  • User
  • Users
  • Wire
  • WireArray
  • WireData
  • WireInput
  • WireInputData
  • WireSaveableItems
  • WireSaveableItemsLookup
  • WireUpload

Interfaces

  • CommentFormInterface
  • CommentListInterface
  • ConfigurableModule
  • FieldtypeLanguageInterface
  • FieldtypePageTitleCompatible
  • HasLookupItems
  • HasRoles
  • InputfieldHasArrayValue
  • Module
  • Saveable
  • TrackChanges

Exceptions

  • ProcessController404Exception
  • ProcessControllerPermissionException
  • Wire404Exception
  • WireDatabaseException
  • WireException
  • WirePermissionException

Functions

  • __
  • _n
  • _x
  • fuel
  • identify_modifier_markdown
  • Markdown
  • mdwp_add_p
  • mdwp_hide_tags
  • mdwp_show_tags
  • mdwp_strip_p
  • ProcessWireClassLoader
  • ProcessWireHostSiteConfig
  • ProcessWireShutdown
  • removeNewlines
  • SmartDashes
  • SmartEllipsis
  • SmartQuotes
  • smarty_modifier_markdown
  • smarty_modifier_smartypants
  • SmartyPants
  • tabIndent
  • unregisterGLOBALS
  • wire
  • wireDecodeJSON
  • wireEncodeJSON
  • wireMkdir
  • Overview
  • Namespace
  • Class
  • Tree
  • Download

Class Fieldgroups

Maintains collection of all fieldgroups

Wire implements TrackChanges
Extended by WireSaveableItems implements IteratorAggregate
Extended by WireSaveableItemsLookup
Extended by Fieldgroups
Located at core/Fieldgroups.php
Methods summary
public
# init( )
protected DatabaseQuerySelect
# getLoadQuery( WireArray $selectors = null )

Get the DatabaseQuerySelect to perform the load operation of items

Get the DatabaseQuerySelect to perform the load operation of items

Parameters

$selectors
WireArray
$items

Returns

DatabaseQuerySelect
protected WireArray
# ___load( WireArray $items, $selectors = null )

Load all the Fieldgroups from the database

Load all the Fieldgroups from the database

The loading is delegated to WireSaveableItems. After loaded, we check for any 'global' fields and add them to the Fieldgroup, if not already there.

Parameters

$items
Selectors|string|null
$selectors Selectors or a selector string to find, or NULL to load all.
$selectors

Returns

WireArray
Returns the same type as specified in the getAll() method.
public
# getAll( )

Per WireSaveableItems interface, return all available Fieldgroup instances

Per WireSaveableItems interface, return all available Fieldgroup instances

public
# makeBlankItem( )

Per WireSaveableItems interface, create a blank instance of a Fieldgroup

Per WireSaveableItems interface, create a blank instance of a Fieldgroup

public
# getTable( )

Per WireSaveableItems interface, return the name of the table that Fieldgroup instances are stored in

Per WireSaveableItems interface, return the name of the table that Fieldgroup instances are stored in

public
# getLookupTable( )

Per WireSaveableItemsLookup interface, return the name of the table that Fields are linked to Fieldgroups

Per WireSaveableItemsLookup interface, return the name of the table that Fields are linked to Fieldgroups

public integer
# getNumTemplates( Fieldgroup $fieldgroup )

Get the number of templates using the given fieldgroup.

Get the number of templates using the given fieldgroup.

Primarily used to determine if the Fieldgroup is deleteable.

Parameters

$fieldgroup
Fieldgroup

Returns

integer
public TemplatesArray
# getTemplates( Fieldgroup $fieldgroup )

Given a Fieldgroup, return a TemplatesArray of all templates using the Fieldgroup

Given a Fieldgroup, return a TemplatesArray of all templates using the Fieldgroup

Parameters

$fieldgroup
Fieldgroup

Returns

TemplatesArray
public boolean
# ___save( Saveable $item )

Save the Fieldgroup to DB

Save the Fieldgroup to DB

If fields were removed from the Fieldgroup, then track them down and remove them from the associated field_* tables

Parameters

$item
Saveable
Fieldgroup to save

Returns

boolean
True on success, false on failure
public Fieldgroups
# ___delete( Saveable $item )

Delete the given fieldgroup from the database

Delete the given fieldgroup from the database

Also deletes the references in fieldgroups_fields table

Parameters

$item
Fieldgroup
$fieldgroup

Returns

Fieldgroups
$this
public boolean
# deleteField( Field $field )

Delete the entries in fieldgroups_fields for the given Field

Delete the entries in fieldgroups_fields for the given Field

Parameters

$field
Field

Returns

boolean
Methods inherited from WireSaveableItemsLookup
getLookupField(), saveItemKey()
Methods inherited from WireSaveableItems
___clone(), ___find(), __get(), __isset(), decodeData(), encodeData(), get(), getIterator(), getLoadQuerySelectors(), getSort(), has(), useFuel()
Methods inherited from Wire
_(), ___changed(), __call(), __toString(), _n(), _x(), addHook(), addHookAfter(), addHookBefore(), addHookProperty(), className(), error(), fuel(), getAllFuel(), getChanges(), getFuel(), getHooks(), isChanged(), isHooked(), message(), removeHook(), resetTrackChanges(), runHooks(), setFuel(), setTrackChanges(), trackChange(), trackChanges(), untrackChange()
Properties summary
protected $fieldgroupsArray
#

Instances of FieldgroupsArray

Instances of FieldgroupsArray

Properties inherited from Wire
$changes, $defaultHookOptions, $fuel, $hookMethodCache, $localHooks, $staticHooks, $trackChanges, $useFuel
ProcessWire API documentation generated by ApiGen 2.6.0