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; } }