/**
  * Process the form for CONFIGURING this note template.
  * @see DB_Object::processForm()
  * @param string $prefix
  * @param array|NULL $fields
  */
 function processForm($prefix = '', $fields = NULL)
 {
     $this->fields['fields'] = array();
     $res = parent::processForm($prefix, $fields);
     unset($this->fields['fields']);
     return $res;
 }
 function processForm($prefix = '', $fields = NULL)
 {
     $this->fields['members'] = array();
     parent::processForm($prefix, $fields);
     unset($this->fields['members']);
 }
 public function processForm($prefix = '', $fields = NULL)
 {
     $res = parent::processForm($prefix, $fields);
     $this->values['congregationids'] = array_get($_REQUEST, $prefix . 'congregationids', array());
     $this->_tmp['tagids'] = array();
     if (!empty($_REQUEST['tags'])) {
         foreach ($_REQUEST['tags'] as $tagid) {
             if ($tagid && is_numeric($tagid)) {
                 $this->_tmp['tagids'][] = $tagid;
             }
         }
     }
     if (!empty($_REQUEST['new_tags'])) {
         $GLOBALS['system']->includeDBClass('service_component_tag');
         foreach ($_REQUEST['new_tags'] as $tag) {
             $tag = trim($tag);
             if (strlen($tag)) {
                 $tag = ucfirst($tag);
                 $obj = new Service_Component_Tag();
                 $obj->setValue('tag', $tag);
                 $obj->create();
                 $this->_tmp['tagids'][] = $obj->id;
             }
         }
     }
     return $res;
 }
Beispiel #4
0
 function processForm($prefix = '', $fields = NULL)
 {
     $res = parent::processForm($prefix, $fields);
     $this->_photo_data = Photo_Handler::getUploadedPhotoData('photo');
     return $res;
 }