function insertMasterData($key, $value, $remarks) { if (!array_key_exists($key, $this->arrConstants)) { defined($key, $value); $this->masterdata->insertMasterData("mtb_constants", $key, $value, $remarks); } $this->masterdata->clearCache("mtb_constants"); $this->masterdata->createCache("mtb_constants", null, true, array("id", "remarks")); }