title: Where would you document standardized complex data that is passed between many objects and methods?
body: <p>I often find myself with fairly complex data that represents something that my objects will be working on.  For example, in a task-list app, several objects might work with an array of tasks, each of which has attributes, temporal expressions, sub tasks and sub sub tasks, etc.  </p>
  
  <p>One object will collect data from web forms, standardize it into a format consumable by the class that will save them to the database, another object will pull them from the database, put them in the standard format and pass them to the display object, or the update object, etc.</p>
  
  <p>The data itself can become a fairly complex series of arrays and sub arrays, representing a 'task' or list of tasks.</p>
  
  <p>For example, the below might be one entry in a task list, in the format that is consumable by the various objects that will work on it.  Normally, I just document this in a file somewhere with an example.  However, I am thinking about the best way to add it to something like PHPDoc, or another standard doc system.</p>
  
  <p>Where would you document your consumable data formats that are for many or all of the objects / methods in your app?</p>
  
  <pre><code>Array
  (
      [Meta] =&gt; Array
          (
              //etc.
          )
  
      [Sched] =&gt; Array
          (
              [SchedID] =&gt; 32
              [OwnerID] =&gt; 2
              [StatusID] =&gt; 1
              [DateFirstTask] =&gt; 2011-02-28
              [DateLastTask] =&gt; 
              [MarginMonths] =&gt; 3
          )
  
      [TemporalExpressions] =&gt; Array
          (
              [0] =&gt; Array
                  (
                      [type] =&gt; dw
                      [TemporalExpID] =&gt; 3
                      [ord] =&gt; 2
                      [day] =&gt; 6
                      [month] =&gt; 4
                  )
  
              [1] =&gt; Array
                  (
                      [type] =&gt; dm
                      [TemporalExpID] =&gt; 32
                      [day] =&gt; 28
                      [month] =&gt; 2
                  )
  
          )
  
      [Task] =&gt; Array
          (
              [SchedTaskID] =&gt; 32
              [SchedID] =&gt; 32
              [OwnerID] =&gt; 2
              [UserID] =&gt; 5
              [ClientID] =&gt; 9
              [Title] =&gt; Close Prior Year
              [Body] =&gt; 
              [DueTime] =&gt; 
          )
  
      [SubTasks] =&gt; Array
          (
              [101] =&gt; Array
                  (
                      [SchedSubTaskID] =&gt; 101
                      [ParentST] =&gt; 
                      [RootT] =&gt; 32
                      [UserID] =&gt; 2
                      [Title] =&gt; Review Profit and Loss by Class 
                      [Body] =&gt; 
                      [DueDiff] =&gt; 0
                  )
  
              [102] =&gt; Array
                  (
                      [SchedSubTaskID] =&gt; 102
                      [ParentST] =&gt; 
                      [RootT] =&gt; 32
                      [UserID] =&gt; 2
                      [Title] =&gt; Review Balance Sheet
                      [Body] =&gt; 
                      [DueDiff] =&gt; 0
                  )
  
              [103] =&gt; Array
                  (
                      [SchedSubTaskID] =&gt; 103
                      [ParentST] =&gt; 
                      [RootT] =&gt; 32
                      [UserID] =&gt; 2
                      [Title] =&gt; Review Current Year for Prior Year Expenses to Accrue
                      [Body] =&gt; Look at Journal Entries that are templates as well.
                      [DueDiff] =&gt; 0
                  )
  
              [104] =&gt; Array
                  (
                      [SchedSubTaskID] =&gt; 104
                      [ParentST] =&gt; 
                      [RootT] =&gt; 32
                      [UserID] =&gt; 2
                      [Title] =&gt; Review Prior Year Membership from 11/1 - 12/31 to Accrue to Current Year
                      [Body] =&gt; 
                      [DueDiff] =&gt; 0
                  )
  
              [105] =&gt; Array
                  (
                      [SchedSubTaskID] =&gt; 105
                      [ParentST] =&gt; 
                      [RootT] =&gt; 32
                      [UserID] =&gt; 2
                      [Title] =&gt; Enter Vacation Accrual
                      [Body] =&gt; 
                      [DueDiff] =&gt; 0
                  )
  
              [106] =&gt; Array
                  (
                      [SchedSubTaskID] =&gt; 106
                      [ParentST] =&gt; 105
                      [RootT] =&gt; 32
                      [UserID] =&gt; 2
                      [Title] =&gt; Email Peter requesting Vacation Status of Employees at Year End
                      [Body] =&gt; We need Employee Name, Rate and Days of Vacation left to use.
  We also need to know if the employee used any of the prior year's vacation.
                      [DueDiff] =&gt; 43
                  )
  
              [107] =&gt; Array
                  (
                      [SchedSubTaskID] =&gt; 107
                      [ParentST] =&gt; 
                      [RootT] =&gt; 32
                      [UserID] =&gt; 2
                      [Title] =&gt; Grants Receivable at Year End
                      [Body] =&gt; 
                      [DueDiff] =&gt; 0
                  )
  
              [108] =&gt; Array
                  (
                      [SchedSubTaskID] =&gt; 108
                      [ParentST] =&gt; 107
                      [RootT] =&gt; 32
                      [UserID] =&gt; 2
                      [Title] =&gt; Email Peter Requesting if there were and Grants Receivable at year end
                      [Body] =&gt; 
                      [DueDiff] =&gt; 43
                  )
  
          )
  
  )
  </code></pre>