$func($params)) { return false; } } else { return false; } } } else if (!is_object($extensions) || !($extensions instanceof OpenId_Extension) || !$extensions->$func($params)) { return false; } } return true; } /** * Method to add additional data to OpenId 'checkid_immediate' or * 'checkid_setup' request. This method addes nothing but inherited class * may add additional data into request. * * @param array &$params request's var/val pairs * @return bool */ public function prepareRequest(&$params) { return true; } /** * Method to parse OpenId 'checkid_immediate' or 'checkid_setup' request * and initialize object with passed data. This method parses nothing but * inherited class may override this method to do somthing. * * @param array $params request's var/val pairs * @return bool */ public function parseRequest($params) { return true; } /** * Method to add additional data to OpenId 'id_res' response. This method * addes nothing but inherited class may add additional data into response. * * @param array &$params response's var/val pairs * @return bool */ public function prepareResponse(&$params) { return true; } /** * Method to parse OpenId 'id_res' response and initialize object with * passed data. This method parses nothing but inherited class may override * this method to do somthing. * * @param array $params response's var/val pairs * @return bool */ public function parseResponse($params) { return true; } /** * Method to prepare data to store it in trusted servers database. * * @param array &$data data to be stored in tusted servers database * @return bool */ public function getTrustData(&$data) { return true; } /** * Method to check if data from trusted servers database is enough to * sutisfy request. * * @param array $data data from tusted servers database * @return bool */ public function checkTrustData($data) { return true; } }