/** * Set an FaqAdapter class * * @return BOOL true (success) / false (failure) */ function setFaqAdapter($name) { // Step 1 - check that $name is a valid adapter $isValid = xhelpFaqAdapterFactory::_adapterValid($name); // Step 2 - store in xhelp_meta table $ret = false; if ($isValid) { $ret = xhelpSetMeta('faq_adapter', $name); } // Step 3 - return true/false return $ret; }