(Yaf >=1.0.0)
Yaf_Request_Abstract::isCli — Determine if the request is a CLI request
Checks whether the request was sent with the CLI method.
This function has no parameters.
Example #1 Yaf_Request_Abstract::isCli() example
<?php
// cron.php, executed with "php cron.php" from a crontab
$request = new Yaf_Request_Simple("CLI", "Index", "Cron", "Cleanup");
var_dump($request->isCli());
?>The above example will output something similar to:
bool(true)