Changeset 6523 for sandbox/2.4.1-3/prototype/rest/hypermedia/collection.php
- Timestamp:
- 06/15/12 14:49:24 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/2.4.1-3/prototype/rest/hypermedia/collection.php
r6437 r6523 29 29 public $type; 30 30 public $data; 31 31 public $links; 32 32 33 function __construct($config, $className ) {33 function __construct($config, $className, $id = null) { 34 34 foreach ($config as $key => $value) { 35 35 if ($value['class'] == $className) { 36 $uri = $key;36 $uri = ($id ? (preg_replace('/\/[:][a-zA-Z-0-9]+/', '', $key).'/'.$id ) : $key); 37 37 break; 38 38 }
Note: See TracChangeset
for help on using the changeset viewer.