* Invision Power Services * IP.Board v3.3.4 * ACP notification config skin file * Last Updated: $Date: 2012-06-12 10:14:49 -0400 (Tue, 12 Jun 2012) $ * * * @author $Author: bfarber $ * @copyright (c) 2001 - 2009 Invision Power Services, Inc. * @license http://www.invisionpower.com/company/standards.php#license * @package IP.Board * @subpackage Members * @link http://www.invisionpower.com * @since 20th February 2002 * @version $Rev: 10914 $ * */ class cp_skin_notifications { /** * Registry Object Shortcuts * * @var $registry * @var $DB * @var $settings * @var $request * @var $lang * @var $member * @var $memberData * @var $cache * @var $caches */ protected $registry; protected $DB; protected $settings; protected $request; protected $lang; protected $member; protected $memberData; protected $cache; protected $caches; /** * Constructor * * @param object $registry Registry object * @return @e void */ public function __construct( ipsRegistry $registry ) { $this->registry = $registry; $this->DB = $this->registry->DB(); $this->settings =& $this->registry->fetchSettings(); $this->request =& $this->registry->fetchRequest(); $this->member = $this->registry->member(); $this->memberData =& $this->registry->member()->fetchMemberData(); $this->cache = $this->registry->cache(); $this->caches =& $this->registry->cache()->fetchCaches(); $this->lang = $this->registry->class_localization; } /** * Show the form to configure notification defaults * * @param array Application notification options * @param array Current configuration * @return string HTML */ public function showConfigurationOptions( $options, $config ) { $IPBHTML = ""; //--starthtml--// $IPBHTML .= <<

{$this->lang->words['notifications_config']}

{$this->lang->words['notifications_config_title']}

form_code}&do=save'> HTML; $_options = array( array( 'email', $this->lang->words['notopt__email'] ), array( 'inline', $this->lang->words['notopt__inline'] ), array( 'mobile', $this->lang->words['notopt__mobile'] ) ); foreach( $options as $option ) { $_thisConfig = $config[ $option['key'] ]; if( !is_array($_thisConfig) OR !count($_thisConfig) ) { $_thisConfig['selected'] = $option['default']; $_thisConfig['disabled'] = $option['disabled']; } $_defaultOpt = $this->registry->output->formMultiDropdown( 'default_' . $option['key'] . '[]', $_options, $_thisConfig['selected'], 3, 'default_' . $option['key'] ); $_disabledOpt = $this->registry->output->formMultiDropdown( 'disabled_' . $option['key'] . '[]', $_options, $_thisConfig['disabled'], 3,'disabled_' . $option['key'] ); $_disableOver = $this->registry->output->formYesNo( 'disable_override_' . $option['key'], intval($_thisConfig['disable_override']) ); $IPBHTML .= << HTML; } $IPBHTML .= <<
HTML; //--endhtml--// return $IPBHTML; } }
{$this->lang->words['notificationtype_h']} {$this->lang->words['notificationdfs_h']} {$this->lang->words['notificationdo_h']} {$this->lang->words['notificationdms_h']}
{$this->lang->words['notify__' . $option['key'] ]}
{$this->lang->words['notify_key_pre']}{$option['key']}
{$_defaultOpt} {$_disabledOpt} {$_disableOver}