blog data
This commit is contained in:
@@ -537,10 +537,22 @@ wrenchboard=#
|
||||
return json_encode( $final_out );
|
||||
}
|
||||
|
||||
|
||||
public function blogData($endpoint,$raw_array)
|
||||
{
|
||||
$res1 = $this->getCache($endpoint);
|
||||
if (count($res1)==0){
|
||||
$rawData = $this->apiData();
|
||||
$res1= $rawData['payload']; //[0]['payload'];
|
||||
$this->saveCache($endpoint,$res1);
|
||||
}
|
||||
return $res1;
|
||||
}
|
||||
|
||||
protected $db;
|
||||
public $con_name = 'wrench_dockerblog'; // 'wrench_blog';
|
||||
|
||||
protected function apiData($blog_id=0) {
|
||||
protected function apiData($blog_id=0) :array {
|
||||
$this->db = \Config\Database::connect($this->con_name);
|
||||
$data = array();
|
||||
$extra_filter = "";
|
||||
|
||||
Reference in New Issue
Block a user