src/Commander/MessageManager.php
protected function getNotification($name, $status = FALSE)
    {
        //If $status is FALSE show primary notification
        if($status === FALSE)
        {
            //Generate a message
            if($this->commandExists('notify-send'))
            {
                shell_exec('notify-send "'.$this->getAppName().' Tasks"  "Running '.$name.'..." -i dialog-information');
            }
            //Show required message
            echo "\n";
            echo "\t", $this->colorize('Running '.$name.'...', 'info');
            echo "\n";
        }
        else
        {
            //If $status is TRUE show success notification
            //Generate a message
            if($this->commandExists('notify-send'))
            {
                shell_exec('notify-send "'.$this->getAppName().' Tasks" "'.$name.' Task Completed!" -i dialog-ok');
            }
            //Show required message
            echo "\n";
            echo "\t", $this->colorize($name.' Task Completed!', 'success');
            echo "\n";
        }
    }
protected function getNotification($name, $status = FALSE)
    {
        //If $status is FALSE show primary notification
        if($status === FALSE)
        {
            //Generate a message
            if($this->commandExists('notify-send'))
            {
                shell_exec('notify-send "'.$this->getAppName().' Tasks"  "Running '.$name.'..." -i dialog-information');
            }
            //Show required message
            echo "\n";
            echo "\t", $this->colorize('Running '.$name.'...', 'info');
            echo "\n";
        }
        else
        {
            //If $status is TRUE show success notification
            //Generate a message
            if($this->commandExists('notify-send'))
            {
                shell_exec('notify-send "'.$this->getAppName().' Tasks" "'.$name.' Task Completed!" -i dialog-ok');
            }
            //Show required message
            echo "\n";
            echo "\t", $this->colorize($name.' Task Completed!', 'success');
            echo "\n";
        }
    }
protected function getNotification ( $ name , $ status = FALSE ) { //If $status is FALSE show primary notification if ( $ status === FALSE ) { //Generate a message if ( $ this -> commandExists ( 'notify-send' ) ) { shell_exec ( 'notify-send "' . $ this -> getAppName ( ) . ' Tasks"  "Running ' . $ name . '..." -i dialog-information' ) ; } //Show required message echo "\n" ; echo "\t" , $ this -> colorize ( 'Running ' . $ name . '...' , 'info' ) ; echo "\n" ; } else { //If $status is TRUE show success notification //Generate a message if ( $ this -> commandExists ( 'notify-send' ) ) { shell_exec ( 'notify-send "' . $ this -> getAppName ( ) . ' Tasks" "' . $ name . ' Task Completed!" -i dialog-ok' ) ; } //Show required message echo "\n" ; echo "\t" , $ this -> colorize ( $ name . ' Task Completed!' , 'success' ) ; echo "\n" ; } }
Provide a NotificationManager.

@param string $name
@param boolean $status
@return string
Provide a NotificationManager .