Back to CMSApplicationInterface class

Method isCli

public bool
isCli
()
Flag if the application instance is a CLI or web based application.
Returns
  • bool
Since
  • 4.0.0
Deprecated
  • 5.0

Method isCli - Source code

/**
 * Flag if the application instance is a CLI or web based application.
 *
 * Helper function, you should use the native PHP functions to detect if it is a CLI application.
 *
 * @return  boolean
 *
 * @since       4.0.0
 * @deprecated  5.0  Will be removed without replacements
 */
public function isCli();