KWeb  6.4
KWebSource_Data Class Reference
Inheritance diagram for KWebSource_Data:
KWebSource

Public Member Functions

 __construct ($id, $group, $attributeId=false)
 commitUpdates (KWebObject_Attributable $object, KWebAttribute_Table_Class $attributes)
 Commits remaining updates to the data source.
 fetchDataForUids ($uids, $genre, KWebAttribute_Table_Class $attributes, $languages=false, $mainLanguage=false)
 Fetches data for specified object UIDs and languages.

Data Fields

 $attributeId = false
 Attribute to store data into.
 $keyData = 'data'
 $keyTranslation = KWebObject_Translateable::DATA_TRANSLATIONS

Constructor & Destructor Documentation

KWebSource_Data::__construct ( id,
group,
attributeId = false 
)

Member Function Documentation

KWebSource_Data::commitUpdates ( KWebObject_Attributable object,
KWebAttribute_Table_Class attributes 
)

Commits remaining updates to the data source.

Returns:
boolean TRUE if any changes where found

Reimplemented from KWebSource.

KWebSource_Data::fetchDataForUids ( uids,
genre,
KWebAttribute_Table_Class attributes,
languages = false,
mainLanguage = false 
)

Fetches data for specified object UIDs and languages.

Parameters:
$objectsArray of object UIDs, or IDs
$genreDefault genre for UIDs
$languagesArray of languages to fetch or false for every language
$mainLanguageMain language - results will be sorted, with the main language as the first one
Returns:
array results as [$genre][$objectId][$lang] => array(data)

Reimplemented from KWebSource.


Field Documentation

KWebSource_Data::$attributeId = false

Attribute to store data into.

KWebSource_Data::$keyData = 'data'
KWebSource_Data::$keyTranslation = KWebObject_Translateable::DATA_TRANSLATIONS

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