KWeb
6.4
|
Data is stored in a registry-like structure: every key=>value pair is stored in a separate row. More...
Public Member Functions | |
__construct ($id, $group, $table=false) | |
commitUpdates (KWebObject_Attributable $object, KWebAttribute_Table_Class $attributes) | |
Commits remaining updates to the data source. | |
commitArray (KWebObject_Attributable $object, KWebAttribute_Table_Class $attributes, $data) | |
Stores data as an array. | |
commitHashmap (KWebObject_Attributable $object, KWebAttribute_Table_Class $attributes, $data, $replace) | |
Stores data as a hashmap. | |
fetchDataForUids ($uids, $genre, KWebAttribute_Table_Class $attributes, $languages=false, $mainLanguage=false) | |
Fetches data for specified object UIDs and languages. | |
Data Fields | |
$keyName | |
$keyValue | |
$removeNull = false | |
If TRUE, will remove null values from the database. |
Data is stored in a registry-like structure: every key=>value pair is stored in a separate row.
KWebSource_Sql_Registry::__construct | ( | $ | id, |
$ | group, | ||
$ | table = false |
||
) |
Reimplemented from KWebSource_Sql.
KWebSource_Sql_Registry::commitArray | ( | KWebObject_Attributable $ | object, |
KWebAttribute_Table_Class $ | attributes, | ||
$ | data | ||
) |
Stores data as an array.
$data | array( $lang => array(val, val...) ) |
KWebSource_Sql_Registry::commitHashmap | ( | KWebObject_Attributable $ | object, |
KWebAttribute_Table_Class $ | attributes, | ||
$ | data, | ||
$ | replace | ||
) |
Stores data as a hashmap.
KWebSource_Sql_Registry::commitUpdates | ( | KWebObject_Attributable $ | object, |
KWebAttribute_Table_Class $ | attributes | ||
) |
Commits remaining updates to the data source.
Reimplemented from KWebSource.
KWebSource_Sql_Registry::fetchDataForUids | ( | $ | uids, |
$ | genre, | ||
KWebAttribute_Table_Class $ | attributes, | ||
$ | languages = false , |
||
$ | mainLanguage = false |
||
) |
Fetches data for specified object UIDs and languages.
$objects | Array of object UIDs, or IDs |
$genre | Default genre for UIDs |
$languages | Array of languages to fetch or false for every language |
$mainLanguage | Main language - results will be sorted, with the main language as the first one |
Reimplemented from KWebSource.
KWebSource_Sql_Registry::$keyName |
KWebSource_Sql_Registry::$keyValue |
KWebSource_Sql_Registry::$removeNull = false |
If TRUE, will remove null values from the database.