2024-12-22 23:30:47 +01:00
|
|
|
<?php
|
|
|
|
|
2024-12-29 00:46:28 +01:00
|
|
|
/**
|
|
|
|
* Copyright (c) D3 Data Development (Inh. Thomas Dartsch)
|
|
|
|
*
|
|
|
|
* For the full copyright and license information, please view
|
|
|
|
* the LICENSE file that was distributed with this source code.
|
|
|
|
*
|
|
|
|
* https://www.d3data.de
|
|
|
|
*
|
|
|
|
* @copyright (C) D3 Data Development (Inh. Thomas Dartsch)
|
|
|
|
* @author D3 Data Development - Daniel Seifert <info@shopmodule.com>
|
|
|
|
* @link https://www.oxidmodule.com
|
|
|
|
*/
|
|
|
|
|
2024-12-22 23:30:47 +01:00
|
|
|
namespace D3\KlicktippPhpClient\Resources;
|
|
|
|
|
|
|
|
use D3\KlicktippPhpClient\Entities\FieldList;
|
|
|
|
use D3\KlicktippPhpClient\Exceptions\BaseException;
|
|
|
|
|
|
|
|
class Field extends Model
|
|
|
|
{
|
|
|
|
/**
|
2024-12-29 00:46:28 +01:00
|
|
|
* @throws BaseException
|
2024-12-22 23:30:47 +01:00
|
|
|
*/
|
|
|
|
public function index(): FieldList
|
|
|
|
{
|
|
|
|
$data = $this->connection->requestAndParse(
|
|
|
|
'GET',
|
2024-12-29 00:46:28 +01:00
|
|
|
'field.json'
|
2024-12-22 23:30:47 +01:00
|
|
|
);
|
|
|
|
|
|
|
|
return new FieldList($data);
|
|
|
|
}
|
|
|
|
}
|