<?php

/*
 * This file is part of the YepsuaSmarTwigBundle.
 *
 * (c) Omar Yepez <*****@*****.**>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */
namespace Yepsua\SmarTwigBundle\UI\Message;

use YsJQuery as JQuery;
use YsPNotify as PNotify;
use YsJQueryConstant as JQueryConstant;
JQuery::usePlugin(JQueryConstant::PLUGIN_PNOTYFY);
/**
 * Description of Notification
 *
 * @author oyepez
 */
class Notification
{
    const NOTICE_LEVEL = 'notice';
    const ERROR_LEVEL = 'error';
    const SAY_LEVEL = 'say';
    const ALARM_LEVEL = 'alarm';
    const ALERT_LEVEL = 'alert';
    public static function notice($content)
    {
        return self::build(PNotify::notice($content));
Example #2
0
 public function animateLayout($layout, $region, $effect = 'bounce')
 {
     JQuery::usePlugin('jLayout');
     return str_replace(array('"'), array('\''), Layout::effect($layout, $region, $effect));
 }