| @@ 445-452 (lines=8) @@ | ||
| 442 | * |
|
| 443 | * @return string|null |
|
| 444 | */ |
|
| 445 | public function getCustomStringFunction($name) |
|
| 446 | { |
|
| 447 | $name = strtolower($name); |
|
| 448 | ||
| 449 | return isset($this->attributes['customStringFunctions'][$name]) |
|
| 450 | ? $this->attributes['customStringFunctions'][$name] |
|
| 451 | : null; |
|
| 452 | } |
|
| 453 | ||
| 454 | /** |
|
| 455 | * Sets a map of custom DQL string functions. |
|
| @@ 497-504 (lines=8) @@ | ||
| 494 | * |
|
| 495 | * @return string|null |
|
| 496 | */ |
|
| 497 | public function getCustomNumericFunction($name) |
|
| 498 | { |
|
| 499 | $name = strtolower($name); |
|
| 500 | ||
| 501 | return isset($this->attributes['customNumericFunctions'][$name]) |
|
| 502 | ? $this->attributes['customNumericFunctions'][$name] |
|
| 503 | : null; |
|
| 504 | } |
|
| 505 | ||
| 506 | /** |
|
| 507 | * Sets a map of custom DQL numeric functions. |
|
| @@ 549-556 (lines=8) @@ | ||
| 546 | * |
|
| 547 | * @return string|null |
|
| 548 | */ |
|
| 549 | public function getCustomDatetimeFunction($name) |
|
| 550 | { |
|
| 551 | $name = strtolower($name); |
|
| 552 | ||
| 553 | return isset($this->attributes['customDatetimeFunctions'][$name]) |
|
| 554 | ? $this->attributes['customDatetimeFunctions'][$name] |
|
| 555 | : null; |
|
| 556 | } |
|
| 557 | ||
| 558 | /** |
|
| 559 | * Sets a map of custom DQL date/time functions. |
|