Packageindex Classtrees Modulegroups Elementlist Report XML Files

File: /home/jesus/devel/php/pear/Science/Chemistry/Periodic_Table.php
Chemical classes - Science_Chemistry

Science_Chemistry_Periodic_Table

Science_Chemistry_Periodic_Table

Utility class that defines a Periodic Table of elements

 

public class Science_Chemistry_Periodic_Table

Utility class that defines a Periodic Table of elements

AuthorsJesus M. Castagnetto <jmcastagnetto@php.net>
Version1.0

 

Public Method Summary

object Science_Chemistry_Element

getElement(string $symbol)

Returns a Science_Chemistry_Element object correspoding to the symbol (case sensitive)
array

getElementFamily(string $family)

Returns an array of Science_Chemistry_Element objects belonging to an element family
void

initTable()

Initializes the Periodic Table array

Public Field Summary

array

$periodic_table

The associative array containing the chemical elements

Public Method Details

getElement

public object Science_Chemistry_Element getElement( string $symbol )

  Returns a Science_Chemistry_Element object correspoding to the symbol (case sensitive)

Parameter
string $symbol
Returns object Science_Chemistry_Element


getElementFamily

public array getElementFamily( string $family )

  Returns an array of Science_Chemistry_Element objects belonging to an element family

Parameter
string $family
Returns array

Science_Chemistry_Element objects


initTable

public void initTable( )

  Initializes the Periodic Table array

Returns void


Public Field Details

$periodic_table

public array $periodic_table

>>array()<<

The associative array containing the chemical elements



Packageindex Classtrees Modulegroups Elementlist Report XML Files
PHPDoc 1.0beta