private ?string
$orderBy = null;
private string
$orderSequence = self::ORDER_SEQUENCE_ASC;
/**
* @var FilterStruct[]
*/
private array
$filter =
[];
public static function fromArray(array
$parameter): ExtensionCriteria
{ $criteria =
new ExtensionCriteria();
if (isset($parameter['limit'
])) { $criteria->
setLimit((int) $parameter['limit'
]);
} if (isset($parameter['page'
])) { $criteria->
setOffset(((int) $parameter['page'
] - 1
) *
$criteria->
getLimit());
} if (isset($parameter['term'
])) { $criteria->
setSearch($parameter['term'
]);
}