Class ComponentSet
This is a special kind of DataObjectSet used to represent the items linked to in a 1-many or many-many join. It provides add and remove methods that will update the database.
- Object
-
ViewableData
implements
IteratorAggregate
-
DataObjectSet
implements
IteratorAggregate,
Countable
-
ComponentSet
Direct known subclasses
Methods summary
public
|
#
setComponentInfo( string $type,
Set the ComponentSet specific information. |
public
array
|
|
public
array
|
|
public
|
|
protected
|
#
loadChildIntoDatabase(
Method to save many-many join data into the database for the given $item. Used by add() and write(). |
public
|
|
public
|
#
setByIDList( array $idList )
Sets the ComponentSet to be the given ID list. Records will be added and deleted as appropriate. |
public
|
|
public
|
|
public
|
|
public
|
|
public
string
|
Methods inherited from DataObjectSet
Count(),
CurrentPage(),
First(),
FirstItem(),
GroupedBy(),
Last(),
LastItem(),
MoreThanOnePage(),
NextLink(),
NotFirstPage(),
NotLastPage(),
Pages(),
PaginationSummary(),
PrevLink(),
TotalItems(),
TotalPages(),
UL(),
__construct(),
addWithoutWrite(),
buildNestedUL(),
column(),
containsIDs(),
destroy(),
emptyItems(),
exists(),
find(),
forTemplate(),
getChildrenAsUL(),
getIterator(),
getPageLimits(),
getRange(),
groupBy(),
groupWithParents(),
hasValue(),
insertFirst(),
map(),
merge(),
onlyContainsIDs(),
parseQueryLimit(),
pop(),
push(),
removeDuplicates(),
replace(),
setPageLength(),
setPageLimits(),
setPaginationGetVar(),
shift(),
sort(),
toArray(),
toDropDownMap(),
toNestedArray(),
unshift()
Methods inherited from ViewableData
ATT_val(),
BaseHref(),
CSSClasses(),
ColumnBreak(),
ColumnCalc(),
ColumnNumber(),
ColumnPad(),
ColumnPos(),
CurrentMember(),
Debug(),
Even(),
EvenOdd(),
FirstLast(),
HasPerm(),
IsAjax(),
JS_val(),
Me(),
Middle(),
MiddleString(),
Modulus(),
MultipleOf(),
Odd(),
Pos(),
RAW_val(),
SQL_val(),
ThemeDir(),
ThemeName(),
Top(),
XML_val(),
__get(),
__isset(),
__set(),
buildCastingCache(),
cachedCall(),
castingClass(),
castingHelper(),
castingHelperPair(),
castingObjectCreator(),
castingObjectCreatorPair(),
customise(),
defineMethods(),
escapeTypeForField(),
getField(),
getSecurityID(),
getXMLValues(),
hasField(),
i18nLocale(),
iteratorProperties(),
obj(),
renderWith(),
setCustomisedObj(),
setField()
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()
Methods inherited from Countable
Magic methods summary
Properties summary
protected
string
|
$type |
#
Type of relationship (eg '1-1', '1-many'). |
protected
|
$ownerObj |
#
Object that owns this set. |
protected
string
|
$ownerClass |
#
Class of object that owns this set. |
protected
string
|
$tableName |
#
Table that holds this relationship. |
protected
string
|
$childClass |
#
Class of child side of the relationship. |
protected
string
|
$joinField |
#
Field to join on. |
Properties inherited from DataObjectSet
$current,
$first,
$items,
$last,
$odd,
$pageLength,
$pageStart,
$paginationGetVar,
$totalSize
Properties inherited from ViewableData
$casting,
$customisedObject,
$default_cast,
$failover,
$iteratorPos,
$iteratorTotalItems