<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.5 |
+ | CiviCRM version 4.6 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
/**
* This function provides the HTML form elements
*
- * @param object $form form object
- * @param int $inlineEditMode ( 1 for contact summary
- * top bar form and 2 for display name edit )
+ * @param CRM_Core_Form $form form object
+ * @param int $contactID
*
- * @access public
* @return void
*/
- static function buildQuickForm(&$form, $contactID) {
+ public static function buildQuickForm(&$form, $contactID) {
// We provide a value for oplock_ts to client, but JS uses it carefully
// -- i.e. when loading the first inline form, JS copies oplock_ts to a
// global value, and that global value is used for future form submissions.
/**
* Ensure that oplock_ts hasn't changed in the underlying DB
*
- * @param array $fields the input form values
- * @param array $files the uploaded files if any
- * @param array $options additional user data
+ * @param array $fields the input form values
+ * @param array $files the uploaded files if any
+ * @param int $contactID
*
* @return true if no errors, else array of errors
- * @access public
* @static
*/
- static function formRule($fields, $files, $contactID = NULL) {
+ public static function formRule($fields, $files, $contactID = NULL) {
$errors = array();
$timestamps = CRM_Contact_BAO_Contact::getTimestamps($contactID);
/**
* Return any post-save data
*
+ * @param int $contactID
+ *
* @return array extra options to return in JSON
*/
- static function getResponse($contactID) {
+ public static function getResponse($contactID) {
$timestamps = CRM_Contact_BAO_Contact::getTimestamps($contactID);
return array('oplock_ts' => $timestamps['modified_date']);
}