Documentation is available at Blob.class.php
- <?php
- /**
- * A simple Blob data type.
- *
- * @package harmoni.primitives.collections-text
- *
- * @copyright Copyright © 2005, Middlebury College
- * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License (GPL)
- *
- * @version $Id: Blob.class.php,v 1.8 2007/09/04 20:25:26 adamfranco Exp $
- */
- class Blob
- extends String
- {
- function Blob($string="") {
- $this->_string = $string;
- }
- /**
- * Instantiates a new Blob object with the passed value.
- * @param string $value
- * @return ref object
- * @access public
- * @static
- */
- function withValue($value) {
- $string = new Blob($value);
- return $string;
- }
- /**
- * Instantiates a new Blob object with the passed value.
- *
- * allowing 'fromString' instantiation
- * @param string $aString
- * @return ref object
- * @access public
- * @static
- */
- function fromString($aString) {
- $string = new Blob($aString);
- return $string;
- }
- function value() {
- return $this->_string;
- }
- }
Documentation generated on Wed, 19 Sep 2007 10:21:46 -0400 by phpDocumentor 1.3.0RC3