Sulu\Component\Content\Repository\Mapping\MappingInterface::getProperties PHP Method

getProperties() public method

Returns list of properties.
public getProperties ( ) : string[]
return string[]
    public function getProperties();

Usage Example

Esempio n. 1
0
 /**
  * Append mapping selects to given query-builder.
  *
  * @param QueryBuilder $queryBuilder
  * @param MappingInterface $mapping Includes array of property names.
  * @param string $locale
  * @param string[] $locales
  */
 private function appendMapping(QueryBuilder $queryBuilder, MappingInterface $mapping, $locale, $locales)
 {
     if ($mapping->onlyPublished()) {
         $queryBuilder->andWhere($this->qomFactory->comparison($this->qomFactory->propertyValue('node', $this->propertyEncoder->localizedSystemName('state', $locale)), '=', $this->qomFactory->literal(WorkflowStage::PUBLISHED)));
     }
     $properties = $mapping->getProperties();
     foreach ($properties as $propertyName) {
         $this->appendSingleMapping($queryBuilder, $propertyName, $locales);
     }
     if ($mapping->resolveUrl()) {
         $this->appendUrlMapping($queryBuilder, $locales);
     }
 }
All Usage Examples Of Sulu\Component\Content\Repository\Mapping\MappingInterface::getProperties