コード例 #1
0
ファイル: one_tbd.php プロジェクト: pdelbar/onethree
 public function loadAll(&$storeName, $sql, $className = 'stdClass')
 {
     $store = One_Repository::getStore($storeName);
     $result = $store->loadAll($sql, $className);
     return $result;
 }
コード例 #2
0
ファイル: xml.php プロジェクト: pdelbar/onethree
 /**
  * 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;
 }