Your browser must have JavaScript enabled in order to view this page.
 >  >
 
Welcome Guest#1825 Login/register    Go to Bottom
Go to Top

Class: Mass

SOURCE LOCATION:  /dpuniverse/std/mass.php

Class Overview

Coinherit for adding mass (volume and weight) abstraction to an object

Creates the following DutchPIPE properties, depending on settings:

  • int|float weight - Weight of object without inventory
  • int|float totalWeight - Weight including inventory, cannot be set
  • int|float volume - Volume of object

DpProperties
   |
   --Mass
LOCATED IN:  /dpuniverse/std/mass.php [line 48]
AUTHOR(S):   Lennert Stock <ls@dutchpipe.org>
LINK:  http://dutchpipe.org/manual/package/DutchPIPE
VERSION:  Release: 0.2.1
LICENSE:  DutchPIPE License
COPYRIGHT:  2006, 2007 Lennert Stock
METHODS:

Inherits

Inherited Methods

INHERITED FROM:  DpProperties
void   DpProperties::coinherit()   "Coinherit" a class located at the given pathname
mixed   DpProperties::getDpProperty()   Directly retrieve the value of an existing DutchPIPE property
boolean   DpProperties::isDpProperty()   Determines if a property is defined in this object
void   DpProperties::removeDpProperties()   Removes properties and coinherits
void   DpProperties::setDpProperty()   Directly set the value of an existing DutchPIPE property
void   DpProperties::__call()   Handles set and get methods for properties using PHP member overloading
mixed   DpProperties::__get()   Gets the value of a DutchPIPE property using PHP member overloading
boolean   DpProperties::__isset()   Determines if a property is defined in this object using PHP member overloading
void   DpProperties::__set()   Sets the value of a DutchPIPE property using PHP member overloading
void   DpProperties::__unset()   Unsets the given DutchPIPE property using PHP member overloading

Methods Summary

int|float   _getTotalWeight()   Gets total weight - weight of object including weight of inventory
void   _setVolume()   Sets volume using member overloading if giving value if a valid weight
void   _setWeight()   Sets weight using member overloading if giving value if a valid weight

Methods

_getTotalWeight  [line 110]
int|float _getTotalWeight( )

Gets total weight - weight of object including weight of inventory

RETURNS:  int|float  Weight including inventory
ACCESS:  protected
_setVolume  [line 97]
void _setVolume( $val , int|float $weight   )

Sets volume using member overloading if giving value if a valid weight

PARAMETERS: int|float   $weight  Volume of this object
   $val 
ACCESS:  protected
_setWeight  [line 84]
void _setWeight( $val , int|float $weight   )

Sets weight using member overloading if giving value if a valid weight

PARAMETERS: int|float   $weight  Weight of this object
   $val 
ACCESS:  protected

Documentation generated on Mon, 03 Sep 2007 22:22:03 +0200 by phpDocumentor 1.3.0RC6

Click me!
Guest#1825
 
 
 
  Go to Top
 
 
Input Field OptionsClose Input Field Go to Top
 
Legal Notices | Copyright © 2006, 2007 Lennert Stock. All rights reserved. Last update: Mon Sep 03 2007, 21:50 CET.