Jet\DataModel_PropertyFilter
This class represents the filter-rules within the restricted upload mode.
Overview of methods
Method | Meaning of |
---|---|
public __construct( DataModel_Definition_Model $model_definition, array $only_properties ) |
Parameters:
|
public getPropertyDefinitionAllowed( DataModel_Definition_Property $property ) : bool |
Determines whether a property can/cannot be loaded based on its definition. |
public getPropertyAllowed( string $model_name, string $property_name ) : bool |
Determines whether a property can/cannot be loaded based on its name. |
public getModelAllowed( string $model_name ) : bool |
Determines whether a given subentity can/cannot be loaded based on its name. |
public getPropertyNames( string $model_name ) : array |
Returns a list of the names of the allowed properties for the entity. |
public static getQuerySelect( DataModel_Definition_Model $model_definition, DataModel_PropertyFilter|null $load_filter=null ) : array |
This static method creates a list of items for use in the SELECT part of the query based on the entity definition and rules. If no rules are defined (NULL value is passed), then all properties of the model are used. |