Science_Chemistry
[ class tree: Science_Chemistry ] [ index: Science_Chemistry ] [ all elements ]

Class: Science_Chemistry_Element

Source Location: /Science_Chemistry-1.1.2/Science/Chemistry/Element.php

Class Overview


Utility class that defines a chemical element object


Author(s):

Version:

  • 1.0

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 30]
Utility class that defines a chemical element object


[ Top ]


Class Variables

$boiling_point =

[line 78]

Element's boiling point, with comments
  • Access: public

Type:   string


[ Top ]

$family =

[line 86]

Element's family
  • Access: public

Type:   string


[ Top ]

$melting_point =

[line 70]

Element's melting point, with comments
  • Access: public

Type:   string


[ Top ]

$name =

[line 46]

Element's name
  • Access: public

Type:   string


[ Top ]

$number =

[line 54]

Element's atomic number
  • Access: public

Type:   integer


[ Top ]

$symbol =

[line 38]

Element's symbol, one or two characters, case sensitive
  • Access: public

Type:   string


[ Top ]

$weight =

[line 62]

Element's atomic weight in a.m.u (atomic mass units)
  • Access: public

Type:   float


[ Top ]



Method Detail

Science_Chemistry_Element (Constructor)   [line 101]

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
  • Access: public

Parameters:

string   $sym     element symbol
string   $name     element name
integer   $num     atomic number
float   $wgt     atomic weight
string   $mp     melting point (with comments)
string   $bp     boiling point (with comments)
string   $fam     family

[ Top ]

isElement   [line 118]

boolean isElement( object Science_Chemistry_Element $obj)

Checks if an object is a Science_Chemistry_Element instance
  • Access: public

Parameters:

object Science_Chemistry_Element   $obj     

[ Top ]


Documentation generated on Mon, 09 Apr 2012 18:00:04 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.