public static function getInstanceFromQResult($result, $rowNo = 0) { $db = PearDatabase::getInstance(); $row = $db->query_result_rowdata($result, $rowNo); $actionModel = new Settings_SharingAccess_Action_Model(); return $actionModel->setData($row); }
public function process(Vtiger_Request $request) { $viewer = $this->getViewer($request); $moduleName = $request->getModule(); $qualifiedModuleName = $request->getModule(false); $viewer->assign('ALL_MODULES', Settings_SharingAccess_Module_Model::getAll(true)); $viewer->assign('ALL_ACTIONS', Settings_SharingAccess_Action_Model::getAll()); $viewer->assign('MODULE', $moduleName); $viewer->assign('USER_MODEL', Users_Record_Model::getCurrentUserModel()); $viewer->assign('DEPENDENT_MODULES', Settings_SharingAccess_Module_Model::getDependentModules()); $viewer->view('Index.tpl', $qualifiedModuleName); }