title: Programatically retrieve TVs assigned to a MODX Resource by a given ID
body: <p>I'm rather new to MODX. I'm passing in a resource ID, and with that, I'd like to programatically retrieve any custom TVs used by a given resource along with its value.  Here's where I've gotten so far:</p>
  
  <pre><code>$resourceId = 1;
  $resource = $modx-&gt;getObject('modResource', $resourceId);
  
  / * @TODO How do I grab any dynamically created TVs/Values? */
  $array[] = [
      'id' =&gt; $resource-&gt;id,
      'pagetitle' =&gt; $resource-&gt;pagetitle,
      'alias' =&gt; $resource-&gt;alias
  ];
  </code></pre>
  
  <p>Thank you!</p>