Exemplo n.º 1
0
 public function loadAll(&$storeName, $sql, $className = 'stdClass')
 {
     $store = One_Repository::getStore($storeName);
     $result = $store->loadAll($sql, $className);
     return $result;
 }
Exemplo n.º 2
0
 /**
  * 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;
 }