Overview

Packages

  • LegiScan
    • API
    • Cache
    • Common
    • Exceptions
    • Utility
  • PHP

Functions

  • expect_user
  • is_cli
  • legiscan_getopt
  • legiscan_help
  • legiscan_option
  • memory_usage
  • prettyPrint
  • sec2hms
  • timer_clear
  • timer_read
  • timer_start
  • timer_stop
  • yes_no_prompt
  • Overview
  • Package
  • Function

Function yes_no_prompt

Ask for a Yes/No response if on terminal, otherwise return default answer

Package: LegiScan\Common
Located at common.php
Parameters summary
boolean $default = false The answer used if not interactive
Return value summary
boolean True if the answer is Yes, false if the answer is No
LegiScan API Client API documentation generated by ApiGen