gui\Application::getVerboseLevel PHP Method

getVerboseLevel() public method

Returns the verbose level
public getVerboseLevel ( ) : integer
return integer
    public function getVerboseLevel()
    {
        return $this->verboseLevel;
    }

Usage Example

Example #1
0
 /**
  * Print debug information
  *
  * @param String $text Text to print
  *
  * @return void
  */
 protected function out($text)
 {
     if ($this->application->getVerboseLevel() == 2) {
         $re = explode('}{', $text);
         foreach ($re as $key => $value) {
             if (count($re) > 1 && $key == 0) {
                 Output::out('=> Sent: ' . $value . '}', 'yellow');
             } elseif (count($re) > 1 && $key == count($re) - 1) {
                 Output::out('=> Sent: {' . $value, 'yellow');
             } elseif (count($re) > 1) {
                 Output::out('=> Sent: {' . $value . '}', 'yellow');
             } else {
                 Output::out('=> Sent: ' . $value, 'yellow');
             }
         }
     }
 }
All Usage Examples Of gui\Application::getVerboseLevel