Repository Class: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 26: Line 26:
*'''[[Repository.GetAllModels|GetAllModels]]''' {{APIComment|{{Template:Repository.GetAllModels.Cmt}}}}
*'''[[Repository.GetAllModels|GetAllModels]]''' {{APIComment|{{Template:Repository.GetAllModels.Cmt}}}}
*'''[[Repository.AddModel|AddModel]]''' {{APIComment|{{Template:Repository.AddModel.Cmt}}}}
*'''[[Repository.AddModel|AddModel]]''' {{APIComment|{{Template:Repository.AddModel.Cmt}}}}
*'''[[Repository.UpdateModel|UpdateModel]]''' {{APIComment|{{Repository.UpdateModel.Cmt}}}}
*'''[[Repository.UpdateModel|UpdateModel]]''' {{APIComment|{{Template:Repository.UpdateModel.Cmt}}}}


===== URDs =====
===== URDs =====
*'''[[Repository.GetAllURDs|GetAllURDs]]''' {{APIComment|Returns an array containing all URDs from the current project.}}
*'''[[Repository.GetAllURDs|GetAllURDs]]''' {{APIComment|{{Template:Repository.GetAllURDs.Cmt}}}}
*'''[[Repository.AddURD|AddURD]]''' {{APIComment|Saves a new URD in the repository. }}
*'''[[Repository.AddURD|AddURD]]''' {{APIComment|{{Template:Repository.AddURD.Cmt}}}}
*'''[[Repository.UpdateURD|UpdateURD]]''' {{APIComment|Updates the URD in the repository.}}
*'''[[Repository.UpdateURD|UpdateURD]]''' {{APIComment|{{Template:Repository.UpdateURD.Cmt}}}}


===== Variables =====
===== Variables =====
*'''[[Repository.GetAllVariables|GetAllVariables]]''' {{APIComment|Returns an array containing all Variables from the current project.}}
*'''[[Repository.GetAllVariables|GetAllVariables]]''' {{APIComment|{{Template:Repository.GetAllVariables.Cmt}}}}
*'''[[Repository.AddVariable|AddVariable]]''' {{APIComment|Saves a new Variable in the repository.}}
*'''[[Repository.AddVariable|AddVariable]]''' {{APIComment|{{Template:Repository.AddVariable.Cmt}}}}
*'''[[Repository.UpdateVariable|UpdateVariable]]''' {{APIComment|Updates the Variable in the repository.}}
*'''[[Repository.UpdateVariable|UpdateVariable]]''' {{APIComment|{{Template:Repository.UpdateVariable.Cmt}}}}


===== Corrective Tasks =====
===== Corrective Tasks =====
*'''[[Repository.GetAllCorrectiveTasks|GetAllCorrectiveTasks]]''' {{APIComment|Returns an array containing all corrective tasks from the current project.}}
*'''[[Repository.GetAllCorrectiveTasks|GetAllCorrectiveTasks]]''' {{APIComment|{{Template:Repository.GetAllCorrectiveTasks.Cmt}}}}
*'''[[Repository.AddCorrectiveTask|AddCorrectiveTask]]''' {{APIComment|Saves the corrective task in the repository. }}
*'''[[Repository.AddCorrectiveTask|AddCorrectiveTask]]''' {{APIComment|{{Template:Repository.AddCorrectiveTask.Cmt}}}}
*'''[[Repository.UpdateCorrectiveTask|UpdateCorrectiveTask]]''' {{APIComment|Updates the Corrective task in the repository.}}
*'''[[Repository.UpdateCorrectiveTask|UpdateCorrectiveTask]]''' {{APIComment|{{Template:Repository.UpdateCorrectiveTask.Cmt}}}}


===== Scheduled Tasks =====
===== Scheduled Tasks =====
*'''[[Repository.GetAllScheduledTasks|GetAllScheduledTasks]]''' {{APIComment|Returns an array containing all scheduled tasks from the current project.}}
*'''[[Repository.GetAllScheduledTasks|GetAllScheduledTasks]]''' {{APIComment|{[Template:Repository.GetAllScheduledTasks.Cmt}}}}
*'''[[Repository.AddScheduledTask|AddScheduledTask]]''' {{APIComment|Saves the scheduled task in the repository. }}
*'''[[Repository.AddScheduledTask|AddScheduledTask]]''' {{APIComment|{{Template:Repository.AddScheduledTask.Cmt}}}}
*'''[[Repository.UpdateScheduledTask|UpdateScheduledTask]]''' {{APIComment|Updates the scheduled task in the repository.}}
*'''[[Repository.UpdateScheduledTask|UpdateScheduledTask]]''' {{APIComment|{{Template:Repository.UpdateScheduledTask.Cmt}}}}


===== Task Types =====
===== Task Types =====

Revision as of 21:21, 5 February 2014


Allows Template:Repository Class.Cmt

Constructors

Methods

Connection
Project
  • GetAllProjects Returns an array containing all project names and their IDs from the current repository.
  • GetCurrentProject Returns the name and ID of the current project.
  • SetCurrentProject Opens (sets as current) a project with the specified ID.
Unit
  • GetAllUnits Returns an array containing all units of measurement from the current repository.
Models
  • GetAllModelsInfo Returns an array containing all model names and their IDs from the current project.
  • GetModel Returns the model from the current project with the specified ID. Returns nothing if the model does not exist or is not in the current project.
  • GetAllModels Returns an array containing all models from the current project.
  • AddModel Saves a new model in the repository.
  • UpdateModel Updates the model in the repository.
URDs
  • GetAllURDs Returns an array containing all URDs from the current project.
  • AddURD Saves a new URD in the repository.
  • UpdateURD Updates the URD in the repository.
Variables
Corrective Tasks
Scheduled Tasks
Task Types
  • GetAllTaskTypes Retuns an array containing all task types in the repository.
Crews
  • GetAllCrews Returns an array containing all crews from the current project.
  • AddCrew Saves the crew in the repository.
  • UpdateCrew Updates the Crew in the repository.
Pools
  • GetAllPools Returns an array containing all spare parts pools from the current project.
  • AddPool Saves the spare parts pool in the repository.
  • UpdatePool Updates the spare parts Pool in the repository.
Action
  • GetAllActions Returns an array containing all actions from the current project.
  • AddAction Saves the action in the repository.
  • UpdateAction Updates the Action in the repository.
BlockSim
XFRACAS

Properties