Create role using php

Create role using php

Sunday 01 October 2006 8:52:00 pm - 2 replies

Author Message

Ɓukasz Serwatka

Sunday 01 October 2006 11:27:03 pm

Hi Tamaki,

Take a look on kernel/classes/ezrole.php class definition.

$role = eZRole::create( 'Role name' );
$role->store();

Related classes are also:
kernel/classes/ezpolicy.php
kernel/classes/ezpolicylimitation.php

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Tamaki Hodge

Monday 02 October 2006 3:23:03 pm

Thanks Lukasz,

I managed to get something going.

You must be logged in to post messages in this topic!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.