PHP Modx Resources