public function loadAll(&$storeName, $sql, $className = 'stdClass') { $store = One_Repository::getStore($storeName); $result = $store->loadAll($sql, $className); return $result; }
/** * Get the proper store for this connection * * @param DOMXPath $xpath * @return One_Store */ protected static function getStore(DOMXPath $xpath) { $storeAttr = $xpath->query('/connection/@type'); $store = One_Repository::getStore($storeAttr->item(0)->value); return $store; }