* @copyright 2004 by http://wombat.exit0.net * @package wombatSite * @subpackage formDatasource */ /** * datasource for Wombat framework * * @version 0.1 * @package wombatSite * @subpackage formDatasource */ class wbFormDatasource_Userflag extends wbFormDatasource { /** * default values of used attributes * @access private * @var array $_params */ var $_atts = array( 'type' => 'user' ); /** * returns values suitable for patForms-Elements * * @access public * @return boolean $result true on success */ function getValues() { $values = array( array( 'value' => 'new', 'label' => 'New' ), array( 'value' => 'approved', 'label' => _( 'Approved' ) ), array( 'value' => 'enabled', 'label' => _( 'Enabled' ) ), array( 'value' => 'admin', 'label' => _( 'Administrator' ) ), ); if( $this->_atts['type'] == 'admin' ) { // array_push( $values, array( 'value' => ) ); } return $values; } } ?>