KWeb  6.4
KWebCollection_Links Class Reference

Links (KWebObjectLinks) read from another data source. More...

Inheritance diagram for KWebCollection_Links:
KWebCollection_Objects Collection_Outer Collection

Public Member Functions

 __construct (Collection $collection, $objectIdField, array $options=array())
 prefetch ($limit=false, $start=false)
 Items will be prefetched (if needed) in a batch for later retrieval.

Static Public Member Functions

static createFromLinkIds (array $data, array $options=array(), $objectIdField=false)

Detailed Description

Links (KWebObjectLinks) read from another data source.

Prefetch prefetches KWebLink and link's target and parent KWebItems


Constructor & Destructor Documentation

KWebCollection_Links::__construct ( Collection collection,
objectIdField,
array $  options = array() 
)
Parameters:
$dataSource of the data
$objectGenreOrFieldObjects genre, or data field containing the genre prefixed with '.'
$objectIdFieldData field containing the object id or name

Member Function Documentation

static KWebCollection_Links::createFromLinkIds ( array $  data,
array $  options = array(),
objectIdField = false 
) [static]
KWebCollection_Links::prefetch ( limit = false,
start = false 
)

Items will be prefetched (if needed) in a batch for later retrieval.

Parameters:
Numberof items to prefetch or false
Startof the prefetch or false for current position
Returns:
boolean TRUE if prefetch was successfull, FALSE if prefetch can't be supported

Reimplemented from KWebCollection_Objects.


The documentation for this class was generated from the following file: