本文整理汇总了PHP中PermissionAccess::getPermissionAccessID方法的典型用法代码示例。如果您正苦于以下问题:PHP PermissionAccess::getPermissionAccessID方法的具体用法?PHP PermissionAccess::getPermissionAccessID怎么用?PHP PermissionAccess::getPermissionAccessID使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PermissionAccess
的用法示例。
在下文中一共展示了PermissionAccess::getPermissionAccessID方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: assignPermissionAccess
public function assignPermissionAccess(PermissionAccess $pa)
{
$db = Loader::db();
$db->Replace('PagePermissionAssignments', array('cID' => $this->getPermissionObject()->getPermissionsCollectionID(), 'paID' => $pa->getPermissionAccessID(), 'pkID' => $this->pk->getPermissionKeyID()), array('cID', 'pkID'), true);
$pa->markAsInUse();
PermissionCache::clearAccessObject($this->pk, $this->getPermissionObject());
}
示例2: assignPermissionAccess
public function assignPermissionAccess(PermissionAccess $pa)
{
$db = Loader::db();
$co = $this->permissionObject->getBlockCollectionObject();
$arHandle = $this->permissionObject->getAreaHandle();
$db->Replace('BlockPermissionAssignments', array('cID' => $co->getCollectionID(), 'paID' => $pa->getPermissionAccessID(), 'cvID' => $co->getVersionID(), 'bID' => $this->permissionObject->getBlockID(), 'pkID' => $this->pk->getPermissionKeyID()), array('cID', 'cvID', 'bID', 'pkID'), true);
$pa->markAsInUse();
}
示例3: assignPermissionAccess
public function assignPermissionAccess(PermissionAccess $pa)
{
$db = Loader::db();
$db->Replace('AreaPermissionAssignments', array('cID' => $this->getPermissionObject()->getCollectionID(), 'arHandle' => $this->getPermissionObject()->getAreaHandle(), 'paID' => $pa->getPermissionAccessID(), 'pkID' => $this->pk->getPermissionKeyID()), array('cID', 'arHandle', 'pkID'), true);
$pa->markAsInUse();
}
示例4: assignPermissionAccess
public function assignPermissionAccess(PermissionAccess $pa)
{
$db = Loader::db();
$db->Replace('BasicWorkflowPermissionAssignments', array('wfID' => $this->getPermissionObject()->getWorkflowID(), 'paID' => $pa->getPermissionAccessID(), 'pkID' => $this->pk->getPermissionKeyID()), array('wfID', 'pkID'), true);
$pa->markAsInUse();
}