PHP visibility

2009-06-01
2013-04-26
  • Hi

    I'm trying to change the DELIMITER_LEFT and DELIMITER_RIGHT values for my needs, and I can't do that by subclassing the odf class, since they are constants.

    Should they be changed to static variables, as suggested here: http://www.php.net/manual/en/language.oop5.constants.php#53935 ?

    Or is there another way of changing these values (short of modfiying odtPHP directly of course) ?

    Also, for the same reasons, it would be nice to switch some of the private values to "protected".

    Thanks

    Aurélien

     
    • Hi,

      it should be ok now.

      Thx for your advises.

      Cyril

       
    • Much better !

      I still have to overload the _parse() function and the _save() function, please make them "protected" instead of "private", if you don't mind.

      Thanks

      Aurélien

      P.S.: by the way, if you want to know which project I'm using odtPHP for, here's the link : http://aurelien.bompard.org/post/2009/06/05/Export-des-billets-Dotclear-en-ODT