We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 3749
    • 24,544 Posts
    Is it of value to put phpDocumenter tags into an add-on?

    If so, how should @package and @subpackage be used?


    For example:

    @package modx
    @subpackage add-on-name

    or

    @package add-on-name
    @subpackage add-on-name-component

      Did I help you? Buy me a beer
      Get my Book: MODX:The Official Guide
      MODX info for everyone: http://bobsguides.com/modx.html
      My MODX Extras
      Bob's Guides is now hosted at A2 MODX Hosting
      • 28215
      • 4,149 Posts
      We would recommend:

      @package Captcha
      @subpackage Captcha-subcomponent
      


      Since your 3rd party package is a package.
        shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
        • 3749
        • 24,544 Posts
        Thanks.

        Is there any plan to provide access to the phpDocs at moxcms.com (say, by extracting them from the SVN repository) or will it be the developer’s responsibility to put them up somewhere else?

          Did I help you? Buy me a beer
          Get my Book: MODX:The Official Guide
          MODX info for everyone: http://bobsguides.com/modx.html
          My MODX Extras
          Bob's Guides is now hosted at A2 MODX Hosting
          • 22303 MODX Staff
          • 10,725 Posts
          Quote from: BobRay at Nov 07, 2008, 04:11 PM

          Is there any plan to provide access to the phpDocs at moxcms.com (say, by extracting them from the SVN repository) or will it be the developer’s responsibility to put them up somewhere else?
          No plan currently, but I’m sure that could be done if we are interested in documenting the reference components in this way.  Sure would make it easy to automate deployment of the documentation, and would be a great way to include tutorials for your packages.

          I might be inclined to organize these into namespaces for clarity, preferably that match the Jira project codes.
            • 3749
            • 24,544 Posts
            Quote from: OpenGeek at Nov 07, 2008, 04:30 PM

            Quote from: BobRay at Nov 07, 2008, 04:11 PM

            Is there any plan to provide access to the phpDocs at moxcms.com (say, by extracting them from the SVN repository) or will it be the developer’s responsibility to put them up somewhere else?
            No plan currently, but I’m sure that could be done if we are interested in documenting the reference components in this way. Sure would make it easy to automate deployment of the documentation, and would be a great way to include tutorials for your packages.

            I might be inclined to organize these into namespaces for clarity, preferably that match the Jira project codes.

            I’m currently working on the phpDocumenter stuff for SPForm. Is there anything I should do (besides splittingred’s suggestion) to make them work with this hypothetical system?

            Also, I notice a peppering of "@access private" and "@access protected" in the MODx code in about equal numbers, but I couldn’t deduce the logic behind picking one or the other. I’ve used @access protected on everything but the public functions in SPForm on the assumption that I want everything to show in the docs but also want to make it clear that those functions shouldn’t be called outside the class. Does that make sense?

              Did I help you? Buy me a beer
              Get my Book: MODX:The Official Guide
              MODX info for everyone: http://bobsguides.com/modx.html
              My MODX Extras
              Bob's Guides is now hosted at A2 MODX Hosting