|
@@ -36,6 +36,19 @@ class BxDolStorageQuery extends BxDolDb
|
|
|
$sQuery = "SELECT * FROM `sys_objects_storage`";
|
|
$sQuery = "SELECT * FROM `sys_objects_storage`";
|
|
|
return $oDb->getAll($sQuery);
|
|
return $oDb->getAll($sQuery);
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ static public function getAllGhosts ($aParams)
|
|
|
|
|
+ {
|
|
|
|
|
+ $oDb = BxDolDb::getInstance();
|
|
|
|
|
+ $sQuery = "SELECT * FROM `sys_storage_ghosts` WHERE 2>1 ";
|
|
|
|
|
+ if (isset($aParams['profile_id']))
|
|
|
|
|
+ $sQuery .= " AND profile_id = :profile_id";
|
|
|
|
|
+ if (isset($aParams['object']))
|
|
|
|
|
+ $sQuery .= " AND object = :object";
|
|
|
|
|
+ if (isset($aParams['content_id']))
|
|
|
|
|
+ $sQuery .= " AND content_id = :content_id";
|
|
|
|
|
+ return $oDb->getAll($sQuery, $aParams);
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
public function changeStorageEngine ($sEngine)
|
|
public function changeStorageEngine ($sEngine)
|
|
|
{
|
|
{
|