public static function setDefaultACL($acl, $withAccessForCurrentUser)
    {
        self::$defaultACLWithCurrentUser = null;
        self::$lastCurrentUser = null;
        if ($acl)
        {
            self::$defaultACL = clone $acl;
            self::$defaultACL->_setShared(true);
            self::$defaultACLUsesCurrentUser = $withAccessForCurrentUser;
        } else
        {
            self::$defaultACL = null;
        }
    }
public static function setDefaultACL($acl, $withAccessForCurrentUser)
    {
        self::$defaultACLWithCurrentUser = null;
        self::$lastCurrentUser = null;
        if ($acl)
        {
            self::$defaultACL = clone $acl;
            self::$defaultACL->_setShared(true);
            self::$defaultACLUsesCurrentUser = $withAccessForCurrentUser;
        } else
        {
            self::$defaultACL = null;
        }
    }
public static function setDefaultACL ( $ acl , $ withAccessForCurrentUser ) { self :: $ defaultACLWithCurrentUser = null ; self :: $ lastCurrentUser = null ; if ( $ acl ) { self :: $ defaultACL = clone $ acl ; self :: $ defaultACL -> _setShared ( true ) ; self :: $ defaultACLUsesCurrentUser = $ withAccessForCurrentUser ; } else { self :: $ defaultACL = null ; } }
Sets a default ACL that will be applied to all AVObjects when they
are created.

@param AVACL $acl The ACL to use as a template for all AVObjects
created after setDefaultACL has been called. This
value will be copied and used as a template for the
creation of new ACLs, so changes to the instance
after setDefaultACL() has been called will not be
reflected in new AVObjects.
@param bool $withAccessForCurrentUser If true, the AVACL that is applied to
newly-created AVObjects will provide read
and write access to the AVUser#getCurrentUser()
at the time of creation. If false, the provided
ACL will be used without modification. If acl is
null, this value is ignored.
Sets a default ACL that will be applied to all AVObjects when they are created .