. * * For more information, contact Colosa Inc, 2566 Le Jeune Rd., * Coral Gables, FL, 33134, USA, or email info@colosa.com. * * It works with the table GROUP_USER * * Copyright (C) 2007 COLOSA * * License: LGPL, see LICENSE * */ /** * GroupUser - GroupUser class * * @package workflow.engine.ProcessMaker * @author Julio Cesar Laura AvendaƱo * @copyright 2007 COLOSA */ G::LoadClass( 'pmObject' ); class GroupUser extends DBTable { /** * Constructor * * @param object $oConnection * @return variant */ function GroupUser ($oConnection = null) { if ($oConnection) { return parent::setTo( $oConnection, 'GROUP_USER', array ('GRP_UID','USR_UID' ) ); } else { return; } } /* * Set the Data Base connection * @param object $oConnection * @return variant/ the connection or void */ function setTo ($oConnection = null) { if ($oConnection) { return parent::setTo( $oConnection, 'GROUP_USER', array ('GRP_UID','USR_UID' ) ); } else { return; } } /** * Of to assign a user from a group * * @param string $sGroup * @param string $sUser * @return void */ function ofToAssignUser ($sGroup = '', $sUser = '') { $this->Fields['GRP_UID'] = $sGroup; $this->Fields['USR_UID'] = $sUser; parent::delete(); } } ?>