N98\Util\Exec::allowed PHP Method

allowed() public static method

Exec class is allowed to run
public static allowed ( ) : boolean
return boolean
    public static function allowed()
    {
        return function_exists('exec');
    }

Usage Example

Ejemplo n.º 1
0
 /**
  * @return bool
  */
 public function isEnabled()
 {
     return Exec::allowed();
 }