Pimcore\Model\Property\Predefined\Listing::getProperties PHP Method

getProperties() public method

public getProperties ( ) : array
return array
    public function getProperties()
    {
        return $this->properties;
    }

Usage Example

示例#1
0
 /**
  *
  */
 public function getPredefinedPropertiesAction()
 {
     $properties = [];
     $type = $this->getParam("controller");
     $allowedTypes = ["asset", "document", "object"];
     if (in_array($type, $allowedTypes)) {
         $list = new Model\Property\Predefined\Listing();
         $list->setFilter(function ($row) use($type) {
             if ($row["ctype"] == $type) {
                 return true;
             }
             return false;
         });
         $list->load();
         foreach ($list->getProperties() as $type) {
             $properties[] = $type;
         }
     }
     $this->_helper->json(["properties" => $properties]);
 }
All Usage Examples Of Pimcore\Model\Property\Predefined\Listing::getProperties