|
|
File: /home/jesus/devel/php/pear/Science/Chemistry/Element.php
Chemical classes - Science_Chemistry
Science_Chemistry_Element
Science_Chemistry_Element
Utility class that defines a chemical element object
|
public class Science_Chemistry_Element
Utility class that defines a chemical element object
|
|
|
|
Public Field Summary |
string |
$symbolElement's symbol, one or two characters, case sensitive |
string |
$nameElement's name |
integer |
$numberElement's atomic number |
float |
$weightElement's atomic weight in a.m.u (atomic mass units) |
string |
$melting_pointElement's melting point, with comments |
string |
$boiling_pointElement's boiling point, with comments |
string |
$familyElement's family |
|
Public Method Details |
Science_Chemistry_Element |
public object Science_Chemistry_Element Science_Chemistry_Element( string $sym, string $name, integer $num, float $wgt, string $mp, string $bp, string $fam )
|
|
Constructor for the class
|
Parameter |
|
string |
$sym |
|
|
element symbol |
|
|
string |
$name |
|
|
element name |
|
|
integer |
$num |
|
|
atomic number |
|
|
|
|
string |
$mp |
|
|
melting point (with comments) |
|
|
string |
$bp |
|
|
boiling point (with comments) |
|
|
|
Returns |
object Science_Chemistry_Element |
|
isElement |
public boolean isElement( object Science_Chemistry_Element $obj )
|
|
Checks if an object is a Science_Chemistry_Element instance
|
Parameter |
|
object Science_Chemistry_Element |
$obj |
|
|
|
|
Returns |
boolean |
|
|
Public Field Details |
$symbol |
public string $symbol
>> <<
Element's symbol, one or two characters, case sensitive
|
|
$name |
public string $name
>> <<
Element's name
|
|
$number |
public integer $number
>> <<
Element's atomic number
|
|
$weight |
public float $weight
>> <<
Element's atomic weight in a.m.u (atomic mass units)
|
|
$melting_point |
public string $melting_point
>> <<
Element's melting point, with comments
|
|
$boiling_point |
public string $boiling_point
>> <<
Element's boiling point, with comments
|
|
$family |
public string $family
>> <<
Element's family
|
|
|
|
|
PHPDoc 1.0beta |