function add($aSource)
 {
     $aSource['task_complete'] = 'N';
     if (parent::add($aSource) != -1) {
         $this->attachFile($aSource);
     }
 }
 function add($aSource)
 {
     $aSource['active'] = @DCL_Sanitize::ToYN($aSource['active']);
     parent::add($aSource);
     if ($this->oDB->workspace_id > 0) {
         $oWSP = CreateObject('dcl.dbWorkspaceProduct');
         $oWSP->serialize($this->oDB->workspace_id, $aSource['products'], true);
         $oWSU = CreateObject('dcl.dbWorkspaceUser');
         $oWSU->serialize($this->oDB->workspace_id, $aSource['users'], true);
     }
 }
 function add($aSource)
 {
     if (parent::add($aSource) == -1) {
         return;
     }
     if (is_array($aSource['rolePerms'])) {
         $oRolePerm =& CreateObject('dcl.dbRolePerm');
         foreach ($aSource['rolePerms'] as $entityPerm) {
             list($entity_id, $perm_id) = explode('_', $entityPerm);
             $oRolePerm->InitFromArray(array('role_id' => $this->oDB->role_id, 'entity_id' => $entity_id, 'perm_id' => $perm_id));
             $oRolePerm->add();
         }
     }
 }
 function add()
 {
     $aSource = array('dcl_entity_type_id' => $_REQUEST['dcl_entity_type_id'], 'dcl_entity_id' => $_REQUEST['dcl_entity_id'], 'dcl_entity_id2' => $_REQUEST['dcl_entity_id2'], 'dcl_sccs_id' => $_REQUEST['dcl_sccs_id'], 'personnel_id' => $_REQUEST['personnel_id'], 'sccs_project_path' => $_REQUEST['sccs_project_path'], 'sccs_file_name' => $_REQUEST['sccs_file_name'], 'sccs_version' => $_REQUEST['sccs_version'], 'sccs_comments' => $_REQUEST['sccs_comments'], 'sccs_checkin_on' => 'now()');
     parent::add($aSource);
 }
 function add($aSource)
 {
     $aSource['active'] = @DCL_Sanitize::ToYN($aSource['active']);
     parent::add($aSource);
 }
 function add($aSource)
 {
     $aSource['preferred'] = @DCL_Sanitize::ToYN($aSource['preferred']);
     parent::add($aSource);
 }
 function add($aSource)
 {
     $aSource['contact_type_is_main'] = @DCL_Sanitize::ToYN($aSource['contact_type_is_main']);
     parent::add($aSource);
 }