Documentation is available at PrimitiveIO_blob.class.php
- <?php
- /**
- * @package polyphony.datamanager_gui
- *
- * @copyright Copyright © 2005, Middlebury College
- * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License (GPL)
- *
- * @version $Id: PrimitiveIO_blob.class.php,v 1.9 2007/09/19 14:04:44 adamfranco Exp $
- */
- /**
- *
- *
- * @package polyphony.datamanager_gui
- *
- * @copyright Copyright © 2005, Middlebury College
- * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License (GPL)
- *
- * @version $Id: PrimitiveIO_blob.class.php,v 1.9 2007/09/19 14:04:44 adamfranco Exp $
- */
- class PrimitiveIO_blob
- extends PrimitiveIO
- {
- var $_blob;
- function PrimitiveIO_blob () {
- // do nothing.
- }
- /**
- * Sets the value of this Component to the {@link SObject} passed.
- * @param ref object $value The {@link SObject} value to use.
- *
- * @return void
- ***/
- function setValue($value)
- {
- $this->_blob =$value;
- }
- /**
- * Sets the value of this Component to the {@link SObject} passed.
- * @param ref object $value The {@link SObject} value to use.
- *
- * @return void
- ***/
- function setValueFromSObject($value)
- {
- $this->setValue($value);
- }
- /**
- * Returns true if this component (and all child components if applicable) have valid values.
- * By default, this will just return TRUE. Validate should be called usually before a save event
- * is handled, to make sure everything went smoothly.
- * @access public
- * @return boolean
- */
- function validate () {
- return true;
- }
- /**
- * Tells the wizard component to update itself - this may include getting
- * form post data or validation - whatever this particular component wants to
- * do every pageload.
- * @param string $fieldName The field name to use when outputting form data or
- * similar parameters/information.
- * @access public
- * @return boolean - TRUE if everything is OK
- */
- function update ($fieldName) {
- // do nothing.
- }
- /**
- * Returns the values of wizard-components. Should return an array if children are involved,
- * otherwise a whatever type of object is expected.
- * @access public
- * @return mixed
- */
- function getAllValues () {
- return $this->_blob?$this->_blob->value():"";
- }
- /**
- * Returns a block of XHTML-valid code that contains markup for this specific
- * component.
- * @param string $fieldName The field name to use when outputting form data or
- * similar parameters/information.
- * @access public
- * @return string
- */
- function getMarkup ($fieldName) {
- return dgettext("polyphony", "Blob data") . ": " . strlen($this->_blob?$this->_blob->value():"") . " " . dgettext("polyphony", "bytes");
- }
- }
Documentation generated on Wed, 19 Sep 2007 10:25:38 -0400 by phpDocumentor 1.3.0RC3