*/ WBClass::load('patI18n' , 'WBCache' , 'WBDatasource_KeyValuePair'); /** * Key-Value-Pair List Merger * * MerĒµing strategy * * @package patTemplate * @package Modifiers * @author gERD Schaufelberger */ class WBDatasource_KeyValuePair_ListMerger extends WBStdClass { /** * Key Value Pairs * @var WBDatasource_KeyValuePair */ protected $kvp; /** * Set Key Value Pairs * @param WBDatasource_KeyValuePair */ public function setKeyValuePair($kvp) { $this->kvp = $kvp; } /** * Get List * * Params may accept "parent" as parent id * * @param string|array $id * @param array $params * @return array */ public function get($id, $params = array()) { if (!is_array($id)) { $id = array($id); } return $this->kvp->get($id, true); } }