本文整理匯總了PHP中PermissionAccess::markAsInUse方法的典型用法代碼示例。如果您正苦於以下問題:PHP PermissionAccess::markAsInUse方法的具體用法?PHP PermissionAccess::markAsInUse怎麽用?PHP PermissionAccess::markAsInUse使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類PermissionAccess
的用法示例。
在下文中一共展示了PermissionAccess::markAsInUse方法的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();
}