示例#1
0
 public function copyFromDefaultsToPageType(\Concrete\Core\Permission\Key\Key $pk)
 {
     $db = Loader::db();
     $paID = $pk->getPermissionAccessID();
     if ($paID) {
         $db = Loader::db();
         $db->Replace('PageTypePermissionAssignments', array('ptID' => $this->permissionObject->getPageTypeID(), 'paID' => $paID, 'pkID' => $this->getPermissionKeyID()), array('ptID', 'pkID'), true);
     }
 }
示例#2
0
 public function getPermissionAccessID()
 {
     return parent::getPermissionAccessID();
 }