Path

ez projects / bcrolehaspolicykerneloverride


BC Role hasPolicy Kernel Override

UNIX name Owner Status Version Compatible with
bcrolehaspolicykerneloverride Brookins Consulting stable 0.0.1 4.x+ Compatible; 4.6+ (Community Build 2011.12 Tested)
BC Role hasPolicy Kernel Override is a true eZ Publish extension that provides an improved modified copy of the default 'eZRole' kernel class which provides a new method called hasPolicy.

This complete class modified to provide additional features is provided as a implementation. This extension is a minimal kernel override extension. With this solution you can use eZRole directly to check for a specific policy within any eZ Publish PHP context.

This is a copy of the kernel/classes/ezrole.php PHP class from eZ Publish GitHub master8a25d8730ec06cb4cbcdb9d47f13dca8b3fe9aab modified to provide hasPolicy method by default.

This complete class modified to provide additional features is provided as a implmentationfor kernel override extensions (using eZ Publish 4.x+) or kernel patches (using eZ Publish3.x or some other non-standard configuration).

The hasPolicy method is based on lessons learned reviewing the existing methods policyList and removePolicy.

This file is a modified copy of this version, Based on: https://github.com/ezsystems/ezpublish/blob/8a25d8730ec06cb4cbcdb9d47f13dca8b3fe9aab/kernel/classes/ezrole.php

This solution originated in the following forum request, http://share.ez.no/forums/general/role-has-policy#comment73184

With this solution you can use eZRole directly to check for a specific policy within any eZ Publish PHP context.

This extension is a minimal kernel override extension.

No news yet.

This project has no reviews yet. Be the first one to review it!

No forum messages yet.