*
  • {@link ezcWebdavAuthorizer::ACCESS_WRITE}
  • *
  • {@link ezcWebdavAuthorizer::ACCESS_READ}
  • * * * The implementation of this method must only check the given $path, but * MUST not check descendant paths, since the back end will issue dedicated * calls for such paths. In contrast, the algoritm MUST ensure, that parent * permission constraints of the given $paths are met. * * Examples: * Permission is rejected for the paths "/a", "/b/beamme" and "/c/connect": * * * authorize( 'johndoe', '/a' ) ); // false * var_dump( $auth->authorize( 'johndoe', '/b' ) ); // true * var_dump( $auth->authorize( 'johndoe', '/b/beamme' ) ); // false * var_dump( $auth->authorize( 'johndoe', '/c/connect/some/deeper/path' ) ); // false * ?> * * * @param string $user * @param string $path * @param int $access * @return bool */ public function authorize( $user, $path, $access = self::ACCESS_READ ); } ?>