1. 11 Jul, 2015 1 commit
  2. 10 Mar, 2015 1 commit
  3. 08 Mar, 2015 2 commits
  4. 06 Jul, 2014 1 commit
  5. 04 Jul, 2014 1 commit
  6. 03 Jul, 2014 1 commit
  7. 18 May, 2014 1 commit
    • mmn's avatar
      FormAction extends ManagedAction · 23c288c6
      mmn authored
      handlePost is now more naturally called and doesn't require a separate
      'handle' function for each subclass.
      23c288c6
  8. 30 Oct, 2013 1 commit
  9. 02 Sep, 2013 1 commit
    • mmn's avatar
      needLogin renamed checkLogin and made a property · f0e967fe
      mmn authored
      Action extended classes now can set 'needLogin' as a protected property,
      which is defaulted to 'false'. However, FormAction defaults this to 'true'
      because most of the form actions will require a current login to be valid.
      
      NewgroupAction, NewmessageAction, NewnoticeAction are all affected by this
      commit and in the future we will migrate each potential formaction to the
      proper class parent tree. :)
      f0e967fe
  10. 01 Sep, 2013 1 commit
  11. 31 Aug, 2013 1 commit
    • mmn's avatar
      NewgroupAction converted to extend FormAction · cfa699e4
      mmn 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
  12. 30 Aug, 2013 1 commit
    • mmn's avatar
      Added a FormAction extension · 8d57fb7d
      mmn authored
      FormAction will act as a parent class to Action classes that use forms
      of various sorts, such as newgroup creation, settings actions etc.
      8d57fb7d