What?

FreePBX offers a method of storing data without maintaining tables or making direct database calls. 

Why?

How?

Your class

<?php
namespace FreePBX\modules;


class Example extends \DB_Helper{
	public function __construct($freepbx = null){
		if ($freepbx == null) {
			throw new Exception('Not given a FreePBX Object');
		}
		$this->FreePBX = $freepbx;
	}
	
	public function insertSingle($key,$value){
		$this->setConfig($key,$value);
	}


	public function getSingle($key){
		return $this->getConfig($key);
	}


	public function deleteSingle($key){
		$this->setConfig($key)
	}
	public function insertGroup($id, $itemsArray){
		foreach($itemsArray as $key => $value){
			$this->setConfig($key,$value,$id);
		}
	}
	public function getGroup($id){
		return $this->getAll($id)l
	}
	public function deleteGroup($id){
		$this->delById($id);
	}
}