Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

UnaccentInit.php 1.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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 UnaccentInit extends LuSpDbo {
  12. /**
  13. * @param $dam
  14. * @return \App\Http\DataAccess\SP\UnaccentInit|null
  15. */
  16. protected static function damToDbo($dam)
  17. {
  18. if (is_null($dam))
  19. return null;
  20. $dbo = new UnaccentInit();
  21. $dbo->setUnaccentInit(LuStringUtils::convertJsonString($dam->unaccent_init));
  22. return $dbo;
  23. }
  24. /**
  25. * @param $ internal
  26. * @return \App\Http\DataAccess\SP\UnaccentInit;
  27. */
  28. public static function execute($)
  29. {
  30. $values = DB::select('SELECT to_json(data.unaccent_init) AS unaccent_init FROM unaccent_init(:) data', array(":" => $));
  31. return self::damToDbo($values[0]);
  32. }
  33. public function jsonSerialize()
  34. {
  35. return array(
  36. "UnaccentInit" => $this->_unaccentInit
  37. );
  38. }
  39. public static function jsonDeserialize($json)
  40. {
  41. $dbo = new UnaccentInit();
  42. if (isset($json["UnaccentInit"])) {
  43. $dbo->setUnaccentInit($json["UnaccentInit"]);
  44. }
  45. return $dbo;
  46. }
  47. public static function generateSample()
  48. {
  49. $dbo = new UnaccentInit();
  50. $dbo->setUnaccentInit("sample string");
  51. return $dbo;
  52. }
  53. /**
  54. * @var internal
  55. */
  56. protected $_unaccentInit;
  57. public function getUnaccentInit()
  58. {
  59. return $this->_unaccentInit;
  60. }
  61. public function setUnaccentInit($value)
  62. {
  63. $this->_unaccentInit = $value;
  64. }
  65. }