Files
WrenchBoradWeb/www-api/app/Controllers/WrenchGeneralData.php
T
CHIEFSOFT\ameye 60ef644862 clean code
2024-07-04 21:26:09 -04:00

31 lines
713 B
PHP

<?php
namespace App\Controllers;
class WrenchGeneralData extends BaseController
{
public function __construct()
{
}
public function signUpCountry(){
$in["action"] = WRENCHBOARD_SIGNUP_COUNTRY;
$endpoint = "SIGNUP_COUNTRY-";
$out = $this->getCache($endpoint); // try find in cache
if ( empty($out) || !is_array($out)){
$ret = $this->wrenchboard->wrenchboard_api($in, $out);
$out['internal_return'] = $ret;
$this->saveCache($endpoint,$out,$timeLine=15000);
}
return $this->summaryReturnData($in,$out); //json_encode( $final_out );
}
public function usersPreferences(){
//preferences
}
}