/** * {@inheritdoc} */ public function isEditable(ModelInterface $model = null, PropertyValueBag $input = null, LegendInterface $legend = null) { if ($this->editableCondition) { return $this->editableCondition->match($model, $input, $this, $legend); } return true; }
/** * {@inheritdoc} */ public function match(ModelInterface $model = null, PropertyValueBag $input = null, PropertyInterface $property = null, LegendInterface $legend = null) { $result = $this->propertyCondition->match($model, $input, $property, $legend); // @codingStandardsIgnoreStart - We explicitely allow var_dump() here for debugging purposes. echo '<pre>$condition: </pre>'; var_dump($this->propertyCondition); echo '<pre>$model: </pre>'; var_dump($model); echo '<pre>$input: </pre>'; var_dump($input); echo '<pre>$condition->match() result: </pre>'; var_dump($result); echo '<pre>'; debug_print_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS); echo '</pre>'; // @codingStandardsIgnoreEnd return $result; }
/** * {@inheritdoc} */ public function match(ModelInterface $model = null, PropertyValueBag $input = null, PropertyInterface $property = null, LegendInterface $legend = null) { return !$this->condition->match($model, $input, $property, $legend); }