Overview
packages
Classes

Abstract class YurtPart

|-abstract class YurtPart
Defined in line 16 of file YurtPart.php.
Interface to be implemented by yurt parts
Version1.0
LicenseGPL
AuthorThierry Graff
Weblinkhttp://www.tig12.net
PhpPHP5
History2007.06.12, 00h40 : Creation

Overview

Instance fields$yurt
Static methodsformatMeters() m2cm()
Instance methods__construct() toHtml()

Summary

Instance fields
# $yurt The yurt containing this yurt part
Static methods
+ formatMeters($nb) Formats a number in a string
+ m2cm($nb, $precision = 1) Converts a number expressed in meters to centimeters
Instance methods
+ __construct(&$yurt)
+ toHtml($params = '')

Details

Instance fields

protected $yurt
The yurt containing this yurt part
Defined in line 19 of file YurtPart.php

Static methods

public static function formatMeters( $nb)
Formats a number in a string
Ex : converts 18.39 to "18 m 39"
Parameters
$nb
M $nb Number of meters
Defined in line 42 of file YurtPart.php
public static function m2cm( $nb
$precision = 1
)
Converts a number expressed in meters to centimeters
Parameters
$nb Number of meters
$precision Nb of decimals in the result
Defined in line 54 of file YurtPart.php

Instance methods

public function __construct( &$yurt)
Parameters
$yurt The yurt containing this yurt part.
Returns A XHTML string exposing the results of this yurt part.
Defined in line 25 of file YurtPart.php
public abstract function toHtml( $params = '')
Parameters
$params
Returns A XHTML string exposing the results of this yurt part.
Overriden by toHtml() in classes : Crown, LinenRoof, Poles, Floor, General, Walls
Defined in line 32 of file YurtPart.php