|
|
@@ -243,9 +243,9 @@ class AntAclBase extends Core_AclBase {
|
|
|
$instanceTable = ACL::getInstanceTable($this->_namespace);
|
|
|
$sqlPrimaryKey = $this->getSqlPrimaryKeyField();
|
|
|
return DB::getPDO()->fetchValue(" -- getTotal({$this->_namespace})
|
|
|
- select count(1)
|
|
|
- from `{$this->_rootTableName}` t
|
|
|
- join `{$instanceTable}` i on(i.pk = t.{$sqlPrimaryKey} and i.idInstance = {$idInstance})
|
|
|
+ select count(1)
|
|
|
+ from `{$this->_rootTableName}` t
|
|
|
+ join `{$instanceTable}` i on(i.pk = t.{$sqlPrimaryKey} and i.idInstance = {$idInstance})
|
|
|
");
|
|
|
}
|
|
|
public function getItems($params = []) {
|
|
|
@@ -283,6 +283,10 @@ class AntAclBase extends Core_AclBase {
|
|
|
->execute();
|
|
|
}
|
|
|
|
|
|
+ public function getItem($primaryKey, $params = []) {
|
|
|
+ return $this->buildQuery($params)->getItem($primaryKey);
|
|
|
+ }
|
|
|
+
|
|
|
public static function buildInstance($idZasob, $conf = []) {
|
|
|
static $_cache;
|
|
|
if (!$_cache) $_cache = array();
|