| @@ -91,10 +91,13 @@ | ||
| 91 | 91 | <strong>to</strong> (__To Date__, YYYYMMDD / __To Date Time__, YYYYMMDDHHMM)<br> |
| 92 | 92 | <strong>status_id</strong> (publish, draft)<br> |
| 93 | 93 | </p> |
| 94 | 94 | |
| 95 | -<?php if( class_exists('SH4_CFields_Model') ) : ?> | |
| 96 | 95 | <?php |
| 96 | +$cfields = array(); | |
| 97 | +?> | |
| 98 | +<?php if( class_exists('SH4_CFields_Model') or class_exists('SH4_CFields2_Model') ) : ?> | |
| 99 | +<?php | |
| 97 | 100 | $f = ShiftController4::$instance->root(); |
| 98 | 101 | $cfieldsQuery = $f->make('SH4_CFields_Query'); |
| 99 | 102 | $cfields = $cfieldsQuery->read(); |
| 100 | 103 | ?> |
| @@ -223,8 +226,11 @@ | ||
| 223 | 226 | <strong>start</strong> (__Start Date Time__, YYYYMMDDHHMM)<br> |
| 224 | 227 | <strong>end</strong> (__End Date Time__, YYYYMMDDHHMM)<br> |
| 225 | 228 | <strong>status_id</strong> (publish, draft)<br> |
| 226 | 229 | <strong>conflict</strong> (__Set to 1 to allow creation of shifts with conflicts__) <em>__optional__</em><br> |
| 230 | +<?php foreach( $cfields as $cfield ) : ?> | |
| 231 | +<strong><?php echo $cfield->getName(); ?></strong> (<?php echo $cfield->getLabel(); ?>)<br> | |
| 232 | +<?php endforeach; ?> | |
| 227 | 233 | </p> |
| 228 | 234 | |
| 229 | 235 | <p> |
| 230 | 236 | <strong>__Examples__</strong> |
| @@ -280,8 +286,11 @@ | ||
| 280 | 286 | <strong>start</strong> (__Start Date Time__, YYYYMMDDHHMM) <em>__optional__</em><br> |
| 281 | 287 | <strong>end</strong> (__End Date Time__, YYYYMMDDHHMM) <em>__optional__</em><br> |
| 282 | 288 | <strong>status_id</strong> (publish, draft) <em>__optional__</em><br> |
| 283 | 289 | <strong>conflict</strong> (__Set to 1 to allow creation of shifts with conflicts__) <em>__optional__</em><br> |
| 290 | +<?php foreach( $cfields as $cfield ) : ?> | |
| 291 | +<strong><?php echo $cfield->getName(); ?></strong> (<?php echo $cfield->getLabel(); ?>)<br> | |
| 292 | +<?php endforeach; ?> | |
| 284 | 293 | </p> |
| 285 | 294 | |
| 286 | 295 | <p> |
| 287 | 296 | <strong>__Examples__</strong> |