1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- <?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 UnaccentInit extends LuSpDbo {
-
- /**
- * @param $dam
- * @return \App\Http\DataAccess\SP\UnaccentInit|null
- */
- protected static function damToDbo($dam)
- {
- if (is_null($dam))
- return null;
- $dbo = new UnaccentInit();
-
- $dbo->setUnaccentInit(LuStringUtils::convertJsonString($dam->unaccent_init));
-
- return $dbo;
- }
-
-
- /**
- * @param $ internal
- * @return \App\Http\DataAccess\SP\UnaccentInit;
- */
- public static function execute($)
- {
- $values = DB::select('SELECT to_json(data.unaccent_init) AS unaccent_init FROM unaccent_init(:) data', array(":" => $));
- return self::damToDbo($values[0]);
- }
-
-
- public function jsonSerialize()
- {
- return array(
- "UnaccentInit" => $this->_unaccentInit
- );
- }
-
- public static function jsonDeserialize($json)
- {
- $dbo = new UnaccentInit();
- if (isset($json["UnaccentInit"])) {
- $dbo->setUnaccentInit($json["UnaccentInit"]);
- }
- return $dbo;
- }
-
- public static function generateSample()
- {
- $dbo = new UnaccentInit();
- $dbo->setUnaccentInit("sample string");
- return $dbo;
- }
-
-
- /**
- * @var internal
- */
- protected $_unaccentInit;
- public function getUnaccentInit()
- {
- return $this->_unaccentInit;
- }
- public function setUnaccentInit($value)
- {
- $this->_unaccentInit = $value;
- }
- }
|