您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

UnaccentLexize.php 1.8KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <?php
  2. /**
  3. * AUTO GENERATED BY LUTICATE GENERATOR
  4. * ANY CHANGES WILL BE OVERWRITTEN
  5. */
  6. namespace App\Http\DataAccess\SP;
  7. use Luticate\Utils\LuSpDbo;
  8. use Luticate\Utils\LuMultipleDbo;
  9. use Luticate\Utils\LuStringUtils;
  10. use Illuminate\Support\Facades\DB;
  11. class UnaccentLexize extends LuSpDbo {
  12. /**
  13. * @param $dam
  14. * @return \App\Http\DataAccess\SP\UnaccentLexize|null
  15. */
  16. protected static function damToDbo($dam)
  17. {
  18. if (is_null($dam))
  19. return null;
  20. $dbo = new UnaccentLexize();
  21. $dbo->setUnaccentLexize(LuStringUtils::convertJsonString($dam->unaccent_lexize));
  22. return $dbo;
  23. }
  24. /**
  25. * @param $ internal
  26. * @param $ internal
  27. * @param $ internal
  28. * @param $ internal
  29. * @return \App\Http\DataAccess\SP\UnaccentLexize;
  30. */
  31. public static function execute($, $, $, $)
  32. {
  33. $values = DB::select('SELECT to_json(data.unaccent_lexize) AS unaccent_lexize FROM unaccent_lexize(:, :, :, :) data', array(":" => $, ":" => $, ":" => $, ":" => $));
  34. return self::damToDbo($values[0]);
  35. }
  36. public function jsonSerialize()
  37. {
  38. return array(
  39. "UnaccentLexize" => $this->_unaccentLexize
  40. );
  41. }
  42. public static function jsonDeserialize($json)
  43. {
  44. $dbo = new UnaccentLexize();
  45. if (isset($json["UnaccentLexize"])) {
  46. $dbo->setUnaccentLexize($json["UnaccentLexize"]);
  47. }
  48. return $dbo;
  49. }
  50. public static function generateSample()
  51. {
  52. $dbo = new UnaccentLexize();
  53. $dbo->setUnaccentLexize("sample string");
  54. return $dbo;
  55. }
  56. /**
  57. * @var internal
  58. */
  59. protected $_unaccentLexize;
  60. public function getUnaccentLexize()
  61. {
  62. return $this->_unaccentLexize;
  63. }
  64. public function setUnaccentLexize($value)
  65. {
  66. $this->_unaccentLexize = $value;
  67. }
  68. }