<?php
/**
* @package XenCentral Ad Server
* @author Skydevelop EU
* @copyright Drnoyan & Nalyan LDA, Portugal, EU
* @license http://www.dnf.pt/eula.html
* @link http://www.skydevelop.com
* @revision 97
* @version 2.0.0 beta 3 rev. 3
*/

class XenCentral_AdServer_Option_Notifications
{
	public static function renderAdminNotificationTypeSelectors(XenForo_View $view, $fieldPrefix, array $preparedOption, $canEdit)
	{
        $html = $view->createTemplateObject('xcas_admin_notification_selector', array(
            'optionName' => $preparedOption['option_id'],
            'optionValue'=> $preparedOption['option_value'],
            'fieldPrefix' => $fieldPrefix
        ));

        $preparedOption['formatParams'] = $html;

        return XenForo_ViewAdmin_Helper_Option::renderOptionTemplateInternal('xcfw_option_list_html',
            $view, $fieldPrefix, $preparedOption, $canEdit
        );
	}

    public static function renderUserNotificationTypeSelectors(XenForo_View $view, $fieldPrefix, array $preparedOption, $canEdit)
	{
        $html = $view->createTemplateObject('xcas_user_notification_selector', array(
                'optionName' => $preparedOption['option_id'],
                'optionValue' => $preparedOption['option_value'],
                'fieldPrefix' => $fieldPrefix
        ));

        $preparedOption['formatParams'] = $html;

        return XenForo_ViewAdmin_Helper_Option::renderOptionTemplateInternal('xcfw_option_list_html',
            $view, $fieldPrefix, $preparedOption, $canEdit
        );
	}


}