$admin
$admin : object
Used to hold an AdminController object used to manipulate the Yioop configuration
Provides a command-line interface way to configure a Yioop Instance.
Unlike the web interface this interface is English-only.
__construct()
To change configuration parameters of Yioop, this program invokes AdminController methods. These methods expect, data passed to them in super globals set up as a result of an HTTP request. This program fakes the settings of these variables.
To keep things simple this constructor initializes each of the relevant super globals to be empty arrays.
confirmChange(string $admin_method, string $reenter_method) : string
Used to select to confirm, cancel, or re-enter the last profile change
string | $admin_method | to call if confirmed |
string | $reenter_method | , return value if reenter chosen |
menu name to do to next
drawChooseItems(array $items, string $currentView) : string
Draws a list of options to the screen and gets a choice from this list from the user.
array | $items | as associative array (return value => description) |
string | $currentView | value to return if invalid choice made |
a choice from the user