|
|
@@ -49,6 +49,7 @@ class TableAcl extends Core_AclBase {
|
|
|
if (empty($this->_name)) return null;// throw new Exception("Table name not defined");
|
|
|
if ($this->_rootTableName) return $this->_rootTableName;
|
|
|
if (!$this->_db) return null;// throw new Exception("Database not defined in table {$this->_zasobID}");
|
|
|
+ DBG::simpleLog('auth', "TableAcl::getRootTableName(name: '{$this->_name}')");
|
|
|
$dbName = DB::getPDO($this->_db)->getDatabaseName();
|
|
|
$this->_rootTableName = DB::getPDO()->fetchValue("
|
|
|
select t.TABLE_NAME
|
|
|
@@ -994,6 +995,7 @@ class TableAcl extends Core_AclBase {
|
|
|
if ($this->isInitialized() && $force == false) {
|
|
|
return;
|
|
|
}
|
|
|
+ DBG::simpleLog('auth', "TableAcl::init(name: '{$this->_name}')");
|
|
|
|
|
|
DBG::log(['msg'=>"INIT({$this->_zasobID}):: \$this", '$this'=>$this, 'name'=>$this->getName()]);
|
|
|
$ds = $this->getDataSource();
|
|
|
@@ -1197,6 +1199,7 @@ class TableAcl extends Core_AclBase {
|
|
|
function save() {
|
|
|
$_SESSION['TableAcl_cache'][$this->_zasobID] = $this->toArray();
|
|
|
DBG::log("save(name='{$_SESSION['TableAcl_cache'][$this->_zasobID]['name']}')");
|
|
|
+ // DBG::simpleLog('auth', "TableAcl::save(name: '{$this->_name}')");
|
|
|
}
|
|
|
|
|
|
public function getFieldTypeById($fieldID) {
|