Overview
packages
Classes

Class Yurt

|- class Yurt
Defined in line 18 of file Yurt.php.

Summary

Instance fields
- $config The characteristics of this yurt, retrieved from config file
# $results Data computed by yurt parts
Instance methods
+ setResults($key1, $key2, $value) Used by YurtParts to store a result
+ getResults($key1, $key2) Return a result computed by a part
+ __construct($configFile) Builds a Yurt object from config file
+ getConfig($key1 = '', $key2 = '') Returns the characteristics of this yurt.
+ generateDocument($outputDir) Generates a document containing the plans of the yurt.

Details

Instance fields

private $config = ''
The characteristics of this yurt, retrieved from config file
Defined in line 21 of file Yurt.php
protected $results = ''
Data computed by yurt parts
Defined in line 24 of file Yurt.php

Instance methods

public function setResults( $key1
$key2
$value
)
Used by YurtParts to store a result
Parameters
$key1
$key2
$value
Defined in line 27 of file Yurt.php
public function getResults( $key1
$key2
)
Return a result computed by a part
Parameters
$key1
$key2
Defined in line 32 of file Yurt.php
public function __construct( $configFile)
Builds a Yurt object from config file.
Parameters
$configFile The file containing the yurt data
Defined in line 39 of file Yurt.php
public function getConfig( $key1 = ''
$key2 = ''
)
Returns the characteristics of this yurt.
Returns the complete array or part of it, depending on the values of $key1 and $key2
Parameters
$key1
$key2
Defined in line 54 of file Yurt.php
public function generateDocument( $outputDir)
Generates a document containing the plans of the yurt.
Unique entry point of yurt API
Parameters
$outputDir The directory where the plans are saved
Returns true in case of normal execution
Defined in line 67 of file Yurt.php