| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <?php
- /**
- * Optimizer unit page file.
- *
- * Provides a class with all the properties and methods to display the page.
- *
- * @category Page
- */
- /**
- * Require dependent files if not present.
- */
- require_once(PATH::PAGE . "Page.php");
- require_once(PATH::ENTITY . "Unit.php");
- /**
- * Optimizer team list page model.
- *
- * @category Page
- */
- class Optimizer_Unit_Page extends Page{
- /**
- * @var Unit The unit to optimize.
- */
- public $unit;
- /**
- * Constructor.
- *
- * Retrieves the data and initializes the variables.
- *
- * @param string $id Selected unit id
- */
- public function __construct($id){
- $this->view = PATH::VIEW . "optimizer_unit.php";
- $this->unit = new Unit($id);
- $this->title = "Optimize " . $this->unit->unit->name . " - SWDB";
- $this->description = "Optimize " . $this->unit->unit->name;
- $this->canonical = URL::BASE . "optmizer/$id";
- }
- }
- ?>
|