$fields
$fields : string
The fields by which the result set should be sorted. If multiple fields are specified, the first filled-in field per entity is used for comparison.
Defines the order of a result set.
__construct(string|array $field, boolean $ascending, boolean $random = false)
Creates a new Order
string|array | $field | The fields by which the result set should be sorted. If multiple fields are specified, the first filled-in field per entity is used for comparison. |
boolean | $ascending | Specifies whether the order should be ascending or descending. If true, the order will be ascending, otherwise descending. |
boolean | $random | Specifies whether the order is random. If |
asc(string|array $field) : \Visionline\Crm\WebApi\Order
Shorthand for creating an ascending order by the specified field
string|array | $field | The fields by which the result set should be sorted. If multiple fields are specified, the first filled-in field per entity is used for comparison. |
desc(string|array $field) : \Visionline\Crm\WebApi\Order
Shorthand for creating an descending order by the specified field
string|array | $field | The fields by which the result set should be sorted. If multiple fields are specified, the first filled-in field per entity is used for comparison. |
random() : \Visionline\Crm\WebApi\Order
Shorthand for creating a random order
Warning: count(): Parameter must be an array or an object that implements Countable in phar://E:/source/CRM-VISIONLINE/3.4.2/Source/Website/build/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1376 Warning: count(): Parameter must be an array or an object that implements Countable in phar://E:/source/CRM-VISIONLINE/3.4.2/Source/Website/build/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1376__toString() : string
Returns the string representation of this order
Warning: count(): Parameter must be an array or an object that implements Countable in phar://E:/source/CRM-VISIONLINE/3.4.2/Source/Website/build/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1376 Warning: count(): Parameter must be an array or an object that implements Countable in phar://E:/source/CRM-VISIONLINE/3.4.2/Source/Website/build/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1376The string representation of this order
fromString(string $orderstr) : \Visionline\Crm\WebApi\Order
Create an order from a string representation previously generated by __toString()
string | $orderstr | A string representation of an order |
The order created from the string representation