$template = $rule->get('template'); if (!empty($template) && $template != $resource->get('template')) { continue; }
$template = $rule->get('template'); if (!empty($template) && $template != $resource->get('template')) { continue; } // CB: Also check constraints (allows for multiple constraints) $constraintClass = $rule->get('constraint_class'); if (!empty($constraintClass)) { if (empty($resource) || !($resource instanceof $constraintClass)) continue; $constraintField = $rule->get('constraint_field'); $constraint = $rule->get('constraint'); $constraintList = explode(',', str_replace(' ', '', $constraint)); if (($resource->get($constraintField) != $constraint) && (!in_array($resource->get($constraintField), $constraintList))) { continue; } }
if ($obj->get($constraintField) != $constraint) { continue; }
// CB: Allow comma-separated lists of constraints //if ($obj->get($constraintField) != $constraint) { // continue; //} $constraintList = explode(',', str_replace(' ', '', $constraint)); if (($obj->get($constraintField) != $constraint) && (!in_array($obj->get($constraintField), $constraintList))) { continue; }
if ($obj->get($constraintField) != $constraint) { continue; }
2.- When moving TVs from their current tab to the first tab that appears, the placement of the form fields look awful. Nothing is in line. The TV description will be on one line and the input field below it. The input fields are not nicely lined up. This also looks very sloppy to clients.
input#tv1.textfield.x-form-text.x-form-field