예제 #1
0
 protected function AddStandardRAGs()
 {
     rag::create(array('subject_id' => $this->id, 'subject_type' => $this->subjecttype, 'title' => 'Resource', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => $this->id, 'subject_type' => $this->subjecttype, 'title' => 'Schedule', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => $this->id, 'subject_type' => $this->subjecttype, 'title' => 'Costs', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => $this->id, 'subject_type' => $this->subjecttype, 'title' => 'Quality', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => $this->id, 'subject_type' => $this->subjecttype, 'title' => 'Benefits', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => $this->id, 'subject_type' => $this->subjecttype, 'title' => 'Infrastructure', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => $this->id, 'subject_type' => $this->subjecttype, 'title' => 'Risks & Issues', 'value' => 'G', 'comments' => ''));
 }
예제 #2
0
 public static function GetObject($subject_type, $subject_id)
 {
     switch ($subject_type) {
         case 'Program':
             return Program::findorFail($subject_id);
             break;
         case 'WorkStream':
             return WorkStream::findorFail($subject_id);
             break;
         case 'Project':
             return Project::findorFail($subject_id);
             break;
         case 'Risk':
             return Risk::findorFail($subject_id);
             break;
         case 'Task':
             return Task::findorFail($subject_id);
             break;
         case 'Action':
             return Action::findorFail($subject_id);
             break;
         case 'Rag':
             return rag::findorFail($subject_id);
             break;
         case 'Dependency':
             return Dependency::findorFail($subject_id);
             break;
         case 'ChangeRequest':
             return ChangeRequest::findorFail($subject_id);
             break;
         case 'Meeting':
             return Meeting::findorFail($subject_id);
             break;
         case 'Link':
             return Link::findorFail($subject_id);
             break;
         case 'Assumption':
             return Assumption::findorFail($subject_id);
             break;
         case 'Decision':
             return Decision::findorFail($subject_id);
             break;
         default:
             return null;
     }
 }
예제 #3
0
 public static function getSubjectName($subjecttype, $subjectid)
 {
     switch ($subjecttype) {
         case "Program":
             $program = Program::findOrFail($subjectid);
             return $program->name;
             break;
         case "WorkStream":
             $workstream = WorkStream::findOrFail($subjectid);
             return $workstream->name;
             break;
         case "Project":
             $project = Project::findOrFail($subjectid);
             return $project->name;
             break;
         case "Risk":
             $risk = Risk::findOrFail($subjectid);
             return $risk->title;
             break;
         case "Rag":
             $rag = rag::findOrFail($subjectid);
             return $rag->title;
             break;
         case "Task":
             $task = Task::findOrFail($subjectid);
             return $task->title;
             break;
         case "Dependency":
             $dependency = Dependency::findOrFail($subjectid);
             return $dependency->title;
             break;
         case "ChangeRequest":
             $changerequest = ChangeRequest::findOrFail($subjectid);
             return $changerequest->title;
             break;
         case "Meeting":
             $meeting = Meeting::findOrFail($subjectid);
             return $meeting->title;
             break;
         case "Action":
             $action = Action::findOrFail($subjectid);
             return $action->title;
             break;
         case "Link":
             $link = Link::findOrFail($subjectid);
             return $link->title;
             break;
         case "Assumption":
             $assumption = Assumption::findOrFail($subjectid);
             return $assumption->title;
             break;
     }
 }
예제 #4
0
 /**
  * Update the specified resource in storage.
  *
  * @param  \Illuminate\Http\Request  $request
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function update(Request $request, $id)
 {
     //return $request->all();
     $rag = rag::findorFail($id);
     $rag->title = $request->title;
     $rag->value = $request->value;
     $rag->comments = $request->comments;
     $rag->save();
     flash()->success('Success', "RAG updated successfully");
     return redirect(Session::GetRedirect());
 }
예제 #5
0
 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     DB::table('rags')->delete();
     rag::create(array('subject_id' => 1, 'subject_type' => 'Program', 'title' => 'Resource', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 1, 'subject_type' => 'Program', 'title' => 'Schedule', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 1, 'subject_type' => 'Program', 'title' => 'Costs', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 1, 'subject_type' => 'Program', 'title' => 'Quality', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 1, 'subject_type' => 'Program', 'title' => 'Benefits', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 1, 'subject_type' => 'Program', 'title' => 'Infrastructure', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 1, 'subject_type' => 'Program', 'title' => 'Risks & Issues', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 1, 'subject_type' => 'WorkStream', 'title' => 'Resource', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 1, 'subject_type' => 'WorkStream', 'title' => 'Schedule', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 1, 'subject_type' => 'WorkStream', 'title' => 'Costs', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 1, 'subject_type' => 'WorkStream', 'title' => 'Quality', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 1, 'subject_type' => 'WorkStream', 'title' => 'Benefits', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 1, 'subject_type' => 'WorkStream', 'title' => 'Infrastructure', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 1, 'subject_type' => 'WorkStream', 'title' => 'Risks & Issues', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 2, 'subject_type' => 'WorkStream', 'title' => 'Resource', 'value' => 'A', 'comments' => 'Integration and FPLS Gaps project manager is leaving'));
     rag::create(array('subject_id' => 2, 'subject_type' => 'WorkStream', 'title' => 'Schedule', 'value' => 'G', 'comments' => 'Current plans are in line with the agreed July target date'));
     rag::create(array('subject_id' => 2, 'subject_type' => 'WorkStream', 'title' => 'Costs', 'value' => 'G', 'comments' => 'No Change'));
     rag::create(array('subject_id' => 2, 'subject_type' => 'WorkStream', 'title' => 'Quality', 'value' => 'G', 'comments' => 'No quality issues'));
     rag::create(array('subject_id' => 2, 'subject_type' => 'WorkStream', 'title' => 'Benefits', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 2, 'subject_type' => 'WorkStream', 'title' => 'Infrastructure', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 2, 'subject_type' => 'WorkStream', 'title' => 'Risks & Issues', 'value' => 'A', 'comments' => 'Still need to confirm the details of the location model'));
     rag::create(array('subject_id' => 3, 'subject_type' => 'WorkStream', 'title' => 'Resource', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 3, 'subject_type' => 'WorkStream', 'title' => 'Schedule', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 3, 'subject_type' => 'WorkStream', 'title' => 'Costs', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 3, 'subject_type' => 'WorkStream', 'title' => 'Quality', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 3, 'subject_type' => 'WorkStream', 'title' => 'Benefits', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 3, 'subject_type' => 'WorkStream', 'title' => 'Infrastructure', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 3, 'subject_type' => 'WorkStream', 'title' => 'Risks & Issues', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 4, 'subject_type' => 'WorkStream', 'title' => 'Resource', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 4, 'subject_type' => 'WorkStream', 'title' => 'Schedule', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 4, 'subject_type' => 'WorkStream', 'title' => 'Costs', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 4, 'subject_type' => 'WorkStream', 'title' => 'Quality', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 4, 'subject_type' => 'WorkStream', 'title' => 'Benefits', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 4, 'subject_type' => 'WorkStream', 'title' => 'Infrastructure', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 4, 'subject_type' => 'WorkStream', 'title' => 'Risks & Issues', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 5, 'subject_type' => 'WorkStream', 'title' => 'Resource', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 5, 'subject_type' => 'WorkStream', 'title' => 'Schedule', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 5, 'subject_type' => 'WorkStream', 'title' => 'Costs', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 5, 'subject_type' => 'WorkStream', 'title' => 'Quality', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 5, 'subject_type' => 'WorkStream', 'title' => 'Benefits', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 5, 'subject_type' => 'WorkStream', 'title' => 'Infrastructure', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 5, 'subject_type' => 'WorkStream', 'title' => 'Risks & Issues', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 6, 'subject_type' => 'WorkStream', 'title' => 'Resource', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 6, 'subject_type' => 'WorkStream', 'title' => 'Schedule', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 6, 'subject_type' => 'WorkStream', 'title' => 'Costs', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 6, 'subject_type' => 'WorkStream', 'title' => 'Quality', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 6, 'subject_type' => 'WorkStream', 'title' => 'Benefits', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 6, 'subject_type' => 'WorkStream', 'title' => 'Infrastructure', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 6, 'subject_type' => 'WorkStream', 'title' => 'Risks & Issues', 'value' => 'G', 'comments' => ''));
     //projects
     rag::create(array('subject_id' => 1, 'subject_type' => 'Project', 'title' => 'Resource', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 1, 'subject_type' => 'Project', 'title' => 'Schedule', 'value' => 'A', 'comments' => 'No contigency'));
     rag::create(array('subject_id' => 1, 'subject_type' => 'Project', 'title' => 'Costs', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 1, 'subject_type' => 'Project', 'title' => 'Quality', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 1, 'subject_type' => 'Project', 'title' => 'Benefits', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 1, 'subject_type' => 'Project', 'title' => 'Infrastructure', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 1, 'subject_type' => 'Project', 'title' => 'Risks & Issues', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 2, 'subject_type' => 'Project', 'title' => 'Resource', 'value' => 'A', 'comments' => 'Change in PM and Analyst'));
     rag::create(array('subject_id' => 2, 'subject_type' => 'Project', 'title' => 'Schedule', 'value' => 'A', 'comments' => 'Need decision on SPIRIT integration'));
     rag::create(array('subject_id' => 2, 'subject_type' => 'Project', 'title' => 'Costs', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 2, 'subject_type' => 'Project', 'title' => 'Quality', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 2, 'subject_type' => 'Project', 'title' => 'Benefits', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 2, 'subject_type' => 'Project', 'title' => 'Infrastructure', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 2, 'subject_type' => 'Project', 'title' => 'Risks & Issues', 'value' => 'A', 'comments' => 'Concerns on the risks'));
     rag::create(array('subject_id' => 3, 'subject_type' => 'Project', 'title' => 'Resource', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 3, 'subject_type' => 'Project', 'title' => 'Schedule', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 3, 'subject_type' => 'Project', 'title' => 'Costs', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 3, 'subject_type' => 'Project', 'title' => 'Quality', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 3, 'subject_type' => 'Project', 'title' => 'Benefits', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 3, 'subject_type' => 'Project', 'title' => 'Infrastructure', 'value' => 'A', 'comments' => 'Pre prod and prod delayed'));
     rag::create(array('subject_id' => 3, 'subject_type' => 'Project', 'title' => 'Risks & Issues', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 4, 'subject_type' => 'Project', 'title' => 'Resource', 'value' => 'R', 'comments' => 'PM left'));
     rag::create(array('subject_id' => 4, 'subject_type' => 'Project', 'title' => 'Schedule', 'value' => 'A', 'comments' => 'Lack of clarity at this stage'));
     rag::create(array('subject_id' => 4, 'subject_type' => 'Project', 'title' => 'Costs', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 4, 'subject_type' => 'Project', 'title' => 'Quality', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 4, 'subject_type' => 'Project', 'title' => 'Benefits', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 4, 'subject_type' => 'Project', 'title' => 'Infrastructure', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 4, 'subject_type' => 'Project', 'title' => 'Risks & Issues', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 5, 'subject_type' => 'Project', 'title' => 'Resource', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 5, 'subject_type' => 'Project', 'title' => 'Schedule', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 5, 'subject_type' => 'Project', 'title' => 'Costs', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 5, 'subject_type' => 'Project', 'title' => 'Quality', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 5, 'subject_type' => 'Project', 'title' => 'Benefits', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 5, 'subject_type' => 'Project', 'title' => 'Infrastructure', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 5, 'subject_type' => 'Project', 'title' => 'Risks & Issues', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 6, 'subject_type' => 'Project', 'title' => 'Resource', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 6, 'subject_type' => 'Project', 'title' => 'Schedule', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 6, 'subject_type' => 'Project', 'title' => 'Costs', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 6, 'subject_type' => 'Project', 'title' => 'Quality', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 6, 'subject_type' => 'Project', 'title' => 'Benefits', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 6, 'subject_type' => 'Project', 'title' => 'Infrastructure', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 6, 'subject_type' => 'Project', 'title' => 'Risks & Issues', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 7, 'subject_type' => 'Project', 'title' => 'Resource', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 7, 'subject_type' => 'Project', 'title' => 'Schedule', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 7, 'subject_type' => 'Project', 'title' => 'Costs', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 7, 'subject_type' => 'Project', 'title' => 'Quality', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 7, 'subject_type' => 'Project', 'title' => 'Benefits', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 7, 'subject_type' => 'Project', 'title' => 'Infrastructure', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 7, 'subject_type' => 'Project', 'title' => 'Risks & Issues', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 8, 'subject_type' => 'Project', 'title' => 'Resource', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 8, 'subject_type' => 'Project', 'title' => 'Schedule', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 8, 'subject_type' => 'Project', 'title' => 'Costs', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 8, 'subject_type' => 'Project', 'title' => 'Quality', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 8, 'subject_type' => 'Project', 'title' => 'Benefits', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 8, 'subject_type' => 'Project', 'title' => 'Infrastructure', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 8, 'subject_type' => 'Project', 'title' => 'Risks & Issues', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 9, 'subject_type' => 'Project', 'title' => 'Resource', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 9, 'subject_type' => 'Project', 'title' => 'Schedule', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 9, 'subject_type' => 'Project', 'title' => 'Costs', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 9, 'subject_type' => 'Project', 'title' => 'Quality', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 9, 'subject_type' => 'Project', 'title' => 'Benefits', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 9, 'subject_type' => 'Project', 'title' => 'Infrastructure', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 9, 'subject_type' => 'Project', 'title' => 'Risks & Issues', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 10, 'subject_type' => 'Project', 'title' => 'Resource', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 10, 'subject_type' => 'Project', 'title' => 'Schedule', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 10, 'subject_type' => 'Project', 'title' => 'Costs', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 10, 'subject_type' => 'Project', 'title' => 'Quality', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 10, 'subject_type' => 'Project', 'title' => 'Benefits', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 10, 'subject_type' => 'Project', 'title' => 'Infrastructure', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 10, 'subject_type' => 'Project', 'title' => 'Risks & Issues', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 11, 'subject_type' => 'Project', 'title' => 'Resource', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 11, 'subject_type' => 'Project', 'title' => 'Schedule', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 11, 'subject_type' => 'Project', 'title' => 'Costs', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 11, 'subject_type' => 'Project', 'title' => 'Quality', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 11, 'subject_type' => 'Project', 'title' => 'Benefits', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 11, 'subject_type' => 'Project', 'title' => 'Infrastructure', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 11, 'subject_type' => 'Project', 'title' => 'Risks & Issues', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 12, 'subject_type' => 'Project', 'title' => 'Resource', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 12, 'subject_type' => 'Project', 'title' => 'Schedule', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 12, 'subject_type' => 'Project', 'title' => 'Costs', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 12, 'subject_type' => 'Project', 'title' => 'Quality', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 12, 'subject_type' => 'Project', 'title' => 'Benefits', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 12, 'subject_type' => 'Project', 'title' => 'Infrastructure', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 12, 'subject_type' => 'Project', 'title' => 'Risks & Issues', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 13, 'subject_type' => 'Project', 'title' => 'Resource', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 13, 'subject_type' => 'Project', 'title' => 'Schedule', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 13, 'subject_type' => 'Project', 'title' => 'Costs', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 13, 'subject_type' => 'Project', 'title' => 'Quality', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 13, 'subject_type' => 'Project', 'title' => 'Benefits', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 13, 'subject_type' => 'Project', 'title' => 'Infrastructure', 'value' => 'G', 'comments' => ''));
     rag::create(array('subject_id' => 13, 'subject_type' => 'Project', 'title' => 'Risks & Issues', 'value' => 'G', 'comments' => ''));
 }