We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

  • mattl's avatar
    NewgroupAction converted to extend FormAction · cfa699e4
    mattl authored
    Had to change Action function 'prepare' to 'protected', as you can't
    (of course) protect something that's been public in a parent class. The
    other way around seems fine for PHP... Eventually all actions will have
    protected 'prepare' (use execute/run)
    
    A feature of the previously fixed initialization of Action classes, is
    that we now have $this->scoped which is the current profile in use. As
    of now that is always a local User, except the corresponding Profile
    object.
    
    Also, instead of calling 'showForm' everywhere, in case of an error we
    just throw an exception of some sort and pass the message along there.
    
    I've also introduced in FormAction the 'showInstructions' function in
    order to get a unified instructions/info/error display method.
    
    TODO: Improve info/error message handling, and what/when/where to show.
    cfa699e4
newgroup.php 8.27 KB