/** * If user inserted a username inside the form then get that username * so that it can be displayed on the form when the web page loads. */ public function __construct() { self::$username = $this->checkUserNameInCookie(); }
/** * @param \model\LoginModel $model */ public function __construct(\model\LoginModel $model) { self::$sessionSaveLocation .= \Settings::APP_SESSION_NAME; self::$logout = \Settings::LOGOUT; $this->model = $model; }
/** * Creates the view * * @param \model\LoginModel $model */ public function __construct(\model\LoginModel $model) { self::$LoginModel = $model; }