| 1: | <?php |
| 2: | /** |
| 3: | * This code is licensed under AGPLv3 license or Afterlogic Software License |
| 4: | * if commercial version of the product was purchased. |
| 5: | * For full statements of the licenses see LICENSE-AFTERLOGIC and LICENSE-AGPL3 files. |
| 6: | */ |
| 7: | |
| 8: | namespace Aurora\System\Db; |
| 9: | |
| 10: | /** |
| 11: | * @license https://www.gnu.org/licenses/agpl-3.0.html AGPL-3.0 |
| 12: | * @license https://afterlogic.com/products/common-licensing Afterlogic Software License |
| 13: | * @copyright Copyright (c) 2019, Afterlogic Corp. |
| 14: | * |
| 15: | * @package Api |
| 16: | * @subpackage Db |
| 17: | */ |
| 18: | interface IHelper |
| 19: | { |
| 20: | /** |
| 21: | * @param string $sValue |
| 22: | * @param bool $bWithOutQuote = false |
| 23: | * @param bool $bSearch = false |
| 24: | * @return string |
| 25: | */ |
| 26: | public function EscapeString($sValue, $bWithOutQuote = false, $bSearch = false); |
| 27: | |
| 28: | /** |
| 29: | * @param string $sValue |
| 30: | * @return string |
| 31: | */ |
| 32: | public function EscapeColumn($sValue); |
| 33: | |
| 34: | /** |
| 35: | * @param int $iTimeStamp |
| 36: | * @param bool $bAsInsert = false |
| 37: | * @return string |
| 38: | */ |
| 39: | public function TimeStampToDateFormat($iTimeStamp, $bAsInsert = false); |
| 40: | |
| 41: | /** |
| 42: | * @param string $sFieldName |
| 43: | * @return string |
| 44: | */ |
| 45: | public function GetDateFormat($sFieldName); |
| 46: | |
| 47: | /** |
| 48: | * @param string $sFieldName |
| 49: | * @return string |
| 50: | */ |
| 51: | public function UpdateDateFormat($sFieldName); |
| 52: | } |
| 53: |