public function onInherit(Component &$component) { if (!PropertyResolver::hasProperty($this->getModelObject(), $component->getId())) { return null; } return new WrappedCompoundModel($this); }
/** * @todo this should get the property via a resolver helper * @param GridItem $item * @param type $componentId * @param Model $model */ public function populateCell(GridItem $item, $componentId, Model $model) { $property = $this->propertyName; $value = PropertyResolver::get($model->getModelObject(), $property); $item->add(new Label($componentId, new BasicModel($value))); }
public function setModelObject(&$object) { PropertyResolver::set($this->wrapped->getModelObject(), $this->source->getId(), $object); }
public function setModelObject(&$object) { PropertyResolver::set($this->target, $this->property, $object); }