From 1345212166d272965a33830b85508f4f447ee9c8 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Mon, 21 Dec 2015 22:16:52 -0500 Subject: [PATCH] CRM_Core_Form - remove unused functions --- CRM/Core/Form.php | 97 ----------------------------------------------- 1 file changed, 97 deletions(-) diff --git a/CRM/Core/Form.php b/CRM/Core/Form.php index 685f09d95a..04b2cdd84b 100644 --- a/CRM/Core/Form.php +++ b/CRM/Core/Form.php @@ -376,20 +376,6 @@ class CRM_Core_Form extends HTML_QuickForm_Page { return $element; } - /** - * Add an element for inputting a month+day (partial date). - * - * @param string $name - * @param string $label - * - * @return HTML_QuickForm_Element - */ - public function addMonthDay($name, $label) { - return $this->add('date', $name, $label, - CRM_Core_SelectValues::date(NULL, 'M d') - ); - } - /** * Preprocess form. * @@ -865,45 +851,6 @@ class CRM_Core_Form extends HTML_QuickForm_Page { $this->_options = $options; } - /** - * Getter function for link. - * - * @return string - */ - public function getLink() { - $config = CRM_Core_Config::singleton(); - return CRM_Utils_System::url($_GET[$config->userFrameworkURLVar], - '_qf_' . $this->_name . '_display=true' - ); - } - - /** - * Boolean function to determine if this is a one form page. - * - * @return bool - */ - public function isSimpleForm() { - return $this->_state->getType() & (CRM_Core_State::START | CRM_Core_State::FINISH); - } - - /** - * Getter function for Form Action. - * - * @return string - */ - public function getFormAction() { - return $this->_attributes['action']; - } - - /** - * Setter function for Form Action. - * - * @param string $action - */ - public function setFormAction($action) { - $this->_attributes['action'] = $action; - } - /** * Render form and return contents. * @@ -1588,40 +1535,6 @@ class CRM_Core_Form extends HTML_QuickForm_Page { )); } - /** - * @param int $id - * @param $title - * @param null $required - * @param null $extra - */ - public function addCountry($id, $title, $required = NULL, $extra = NULL) { - $this->addElement('select', $id, $title, - array( - '' => ts('- select -'), - ) + CRM_Core_PseudoConstant::country(), $extra - ); - if ($required) { - $this->addRule($id, ts('Please select %1', array(1 => $title)), 'required'); - } - } - - /** - * @param string $name - * @param $label - * @param $options - * @param $attributes - * @param null $required - * @param null $javascriptMethod - */ - public function addSelectOther($name, $label, $options, $attributes, $required = NULL, $javascriptMethod = NULL) { - - $this->addElement('select', $name . '_id', $label, $options, $javascriptMethod); - - if ($required) { - $this->addRule($name . '_id', ts('Please select %1', array(1 => $label)), 'required'); - } - } - /** * @return null */ @@ -1671,16 +1584,6 @@ class CRM_Core_Form extends HTML_QuickForm_Page { } } - /** - * @return string - */ - public function buttonType() { - $uploadNames = $this->get('uploadNames'); - $buttonType = (is_array($uploadNames) && !empty($uploadNames)) ? 'upload' : 'next'; - $this->assign('buttonType', $buttonType); - return $buttonType; - } - /** * @param $name * -- 2.25.1