X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCore%2FForm.php;h=257230f96920a6f2ce87ea01781b7a1d0ff6a50d;hb=fd31fa4c65b766d62df21f578772960955322576;hp=bd212a6ed0d04774c9a5afd75c57c484c9b5491f;hpb=561b2d1b77687aba1342327a5363b9d4dfecc680;p=civicrm-core.git diff --git a/CRM/Core/Form.php b/CRM/Core/Form.php index bd212a6ed0..257230f969 100644 --- a/CRM/Core/Form.php +++ b/CRM/Core/Form.php @@ -142,13 +142,13 @@ class CRM_Core_Form extends HTML_QuickForm_Page { * We should not use QuickForm directly. This class provides a lot * of default convenient functions, rules and buttons * - * @param object $state State associated with this form - * @param enum $action The mode the form is operating in (None/Create/View/Update/Delete) - * @param string $method The type of http method used (GET/POST) - * @param string $name The name of the form if different from class name + * @param object $state State associated with this form + * @param \const|\enum $action The mode the form is operating in (None/Create/View/Update/Delete) + * @param string $method The type of http method used (GET/POST) + * @param string $name The name of the form if different from class name * - * @return object - * @access public + * @return \CRM_Core_Form + @access public */ function __construct( $state = NULL, @@ -213,16 +213,22 @@ class CRM_Core_Form extends HTML_QuickForm_Page { * Simple easy to use wrapper around addElement. Deal with * simple validation rules * - * @param string type of html element to be added - * @param string name of the html element - * @param string display label for the html element - * @param string attributes used for this element. + * @param $type + * @param $name + * @param string $label + * @param string $attributes + * @param bool $required + * @param null $extra + * + * @internal param \type $string of html element to be added + * @internal param \name $string of the html element + * @internal param \display $string label for the html element + * @internal param \attributes $string used for this element. * These are not default values - * @param bool is this a required field + * @internal param \is $bool this a required field * * @return HTML_QuickForm_Element could be an error object * @access public - * */ function &add($type, $name, $label = '', $attributes = '', $required = FALSE, $extra = NULL @@ -877,9 +883,11 @@ class CRM_Core_Form extends HTML_QuickForm_Page { * the form with a customized title for the main Submit * * @param string $title title of the main button - * @param string $type button type for the form after processing - * @param string $submitOnce If true, add javascript to next button submit which prevents it from being clicked more than once + * @param string $nextType + * @param string $backType + * @param bool|string $submitOnce If true, add javascript to next button submit which prevents it from being clicked more than once * + * @internal param string $type button type for the form after processing * @return void * @access public */ @@ -1457,13 +1465,16 @@ class CRM_Core_Form extends HTML_QuickForm_Page { * * * {/if} + * * @param array $profiles ids of profiles that are on the form (to be autofilled) - * @param array $field metadata of field to use as selector including + * @param array $autoCompleteField + * + * @internal param array $field metadata of field to use as selector including * - name_field * - id_field * - url (for ajax lookup) * - * @todo add data attributes so we can deal with multiple instances on a form + * @todo add data attributes so we can deal with multiple instances on a form */ function addAutoSelector($profiles = array(), $autoCompleteField = array()) { $autoCompleteField = array_merge(array( @@ -1522,8 +1533,11 @@ class CRM_Core_Form extends HTML_QuickForm_Page { /** * Set default values on form for given contact (or no contact defaults) + * * @param mixed $profile_id (can be id, or profile name) * @param integer $contactID + * + * @return array */ function getProfileDefaults($profile_id = 'Billing', $contactID = NULL) { try{