getPropertyValue() 공개 메소드

return value of property with given name.
public getPropertyValue ( $name ) : mixed
$name string name of property
리턴 mixed
예제 #1
0
 /**
  * {@inheritdoc}
  */
 public function copyFrom(StructureInterface $structure)
 {
     foreach ($this->getProperties(true) as $property) {
         if ($structure->hasProperty($property->getName())) {
             $property->setValue($structure->getPropertyValue($property->getName()));
         }
     }
     $this->setDocument($structure->getDocument());
 }
예제 #2
0
 public function indexCallback(StructureInterface $structure, $preview = false, $partial = false)
 {
     return new Response($this->render($structure->getPropertyValue('title'), $structure->getPropertyValue('article'), $structure->getPropertyValue('block'), $partial));
 }