Файл: concrete5.7.5.6/concrete/src/Permission/Key/GatheringKey.php
Строк: 18
<?php
namespace ConcreteCorePermissionKey;
use Loader;
class GatheringKey extends Key {
public function copyFromDefaultsToGathering(PermissionKey $pk) {
$db = Loader::db();
$paID = $pk->getPermissionAccessID();
if ($paID) {
$db = Loader::db();
$db->Replace('GatheringPermissionAssignments', array(
'gaID' => $this->permissionObject->getGatheringID(),
'paID' => $paID,
'pkID' => $this->getPermissionKeyID()
),
array('gaID', 'pkID'), true);
}
}
}