Repository Class: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 7: Line 7:
== Methods ==
== Methods ==
===== Connection =====
===== Connection =====
*'''[[Repository.ConnectToRepository|ConnectToRepository]]''' {{APIComment|Connects to any (MS Access, MS SQL or Oracle) repository.}}
*'''[[Repository.ConnectToRepository|ConnectToRepository]]''' {{APIComment|{{Template:Repository.ConnectToRepository.Cmt}}}}
*'''[[Repository.ConnectToAccessRepository|ConnectToAccessRepository]]''' {{APIComment|Connects to an MS Access repository.}}
*'''[[Repository.ConnectToAccessRepository|ConnectToAccessRepository]]''' {{APIComment|{{Template:Repository.ConnectToAccessRepository.Cmt}}}}
*'''[[Repository.ConnectToSQLRepository|ConnectToSQLRepository]]''' {{APIComment|Connects to an MS SQL repository.}}
*'''[[Repository.ConnectToSQLRepository|ConnectToSQLRepository]]''' {{APIComment|{{Template:Repository.ConnectToSQLRepository.Cmt}}}}
*'''[[Repository.ConnectToOracleRepository|ConnectToOracleRepository]]''' {{APIComment|Connects to an Oracle repository.}}
*'''[[Repository.ConnectToOracleRepository|ConnectToOracleRepository]]''' {{APIComment|{{Template:Repository.ConnectToOracleRepository.Cmt}}}}
*'''[[Repository.DisconnectFromRepository|DisconnectFromRepository]]''' {{APIComment|Disconnects from current repository.}}
*'''[[Repository.DisconnectFromRepository|DisconnectFromRepository]]''' {{APIComment|{{Template:Repository.DisconnectFromRepository.Cmt}}}}


===== Project =====
===== Project =====
*'''[[Repository.GetAllProjects|GetAllProjects]]''' {{APIComment|Returns an array containing all project names and their IDs from the current repository.}}
*'''[[Repository.GetAllProjects|GetAllProjects]]''' {{APIComment|{{Template:Repository.GetAllProjects.Cmt}}}}
*'''[[Repository.GetCurrentProject|GetCurrentProject]]''' {{APIComment|Returns the name and ID of the current project.}}
*'''[[Repository.GetCurrentProject|GetCurrentProject]]''' {{APIComment|{{Template:Repository.GetCurrentProject.Cmt}}}}
*'''[[Repository.SetCurrentProject|SetCurrentProject]]''' {{APIComment|Opens (sets as current) a project with the specified ID. If 0 is passed, a fist available project will be set as current.}}
*'''[[Repository.SetCurrentProject|SetCurrentProject]]''' {{APIComment|{{Template:Repository.SetCurrentProject.Cmt}}}}


===== Unit =====
===== Unit =====
*'''[[Repository.GetAllUnits|GetAllUnits]]''' {{APIComment|Returns the default unit ID.}}
*'''[[Repository.GetAllUnits|GetAllUnits]]''' {{APIComment|{{Template:Repository.GetAllUnits.Cmt}}}}


===== Models =====
===== Models =====
*'''[[Repository.GetAllModelsInfo|GetAllModelsInfo]]''' {{APIComment|Returns an array containing all model names and their IDs from the current project.}}
*'''[[Repository.GetAllModelsInfo|GetAllModelsInfo]]''' {{APIComment|{{Template:Repository.GetAllModelsInfo.Cmt}}}}
*'''[[Repository.GetModel|GetModel]]''' {{APIComment|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.}}
*'''[[Repository.GetModel|GetModel]]''' {{APIComment|{{Template:Repository.GetModel.Cmt}}}}
*'''[[Repository.GetAllModels|GetAllModels]]''' {{APIComment|Returns an array containing all models from the current project.}}
*'''[[Repository.GetAllModels|GetAllModels]]''' {{APIComment|{{Template:Repository.GetAllModels.Cmt}}}}
*'''[[Repository.AddModel|AddModel]]''' {{APIComment|Saves a new model in the repository. }}
*'''[[Repository.AddModel|AddModel]]''' {{APIComment|{{Template:Repository.AddModel.Cmt}}}}
*'''[[Repository.UpdateModel|UpdateModel]]''' {{APIComment|Updates the model in the repository. }}
*'''[[Repository.UpdateModel|UpdateModel]]''' {{APIComment|{{Repository.UpdateModel.Cmt}}}}


===== URDs =====
===== URDs =====

Revision as of 21:15, 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