コード例 #1
0
 public function onInherit(Component &$component)
 {
     if (!PropertyResolver::hasProperty($this->getModelObject(), $component->getId())) {
         return null;
     }
     return new WrappedCompoundModel($this);
 }
コード例 #2
0
 /**
  * @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)));
 }
コード例 #3
0
 public function setModelObject(&$object)
 {
     PropertyResolver::set($this->wrapped->getModelObject(), $this->source->getId(), $object);
 }
コード例 #4
0
 public function setModelObject(&$object)
 {
     PropertyResolver::set($this->target, $this->property, $object);
 }