12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- <?php
-
- /**
- * AUTO GENERATED BY LUTICATE GENERATOR
- * ANY CHANGES WILL BE OVERWRITTEN
- */
-
- namespace App\Http\DataAccess\SP;
-
- use Luticate\Utils\LuSpDbo;
- use Luticate\Utils\LuMultipleDbo;
- use Luticate\Utils\LuStringUtils;
- use Illuminate\Support\Facades\DB;
-
- class Unaccent extends LuSpDbo {
-
- /**
- * @param $dam
- * @return \App\Http\DataAccess\SP\Unaccent|null
- */
- protected static function damToDbo($dam)
- {
- if (is_null($dam))
- return null;
- $dbo = new Unaccent();
-
- $dbo->setUnaccent(LuStringUtils::convertJsonString($dam->unaccent));
-
- return $dbo;
- }
-
-
- /**
- * @param $ regdictionary
- * @param $ text
- * @param $ text
- * @return \App\Http\DataAccess\SP\Unaccent;
- */
- public static function execute($, $, $)
- {
- $values = DB::select('SELECT to_json(data.unaccent) AS unaccent FROM unaccent(:, :, :) data', array(":" => $, ":" => $, ":" => $));
- return self::damToDbo($values[0]);
- }
-
-
- public function jsonSerialize()
- {
- return array(
- "Unaccent" => $this->_unaccent
- );
- }
-
- public static function jsonDeserialize($json)
- {
- $dbo = new Unaccent();
- if (isset($json["Unaccent"])) {
- $dbo->setUnaccent($json["Unaccent"]);
- }
- return $dbo;
- }
-
- public static function generateSample()
- {
- $dbo = new Unaccent();
- $dbo->setUnaccent("sample string");
- return $dbo;
- }
-
-
- /**
- * @var text
- */
- protected $_unaccent;
- public function getUnaccent()
- {
- return $this->_unaccent;
- }
- public function setUnaccent($value)
- {
- $this->_unaccent = $value;
- }
- }
|