function vtEntityMethodJson($adb, $request) { $moduleName = $request['module_name']; $emm = new VTEntityMethodManager($adb); $methodNames = $emm->methodsForModule($moduleName); echo Zend_Json::encode($methodNames); }
/** * Functions returns the Custom Entity Methods that are supported for a module * @return <Array> */ public function getEntityMethods() { $db = PearDatabase::getInstance(); $emm = new VTEntityMethodManager($db); $methodNames = $emm->methodsForModule($this->get('module_name')); return $methodNames; }