HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/Eurotools/euro-tools.nl/app/KommaApp/Countries/Kms/CountryRepository.php
<?php
//
//namespace App\KommaApp\Countries\Kms;
//
///**
// *
// *
// * @copyright   (c) 2012-2016, Komma
// */
//
//
//use App\KommaApp\Kms\Core\KmsRepository;
//use App\KommaApp\Kms\Core\Kms;
//use App\KommaApp\Countries\Models\Country;
//use Illuminate\Database\Eloquent\Model;
//
//class CountryRepository extends KmsRepository
//{
//    function __construct(Kms $kms)
//    {
//        parent::__construct($kms);
//    }
//
//
//    /**
//     * This method will get the Countries for a select.
//     *
//     * @return array
//     */
//    public function getCountriesForSiteSelectBox()
//    {
//        $models = [];
//        foreach (Country::all() as $record) {
//            $model = [];
//            $model['value'] = $record->id;
//            $model['content'] = $record->name;
//            if (\Lang::has('countries.' . $record->iso_2)) {
//                $model['content'] = \Lang::get('countries.' . $record->iso_2);
//            }
//
//
//            $models[] = $model;
//        }
//        return $models;
//    }
//
//    /**
//     * @deprecated Replaced by CountryRepository::getOptionModelsForSelect
//     * @return array
//     */
//    public function getCountriesForSelect()
//    {
//        $records = Country::all();
//        $entities = [];
//        foreach ($records as $record) {
//            $entity = [];
//            $entity['value'] = $record->id;
//            $entity['content'] = $record->name;
//            $entity['htmlContent'] = $record->name;
//            $entities[] = $entity;
//        }
//        return $entities;
//    }
//
//    /**
//     * Warning. This method is not really implemented. Just here to comply with the KmsRepository
//     *
//     * @param null $siteId
//     * @return Model
//     */
//    public function newModel($siteId = null): Model
//    {
//        return new Country();
//    }
//
//    /**
//     * Warning. This method is not really implemented. Just here to comply with the KmsRepository
//     *
//     * This method will get a model based on the id.
//     * When the id is NULL or the model does not exist, we will generate a new.
//     *
//     * @see KmsSection::loadModel()
//     * @param int $modelId
//     * @return Model
//     */
//    public function getModel($modelId = null)
//    {
//        return new Country();
//    }
//
//
//}