Exemplo n.º 1
0
 /**
  * build the form elements
  *
  * @return void
  * @access public
  */
 public function buildQuickForm()
 {
     parent::buildQuickForm();
     // Build contact type specific fields
     $class = 'CRM_Contact_Form_Edit_' . $this->_contactType;
     $class::buildQuickForm($this, 2);
 }
Exemplo n.º 2
0
 /**
  * Build the form object elements.
  */
 public function buildQuickForm()
 {
     parent::buildQuickForm();
     // Build contact type specific fields
     $class = 'CRM_Contact_Form_Edit_' . $this->_contactType;
     $class::buildQuickForm($this, 1);
     $this->addFormRule(array('CRM_Contact_Form_Inline_ContactName', 'formRule'), $this);
 }
Exemplo n.º 3
0
 /**
  * build the form elements for website object
  *
  * @return void
  * @access public
  */
 public function buildQuickForm()
 {
     parent::buildQuickForm();
     $totalBlocks = $this->_blockCount;
     $actualBlockCount = 1;
     if (count($this->_websites) > 1) {
         $actualBlockCount = $totalBlocks = count($this->_websites);
         if ($totalBlocks < $this->_blockCount) {
             $additionalBlocks = $this->_blockCount - $totalBlocks;
             $totalBlocks += $additionalBlocks;
         } else {
             $actualBlockCount++;
             $totalBlocks++;
         }
     }
     $this->assign('actualBlockCount', $actualBlockCount);
     $this->assign('totalBlocks', $totalBlocks);
     $this->applyFilter('__ALL__', 'trim');
     for ($blockId = 1; $blockId < $totalBlocks; $blockId++) {
         CRM_Contact_Form_Edit_Website::buildQuickForm($this, $blockId, TRUE);
     }
 }
Exemplo n.º 4
0
 /**
  * Build the form object elements for openID object.
  *
  * @return void
  */
 public function buildQuickForm()
 {
     parent::buildQuickForm();
     $totalBlocks = $this->_blockCount;
     $actualBlockCount = 1;
     if (count($this->_openids) > 1) {
         $actualBlockCount = $totalBlocks = count($this->_openids);
         if ($totalBlocks < $this->_blockCount) {
             $additionalBlocks = $this->_blockCount - $totalBlocks;
             $totalBlocks += $additionalBlocks;
         } else {
             $actualBlockCount++;
             $totalBlocks++;
         }
     }
     $this->assign('actualBlockCount', $actualBlockCount);
     $this->assign('totalBlocks', $totalBlocks);
     $this->applyFilter('__ALL__', 'trim');
     for ($blockId = 1; $blockId < $totalBlocks; $blockId++) {
         CRM_Contact_Form_Edit_OpenID::buildQuickForm($this, $blockId, TRUE);
     }
     $this->addFormRule(array('CRM_Contact_Form_Inline_OpenID', 'formRule'));
 }
Exemplo n.º 5
0
 /**
  * Build the form object elements for an address object.
  *
  * @return void
  */
 public function buildQuickForm()
 {
     parent::buildQuickForm();
     CRM_Contact_Form_Edit_Address::buildQuickForm($this, $this->_locBlockNo, TRUE, TRUE);
 }
Exemplo n.º 6
0
 /**
  * Build the form object elements for custom data.
  *
  * @return void
  */
 public function buildQuickForm()
 {
     parent::buildQuickForm();
     CRM_Custom_Form_CustomData::buildQuickForm($this);
 }
Exemplo n.º 7
0
 /**
  * build the form elements
  *
  * @return void
  * @access public
  */
 public function buildQuickForm()
 {
     parent::buildQuickForm();
     CRM_Contact_Form_Edit_Demographics::buildQuickForm($this);
 }
Exemplo n.º 8
0
 /**
  * build the form elements for communication preferences
  *
  * @return void
  * @access public
  */
 public function buildQuickForm()
 {
     parent::buildQuickForm();
     CRM_Contact_Form_Edit_CommunicationPreferences::buildQuickForm($this);
     $this->addFormRule(array('CRM_Contact_Form_Edit_CommunicationPreferences', 'formRule'), $this);
 }
Exemplo n.º 9
0
 /**
  * Build the form object elements for an address object.
  */
 public function buildQuickForm()
 {
     parent::buildQuickForm();
     CRM_Contact_Form_Edit_Address::buildQuickForm($this, $this->_locBlockNo, TRUE, TRUE);
     $this->addFormRule(array('CRM_Contact_Form_Edit_Address', 'formRule'), $this);
 }