Sulu\Bundle\ContentBundle\Content\Structure\ExcerptValueContainer::__isset PHP Method

__isset() public method

public __isset ( $name )
    public function __isset($name)
    {
        return array_key_exists($name, $this->data);
    }

Usage Example

コード例 #1
0
 /**
  * {@inheritdoc}
  */
 public function getContentData($container)
 {
     $container = new ExcerptValueContainer($container);
     $data = [];
     foreach ($this->getExcerptStructure()->getProperties() as $property) {
         if ($container->__isset($property->getName())) {
             $property->setValue($container->__get($property->getName()));
             $contentType = $this->contentTypeManager->get($property->getContentTypeName());
             $data[$property->getName()] = $contentType->getContentData($property);
         }
     }
     return $data;
 }
All Usage Examples Of Sulu\Bundle\ContentBundle\Content\Structure\ExcerptValueContainer::__isset