2017 © Pedro Peláez
 

library 50001-ready-guidance-test

50001 Ready Guidance

image

michaelbmuller/50001-ready-guidance-test

50001 Ready Guidance

  • Wednesday, June 13, 2018
  • by michaelbmuller
  • Repository
  • 1 Watchers
  • 1 Stars
  • 119 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 3 % Grown

The README.md

USDOE 50001 Ready Guidance

Latest Stable Version Total Downloads Build Status License codecov PHP-Eye, (*1)

This support library includes all of the USDOE 50001 Ready Navigator guidance broken into 25 individual tasks. The 50001 Ready Navigator provides step-by-step guidance for implementing and maintaining an energy management system in conformance with the ISO 50001 Energy Management System Standard., (*2)

Installation

With Composer

$ composer require michaelbmuller/50001-ready-guidance-test
{
    "require": {
        "michaelbmuller/50001-ready-guidance-test": "dev-master"
    }
}

Loading Guidance

<?php
require 'vendor/autoload.php';

use DOE_50001_Ready\Guidance;

//Load guidance
$guidance = new Guidance();

//Load alternate language (example: español) 
$guidance = new Guidance('es'); 

//Set Custom Task Tips
$guidance->setCustomTips($customTips);

//Section Related Functions
$sections = $guidance->getSections();
$sectionName = $guidance->getSectionName($sectionCode);
$previousSectionCode = $guidance->previousSection($sectionCode, $dashboardCode = 'dashboard');
$nextSectionCode = $guidance->nextSection($sectionCode, $dashboardCode = 'dashboard');

//Get All Tasks
$tasks = $guidance->getTasks();

//Get Section Tasks
$tasks = $guidance->getTasks([sectionCode]);

//Get Task
$task = $guidance->getTask([taskId]);
$task = $guidance->getTaskByMenuName($menuName);

//Or load Task 1 directly
$task = Task::load(1,'en');

Accessing Task Details

<?php
/** @var \DOE_50001_Ready\Task $task */
//Available Task Data 
$task->id();
$task->getMenuName();
$task->getTitle();
$task->language_requested;
$task->language_displayed;

/** ONLY AVAILABLE WHEN TASKS LOADED THROUGH GUIDANCE */
$task->sectionCode;
$task->section;
$task->relatedIsoSections;
$task->prerequisites;
$task->leadsTo;
$task->custom_tips;
//customTips Must be externally loaded with $guidance->setCustomTips($customTips);
$task->resources;

//With Processed Markup Text
$task->getGettingItDone();
$task->getTaskOverview();
$task->getFullDescription();
$task->getOtherIsoTips();
$task->getEnergyStarTips();
$task->getCustomTips();

Accessing Resource Details

<?php
/** @var \DOE_50001_Ready\Resource $resource */
//Available Task Data 
$resource->id;
$resource->name;
$resource->file_type;
$resource->short_description;
$resource->file_name;
$resource->link;

Guidance Markup

The DefaultMarkupProcessor flattens the task markup tags by replacing them with basic text., (*3)

How to set a new Markup Processor:, (*4)

//Create a new Markup Processor that implements the required interface
class NewMarkupProcessor implementes MarkupProcessorInterface

//Inject the new Markup Processor into the Guidance or Tasks
$guidance = new Guidance($language, NewMarkupProcessor::class);
$task = new Task::load($task_id, $language, NewMarkupProcessor::class);

Types of Markup

Embedded link to other Tasks, (*5)

[task](Menu Name)

Embedded link to Resources, (*6)

[resource](Resource_Code_Name)

Accordions

Requires opening and closing tags, (*7)

Allows content to be open and collapsed, (*8)

[Accordion](Title of Accordion Content)
**Accordion Content**
[Accordion End]

Learn More

Requires opening and closing tags, (*9)

Allows content to be open and collapsed, (*10)

[Learn More](Title of Learn More Content)
**Learn More Content**
[Learn More End]

Important Notes

  • The English version of the guidance is both the default and primary version used as the basis for translated versions
  • If a requested language is not available, the English version will be returned
  • Non-English guidance content folders include a copy of the English version used for the translation to provide guidance on what needs to be updated when the English version is updated

Contributors

Library Developer: Michael B Muller, (*11)

50001 Ready Task Guidance Developed by the: * US Department of Energy * Lawrence Berkeley National Laboratory * Georgia Institute of Technology, (*12)

The Versions

13/06 2018

dev-master

9999999-dev

50001 Ready Guidance

  Sources   Download

MPL-2.0

The Requires

  • php >=5.6

 

The Development Requires

by Michael B Muller

50001 ready iso 50001 doe usdoe

06/10 2017

v0.4.0

0.4.0.0

50001 Ready Guidance

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

by Michael B Muller

50001 ready iso 50001 doe usdoe

04/10 2017

v0.3.0

0.3.0.0

50001 Ready Guidance

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

by Michael B Muller

50001 ready iso 50001 doe usdoe

02/10 2017

v0.2

0.2.0.0

50001 Ready Guidance

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

The Development Requires

by Michael B Muller

50001 ready iso 50001 doe usdoe

30/09 2017

v0.1

0.1.0.0

50001 Ready Guidance

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

The Development Requires

by Michael B Muller

50001 ready iso 50001 doe usdoe