messages[$msg])) return $this->messages[$msg]; else return false; } public function __construct() { $this->messages['programRequired'] = Mind::message("API: You must send the program name, to execute", '[Fail]', false); $this->messages['loginRequired'] = Mind::message("Auth: Both login and password are required", '[Fail]', false); $this->messages['passwordRequired'] = "I need a password for this user, please: "; $this->messages['autenticated'] = Mind::message("\nMain: %s autenticated", "[OK]", false);//"\n[OK] %s autenticated\n"; $this->messages['not_allowed'] = Mind::message("\nMain: You have not autenticated your credentials yet", '[Fail]', false); $this->messages['not_allowed_tip'] = "Try calling the command\n auth < login >\nA password will be required.\n"; $this->messages['no_such_file'] = Mind::message("\nMain: No such command '%s'", "[Fail]", false); $this->messages['auth_fail'] = Mind::message("\nAuth: Wrong user or password", "[Fail]", false); $this->messages['bye'] = "Logging out...\n"; $this->messages['thinking'] = "Please wait while I'm thinking...\n"; $this->messages['invalidCreateParams'] = Mind::message("Main: Invalid parameters", "[Fail]", false); $this->messages['invalidOption'] = Mind::message("Invalid option '%s'", '[Fail]', false); $this->messages['projectAlreadyExists'] = Mind::message("There is, already, another project with the same name", '[Fail]', false); $this->messages['projectCreated'] = Mind::message("Created project '%s'", '[Ok]', false); $this->messages['userCreated'] = Mind::message("Created user '%s'", '[Ok]', false); $this->messages['noProject'] = Mind::message("Project '%s' doesn't exist or you have no access", '[Fail]', false); $this->messages['projectOpened'] = Mind::message("Project '%s' opened", '[Ok]', false); $this->messages['currentProjectRequired'] = Mind::message("You must open a project first", '[Fail]', false); $this->messages['sourceFileNotFound'] = Mind::message("The source '%s' was not found for the current project.", '[Fail]', false); $this->messages['currentProjectRequiredTip']= "You can use the command\n use project \n"; $this->messages['analyseFirst'] = "You will need to analyze the project. It has not been analyzed yet.Execute the 'analyze' command.\n"; $this->messages['permissionDenied'] = Mind::message("Permission denied to change/create/delete files.\nPlease, allow the system to change files in mind's root directory", '[Fail]', false);; $this->messages['additionalCounterCol'] = "This field was automatically added to allow an insertion of a new tuple using repeated values for the other keys."; $this->messages['commitChanged'] = Mind::message("VCS: Commited to version %s", '[Ok]', false); $this->messages['commitUnchanged'] = Mind::message("VCS: Nothing to commit. Still in version %s", '[Ok]', false); $this->messages['http_invalid_requisition'] = <<